Skip to content

Commit

Permalink
give constant to every primitive projection
Browse files Browse the repository at this point in the history
  • Loading branch information
Tragicus committed Mar 5, 2025
1 parent 5cd165a commit 47417ac
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/rocq_elpi_builtins.ml
Original file line number Diff line number Diff line change
Expand Up @@ -2363,11 +2363,8 @@ denote the same x as before.|};
MLCode(Pred("coq.env.primitive-projection?",
In(projection, "Projection",
Out(constant, "Compatibility constant",
Easy "relates a projection to its compatibility constant.")),
(fun p _ ~depth ->
let c = Projection.constant p in
try !: (ignore (Structures.Structure.find_from_projection c); Constant c)
with Not_found -> raise No_clause)),
Easy "relates a primitive projection to its compatibility constant.")),
(fun p _ ~depth -> !: (Constant (Projection.constant p)))),
DocAbove);

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

0 comments on commit 47417ac

Please sign in to comment.