| 1 |
(* NB feel free to add other tests about printing match, not just about Match All Subterms *) |
| 2 |
|
| 3 |
Module MatchAllSubterms. |
| 4 |
|
| 5 |
Set Printing Match All Subterms. |
| 6 |
Set Printing Universes. |
| 7 |
|
| 8 |
Polymorphic Inductive eqT@{u} {A:Type@{u}} (a:A) : A -> Type@{u} := reflT : eqT a a. |
| 9 |
Print eqT_rect. |
| 10 |
|
| 11 |
Set Definitional UIP. |
| 12 |
Inductive seq {A} (a:A) : A -> SProp := srefl : seq a a. |
| 13 |
Print seq_rect. |
| 14 |
|
| 15 |
End MatchAllSubterms. |
| 16 |
|
| 17 |
Module Bug18163. |
| 18 |
|
| 19 |
Set Printing All. |
| 20 |
Print eq_sym. |
| 21 |
Unset Printing All. |
| 22 |
|
| 23 |
Set Printing Implicit. |
| 24 |
Print eq_sym. |
| 25 |
|
| 26 |
Set Asymmetric Patterns. |
| 27 |
Print eq_sym. |
| 28 |
|
| 29 |
End Bug18163. |
| 30 |
|
| 31 |
Module AvoidName. |
| 32 |
|
| 33 |
Definition test (O : unit) (S : nat -> unit) (n : nat) := |
| 34 |
match n with |
| 35 |
| Datatypes.O => O |
| 36 |
| Datatypes.S n => S n |
| 37 |
end. |
| 38 |
|
| 39 |
Print test. |
| 40 |
|
| 41 |
End AvoidName. |