-
Notifications
You must be signed in to change notification settings - Fork 449
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
MVarId.revertAll snags auxiliary declarations, leading to termination issues #6263
Comments
Using |
So there is a workaround, you are unblocked and this is just™ a matter of misleading API design/documentation? |
Yes, I am unblocked, but these lines make me thing this function was intended to operate as I was hoping it would: lean4/src/Lean/Meta/Tactic/Grind/RevertAll.lean Lines 17 to 21 in 3752241
Empirically, the current behavior seems to be "ignore leading auxiliary declarations", so I'd lean towards this being a design issue rather than a documentation issue. |
This PR ensures that `revertAll` clears auxiliary declarations when invoked directly by users. closes #6263
This PR ensures that `revertAll` clears auxiliary declarations when invoked directly by users. closes #6263
Prerequisites
Please put an X between the brackets as you perform the following steps:
https://github.com/leanprover/lean4/issues
Avoid dependencies to Mathlib or Batteries.
https://live.lean-lang.org/#project=lean-nightly
(You can also use the settings there to switch to “Lean nightly”)
Description
Lean.MVarId.revertAll
fails to ignore auxiliary declarations ifvariable
is used.Context
[Broader context that the issue occurred in. If there was any prior discussion on the Lean Zulip, link it here as well.]
Steps to Reproduce
Expected behavior: Goal is
⊢ ∀ (p q : Prop), p ∧ q → q ∧ p
, no errorsActual behavior: Goal is
⊢ ∀ (p q : Prop), p ∧ q → (p ∧ q → q ∧ p) → q ∧ p
, and the error isVersions
4.14.0-rc3
Additional Information
[Additional information, configuration or data that might be necessary to reproduce the issue]
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: