Skip to content

Commit c7ef1c8

Browse files
committed
✨ Add coq.univ.super
1 parent e7c8972 commit c7ef1c8

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
@@ -950,6 +950,9 @@ external pred coq.univ.print .
950950
% [coq.univ.new U] A fresh universe.
951951
external pred coq.univ.new o:univ.
952952

953+
% [coq.univ.super U U1] relates a univ U to its successor U1
954+
external pred coq.univ.super i:univ, o:univ.
955+
953956
% [coq.univ Name U] Finds a named unvierse. Can fail.
954957
external pred coq.univ o:id, o:univ.
955958

src/coq_elpi_builtins.ml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2237,6 +2237,14 @@ phase unnecessary.|};
22372237
state, !: u, [])),
22382238
DocAbove);
22392239

2240+
MLCode(Pred("coq.univ.super",
2241+
In(univ,"U",
2242+
Out(univ,"U1",
2243+
Full(unit_ctx, "relates a univ U to its successor U1"))),
2244+
(fun u _ ~depth _ _ state ->
2245+
state, !: (Univ.Universe.super u), [])),
2246+
DocAbove);
2247+
22402248
MLCode(Pred("coq.univ",
22412249
InOut(B.ioarg id, "Name",
22422250
InOut(B.ioarg univ, "U",

0 commit comments

Comments
 (0)