Skip to content

Commit

Permalink
Merge pull request #790 from Tragicus/primgref
Browse files Browse the repository at this point in the history
Declare compatibility constant as canonical gref for primitive projections
  • Loading branch information
gares authored Mar 4, 2025
2 parents 640d04e + 10ebb1f commit 5cd165a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions elpi/coq-lib.elpi
Original file line number Diff line number Diff line change
Expand Up @@ -510,6 +510,7 @@ coq.term->gref (global GR) GR :- !.
coq.term->gref (pglobal GR _) GR :- !.
coq.term->gref (app [Hd|_]) GR :- !, coq.term->gref Hd GR.
coq.term->gref (let _ _ T x\x) GR :- !, coq.term->gref T GR.
coq.term->gref (primitive (proj Proj _)) (const C) :- coq.env.primitive-projection? Proj C, !.
:name "term->gref:fail"
coq.term->gref Term _ :-
fatal-error-w-data "term->gref: input has no global reference" Term.
Expand Down

0 comments on commit 5cd165a

Please sign in to comment.