Skip to content

Commit 8c15d95

Browse files
ecranceMERCEgares
authored andcommitted
✨ Add coq.univ.super
1 parent c8bff49 commit 8c15d95

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

coq-builtin.elpi

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -974,6 +974,9 @@ external pred coq.univ.print .
974974
% [coq.univ.new U] A fresh universe.
975975
external pred coq.univ.new o:univ.
976976

977+
% [coq.univ.super U U1] relates a univ U to its successor U1
978+
external pred coq.univ.super i:univ, o:univ.
979+
977980
% [coq.univ Name U] Finds a named unvierse. Can fail.
978981
external pred coq.univ o:id, o:univ.
979982

src/coq_elpi_builtins.ml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2344,6 +2344,14 @@ phase unnecessary.|};
23442344
state, !: u, [])),
23452345
DocAbove);
23462346
2347+
MLCode(Pred("coq.univ.super",
2348+
In(univ,"U",
2349+
Out(univ,"U1",
2350+
Full(unit_ctx, "relates a univ U to its successor U1"))),
2351+
(fun u _ ~depth _ _ state ->
2352+
state, !: (Univ.Universe.super u), [])),
2353+
DocAbove);
2354+
23472355
MLCode(Pred("coq.univ",
23482356
InOut(B.ioarg id, "Name",
23492357
InOut(B.ioarg univ, "U",

0 commit comments

Comments
 (0)