aboutsummaryrefslogtreecommitdiff
path: root/src/SpecificGen/GF25519_64Reflective/CommonUnOpFEToWire.v
diff options
context:
space:
mode:
Diffstat (limited to 'src/SpecificGen/GF25519_64Reflective/CommonUnOpFEToWire.v')
-rw-r--r--src/SpecificGen/GF25519_64Reflective/CommonUnOpFEToWire.v43
1 files changed, 0 insertions, 43 deletions
diff --git a/src/SpecificGen/GF25519_64Reflective/CommonUnOpFEToWire.v b/src/SpecificGen/GF25519_64Reflective/CommonUnOpFEToWire.v
deleted file mode 100644
index f1f30d64c..000000000
--- a/src/SpecificGen/GF25519_64Reflective/CommonUnOpFEToWire.v
+++ /dev/null
@@ -1,43 +0,0 @@
-Require Export Crypto.SpecificGen.GF25519_64Reflective.Common.
-Require Import Crypto.SpecificGen.GF25519_64BoundedCommon.
-Require Import Crypto.Reflection.Z.Interpretations128.
-Require Import Crypto.Reflection.Syntax.
-Require Import Crypto.Reflection.SmartMap.
-Require Import Crypto.Util.Tactics.
-
-Local Opaque Interp.
-Lemma ExprUnOpFEToWire_correct_and_bounded
- ropW op (ropZ_sig : rexpr_unop_FEToWire_sig op)
- (Hbounds : correct_and_bounded_genT ropW ropZ_sig)
- (H0 : forall x
- (x := eta_fe25519_64W x)
- (Hx : is_bounded (fe25519_64WToZ x) = true),
- let args := unop_args_to_bounded x Hx in
- match LiftOption.of'
- (Interp (@BoundedWordW.interp_op) ropW
- (LiftOption.to' (Some args)))
- with
- | Some _ => True
- | None => False
- end)
- (H1 : forall x
- (x := eta_fe25519_64W x)
- (Hx : is_bounded (fe25519_64WToZ x) = true),
- let args := unop_args_to_bounded x Hx in
- let x' := SmartVarfMap (fun _ : base_type => BoundedWordW.BoundedWordToBounds) args in
- match LiftOption.of'
- (Interp (@ZBounds.interp_op) ropW (LiftOption.to' (Some x')))
- with
- | Some bounds => unopFEToWire_bounds_good bounds = true
- | None => False
- end)
- : unop_FEToWire_correct_and_bounded ropW op.
-Proof.
- intros x Hx.
- pose x as x'.
- hnf in x; destruct_head' prod.
- specialize (H0 x' Hx).
- specialize (H1 x' Hx).
- let args := constr:(unop_args_to_bounded x' Hx) in
- t_correct_and_bounded ropZ_sig Hbounds H0 H1 args.
-Qed.