Debian Codegraph @

test-suite/bugs/bug_18455.v

raw
1 Set Universe Polymorphism.
2 Set Implicit Arguments.
3 Cumulative Record prod@{s;*a *b|} (A : Type@{s;a}) (B : Type@{s;b}) : Type@{s;max(a,b)} := pair {
4 fst : A;
5 snd : B
6 }.
7 Definition flip_prod@{s;a b|} [A : Type@{s;a}] [B : Type@{s;b}] (v : prod A B) : prod B A
8 := {| fst := snd v; snd := fst v |}.
9
10 (* We need to specify univs here (maybe will be fixed someday?) *)
11 Fail Definition and@{|} : Prop -> Prop -> Prop := prod.
12 Definition and@{|} : Prop -> Prop -> Prop := prod@{Prop;Set Set}.
13
14 (* but not here (with minim to set on) *)
15 Definition conj@{|} : forall [A B : Prop], A -> B -> and A B := pair.
16 Definition proj1@{|} : forall [A B : Prop], and A B -> A := fst.
17 Definition proj2@{|} : forall [A B : Prop], and A B -> B := snd.
18 Definition flip_and@{|} : forall [A B : Prop], and A B -> and B A := flip_prod.