Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Merged by Bors] - fix(frontends/lean/pp): correct binder links #781

Closed
wants to merge 2 commits into from

Conversation

eric-wieser
Copy link
Member

Previously these used the notation definition (the RHS of the :=) rather than the matched expression. This usually doesn't work at all, since often the RHS is just #0 and all the notation happens within the scoped block.

This affected a lot of mathlib notation; Exists/infi/supr/filter.eventually/filter.frequently/...

I don't know if this used to work and then we broke it, or if it's always been broken.

Previously these used the notation definition (the RHS of the `:=`) rather than the matched expression.
This usually doesn't work at all, since often the RHS is just `#0` and all the notation happens within the `scoped` block.
@eric-wieser eric-wieser requested a review from gebner November 14, 2022 00:01
@@ -1,3 +1,6 @@
pp_links.lean:10:32: error: tactic failed, there are unsolved goals
state:
⊢ Exists∃ (i j : intℤ)Exists, truetrue
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Previously this would print without any link on the .

@gebner
Copy link
Member

gebner commented Nov 15, 2022

I don't see how this could've worked before. 👍 for adding the test now.

bors r+

bors bot pushed a commit that referenced this pull request Nov 15, 2022
Previously these used the notation definition (the RHS of the `:=`) rather than the matched expression. This usually doesn't work at all, since often the RHS is just `#0` and all the notation happens within the `scoped` block.

This affected a lot of mathlib notation; `Exists`/`infi`/`supr`/`filter.eventually`/`filter.frequently`/...

I don't know if this used to work and then we broke it, or if it's always been broken.
@bors
Copy link

bors bot commented Nov 15, 2022

@bors bors bot changed the title fix(frontends/lean/pp): correct binder links [Merged by Bors] - fix(frontends/lean/pp): correct binder links Nov 15, 2022
@bors bors bot closed this Nov 15, 2022
@bors bors bot deleted the eric-wieser/fix-pp_links branch November 15, 2022 05:54
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