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
Fixes #18163: respect "Set Printing implicit" in patterns #18176
Fixes #18163: respect "Set Printing implicit" in patterns #18176
Conversation
eq_sym = | ||
fun (A : Type) (x y : A) (H : x = y) => | ||
match H in (_ = a) return (a = x) with | ||
| @eq_refl _ _ => @eq_refl A x |
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.
Is this correct with asymmetric patterns?
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.
I was surprised but apparently yes. This was a change between Coq 8.4 to 8.5 (at the time of the asymmetric change).
8.4:
Check fun l:list nat => match l with nil => nil | @cons _ _ _ => @nil nat end.
failsCheck fun l:list nat => match l with nil => nil | @cons _ _ => @nil nat end.
works
8.5:
Check fun l:list nat => match l with nil => nil | @cons _ _ _ => @nil nat end.
worksCheck fun l:list nat => match l with nil => nil | @cons _ _ => @nil nat end.
fails
e24d8f7
to
02386ba
Compare
@coqbot merge now |
Set Printing implicit
/Set Printing All
in patterns was actually not supported.Fixes / closes #18163