Skip to content
Draft
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
4 changes: 4 additions & 0 deletions HB/common/stdpp.elpi
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,10 @@ term->cs-pattern (sort U) (cs-sort U) :- !.
term->cs-pattern T (cs-gref GR) :- coq.term->gref T GR, !.
term->cs-pattern T _ :- coq.error T "HB database: is not a valid canonical key".

func coq.term->gref term -> gref.
:before "term->gref:fail"
coq.term->gref (fun N Ty F) GR :- !, @pi-decl N Ty x\ coq.term->gref (F x) GR.

% ---------------------------------------------------------------------
% kit for closing a term by abstracting evars with lambdas
% we use constraints to attach to holes a number
Expand Down
Loading