-
Notifications
You must be signed in to change notification settings - Fork 450
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: solveByElim would add symm hypotheses to local context and make impossible-to-elaborate terms #3962
Conversation
@semorrison I took a stab at this issue. It's likely a performance regression, but it's a big usability improvement, so maybe it's ok in the meantime? Feel free to take over from here. (Big warning: I did very little testing of this PR!) |
Mathlib CI status (docs):
|
…impossible-to-elaborate terms Rather than adding symm hypotheses to the local context, it now adds them to the list of hypotheses derived from the local context. This is not idea for performance reasons, but it at least closes leanprover#3922. In the future, solveByElim could maintain its own cache of facts that it updates whenever it does intro.
Adding |
Mathlib is easy enough to fix (pushed to lean-pr-testing-3962). Agree we need to fix this despite the possible performance problems. |
Rather than adding symm hypotheses to the local context, it now adds them to the list of hypotheses derived from the local context.
This is not ideal for performance reasons, but it at least closes #3922.
In the future, solveByElim could maintain its own cache of facts that it updates whenever it does intro.