Skip to content

Commit a9ce79a

Browse files
authored
Merge pull request #109 from Tragicus/mc1256
Lookup abstracted terms using unification
2 parents c819257 + 40fbf43 commit a9ce79a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

theories/common.elpi

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ list-constant T [X|XS] {{ @cons lp:T lp:X lp:XS' }} :- list-constant T XS XS'.
77

88
pred mem o:list term, o:term, o:int.
99
mem [X|_] X 0 :- !.
10+
mem [Y|_] X 0 :- Y = app [H|_], X = app [H|_], coq.unify-eq X Y ok, !.
1011
mem [_|XS] X M :- !, mem XS X N, M is N + 1.
1112

1213
% [eucldiv N D M R] N = D * M + R

0 commit comments

Comments
 (0)