aboutsummaryrefslogtreecommitdiff
path: root/src/Specific
diff options
context:
space:
mode:
authorGravatar Jason Gross <jgross@mit.edu>2016-11-17 17:59:50 -0500
committerGravatar Jason Gross <jgross@mit.edu>2016-11-17 17:59:50 -0500
commitb625a25bd6b6e27dde645bfb8bb05b16bcb475af (patch)
treedd0243b7651992eac816d89223fc2c9ae3be047e /src/Specific
parent5b5c35fdb8d03bc459c92849df06f977e8ffdfa3 (diff)
Add another admitted lemma
Diffstat (limited to 'src/Specific')
-rw-r--r--src/Specific/GF25519BoundedExtendedAddCoordinates.v16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/Specific/GF25519BoundedExtendedAddCoordinates.v b/src/Specific/GF25519BoundedExtendedAddCoordinates.v
index 38449bd51..695ca335e 100644
--- a/src/Specific/GF25519BoundedExtendedAddCoordinates.v
+++ b/src/Specific/GF25519BoundedExtendedAddCoordinates.v
@@ -39,3 +39,19 @@ Proof.
unfold GF25519BoundedCommon.eq.
pose (add_coordinates_correct).
Admitted.
+
+Definition add_coordinates twice_d P1 P2
+ := let '(P10, P11, P12, P13) := P1 in
+ let '(P20, P21, P22, P23) := P2 in
+ @GF25519BoundedAddCoordinates.add_coordinates
+ twice_d P10 P11 P12 P13 P20 P21 P22 P23.
+
+Lemma add_coordinates_correct_full twice_d P1 P2
+ : Tuple.fieldwise
+ GF25519BoundedCommon.eq
+ (add_coordinates twice_d P1 P2)
+ (@ExtendedCoordinates.Extended.add_coordinates
+ GF25519BoundedCommon.fe25519
+ GF25519Bounded.add GF25519Bounded.sub GF25519Bounded.mul twice_d P1 P2).
+Proof.
+Admitted.