Skip to content

Commit 71ec953

Browse files
committed
Fix a deprecation error
The suggested replacement of N.div_le_mono with N.Div0.le_mono caused an error in versions < 8.17
1 parent 9a2f939 commit 71ec953

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

theories/additions/Dichotomy.v

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ Proof.
171171
intros p H; unfold dicho; generalize (dicho_aux_lt p H).
172172
intro H0; assert (2 <= N.pos p / (N.pos (dicho_aux p)) )%N.
173173
- replace 2%N with (2%N * Npos (dicho_aux p) / Npos (dicho_aux p))%N.
174-
+ apply N.Div0.div_le_mono.
174+
+ apply (* N.Div0.div_le_mono. *) N.div_le_mono; try discriminate.
175175
* replace 2%N with (Npos 2%positive); cbn;auto.
176176
+ rewrite N.div_mul; [auto | discriminate].
177177
- case_eq (N.pos p / N.pos (dicho_aux p))%N.

0 commit comments

Comments
 (0)