@@ -17,7 +17,7 @@ MetaCoq Quote Definition a_random_univ := Type.
17
17
18
18
Example a_random_univ_ex :
19
19
exists l, a_random_univ =
20
- tSort (Universe .from_kernel_repr (Level.level l, false) [] ).
20
+ tSort (sType ( Universe .make' (Level.level l)) ).
21
21
Proof . eexists. reflexivity. Qed .
22
22
23
23
(* Back and forth *)
@@ -30,18 +30,18 @@ Check eq_refl : univ_foo = univ_foo_back.
30
30
31
31
Print univ_foo_back.
32
32
33
- Fail MetaCoq Unquote Definition t1 := (tSort (Universe.make (Level.level "Top.400"))).
33
+ Fail MetaCoq Unquote Definition t1 := (tSort (sType ( Universe.make' (Level.level "Top.400") ))).
34
34
(* Fails with "Level Top.<something> not a declared level and you are in Strict Unquote Universe Mode." *)
35
35
36
36
Unset MetaCoq Strict Unquote Universe Mode .
37
- MetaCoq Unquote Definition t2 := (tSort fresh_universe).
38
- MetaCoq Unquote Definition t3 := (tSort (Universe.make (Level.level "Top.400"))).
37
+ MetaCoq Unquote Definition t2 := (tSort (sType fresh_universe) ).
38
+ MetaCoq Unquote Definition t3 := (tSort (sType ( Universe.make' (Level.level "Top.400") ))).
39
39
40
40
Monomorphic Universe i j.
41
41
42
42
Set MetaCoq Strict Unquote Universe Mode .
43
43
MetaCoq Test Quote (Type @{j} -> Type @{i}).
44
- MetaCoq Unquote Definition T'' := (tSort (Universe.make (Level.level "j"))).
44
+ MetaCoq Unquote Definition T'' := (tSort (sType ( Universe.make' (Level.level "j") ))).
45
45
Unset MetaCoq Strict Unquote Universe Mode .
46
46
47
47
@@ -196,7 +196,7 @@ Definition nNamedR (s : string) := mkBindAnn (nNamed s) Relevant.
196
196
Definition nAnonR := mkBindAnn nAnon Relevant.
197
197
198
198
Unset MetaCoq Strict Unquote Universe Mode .
199
- MetaCoq Unquote Definition bla' := (tLambda (nNamedR "T") (tSort (Universe.make (Level.level "Top.46"))) (tLambda (nNamedR "T2") (tSort (Universe .make (Level.level "Top.477"))) (tProd nAnonR (tRel 1) (tRel 1)))).
199
+ MetaCoq Unquote Definition bla' := (tLambda (nNamedR "T") (tSort (sType ( Universe.make' (Level.level "Top.46")))) (tLambda (nNamedR "T2") (tSort (sType ( Universe .make' (Level.level "Top.477") ))) (tProd nAnonR (tRel 1) (tRel 1)))).
200
200
201
201
Set Printing Universes .
202
202
Print bla.
0 commit comments