Skip to content

Commit 5cd165a

Browse files
authored
Merge pull request LPCIC#790 from Tragicus/primgref
Declare compatibility constant as canonical gref for primitive projections
2 parents 640d04e + 10ebb1f commit 5cd165a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

elpi/coq-lib.elpi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -510,6 +510,7 @@ coq.term->gref (global GR) GR :- !.
510510
coq.term->gref (pglobal GR _) GR :- !.
511511
coq.term->gref (app [Hd|_]) GR :- !, coq.term->gref Hd GR.
512512
coq.term->gref (let _ _ T x\x) GR :- !, coq.term->gref T GR.
513+
coq.term->gref (primitive (proj Proj _)) (const C) :- coq.env.primitive-projection? Proj C, !.
513514
:name "term->gref:fail"
514515
coq.term->gref Term _ :-
515516
fatal-error-w-data "term->gref: input has no global reference" Term.

0 commit comments

Comments
 (0)