-
Notifications
You must be signed in to change notification settings - Fork 345
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
pp.instantiateMVars false does not seem to work #4406
Labels
bug
Something isn't working
Comments
The situation is that the first step of Maybe here's a plan:
|
That plan sounds very reasonable to me, thanks for the analysis. |
kmill
added a commit
to kmill/lean4
that referenced
this issue
Jun 25, 2024
…option be effective Before, `pp.instantiateMVars` generally had no effect. This also has an effect in hovers, where metavariables can be unfolded one assignment at a time. However, the goal state still sees all metavariables instantiated due to the fact that the algorithm relies on expression equality post-instantiation (see `Lean.Widget.goalToInteractive`). Closes leanprover#4406
github-merge-queue bot
pushed a commit
that referenced
this issue
Jul 2, 2024
…option be effective (#4558) Before, `pp.instantiateMVars` generally had no effect because most call sites for the pretty printer instantiated metavariables first, but now this functionality is entrusted upon the `pp.instantiateMVars` option. This also has an effect in hovers, where metavariables can be unfolded one assignment at a time. However, the goal state still sees all metavariables instantiated due to the fact that the algorithm relies on expression equality post-instantiation (see `Lean.Widget.goalToInteractive`). Closes #4406
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Consider
or
Both print
0
when I would have expected some form of?m
.The ability to print expressions without mvars instantiated is rarely needed, but it is quite relevant when debugging bad mvar assignments.
Respectfully pinging @kmill.
Versions
4.10.0-nightly-2024-06-08
Impact
Add 👍 to issues you consider important. If others are impacted by this issue, please ask them to add 👍 to it.
The text was updated successfully, but these errors were encountered: