aboutsummaryrefslogtreecommitdiff
path: root/src/Specific/GF25519.v
diff options
context:
space:
mode:
authorGravatar Andres Erbsen <andreser@mit.edu>2016-06-06 18:35:31 -0400
committerGravatar Andres Erbsen <andreser@mit.edu>2016-06-06 18:35:31 -0400
commit3c8a22e82b2162bff4d6d7b8ce813430bc859c77 (patch)
tree1843ac9830c50ef4073dd6e04d1ec04df53e8dae /src/Specific/GF25519.v
parentc255dd3d45d9ab3e487ae5db58c14bac3a51c90c (diff)
ed25519: refactor some Proper
Diffstat (limited to 'src/Specific/GF25519.v')
-rw-r--r--src/Specific/GF25519.v11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/Specific/GF25519.v b/src/Specific/GF25519.v
index 8aaf8caf6..044bf074b 100644
--- a/src/Specific/GF25519.v
+++ b/src/Specific/GF25519.v
@@ -51,6 +51,17 @@ Proof.
compute_formula.
Time Defined.
+Local Transparent Let_In.
+Infix "<<" := Z.shiftr (at level 50).
+Infix "&" := Z.land (at level 50).
+Eval cbv beta iota delta [proj1_sig GF25519Base25Point5_mul_reduce_formula Let_In] in
+ fun f0 f1 f2 f3 f4 f5 f6 f7 f8 f9
+ g0 g1 g2 g3 g4 g5 g6 g7 g8 g9 => proj1_sig (
+ GF25519Base25Point5_mul_reduce_formula f0 f1 f2 f3 f4 f5 f6 f7 f8 f9
+ g0 g1 g2 g3 g4 g5 g6 g7 g8 g9).
+Local Opaque Let_In.
+
+
Extraction "/tmp/test.ml" GF25519Base25Point5_mul_reduce_formula.
(* It's easy enough to use extraction to get the proper nice-looking formula.
* More Ltac acrobatics will be needed to get out that formula for further use in Coq.