aboutsummaryrefslogtreecommitdiff
path: root/src/ModularArithmetic/ModularArithmeticTheorems.v
diff options
context:
space:
mode:
authorGravatar Jade Philipoom <jadep@mit.edu>2016-02-16 21:45:13 -0500
committerGravatar Jade Philipoom <jadep@mit.edu>2016-02-16 21:45:13 -0500
commit7efd1bd2b15a1a34152f8df38c48d9d478c1be7c (patch)
treea5ddbac283053a866305a7bfcddd0dcd62abc2ed /src/ModularArithmetic/ModularArithmeticTheorems.v
parentb7aa0385bfbedccd486154900571e7244eca51a1 (diff)
proved sqrt_solutions, the last remaining admit for point encodings
Diffstat (limited to 'src/ModularArithmetic/ModularArithmeticTheorems.v')
-rw-r--r--src/ModularArithmetic/ModularArithmeticTheorems.v14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/ModularArithmetic/ModularArithmeticTheorems.v b/src/ModularArithmetic/ModularArithmeticTheorems.v
index 52018a33d..c199a551f 100644
--- a/src/ModularArithmetic/ModularArithmeticTheorems.v
+++ b/src/ModularArithmetic/ModularArithmeticTheorems.v
@@ -512,6 +512,20 @@ Section VariousModulo.
Proof.
intros; ring.
Qed.
+
+ Lemma F_add_reg_r : forall x y z : F m, y + x = z + x -> y = z.
+ Proof.
+ intros ? ? ? A.
+ replace y with (y + x - x) by ring.
+ rewrite A; ring.
+ Qed.
+
+ Lemma F_add_reg_l : forall x y z : F m, x + y = x + z -> y = z.
+ Proof.
+ intros ? ? ? A.
+ replace y with (x + y - x) by ring.
+ rewrite A; ring.
+ Qed.
Lemma F_sub_0_r : forall x : F m, (x - 0)%F = x.
Proof.