aboutsummaryrefslogtreecommitdiff
path: root/src/Specific
diff options
context:
space:
mode:
authorGravatar Andres Erbsen <andreser@mit.edu>2017-03-01 12:06:21 -0500
committerGravatar Andres Erbsen <andreser@mit.edu>2017-03-02 13:37:14 -0500
commit59662e3592a604b0a9acacf3c8d634b8a7aa03e9 (patch)
tree3b62cd3feed3546999de4b926560c1ae42ee74f3 /src/Specific
parentcffd104774accd30a76fb3a18d94936b680d96e1 (diff)
remove dangling file that gives a warning
Diffstat (limited to 'src/Specific')
-rw-r--r--src/Specific/GF25519BoundedExtendedAddCoordinates.v68
1 files changed, 0 insertions, 68 deletions
diff --git a/src/Specific/GF25519BoundedExtendedAddCoordinates.v b/src/Specific/GF25519BoundedExtendedAddCoordinates.v
deleted file mode 100644
index 7b22bb5f4..000000000
--- a/src/Specific/GF25519BoundedExtendedAddCoordinates.v
+++ /dev/null
@@ -1,68 +0,0 @@
-Require Import Crypto.ModularArithmetic.PrimeFieldTheorems.
-Require Import Crypto.ModularArithmetic.ModularBaseSystem.
-Require Import Crypto.Specific.GF25519Bounded.
-Require Import Crypto.Specific.GF25519ExtendedAddCoordinates.
-Require Import Crypto.Specific.GF25519BoundedAddCoordinates.
-Require Import Crypto.Util.Tuple.
-Require Import Crypto.Util.Tactics.
-(*
-Lemma fieldwise_eq_extended_add_coordinates_full' twice_d P10 P11 P12 P13 P20 P21 P22 P23
- : Tuple.fieldwise
- (n:=4) GF25519BoundedCommon.eq
- (@GF25519BoundedAddCoordinates.add_coordinates
- twice_d P10 P11 P12 P13 P20 P21 P22 P23)
- (@ExtendedCoordinates.Extended.add_coordinates
- GF25519BoundedCommon.fe25519
- GF25519Bounded.add GF25519Bounded.sub GF25519Bounded.mul twice_d
- (P10, P11, P12, P13) (P20, P21, P22, P23)).
-Proof.
- unfold GF25519BoundedCommon.eq.
- apply -> (fieldwise_map_iff (n:=4) eq GF25519BoundedCommon.proj1_fe25519 GF25519BoundedCommon.proj1_fe25519).
- rewrite add_coordinates_correct.
- cbv [AddCoordinates.add_coordinates].
- setoid_rewrite <- fieldwise_eq_edwards_extended_add_coordinates_carry_nocarry.
- unfold edwards_extended_carry_add_coordinates.
- match goal with |- ?R ?x ?y => rewrite <- (Tuple.map_id (n:=4) x) end.
- apply <- (fieldwise_map_iff (n:=4) eq (fun x => x) GF25519BoundedCommon.proj1_fe25519).
- apply ExtendedCoordinates.Extended.add_coordinates_respectful_hetero;
- intros;
- repeat match goal with
- | [ |- context[add _ _] ]
- => rewrite add_correct
- | [ |- context[sub _ _] ]
- => rewrite sub_correct
- | [ |- context[mul _ _] ]
- => rewrite mul_correct
- | _ => progress unfold Tuple.fieldwise, Tuple.fieldwise', fst, snd, eq in *
- | [ |- and _ _ ] => split
- | [ |- ?x = ?x ] => reflexivity
- | _ => progress rewrite_strat topdown hints edwards_extended_add_coordinates_correct
- | _ => congruence
- end.
-Qed.
-
-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.
-
-Definition add_coordinates twice_d P1 P2
- := Eval cbv beta iota delta [GF25519BoundedAddCoordinates.add_coordinates HList.mapt HList.mapt'] in
- 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.
- destruct_head' prod.
- rewrite <- fieldwise_eq_extended_add_coordinates_full'; reflexivity.
-Qed.
-*)