Debian Codegraph @

test-suite/bugs/bug_4450.v

raw
1 Polymorphic Axiom inhabited@{u} : Type@{u} -> Prop.
2
3 Polymorphic Axiom unit@{u} : Type@{u}.
4 Polymorphic Axiom tt@{u} : inhabited unit@{u}.
5
6 #[export] Polymorphic Hint Resolve tt : the_lemmas.
7 Set Printing All.
8 Set Printing Universes.
9 Goal inhabited unit.
10 Proof.
11 eauto with the_lemmas.
12 Qed.
13
14 Universe u.
15 Axiom f : Type@{u} -> Prop.
16 Lemma fapp (X : Type) : f X -> False.
17 Admitted.
18 Polymorphic Axiom funi@{i} : f unit@{i}.
19
20 Goal (forall U, f U) -> (*(f unit -> False) -> *)False /\ False.
21 pose (H := fapp unit funi).
22 eauto using H. (* The two fapp's have different universes *)
23 Qed.
24
25 Definition fapp0 := fapp unit funi.
26 #[export] Hint Resolve fapp0 : mylems.
27
28 Goal (forall U, f U) -> (*(f unit -> False) -> *)False /\ False.
29 eauto with mylems. (* Forces the two fapps at the same level *)
30 Qed.
31
32 Goal (forall U, f U) -> (f unit -> False) -> False /\ False.
33 eauto. (* Forces the two fapps at the same level *)
34 Qed.
35
36 Polymorphic Definition MyType@{i} := Type@{i}.
37 Universes l m n.
38 Constraint l < m.
39 Polymorphic Axiom maketype@{i} : MyType@{i}.
40
41 Goal MyType@{l}.
42 Proof.
43 Fail solve [ pose (mk := maketype@{m}); eauto using mk ].
44 eauto using maketype.
45 Undo.
46 pose (mk := maketype@{n}); eauto using mk.
47 Qed.
48
49 Axiom foo : forall (A : Type), list A.
50 Polymorphic Axiom foop@{i} : forall (A : Type@{i}), list A.
51
52 Universe x y.
53 Goal list Type@{x}.
54 Proof.
55 pose (H := foo Type); eauto using H. (* Refreshes the term *)
56 Undo.
57 eauto using foo. Show Universes.
58 Undo.
59 eauto using foop. Show Proof. Show Universes.
60 Qed.