finish uncarry

This commit is contained in:
2025-06-21 08:00:17 +00:00
parent 0656f30a16
commit 9ccea05835
2 changed files with 119 additions and 1 deletions

View File

@ -27,6 +27,12 @@ Lemma Z_mod_add_carry: forall (a b m: Z),
a + b = (a + b) mod m + m.
Proof. Admitted.
Lemma Z_mod_add_uncarry: forall (a b m: Z),
m > 0 -> 0 <= a < m -> 0 <= b < m ->
(a + b) mod m >= b ->
a + b = (a + b) mod m.
Proof. Admitted.
Lemma Z_of_nat_succ: forall (n: nat),
Z.of_nat (S n) = Z.of_nat n + 1.
Proof. lia. Qed.