| 1 |
Unset Strict Universe Declaration. |
| 2 |
(** It would be nice if we had more lax constraint checking of inductive types, and had variance annotations on their universes *) |
| 3 |
Set Printing All. |
| 4 |
Set Printing Implicit. |
| 5 |
Set Printing Universes. |
| 6 |
Set Universe Polymorphism. |
| 7 |
|
| 8 |
Inductive paths {A : Type} (a : A) : A -> Type := idpath : paths a a. |
| 9 |
Arguments idpath {A a} , [A] a. |
| 10 |
|
| 11 |
Notation "x = y" := (@paths _ x y) : type_scope. |
| 12 |
|
| 13 |
Section lift. |
| 14 |
Let lift_type : Type. |
| 15 |
Proof. |
| 16 |
let U0 := constr:(Type) in |
| 17 |
let U1 := constr:(Type) in |
| 18 |
let unif := constr:(U0 : U1) in |
| 19 |
exact (U0 -> U1). |
| 20 |
Defined. |
| 21 |
|
| 22 |
Definition Lift (A : Type@{i}) : Type@{j} := A. |
| 23 |
End lift. |
| 24 |
|
| 25 |
Goal forall (A : Type@{i}) (x y : A), @paths@{i j} A x y -> @paths@{j k} A x y. |
| 26 |
intros A x y p. |
| 27 |
compute in *. destruct p. exact idpath. |
| 28 |
Defined. |