Repository navigation
fix: restore trailing whitespace of nested tactic blocks in the info tree - #15093
Merged
Merged
Conversation
…tree This PR fixes the goal view showing the state after the enclosing tactic instead of the nested block's goal on the line after the last tactic of a nested `have ... := by` block or `·` bullet, e.g. after an empty `·` where the next tactic is about to be typed (#15053). Tactic steps are elaborated without the trailing whitespace of their last token for incremental reuse (#11958), which is re-added to the resulting info trees afterwards. `InfoTree.addTrailing?` passed each node's own trailing whitespace to its children instead of the trailing being added, which cut off propagation at the `by` token node that `have ... := by tacs` expands to via `with_annotate_state`, so the last nested tactic never regained its whitespace. Term-level blocks ending a tactic step additionally hide behind an unsubstituted info hole at that point, so `evalSepTactics` now substitutes holes before re-adding. Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01UUFnG7QzKo9chq1i9qDkaR
Member
Author
|
!bench |
|
Benchmark results for 4481b18 against c155094 are in. No significant results found. @Kha
Small changes (1✅)
|
Kha
marked this pull request as ready for review
September 9, 2026 13:44
Kha
enabled auto-merge
September 9, 2026 13:44
|
Mathlib CI status (docs):
|
Kha
added a commit
that referenced
this pull request
Sep 14, 2026
…d tactic blocks in the info tree (#15106) Backport 843c831 from #15093. Co-authored-by: Sebastian Ullrich <[email protected]> Co-authored-by: Claude Fable 5.1 <[email protected]>
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 the goal view showing the state after the enclosing tactic instead of the nested block's goal on the line after the last tactic of a nested
have ... := byblock or·bullet, e.g. after an empty·where the next tactic is about to be typed (#15053).Tactic steps are elaborated without the trailing whitespace of their last token for incremental reuse (#11958), which is re-added to the resulting info trees afterwards.
InfoTree.addTrailing?passed each node's own trailing whitespace to its children instead of the trailing being added, which cut off propagation at thebytoken node thathave ... := by tacsexpands to viawith_annotate_state, so the last nested tactic never regained its whitespace. Term-level blocks ending a tactic step additionally hide behind an unsubstituted info hole at that point, soevalSepTacticsnow substitutes holes before re-adding.