aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar jadep <jade.philipoom@gmail.com>2018-09-17 13:47:00 -0400
committerGravatar Jason Gross <jasongross9@gmail.com>2018-12-21 10:22:41 -0500
commit7946cb056f3ac981c1e1c4a04529a0ae3a8e0294 (patch)
tree4b650a24ecf2cff2405e3fb5ab100479612daff6
parenta58a68cf5bb4d634683b091a8e35b5829a2e90bd (diff)
modify a proof because in 8.7 [auto] doesn't solve the goal
-rw-r--r--src/Experiments/NewPipeline/Arithmetic.v7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/Experiments/NewPipeline/Arithmetic.v b/src/Experiments/NewPipeline/Arithmetic.v
index eb04c4c4d..8dd0f422c 100644
--- a/src/Experiments/NewPipeline/Arithmetic.v
+++ b/src/Experiments/NewPipeline/Arithmetic.v
@@ -3220,7 +3220,12 @@ Module WordByWordMontgomery.
{ rewrite !UniformWeight.uweight_eq_alt by omega.
autorewrite with push_Zof_nat push_Zpow.
rewrite Z.pow_succ_r by auto.
- auto with zarith. }
+ (* In versions newer than 8.7, auto with zarith is sufficient
+ to solve this from here. *)
+ apply Z.mul_le_mono_nonneg_r.
+ { auto with zarith. }
+ { transitivity (2 ^ 1); [ reflexivity | ].
+ apply Z.pow_le_mono_r; omega. } }
Qed.
Local Lemma eval_drop_high_addT' : forall n a b, small a -> small b -> eval (@drop_high_addT' n a b) = (eval a + eval b) mod (r^Z.of_nat (S n)).
Proof using lgr_big.