lean4-htt/tests
Kyle Miller 5d54b0b13f
fix: erroneous "no goals" in empty tactic list in induction/cases and other tactic info improvements (#9553)
This PR fixes a bug introduced in #7830 where if the cursor is at the
indicated position
```lean
example (as bs : List Nat) : (as.append bs).length = as.length + bs.length := by
  induction as with
  | nil => -- cursor
  | cons b bs ih =>
```
then the Infoview would show "no goals" rather than the `nil` goal. The
PR also fixes a separate bug where placing the cursor on the next line
after the `induction`/`cases` tactics like in
```lean
  induction as with
  | nil => sorry
  | cons b bs ih => sorry
  I -- < cursor
```
would report the original goal in the goal list. Furthermore, there are
numerous improvements to error recovery (including `allGoals`-type logic
for pre-tactics) and the visible tactic states when there are errors.
Adds `Tactic.throwOrLogErrorAt`/`Tactic.throwOrLogError` for throwing or
logging errors depending on the recovery state.
2025-07-26 23:15:31 +00:00
..
bench chore: add grind tests as benchmarks (#9537) 2025-07-25 14:21:38 +00:00
compiler
elabissues
ir
lean fix: erroneous "no goals" in empty tactic list in induction/cases and other tactic info improvements (#9553) 2025-07-26 23:15:31 +00:00
pkg refactor: module-ize Lean (#9330) 2025-07-25 12:02:51 +00:00
playground
plugin
simpperf
.gitignore
common.sh
lakefile.toml
lean-toolchain