Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# Unreleased

- HOAS:
- rename `class` to `coq.coercion.class`

# [3.2.0] 19/09/2025

Requires Elpi 3.0.0 and Coq 8.20 or Rocq 9.0 or Rocq 9.1.
Expand Down
14 changes: 8 additions & 6 deletions builtin-doc/coq-builtin.elpi
Original file line number Diff line number Diff line change
Expand Up @@ -1243,14 +1243,15 @@ external func coq.TC.get-inst-prio gref, gref -> int.
external func coq.TC.class? gref.

% Node of the coercion graph
kind class type.
external symbol funclass : class = "1".
external symbol sortclass : class = "1".
external symbol grefclass : gref -> class = "1".
kind coq.coercion.class type.
external symbol funclass : coq.coercion.class = "1".
external symbol sortclass : coq.coercion.class = "1".
external symbol grefclass : gref -> coq.coercion.class = "1".

% Edge of the coercion graph
kind coercion type.
external symbol coercion : gref -> int -> gref -> class -> coercion = "2". % ref, nparams, src, tgt
external symbol coercion : gref -> int -> gref -> coq.coercion.class ->
coercion = "2". % ref, nparams, src, tgt

% [coq.coercion.declare C] Declares C = (coercion GR NParams From To) as a
% coercion From >-> To.
Expand All @@ -1266,7 +1267,8 @@ external func coq.coercion.declare coercion.
external func coq.coercion.db -> list coercion.

% [coq.coercion.db-for From To L] L is a path From -> To
external func coq.coercion.db-for class, class -> list (pair gref int).
external func coq.coercion.db-for coq.coercion.class,
coq.coercion.class -> list (pair gref int).

% Deprecated, use coq.env.projections
pred coq.CS.canonical-projections i:inductive, o:list (option constant).
Expand Down
Loading
Loading