We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c819257 + 40fbf43 commit a9ce79aCopy full SHA for a9ce79a
theories/common.elpi
@@ -7,6 +7,7 @@ list-constant T [X|XS] {{ @cons lp:T lp:X lp:XS' }} :- list-constant T XS XS'.
7
8
pred mem o:list term, o:term, o:int.
9
mem [X|_] X 0 :- !.
10
+mem [Y|_] X 0 :- Y = app [H|_], X = app [H|_], coq.unify-eq X Y ok, !.
11
mem [_|XS] X M :- !, mem XS X N, M is N + 1.
12
13
% [eucldiv N D M R] N = D * M + R
0 commit comments