Skip to content

fix: Don't include syntax information in elaboration of math elements#707

Merged
ejgallego merged 2 commits intoleanprover:mainfrom
ejgallego:remove_info_verso_math
Feb 6, 2026
Merged

fix: Don't include syntax information in elaboration of math elements#707
ejgallego merged 2 commits intoleanprover:mainfrom
ejgallego:remove_info_verso_math

Conversation

@ejgallego
Copy link
Contributor

This avoids spurious infoview display of the internal elaborated
constant type.

This bug is only observable after applying the fix in #700 ; will wait
for #700 and #699 to merge this so we can properly provide a test.

Co-authored-by: David Thrane Christiansen david@lean-fro.org

@ejgallego ejgallego force-pushed the remove_info_verso_math branch 2 times, most recently from 22a43cb to a2b8797 Compare February 3, 2026 18:03
@ejgallego ejgallego force-pushed the remove_info_verso_math branch from a2b8797 to 933e618 Compare February 5, 2026 12:17
ejgallego and others added 2 commits February 5, 2026 19:51
This shows strange behavior when clicking on display math elements.
This avoids spurious infoview display of the internal elaborated
constant type.

This bug is only observable after applying the fix in leanprover#700 ; will wait
for leanprover#700 and leanprover#699 to merge this so we can properly provide a test.

Co-authored-by: David Thrane Christiansen <david@lean-fro.org>
@ejgallego ejgallego force-pushed the remove_info_verso_math branch from 933e618 to 34ae2d8 Compare February 5, 2026 19:00
@ejgallego ejgallego marked this pull request as ready for review February 5, 2026 19:01
@ejgallego
Copy link
Contributor Author

I think this is ready; note that I could only reproduce the bug for display math elements (first commit), but I guess fixing both situations is OK.

Using the LSP syntax --^ rpcCall worked for this case, but may not scale for more complex Verso tests.

@github-actions
Copy link
Contributor

github-actions bot commented Feb 5, 2026

Preview for this PR is ready! 🎉

@ejgallego ejgallego added this pull request to the merge queue Feb 6, 2026
Merged via the queue into leanprover:main with commit 239522b Feb 6, 2026
9 checks passed
@ejgallego ejgallego deleted the remove_info_verso_math branch February 6, 2026 14:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants