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
Correctly classify variables as being unfoldable in dnet patterns. #12572
Conversation
This will need a (backwards compatible) overlay for HoTT. |
The bug was correctly identified in many places in HoTT, there were several comments wondering why typeclass resolution was not solving the goal... |
How about removing the default case, so as to prevent similar future problems? Maybe also in |
Could this improve the compatibility story for switching to discriminated bases (in which case it could be good to re-evaluate it), or is it a separate mechanism? |
@maximedenes do you mean that we need to explicit all |
I don't think it'd matter much, it's fairly uncommon to have local definitions. |
Yes, this is what I mean.
In general, I tend to recommend to avoid fragile pattern matchings on Also, is there any drawback in listing the few remaining cases? |
As far as I am concerned, I hate
It's going to make this one-line fix bigger, but if you insist... |
I don't think it's a big problem to add 3-4 lines to this patch. |
Your desires are orders. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well spotted!
Adapt w.r.t. coq/coq#12572.
The HoTT overlay has been merged upstream, this should be ready now. |
@mattam82 do you want to be the assignee, or should I take it, as this looks like a straightforward fix? |
@maximedenes you should probably assign it's quite a straightforward PR. |
@maximedenes ping |
…le in dnet patterns.
…le in dnet patterns.
Fixes #12571.