Skip to content

Commit

Permalink
Compatible with MathComp dev (2.1)
Browse files Browse the repository at this point in the history
  • Loading branch information
pi8027 committed Sep 28, 2023
1 parent d3649e6 commit 1a8386c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions theories/binomialz.v
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,8 @@ Lemma binzSS_weak (F : numFieldType) (n k : int) : 0 <= n -> k + 1 != 0 ->
Proof.
case: n k => [] // n [k|[|k]] // _ _; last by rewrite !binz_neg // mulr0.
rewrite -!PoszD !addn1 !binz_nat_nat mulrAC.
apply: (canRL (mulfK _)); rewrite ?intr_eq0 //.
by rewrite -!rmorphM -!PoszM /= mul_bin_diag mulnC.
apply: canRL (mulfK _) _; rewrite ?intr_eq0 //.
by rewrite -!intrM -!PoszM mul_bin_diag mulnC.
Qed.

Lemma binzS_weak (F : numFieldType) (n k : int) : n >= 0 -> k + 1 != 0 ->
Expand Down
2 changes: 1 addition & 1 deletion theories/hanson.v
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,7 @@ suff [K [Kpos KP]] : exists K : rat,
suff: (C n m.+1)%:R <= (k%:Q + 1) * 3%:R ^ n.
by rewrite -[_ + 1%:R]natrD -[_ ^ n]natrX -natrM ler_nat addn1.
exact/le_trans/ler_wpmul2r/ltW/leKSn/exprz_ge0.
move mE: 10%:Q => m.
move mE: 10%N%:Q => m. (* FIXME *)
have lt0m : 0 < m by rewrite -mE.
have le0m : 0 <= m by exact: ltW.
have lt1m : 1 < m by rewrite -mE.
Expand Down

0 comments on commit 1a8386c

Please sign in to comment.