| 1 |
(* -*- coq-prog-args: ("-async-proofs" "no") -*- *) |
| 2 |
(* Set Printing Existential Instances. *) |
| 3 |
Unset Solve Unification Constraints. |
| 4 |
Axiom veeryyyyyyyyyyyyloooooooooooooonggidentifier : nat. |
| 5 |
Goal True /\ True /\ True \/ |
| 6 |
veeryyyyyyyyyyyyloooooooooooooonggidentifier = |
| 7 |
veeryyyyyyyyyyyyloooooooooooooonggidentifier. |
| 8 |
refine (nat_rect _ _ _ _). |
| 9 |
Show. |
| 10 |
Admitted. |
| 11 |
|
| 12 |
Set Printing Existential Instances. |
| 13 |
Goal forall n m : nat, True /\ True /\ True \/ |
| 14 |
veeryyyyyyyyyyyyloooooooooooooonggidentifier = |
| 15 |
veeryyyyyyyyyyyyloooooooooooooonggidentifier. |
| 16 |
intros. |
| 17 |
refine (nat_rect _ _ _ _). |
| 18 |
Show. |
| 19 |
clear n. |
| 20 |
Show. |
| 21 |
3:clear m. |
| 22 |
Show. |
| 23 |
Admitted. |
| 24 |
Unset Printing Existential Instances. |
| 25 |
|
| 26 |
(* Check non regression of error message (the example can eventually |
| 27 |
improve though and succeed) *) |
| 28 |
|
| 29 |
Fail Check fun (P : _ -> Type) (x:nat) (h:P x) => exist _ x (h : P x). |
| 30 |
|
| 31 |
(* A test about universe level unification in congruence *) |
| 32 |
|
| 33 |
Set Universe Polymorphism. |
| 34 |
Section S. |
| 35 |
Polymorphic Universes i j. |
| 36 |
Goal Type@{i} -> (Type@{j} : Type@{i}). |
| 37 |
Fail congruence. |
| 38 |
Abort. |
| 39 |
End S. |