@@ -2,8 +2,6 @@ From elpi Require Import elpi.
22Set Universe Polymorphism.
33Set Polymorphic Inductive Cumulativity.
44Set Printing Universes .
5- Set Debug "comInductive".
6- Set Debug "elpi".
75
86Module test_rocq.
97Record test : Type := mktest { foo : Type }.
@@ -19,19 +17,16 @@ Print test. (* Record test : Type@{test.u0} := mktest { foo : Type@{test.u1} }.
1917(* we get a monomorphic universe *)
2018End test_elpi.
2119
22- Set Debug "ustate".
23- Set Debug "univVariances".
24- Set Debug "univMinim".
2520Module test_explicit.
2621Elpi Command test_explicit.
2722Elpi Query lp:"
28- @keep-alg-univs! => @univpoly! => @cumulative ! => coq.env.add-indt (record ""test"" {{Type }} ""mktest""
23+ @keep-alg-univs! => @univpoly-cumul ! => coq.env.add-indt (record ""test"" {{Type }} ""mktest""
2924 (field _ ""foo"" {{Type }} _ \ end -record)) _C.
3025".
3126Print test.
32- (* Record test@{u u0 } : Type@{u} := mktest { foo : Type@{u0 } }. *)
33- (* u(= (* for typing) in term, + in type) u0(= in term) |= u0 < u *) *)
34- (* It's indeed polymorphic but we do not get the minimized version *)
27+ (* Record test@{u} : Type@{u+1 } := mktest { foo : Type@{u } }. *)
28+ (* u(+ (= for typing) in term, + in type) |= *)
29+ (* It's indeed polymorphic and we do get the minimized version *)
3530End test_explicit.
3631
3732Module test_minimization.
@@ -43,5 +38,5 @@ Elpi Query lp:"
4338 (field _ ""foo"" (sort (typ U)) _ \ end -record)) _C.
4439".
4540Print test.
46- (* It's indeed polymorphic but we do not get the minimized version *) )
41+ (* It's indeed polymorphic and we do get the minimized version *)
4742End test_minimization.
0 commit comments