diff options
author | jadep <jade.philipoom@gmail.com> | 2016-09-05 12:35:38 -0400 |
---|---|---|
committer | jadep <jade.philipoom@gmail.com> | 2016-09-06 11:20:59 -0400 |
commit | ebb83ddb57aa8da5dbaae11de69c2fdc1a3e8c97 (patch) | |
tree | f595a933abd65fde2632e7929e3c341cceba9bd9 /src/ModularArithmetic/ModularBaseSystemListProofs.v | |
parent | c00aa881d043c40f6dda4c304c28ef199064f143 (diff) |
Pushed [freeze] through to GF25519 in preparation for defining [sqrt], cleaning up freeze-related organization and definitions along the way
Diffstat (limited to 'src/ModularArithmetic/ModularBaseSystemListProofs.v')
-rw-r--r-- | src/ModularArithmetic/ModularBaseSystemListProofs.v | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/ModularArithmetic/ModularBaseSystemListProofs.v b/src/ModularArithmetic/ModularBaseSystemListProofs.v index a12d88f9c..16699b8a2 100644 --- a/src/ModularArithmetic/ModularBaseSystemListProofs.v +++ b/src/ModularArithmetic/ModularBaseSystemListProofs.v @@ -116,6 +116,14 @@ Section LengthProofs. rewrite map2_length, map_length, length_modulus_digits. apply Min.min_case; omega. Qed. + Hint Rewrite @length_conditional_subtract_modulus : distr_length. + + Lemma length_freeze {u} : + length u = length limb_widths + -> length (freeze u) = length limb_widths. + Proof. + intros; unfold freeze; repeat autorewrite with distr_length; congruence. + Qed. Lemma length_pack : forall {target_widths} {target_widths_nonneg : forall x, In x target_widths -> 0 <= x} |