-
Notifications
You must be signed in to change notification settings - Fork 419
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
Bug in widgets: type of i
in ∃ i, ...
is wrong
#1618
Comments
Also true for all other kinds of binder. I think the problem is in We are annotating the One way to fix this is to modify |
Modifies `withBindingBodyUnusedName` to annotate the syntax for the variable with its corresponding fvar. Now, for example, you can hover over the variables in `fun x y => ...` in the infoview to see their types. This change affects notations such as `∃ n, n = 1`, where hovering over `n` shows that `n : Nat`. Also adds such annotations for the variables in `let` and `let_fun`. Implementation note: the variables are annotated with fresh positions using `nextExtraPos`. Removes the unused and unnecessary `Lean.PrettyPrinter.Delaborator.liftMetaM`. Closes #1618, closes #2737
Description
In the widget view, if you hover over the
i
in∃ i, ...
it doesn't show the type ofi
, but the type of the lambda that goes into the existential. Hover in the source code window works as expected.Steps to Reproduce
Consider
and put your cursor between
by
andtrivial
.Now hover over the
i
that follows∃
, both in the source code window and in the infoview.Expected behavior:
If you hover over the corresponding
i
in the source window, you geti : α
in the popupActual behavior:
Now hover over the
i
that follows∃
, in the info view. I would expect the typei : α
to show up. But instead the type of the lambda that is part of the∃
is shown.Reproduces how often:
100%
Versions
Lean (version 4.0.0-nightly-2022-09-11, commit 1749210, Release)
Linux (NixOS unstable)
The text was updated successfully, but these errors were encountered: