-
Notifications
You must be signed in to change notification settings - Fork 56
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
Issue with refine #755
Comments
Here is a reproducible instance of the problem, with _Coq project containing Edit: January 30 The problem does not have to do with lazy reduction. I have edited the code sample
|
Here are the last few lines of the trace text file. It seems the very last rule application was a success (which is just
|
The problem appears to be in coq.elaborate-skeleton.
and get the error. |
The bug is related to the fact that, at the end of a tactic application, Elpi cleans up the evar map of unreachable evars, but the computation is wrong since it does not consider "unification constraints" as roots. These constraints are introduced by
generates no constraints, and then Elpi code works fine. So, there is a bug in Coq-Elpi when the proof state contains a unification constraint (that is not referenced by the goal). |
I wrote an Elpi tactic to simplify the goal, I tried to follow something I found in some code in the repository.
I managed to get the following error when applying this to a goal:
Is this to be expected, or a bug? Should I not use the lazy reduction on the goal in this context?
I can try to minimize it but I am drawing on some code from the HoTT library so it will take me a while.
Edit: The problem is not related to lazy reduction, this is a red herring.
The text was updated successfully, but these errors were encountered: