Debian Codegraph @

test-suite/success/univnames.v

raw
1 Set Universe Polymorphism.
2
3 Definition foo@{i j} (A : Type@{i}) (B : Type@{j}) := A.
4
5 Set Printing Universes.
6
7 Fail Definition bar@{i} (A : Type@{i}) (B : Type) := A.
8
9 Definition baz@{i j} (A : Type@{i}) (B : Type@{j}) := (A * B)%type.
10
11 Fail Definition bad@{i j} (A : Type@{i}) (B : Type@{j}) : Type := (A * B)%type.
12
13 Fail Definition bad@{i} (A : Type@{i}) (B : Type@{j}) : Type := (A * B)%type.
14
15 Definition shuffle@{i j} (A : Type@{j}) (B : Type@{i}) := (A * B)%type.
16
17 Definition nothing (A : Type) := A.
18
19 Inductive bla@{l k} : Type@{k} := blaI : Type@{l} -> bla.
20
21 Inductive blacopy@{k l} : Type@{k} := blacopyI : Type@{l} -> blacopy.
22
23
24 Class Wrap A := wrap : A.
25
26 Fail #[export] Instance bad@{} : Wrap Type := Type.
27
28 #[export] Instance bad@{} : Wrap Type.
29 Fail Proof Type.
30 Abort.
31
32 #[export] Instance bar@{u} : Wrap@{u} Set. Proof nat.
33
34
35 Monomorphic Universe g.
36
37 Inductive blacopy'@{l} : Type@{g} := blacopy'I : Type@{l} -> blacopy'.