Debian Codegraph @

test-suite/bugs/bug_3566.v

raw
1 Unset Strict Universe Declaration.
2 Notation idmap := (fun x => x).
3 Inductive paths {A : Type} (a : A) : A -> Type := idpath : paths a a.
4 Arguments idpath {A a} , [A] a.
5 Notation "x = y :> A" := (@paths A x y) : type_scope.
6 Notation "x = y" := (x = y :>_) : type_scope.
7 Delimit Scope path_scope with path.
8 Definition concat {A : Type} {x y z : A} (p : x = y) (q : y = z) : x = z := match p, q with idpath, idpath => idpath end.
9 Definition inverse {A : Type} {x y : A} (p : x = y) : y = x := match p with idpath => idpath end.
10 Notation "p @ q" := (concat p q) (at level 20) : path_scope.
11 Notation "p ^" := (inverse p) (at level 3, format "p '^'") : path_scope.
12 Class IsEquiv {A B : Type} (f : A -> B) := {}.
13 Axiom path_universe : forall {A B : Type} (f : A -> B) {feq : IsEquiv f}, (A = B).
14
15 Definition Lift : Type@{i} -> Type@{j}
16 := Eval hnf in let lt := Type@{i} : Type@{j} in fun T => T.
17
18 Definition lift {T} : T -> Lift T := fun x => x.
19
20 Goal forall x y : Type, x = y.
21 intros.
22 pose proof ((fun H0 : idmap _ => (@path_universe _ _ (@lift x) (H0 x) @
23 (@path_universe _ _ (@lift x) (H0 x))^)))%path as H''.
24 Abort.