Skip to content

Commit 881526d

Browse files
committed
Compile with rocq-elpi 3.1.0 (and elpi 3.3.0)
1 parent c8d62c7 commit 881526d

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

coq-mathcomp-algebra-tactics.opam

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ depends: [
3232
"coq-mathcomp-ssreflect" {>= "2.4" & < "2.5~" | = "dev"}
3333
"coq-mathcomp-algebra"
3434
"coq-mathcomp-zify" {>= "1.5.0"}
35-
"coq-elpi" {>= "2.2.0" & < "3.1~"}
35+
"coq-elpi" {>= "2.2.0"}
3636
]
3737

3838
tags: [

theories/common.elpi

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,10 @@ mem [Y|_] X 0 :- Y = app [H|_], X = app [H|_], coq.unify-eq X Y ok, !.
1111
mem [_|XS] X M :- !, mem XS X N, M is N + 1.
1212

1313
% [eucldiv N D M R] N = D * M + R
14+
:functional
1415
pred eucldiv o:int, i:int, o:int, i:int.
1516
eucldiv N D M R :- var N, var M, !, declare_constraint (eucldiv N D M R) [N, M].
16-
eucldiv N D M R :- var N, N is D * M + R.
17+
eucldiv N D M R :- var N, !, N is D * M + R.
1718
eucldiv N D M R :- var M, M is N div D, R is N mod D.
1819

1920
pred positive-constant o:int, o:term.

0 commit comments

Comments
 (0)