Skip to content

Commit

Permalink
lookup abstracted terms using unification
Browse files Browse the repository at this point in the history
  • Loading branch information
Tragicus committed Jan 22, 2025
1 parent c819257 commit fc1b2ee
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions theories/common.elpi
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ list-constant T [X|XS] {{ @cons lp:T lp:X lp:XS' }} :- list-constant T XS XS'.

pred mem o:list term, o:term, o:int.
mem [X|_] X 0 :- !.
mem [Y|_] X 0 :- coq.unify-eq X Y ok, !.
mem [_|XS] X M :- !, mem XS X N, M is N + 1.

% [eucldiv N D M R] N = D * M + R
Expand Down

0 comments on commit fc1b2ee

Please sign in to comment.