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

fix: set default value of pp.instantiateMVars to true and make the option be effective #4558

Merged
merged 1 commit into from
Jul 2, 2024

Conversation

kmill
Copy link
Collaborator

@kmill kmill commented Jun 25, 2024

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

…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-actions github-actions bot added the toolchain-available A toolchain is available for this PR, at leanprover/lean4-pr-releases:pr-release-NNNN label Jun 25, 2024
@leanprover-community-mathlib4-bot
Copy link
Collaborator

Mathlib CI status (docs):

  • ❗ Batteries/Mathlib CI will not be attempted unless your PR branches off the nightly-with-mathlib branch. Try git rebase 49249b91074a8eab8926308cedc2b3e31d973b51 --onto e3578c2f36c2d4fa9cc55584a7671c0c81c70ed9. (2024-06-25 07:37:42)

@kmill kmill added this pull request to the merge queue Jul 2, 2024
Merged via the queue into leanprover:master with commit 3f2cf8b Jul 2, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
toolchain-available A toolchain is available for this PR, at leanprover/lean4-pr-releases:pr-release-NNNN
Projects
None yet
Development

Successfully merging this pull request may close these issues.

pp.instantiateMVars false does not seem to work
2 participants