| 1 |
Implicit Types b : bool. |
| 2 |
Check forall b, b = b. |
| 3 |
|
| 4 |
(* Check the type is not used if not the reserved one *) |
| 5 |
Check forall b:nat, b = b. |
| 6 |
|
| 7 |
(* Check full printing *) |
| 8 |
Set Printing All. |
| 9 |
Check forall b, b = b. |
| 10 |
Unset Printing All. |
| 11 |
|
| 12 |
(* Check printing of type *) |
| 13 |
Unset Printing Use Implicit Types. |
| 14 |
Check forall b, b = b. |
| 15 |
Set Printing Use Implicit Types. |
| 16 |
|
| 17 |
(* Check factorization: we give priority on factorization over implicit type *) |
| 18 |
Check forall b c, b = c. |
| 19 |
Check forall c b, b = c. |
| 20 |
|
| 21 |
(* Check factorization of implicit types *) |
| 22 |
Check forall b1 b2, b1 = b2. |
| 23 |
|
| 24 |
(* Check in "fun" *) |
| 25 |
Check fun b => b = b. |
| 26 |
Check fun b c => b = c. |
| 27 |
Check fun c b => b = c. |
| 28 |
Check fun b1 b2 => b1 = b2. |
| 29 |
|
| 30 |
(* Check in binders *) |
| 31 |
Check fix f b n := match n with 0 => b | S p => f b p end. |
| 32 |
|
| 33 |
(* Check in notations *) |
| 34 |
Module Notation. |
| 35 |
Notation "∀ x .. y , P" := (forall x, .. (forall y, P) ..) |
| 36 |
(at level 200, x binder, y binder, right associativity, |
| 37 |
format "'[ ' '[ ' ∀ x .. y ']' , '/' P ']'") : type_scope. |
| 38 |
Check forall b c, b = c. |
| 39 |
Check forall b1 b2, b1 = b2. |
| 40 |
End Notation. |