From 795d24349b9aca1d9732c7b7fcaa505f24fa4bc6 Mon Sep 17 00:00:00 2001 From: jadep Date: Fri, 10 Nov 2017 13:19:57 -0500 Subject: new autogenerated files --- .../CurveParameters.v | 39 ---------------- .../montgomery64_2e512m491x2e496m1/Synthesis.v | 9 ---- .../montgomery64_2e512m491x2e496m1/compiler.sh | 4 -- .../montgomery64_2e512m491x2e496m1/compilerxx.sh | 4 -- .../montgomery64_2e512m491x2e496m1/feadd.c | 52 ---------------------- .../montgomery64_2e512m491x2e496m1/feadd.v | 14 ------ .../feaddDisplay.log | 32 ------------- .../montgomery64_2e512m491x2e496m1/feaddDisplay.v | 4 -- .../montgomery64_2e512m491x2e496m1/femul.v | 14 ------ .../montgomery64_2e512m491x2e496m1/femulDisplay.v | 4 -- src/Specific/montgomery64_2e512m491x2e496m1/fenz.c | 19 -------- src/Specific/montgomery64_2e512m491x2e496m1/fenz.v | 16 ------- .../montgomery64_2e512m491x2e496m1/fenzDisplay.log | 14 ------ .../montgomery64_2e512m491x2e496m1/fenzDisplay.v | 4 -- .../montgomery64_2e512m491x2e496m1/feopp.v | 14 ------ .../feoppDisplay.log | 32 ------------- .../montgomery64_2e512m491x2e496m1/feoppDisplay.v | 4 -- .../montgomery64_2e512m491x2e496m1/fesquare.c | 5 --- .../montgomery64_2e512m491x2e496m1/fesub.v | 14 ------ .../montgomery64_2e512m491x2e496m1/fesubDisplay.v | 4 -- .../py_interpreter.sh | 4 -- 21 files changed, 306 deletions(-) delete mode 100644 src/Specific/montgomery64_2e512m491x2e496m1/CurveParameters.v delete mode 100644 src/Specific/montgomery64_2e512m491x2e496m1/Synthesis.v delete mode 100755 src/Specific/montgomery64_2e512m491x2e496m1/compiler.sh delete mode 100755 src/Specific/montgomery64_2e512m491x2e496m1/compilerxx.sh delete mode 100644 src/Specific/montgomery64_2e512m491x2e496m1/feadd.c delete mode 100644 src/Specific/montgomery64_2e512m491x2e496m1/feadd.v delete mode 100644 src/Specific/montgomery64_2e512m491x2e496m1/feaddDisplay.log delete mode 100644 src/Specific/montgomery64_2e512m491x2e496m1/feaddDisplay.v delete mode 100644 src/Specific/montgomery64_2e512m491x2e496m1/femul.v delete mode 100644 src/Specific/montgomery64_2e512m491x2e496m1/femulDisplay.v delete mode 100644 src/Specific/montgomery64_2e512m491x2e496m1/fenz.c delete mode 100644 src/Specific/montgomery64_2e512m491x2e496m1/fenz.v delete mode 100644 src/Specific/montgomery64_2e512m491x2e496m1/fenzDisplay.log delete mode 100644 src/Specific/montgomery64_2e512m491x2e496m1/fenzDisplay.v delete mode 100644 src/Specific/montgomery64_2e512m491x2e496m1/feopp.v delete mode 100644 src/Specific/montgomery64_2e512m491x2e496m1/feoppDisplay.log delete mode 100644 src/Specific/montgomery64_2e512m491x2e496m1/feoppDisplay.v delete mode 100644 src/Specific/montgomery64_2e512m491x2e496m1/fesquare.c delete mode 100644 src/Specific/montgomery64_2e512m491x2e496m1/fesub.v delete mode 100644 src/Specific/montgomery64_2e512m491x2e496m1/fesubDisplay.v delete mode 100755 src/Specific/montgomery64_2e512m491x2e496m1/py_interpreter.sh (limited to 'src/Specific/montgomery64_2e512m491x2e496m1') diff --git a/src/Specific/montgomery64_2e512m491x2e496m1/CurveParameters.v b/src/Specific/montgomery64_2e512m491x2e496m1/CurveParameters.v deleted file mode 100644 index accf6b9a7..000000000 --- a/src/Specific/montgomery64_2e512m491x2e496m1/CurveParameters.v +++ /dev/null @@ -1,39 +0,0 @@ -Require Import Crypto.Specific.Framework.RawCurveParameters. -Require Import Crypto.Util.LetIn. - -(*** -Modulus : 2^512 - 491*2^496 - 1 -Base: 64 -***) - -Definition curve : CurveParameters := - {| - sz := 8%nat; - base := 64; - bitwidth := 64; - s := 2^512; - c := [(1, 1); (491, 2^496)]; - carry_chains := None; - - a24 := None; - coef_div_modulus := None; - - goldilocks := None; - karatsuba := None; - montgomery := true; - freeze := Some false; - ladderstep := false; - - mul_code := None; - - square_code := None; - - upper_bound_of_exponent_loose := None; - upper_bound_of_exponent_tight := None; - allowable_bit_widths := None; - freeze_extra_allowable_bit_widths := None; - modinv_fuel := None - |}. - -Ltac extra_prove_mul_eq _ := idtac. -Ltac extra_prove_square_eq _ := idtac. diff --git a/src/Specific/montgomery64_2e512m491x2e496m1/Synthesis.v b/src/Specific/montgomery64_2e512m491x2e496m1/Synthesis.v deleted file mode 100644 index a73511fb1..000000000 --- a/src/Specific/montgomery64_2e512m491x2e496m1/Synthesis.v +++ /dev/null @@ -1,9 +0,0 @@ -Require Import Crypto.Specific.Framework.SynthesisFramework. -Require Import Crypto.Specific.montgomery64_2e512m491x2e496m1.CurveParameters. - -Module P <: PrePackage. - Definition package : Tag.Context. - Proof. make_Synthesis_package curve extra_prove_mul_eq extra_prove_square_eq. Defined. -End P. - -Module Export S := PackageSynthesis P. diff --git a/src/Specific/montgomery64_2e512m491x2e496m1/compiler.sh b/src/Specific/montgomery64_2e512m491x2e496m1/compiler.sh deleted file mode 100755 index 13e95ed67..000000000 --- a/src/Specific/montgomery64_2e512m491x2e496m1/compiler.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/sh -set -eu - -clang -fbracket-depth=999999 -march=native -mtune=native -std=gnu11 -O3 -flto -fuse-ld=lld -fomit-frame-pointer -fwrapv -Wno-attributes -fno-strict-aliasing -Da24_hex='0x3039' -Da24_val='12345' -Da_minus_two_over_four_array='{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x30,0x39}' -Dbitwidth='64' -Dlimb_weight_gaps_array='{64,64,64,64,64,64,64,64}' -Dmodulus_array='{0xfe,0x14,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff}' -Dmodulus_bytes_val='64' -Dmodulus_limbs='8' -Dq_mpz='(1_mpz<<512) - 491*(1_mpz<<496) - 1' "$@" diff --git a/src/Specific/montgomery64_2e512m491x2e496m1/compilerxx.sh b/src/Specific/montgomery64_2e512m491x2e496m1/compilerxx.sh deleted file mode 100755 index c360a99e4..000000000 --- a/src/Specific/montgomery64_2e512m491x2e496m1/compilerxx.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/sh -set -eu - -clang++ -fbracket-depth=999999 -march=native -mtune=native -std=gnu++11 -O3 -flto -fuse-ld=lld -fomit-frame-pointer -fwrapv -Wno-attributes -fno-strict-aliasing -Da24_hex='0x3039' -Da24_val='12345' -Da_minus_two_over_four_array='{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x30,0x39}' -Dbitwidth='64' -Dlimb_weight_gaps_array='{64,64,64,64,64,64,64,64}' -Dmodulus_array='{0xfe,0x14,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff}' -Dmodulus_bytes_val='64' -Dmodulus_limbs='8' -Dq_mpz='(1_mpz<<512) - 491*(1_mpz<<496) - 1' "$@" diff --git a/src/Specific/montgomery64_2e512m491x2e496m1/feadd.c b/src/Specific/montgomery64_2e512m491x2e496m1/feadd.c deleted file mode 100644 index cf7695d2d..000000000 --- a/src/Specific/montgomery64_2e512m491x2e496m1/feadd.c +++ /dev/null @@ -1,52 +0,0 @@ -static void feadd(uint64_t out[8], const uint64_t in1[8], const uint64_t in2[8]) { - { const uint64_t x16 = in1[7]; - { const uint64_t x17 = in1[6]; - { const uint64_t x15 = in1[5]; - { const uint64_t x13 = in1[4]; - { const uint64_t x11 = in1[3]; - { const uint64_t x9 = in1[2]; - { const uint64_t x7 = in1[1]; - { const uint64_t x5 = in1[0]; - { const uint64_t x30 = in2[7]; - { const uint64_t x31 = in2[6]; - { const uint64_t x29 = in2[5]; - { const uint64_t x27 = in2[4]; - { const uint64_t x25 = in2[3]; - { const uint64_t x23 = in2[2]; - { const uint64_t x21 = in2[1]; - { const uint64_t x19 = in2[0]; - { uint64_t x33; uint8_t x34 = _addcarryx_u64(0x0, x5, x19, &x33); - { uint64_t x36; uint8_t x37 = _addcarryx_u64(x34, x7, x21, &x36); - { uint64_t x39; uint8_t x40 = _addcarryx_u64(x37, x9, x23, &x39); - { uint64_t x42; uint8_t x43 = _addcarryx_u64(x40, x11, x25, &x42); - { uint64_t x45; uint8_t x46 = _addcarryx_u64(x43, x13, x27, &x45); - { uint64_t x48; uint8_t x49 = _addcarryx_u64(x46, x15, x29, &x48); - { uint64_t x51; uint8_t x52 = _addcarryx_u64(x49, x17, x31, &x51); - { uint64_t x54; uint8_t x55 = _addcarryx_u64(x52, x16, x30, &x54); - { uint64_t x57; uint8_t x58 = _subborrow_u64(0x0, x33, 0xffffffffffffffffL, &x57); - { uint64_t x60; uint8_t x61 = _subborrow_u64(x58, x36, 0xffffffffffffffffL, &x60); - { uint64_t x63; uint8_t x64 = _subborrow_u64(x61, x39, 0xffffffffffffffffL, &x63); - { uint64_t x66; uint8_t x67 = _subborrow_u64(x64, x42, 0xffffffffffffffffL, &x66); - { uint64_t x69; uint8_t x70 = _subborrow_u64(x67, x45, 0xffffffffffffffffL, &x69); - { uint64_t x72; uint8_t x73 = _subborrow_u64(x70, x48, 0xffffffffffffffffL, &x72); - { uint64_t x75; uint8_t x76 = _subborrow_u64(x73, x51, 0xffffffffffffffffL, &x75); - { uint64_t x78; uint8_t x79 = _subborrow_u64(x76, x54, 0xfe14ffffffffffffL, &x78); - { uint64_t _; uint8_t x82 = _subborrow_u64(x79, x55, 0x0, &_); - { uint64_t x83 = cmovznz64(x82, x78, x54); - { uint64_t x84 = cmovznz64(x82, x75, x51); - { uint64_t x85 = cmovznz64(x82, x72, x48); - { uint64_t x86 = cmovznz64(x82, x69, x45); - { uint64_t x87 = cmovznz64(x82, x66, x42); - { uint64_t x88 = cmovznz64(x82, x63, x39); - { uint64_t x89 = cmovznz64(x82, x60, x36); - { uint64_t x90 = cmovznz64(x82, x57, x33); - out[0] = x90; - out[1] = x89; - out[2] = x88; - out[3] = x87; - out[4] = x86; - out[5] = x85; - out[6] = x84; - out[7] = x83; - }}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}} -} diff --git a/src/Specific/montgomery64_2e512m491x2e496m1/feadd.v b/src/Specific/montgomery64_2e512m491x2e496m1/feadd.v deleted file mode 100644 index 204f214c7..000000000 --- a/src/Specific/montgomery64_2e512m491x2e496m1/feadd.v +++ /dev/null @@ -1,14 +0,0 @@ -Require Import Crypto.Arithmetic.PrimeFieldTheorems. -Require Import Crypto.Specific.montgomery64_2e512m491x2e496m1.Synthesis. - -(* TODO : change this to field once field isomorphism happens *) -Definition add : - { add : feBW_small -> feBW_small -> feBW_small - | forall a b, phiM_small (add a b) = F.add (phiM_small a) (phiM_small b) }. -Proof. - Set Ltac Profiling. - Time synthesize_add (). - Show Ltac Profile. -Time Defined. - -Print Assumptions add. diff --git a/src/Specific/montgomery64_2e512m491x2e496m1/feaddDisplay.log b/src/Specific/montgomery64_2e512m491x2e496m1/feaddDisplay.log deleted file mode 100644 index d9e775eee..000000000 --- a/src/Specific/montgomery64_2e512m491x2e496m1/feaddDisplay.log +++ /dev/null @@ -1,32 +0,0 @@ -λ x x0 : word64 * word64 * word64 * word64 * word64 * word64 * word64 * word64, -Interp-η -(λ var : Syntax.base_type → Type, - λ '(x16, x17, x15, x13, x11, x9, x7, x5, (x30, x31, x29, x27, x25, x23, x21, x19))%core, - uint64_t x33, uint8_t x34 = addcarryx_u64(0x0, x5, x19); - uint64_t x36, uint8_t x37 = addcarryx_u64(x34, x7, x21); - uint64_t x39, uint8_t x40 = addcarryx_u64(x37, x9, x23); - uint64_t x42, uint8_t x43 = addcarryx_u64(x40, x11, x25); - uint64_t x45, uint8_t x46 = addcarryx_u64(x43, x13, x27); - uint64_t x48, uint8_t x49 = addcarryx_u64(x46, x15, x29); - uint64_t x51, uint8_t x52 = addcarryx_u64(x49, x17, x31); - uint64_t x54, uint8_t x55 = addcarryx_u64(x52, x16, x30); - uint64_t x57, uint8_t x58 = subborrow_u64(0x0, x33, 0xffffffffffffffffL); - uint64_t x60, uint8_t x61 = subborrow_u64(x58, x36, 0xffffffffffffffffL); - uint64_t x63, uint8_t x64 = subborrow_u64(x61, x39, 0xffffffffffffffffL); - uint64_t x66, uint8_t x67 = subborrow_u64(x64, x42, 0xffffffffffffffffL); - uint64_t x69, uint8_t x70 = subborrow_u64(x67, x45, 0xffffffffffffffffL); - uint64_t x72, uint8_t x73 = subborrow_u64(x70, x48, 0xffffffffffffffffL); - uint64_t x75, uint8_t x76 = subborrow_u64(x73, x51, 0xffffffffffffffffL); - uint64_t x78, uint8_t x79 = subborrow_u64(x76, x54, 0xfe14ffffffffffffL); - uint64_t _, uint8_t x82 = subborrow_u64(x79, x55, 0x0); - uint64_t x83 = cmovznz64(x82, x78, x54); - uint64_t x84 = cmovznz64(x82, x75, x51); - uint64_t x85 = cmovznz64(x82, x72, x48); - uint64_t x86 = cmovznz64(x82, x69, x45); - uint64_t x87 = cmovznz64(x82, x66, x42); - uint64_t x88 = cmovznz64(x82, x63, x39); - uint64_t x89 = cmovznz64(x82, x60, x36); - uint64_t x90 = cmovznz64(x82, x57, x33); - return (x83, x84, x85, x86, x87, x88, x89, x90)) -(x, x0)%core - : word64 * word64 * word64 * word64 * word64 * word64 * word64 * word64 → word64 * word64 * word64 * word64 * word64 * word64 * word64 * word64 → ReturnType (uint64_t * uint64_t * uint64_t * uint64_t * uint64_t * uint64_t * uint64_t * uint64_t) diff --git a/src/Specific/montgomery64_2e512m491x2e496m1/feaddDisplay.v b/src/Specific/montgomery64_2e512m491x2e496m1/feaddDisplay.v deleted file mode 100644 index e6093550d..000000000 --- a/src/Specific/montgomery64_2e512m491x2e496m1/feaddDisplay.v +++ /dev/null @@ -1,4 +0,0 @@ -Require Import Crypto.Specific.montgomery64_2e512m491x2e496m1.feadd. -Require Import Crypto.Specific.Framework.IntegrationTestDisplayCommon. - -Check display add. diff --git a/src/Specific/montgomery64_2e512m491x2e496m1/femul.v b/src/Specific/montgomery64_2e512m491x2e496m1/femul.v deleted file mode 100644 index 30964dee7..000000000 --- a/src/Specific/montgomery64_2e512m491x2e496m1/femul.v +++ /dev/null @@ -1,14 +0,0 @@ -Require Import Crypto.Arithmetic.PrimeFieldTheorems. -Require Import Crypto.Specific.montgomery64_2e512m491x2e496m1.Synthesis. - -(* TODO : change this to field once field isomorphism happens *) -Definition mul : - { mul : feBW_small -> feBW_small -> feBW_small - | forall a b, phiM_small (mul a b) = F.mul (phiM_small a) (phiM_small b) }. -Proof. - Set Ltac Profiling. - Time synthesize_mul (). - Show Ltac Profile. -Time Defined. - -Print Assumptions mul. diff --git a/src/Specific/montgomery64_2e512m491x2e496m1/femulDisplay.v b/src/Specific/montgomery64_2e512m491x2e496m1/femulDisplay.v deleted file mode 100644 index 407550e09..000000000 --- a/src/Specific/montgomery64_2e512m491x2e496m1/femulDisplay.v +++ /dev/null @@ -1,4 +0,0 @@ -Require Import Crypto.Specific.montgomery64_2e512m491x2e496m1.femul. -Require Import Crypto.Specific.Framework.IntegrationTestDisplayCommon. - -Check display mul. diff --git a/src/Specific/montgomery64_2e512m491x2e496m1/fenz.c b/src/Specific/montgomery64_2e512m491x2e496m1/fenz.c deleted file mode 100644 index a07b0df9c..000000000 --- a/src/Specific/montgomery64_2e512m491x2e496m1/fenz.c +++ /dev/null @@ -1,19 +0,0 @@ -static void fenz(ReturnType uint64_t out[1], const uint64_t in1[8]) { - { const uint64_t x13 = in1[7]; - { const uint64_t x14 = in1[6]; - { const uint64_t x12 = in1[5]; - { const uint64_t x10 = in1[4]; - { const uint64_t x8 = in1[3]; - { const uint64_t x6 = in1[2]; - { const uint64_t x4 = in1[1]; - { const uint64_t x2 = in1[0]; - { uint64_t x15 = (x14 | x13); - { uint64_t x16 = (x12 | x15); - { uint64_t x17 = (x10 | x16); - { uint64_t x18 = (x8 | x17); - { uint64_t x19 = (x6 | x18); - { uint64_t x20 = (x4 | x19); - { uint64_t x21 = (x2 | x20); - out[0] = x21; - }}}}}}}}}}}}}}} -} diff --git a/src/Specific/montgomery64_2e512m491x2e496m1/fenz.v b/src/Specific/montgomery64_2e512m491x2e496m1/fenz.v deleted file mode 100644 index c9c8e2400..000000000 --- a/src/Specific/montgomery64_2e512m491x2e496m1/fenz.v +++ /dev/null @@ -1,16 +0,0 @@ -Require Import Coq.ZArith.ZArith. -Require Import Crypto.Arithmetic.PrimeFieldTheorems. -Require Import Crypto.Specific.montgomery64_2e512m491x2e496m1.Synthesis. -Local Open Scope Z_scope. - -(* TODO : change this to field once field isomorphism happens *) -Definition nonzero : - { nonzero : feBW_small -> BoundedWord.BoundedWord 1 adjusted_bitwidth bound1 - | forall a, (BoundedWord.BoundedWordToZ _ _ _ (nonzero a) =? 0) = (if Decidable.dec (phiM_small a = F.of_Z m 0) then true else false) }. -Proof. - Set Ltac Profiling. - Time synthesize_nonzero (). - Show Ltac Profile. -Time Defined. - -Print Assumptions nonzero. diff --git a/src/Specific/montgomery64_2e512m491x2e496m1/fenzDisplay.log b/src/Specific/montgomery64_2e512m491x2e496m1/fenzDisplay.log deleted file mode 100644 index a05fc22ab..000000000 --- a/src/Specific/montgomery64_2e512m491x2e496m1/fenzDisplay.log +++ /dev/null @@ -1,14 +0,0 @@ -λ x : word64 * word64 * word64 * word64 * word64 * word64 * word64 * word64, -Interp-η -(λ var : Syntax.base_type → Type, - λ '(x13, x14, x12, x10, x8, x6, x4, x2)%core, - uint64_t x15 = (x14 | x13); - uint64_t x16 = (x12 | x15); - uint64_t x17 = (x10 | x16); - uint64_t x18 = (x8 | x17); - uint64_t x19 = (x6 | x18); - uint64_t x20 = (x4 | x19); - uint64_t x21 = (x2 | x20); - return x21) -x - : word64 * word64 * word64 * word64 * word64 * word64 * word64 * word64 → ReturnType uint64_t diff --git a/src/Specific/montgomery64_2e512m491x2e496m1/fenzDisplay.v b/src/Specific/montgomery64_2e512m491x2e496m1/fenzDisplay.v deleted file mode 100644 index 582c54929..000000000 --- a/src/Specific/montgomery64_2e512m491x2e496m1/fenzDisplay.v +++ /dev/null @@ -1,4 +0,0 @@ -Require Import Crypto.Specific.montgomery64_2e512m491x2e496m1.fenz. -Require Import Crypto.Specific.Framework.IntegrationTestDisplayCommon. - -Check display nonzero. diff --git a/src/Specific/montgomery64_2e512m491x2e496m1/feopp.v b/src/Specific/montgomery64_2e512m491x2e496m1/feopp.v deleted file mode 100644 index df85c99b8..000000000 --- a/src/Specific/montgomery64_2e512m491x2e496m1/feopp.v +++ /dev/null @@ -1,14 +0,0 @@ -Require Import Crypto.Arithmetic.PrimeFieldTheorems. -Require Import Crypto.Specific.montgomery64_2e512m491x2e496m1.Synthesis. - -(* TODO : change this to field once field isomorphism happens *) -Definition opp : - { opp : feBW_small -> feBW_small - | forall a, phiM_small (opp a) = F.opp (phiM_small a) }. -Proof. - Set Ltac Profiling. - Time synthesize_opp (). - Show Ltac Profile. -Time Defined. - -Print Assumptions opp. diff --git a/src/Specific/montgomery64_2e512m491x2e496m1/feoppDisplay.log b/src/Specific/montgomery64_2e512m491x2e496m1/feoppDisplay.log deleted file mode 100644 index efeb12ab9..000000000 --- a/src/Specific/montgomery64_2e512m491x2e496m1/feoppDisplay.log +++ /dev/null @@ -1,32 +0,0 @@ -λ x : word64 * word64 * word64 * word64 * word64 * word64 * word64 * word64, -Interp-η -(λ var : Syntax.base_type → Type, - λ '(x13, x14, x12, x10, x8, x6, x4, x2)%core, - uint64_t x16, uint8_t x17 = subborrow_u64(0x0, 0x0, x2); - uint64_t x19, uint8_t x20 = subborrow_u64(x17, 0x0, x4); - uint64_t x22, uint8_t x23 = subborrow_u64(x20, 0x0, x6); - uint64_t x25, uint8_t x26 = subborrow_u64(x23, 0x0, x8); - uint64_t x28, uint8_t x29 = subborrow_u64(x26, 0x0, x10); - uint64_t x31, uint8_t x32 = subborrow_u64(x29, 0x0, x12); - uint64_t x34, uint8_t x35 = subborrow_u64(x32, 0x0, x14); - uint64_t x37, uint8_t x38 = subborrow_u64(x35, 0x0, x13); - uint64_t x39 = (uint64_t)cmovznz(x38, 0x0, 0xffffffffffffffffL); - uint64_t x40 = (x39 & 0xffffffffffffffffL); - uint64_t x42, uint8_t x43 = addcarryx_u64(0x0, x16, x40); - uint64_t x44 = (x39 & 0xffffffffffffffffL); - uint64_t x46, uint8_t x47 = addcarryx_u64(x43, x19, x44); - uint64_t x48 = (x39 & 0xffffffffffffffffL); - uint64_t x50, uint8_t x51 = addcarryx_u64(x47, x22, x48); - uint64_t x52 = (x39 & 0xffffffffffffffffL); - uint64_t x54, uint8_t x55 = addcarryx_u64(x51, x25, x52); - uint64_t x56 = (x39 & 0xffffffffffffffffL); - uint64_t x58, uint8_t x59 = addcarryx_u64(x55, x28, x56); - uint64_t x60 = (x39 & 0xffffffffffffffffL); - uint64_t x62, uint8_t x63 = addcarryx_u64(x59, x31, x60); - uint64_t x64 = (x39 & 0xffffffffffffffffL); - uint64_t x66, uint8_t x67 = addcarryx_u64(x63, x34, x64); - uint64_t x68 = (x39 & 0xfe14ffffffffffffL); - uint64_t x70, uint8_t _ = addcarryx_u64(x67, x37, x68); - (Return x70, Return x66, Return x62, Return x58, Return x54, Return x50, Return x46, Return x42)) -x - : word64 * word64 * word64 * word64 * word64 * word64 * word64 * word64 → ReturnType (uint64_t * uint64_t * uint64_t * uint64_t * uint64_t * uint64_t * uint64_t * uint64_t) diff --git a/src/Specific/montgomery64_2e512m491x2e496m1/feoppDisplay.v b/src/Specific/montgomery64_2e512m491x2e496m1/feoppDisplay.v deleted file mode 100644 index d23a288f8..000000000 --- a/src/Specific/montgomery64_2e512m491x2e496m1/feoppDisplay.v +++ /dev/null @@ -1,4 +0,0 @@ -Require Import Crypto.Specific.montgomery64_2e512m491x2e496m1.feopp. -Require Import Crypto.Specific.Framework.IntegrationTestDisplayCommon. - -Check display opp. diff --git a/src/Specific/montgomery64_2e512m491x2e496m1/fesquare.c b/src/Specific/montgomery64_2e512m491x2e496m1/fesquare.c deleted file mode 100644 index 7bd8db166..000000000 --- a/src/Specific/montgomery64_2e512m491x2e496m1/fesquare.c +++ /dev/null @@ -1,5 +0,0 @@ -/* WARNING: This file was copied from Specific/CurveParameters/montgomery64/fesquare.c. - If you edit it here, changes will be erased the next time remake_curves.sh is run. */ -static void fesquare(uint64_t *out, const uint64_t *in) { - femul(out, in, in); -} diff --git a/src/Specific/montgomery64_2e512m491x2e496m1/fesub.v b/src/Specific/montgomery64_2e512m491x2e496m1/fesub.v deleted file mode 100644 index e7f6b2120..000000000 --- a/src/Specific/montgomery64_2e512m491x2e496m1/fesub.v +++ /dev/null @@ -1,14 +0,0 @@ -Require Import Crypto.Arithmetic.PrimeFieldTheorems. -Require Import Crypto.Specific.montgomery64_2e512m491x2e496m1.Synthesis. - -(* TODO : change this to field once field isomorphism happens *) -Definition sub : - { sub : feBW_small -> feBW_small -> feBW_small - | forall a b, phiM_small (sub a b) = F.sub (phiM_small a) (phiM_small b) }. -Proof. - Set Ltac Profiling. - Time synthesize_sub (). - Show Ltac Profile. -Time Defined. - -Print Assumptions sub. diff --git a/src/Specific/montgomery64_2e512m491x2e496m1/fesubDisplay.v b/src/Specific/montgomery64_2e512m491x2e496m1/fesubDisplay.v deleted file mode 100644 index b50de8989..000000000 --- a/src/Specific/montgomery64_2e512m491x2e496m1/fesubDisplay.v +++ /dev/null @@ -1,4 +0,0 @@ -Require Import Crypto.Specific.montgomery64_2e512m491x2e496m1.fesub. -Require Import Crypto.Specific.Framework.IntegrationTestDisplayCommon. - -Check display sub. diff --git a/src/Specific/montgomery64_2e512m491x2e496m1/py_interpreter.sh b/src/Specific/montgomery64_2e512m491x2e496m1/py_interpreter.sh deleted file mode 100755 index bb934a309..000000000 --- a/src/Specific/montgomery64_2e512m491x2e496m1/py_interpreter.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/sh -set -eu - -/usr/bin/env python3 "$@" -Dq='2**512 - 491*2**496 - 1' -Dmodulus_bytes='64' -Da24='121665' -- cgit v1.2.3