aboutsummaryrefslogtreecommitdiff
path: root/src/Specific/solinas64_2e285m9_5limbs/fesquare.v
diff options
context:
space:
mode:
Diffstat (limited to 'src/Specific/solinas64_2e285m9_5limbs/fesquare.v')
-rw-r--r--src/Specific/solinas64_2e285m9_5limbs/fesquare.v14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/Specific/solinas64_2e285m9_5limbs/fesquare.v b/src/Specific/solinas64_2e285m9_5limbs/fesquare.v
new file mode 100644
index 000000000..e461ab98a
--- /dev/null
+++ b/src/Specific/solinas64_2e285m9_5limbs/fesquare.v
@@ -0,0 +1,14 @@
+Require Import Crypto.Arithmetic.PrimeFieldTheorems.
+Require Import Crypto.Specific.solinas64_2e285m9_5limbs.Synthesis.
+
+(* TODO : change this to field once field isomorphism happens *)
+Definition square :
+ { square : feBW_loose -> feBW_tight
+ | forall a, phiBW_tight (square a) = F.mul (phiBW_loose a) (phiBW_loose a) }.
+Proof.
+ Set Ltac Profiling.
+ Time synthesize_square ().
+ Show Ltac Profile.
+Time Defined.
+
+Print Assumptions square.