-
Notifications
You must be signed in to change notification settings - Fork 5
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
"Error: Unable to satisfy the following constraints:" on typeclass inference (polyproj) (Also, error message is missing some newlines) #106
Comments
Oops, I forgot the forall instance that made it compile in HoTT/coq, which I've now put back. This might be a "the unification engine changed, it's not getting fixed" bug. The newlines should be added in either case, though. |
Indeed the error is missing newlines, but the test file should rather be the following don't you think? Otherwise point A somewhat weird. Set Universe Polymorphism. Definition point (A : Type) `{IsPointed A} := ispoint. Generalizable Variables A B f. Instance ispointed_forall `{H : forall a : A, IsPointed (B a)} Instance ispointed_sigma |
If you're talking about the fact that |
Yes, that's what I mean. The revised test-case does not trigger the error in any version I have, could you check? I'm quite surprised it managed to do typeclass resolution there. It might very well be that unification made arbitrary choices before that it doesn't do anymore. |
Current trunk (90d6464) gives the error on the original code. Older versions of Coq inferred that I was asking for a point of the type |
Works in HoTT/coq, but not trunk-polyproj. Also, you're missing newlines before
CONSTRAINTS
, andUNIVERSES
.The text was updated successfully, but these errors were encountered: