-
Notifications
You must be signed in to change notification settings - Fork 54
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
Trying to understand behavior of whd under universe polymorphism + primitive projections #756
Comments
The global settings in https://github.com/HoTT/Coq-HoTT/blob/master/theories/Basics/Settings.v are possible causes. You can try each instead of the Require to see what happens. |
@SkySkimmer Thanks very much, that helps a lot.
These flags both effect the behavior of the code. With just [pglobal (const «p») «minimize.406»,
pglobal (const «a») «minimize.406»] and the whd is With both of the flags mentioned above, the Elpi representation of
and whd doesn't change the term. |
|
Okay, that makes sense. I can understand that point of view. But, also, if I change the definition of
it does simplify |
You could try to write Sorry, it is a bit clumsy, but should let you see all the steps and pinpoint the problem. If the above does not work, you can also try |
@gares Thanks, I get the usage of the browser now. As I step through the code I see that coq-elpi/elpi/elpi-reduction.elpi Line 52 in fd11b7a
|
An oversight. |
Edit: Gaetan helped me narrow down the cause, see below.
I am wondering if you can help me figure out this strange behavior.
I created a Coq project with no standard library linked in and one of my dependencies is the coq-HoTT library https://github.com/HoTT/Coq-HoTT.
I have slightly different versions of the same code.
The tactic
elpi simplify
works in the expected way. However if I define the record after I load the HoTT library (as in the commented line) the tactic fails. Do you have any idea why this might be the case?The text was updated successfully, but these errors were encountered: