aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Jason Gross <jagro@google.com>2016-08-01 15:59:12 -0700
committerGravatar Jason Gross <jagro@google.com>2016-08-01 16:04:17 -0700
commit997d95a9c402aff7a13898a396c68b3d620a165e (patch)
tree83d81db571e076b391191b46eccf5b896739a5f8 /src
parenta393a49c9c24210faa656d5355e3b213aca2e8ba (diff)
Add div lower/upper bounds to zarith hint db
After | File Name | Before || Change ---------------------------------------------------------------------------------- 2m02.16s | Total | 2m04.98s || -0m02.82s ---------------------------------------------------------------------------------- 0m37.48s | Specific/GF25519 | 0m44.60s || -0m07.12s 0m13.10s | Experiments/SpecEd25519 | 0m11.55s || +0m01.54s 0m09.67s | Specific/GF1305 | 0m08.62s || +0m01.05s 0m05.63s | ModularArithmetic/Tutorial | 0m04.57s || +0m01.05s 0m16.82s | ModularArithmetic/ModularBaseSystemProofs | 0m16.14s || +0m00.67s 0m05.87s | ModularArithmetic/Pow2BaseProofs | 0m04.92s || +0m00.95s 0m04.22s | BaseSystemProofs | 0m04.59s || -0m00.37s 0m03.27s | ModularArithmetic/ModularBaseSystemOpt | 0m03.35s || -0m00.08s 0m02.75s | Util/ZUtil | 0m02.73s || +0m00.02s 0m02.21s | ModularArithmetic/ModularArithmeticTheorems | 0m01.62s || +0m00.58s 0m01.98s | Encoding/PointEncodingPre | 0m02.05s || -0m00.06s 0m01.72s | ModularArithmetic/PrimeFieldTheorems | 0m02.06s || -0m00.34s 0m01.67s | BaseSystem | 0m01.23s || +0m00.43s 0m01.50s | ModularArithmetic/BarrettReduction/Z | 0m01.41s || +0m00.09s 0m01.40s | Experiments/DerivationsOptionRectLetInEncoding | 0m01.46s || -0m00.06s 0m01.28s | ModularArithmetic/ExtendedBaseVector | 0m01.49s || -0m00.20s 0m00.94s | Util/NumTheoryUtil | 0m01.29s || -0m00.35s 0m00.92s | ModularArithmetic/ModularBaseSystemListProofs | 0m00.87s || +0m00.05s 0m00.89s | ModularArithmetic/ModularBaseSystemField | 0m00.96s || -0m00.06s 0m00.88s | ModularArithmetic/ModularBaseSystemList | 0m00.93s || -0m00.05s 0m00.87s | Encoding/ModularWordEncodingTheorems | 0m00.99s || -0m00.12s 0m00.83s | Spec/ModularWordEncoding | 0m00.81s || +0m00.01s 0m00.76s | ModularArithmetic/ExtPow2BaseMulProofs | 0m00.69s || +0m00.07s 0m00.76s | Experiments/SpecificCurve25519 | 0m00.74s || +0m00.02s 0m00.75s | Testbit | 0m00.95s || -0m00.19s 0m00.73s | ModularArithmetic/PseudoMersenneBaseParamProofs | 0m00.85s || -0m00.12s 0m00.70s | ModularArithmetic/ModularBaseSystem | 0m00.61s || +0m00.08s 0m00.66s | Encoding/ModularWordEncodingPre | 0m00.96s || -0m00.29s 0m00.54s | ModularArithmetic/Pre | 0m00.56s || -0m00.02s 0m00.51s | Spec/ModularArithmetic | 0m00.41s || +0m00.10s 0m00.46s | ModularArithmetic/Pow2Base | 0m00.56s || -0m00.10s 0m00.40s | ModularArithmetic/PseudoMersenneBaseParams | 0m00.42s || -0m00.01s
Diffstat (limited to 'src')
-rw-r--r--src/Util/ZUtil.v2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Util/ZUtil.v b/src/Util/ZUtil.v
index 45e53277f..64dfce99b 100644
--- a/src/Util/ZUtil.v
+++ b/src/Util/ZUtil.v
@@ -17,7 +17,7 @@ Hint Extern 1 => lia : lia.
Hint Extern 1 => lra : lra.
Hint Extern 1 => nia : nia.
Hint Extern 1 => omega : omega.
-Hint Resolve Z.log2_nonneg Z.div_small Z.mod_small Z.pow_neg_r Z.pow_0_l Z.pow_pos_nonneg Z.lt_le_incl Z.pow_nonzero Z.div_le_upper_bound Z_div_exact_full_2 Z.div_same : zarith.
+Hint Resolve Z.log2_nonneg Z.div_small Z.mod_small Z.pow_neg_r Z.pow_0_l Z.pow_pos_nonneg Z.lt_le_incl Z.pow_nonzero Z.div_le_upper_bound Z_div_exact_full_2 Z.div_same Z.div_lt_upper_bound Z.div_le_lower_bound : zarith.
Hint Resolve (fun a b H => proj1 (Z.mod_pos_bound a b H)) (fun a b H => proj2 (Z.mod_pos_bound a b H)) : zarith.
(** Only hints that are always safe to apply (i.e., reversible), and