Repository navigation
fix: erroneous "no goals" in empty tactic list in induction/cases and other tactic info improvements - #9553
Merged
Conversation
This PR fixes a bug introduced in leanprover#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".
kmill
enabled auto-merge
July 25, 2025 19:23
kmill
disabled auto-merge
July 25, 2025 19:33
kmill
enabled auto-merge
July 25, 2025 19:45
kmill
marked this pull request as draft
July 25, 2025 20:36
auto-merge was automatically disabled
July 25, 2025 20:36
Pull request was converted to draft
|
Mathlib CI status (docs):
|
Collaborator
|
Reference manual CI status:
|
inductioninduction/cases and other tactic info improvements
kmill
marked this pull request as ready for review
July 26, 2025 23:11
kmill
enabled auto-merge
July 26, 2025 23:15
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR fixes a bug introduced in #7830 where if the cursor is at the indicated position
then the Infoview would show "no goals" rather than the
nilgoal. The PR also fixes a separate bug where placing the cursor on the next line after theinduction/casestactics like inwould 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. AddsTactic.throwOrLogErrorAt/Tactic.throwOrLogErrorfor throwing or logging errors depending on the recovery state.