Skip to content

Commit 47417ac

Browse files
committed
give constant to every primitive projection
1 parent 5cd165a commit 47417ac

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/rocq_elpi_builtins.ml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2363,11 +2363,8 @@ denote the same x as before.|};
23632363
MLCode(Pred("coq.env.primitive-projection?",
23642364
In(projection, "Projection",
23652365
Out(constant, "Compatibility constant",
2366-
Easy "relates a projection to its compatibility constant.")),
2367-
(fun p _ ~depth ->
2368-
let c = Projection.constant p in
2369-
try !: (ignore (Structures.Structure.find_from_projection c); Constant c)
2370-
with Not_found -> raise No_clause)),
2366+
Easy "relates a primitive projection to its compatibility constant.")),
2367+
(fun p _ ~depth -> !: (Constant (Projection.constant p)))),
23712368
DocAbove);
23722369

23732370
LPDoc "-- Sorts (and their universe level, if applicable) ----------------";

0 commit comments

Comments
 (0)