aboutsummaryrefslogtreecommitdiff
path: root/src/Specific
diff options
context:
space:
mode:
authorGravatar jadep <jade.philipoom@gmail.com>2017-06-15 00:47:43 -0400
committerGravatar jadep <jade.philipoom@gmail.com>2017-06-15 00:47:43 -0400
commit129c6b71a2301d56dd1e3ffe798f4609ae1a0bf8 (patch)
treecf89ac8ec67ab96e1a02870374fe146d7e4bda44 /src/Specific
parent06b27173813d76d1459e1ff43c3b09625994ff9b (diff)
fix wrong number of limbs
Diffstat (limited to 'src/Specific')
-rw-r--r--src/Specific/Karatsuba.v8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Specific/Karatsuba.v b/src/Specific/Karatsuba.v
index e7bd35424..01be5a0c4 100644
--- a/src/Specific/Karatsuba.v
+++ b/src/Specific/Karatsuba.v
@@ -215,9 +215,9 @@ Ltac basesystem_partial_evaluation_RHS :=
[ replace_with_vm_compute t1; clear t1 | reflexivity ].
Print id_tuple_with_alt.
Definition goldilocks_mul_sig :
- {mul : (Z^sz -> Z^sz -> Z^(sz2))%type |
+ {mul : (Z^sz -> Z^sz -> Z^sz)%type |
forall a b : Z^sz,
- mul a b = goldilocks_mul_cps (n:=half_sz) (n2:=sz) wt (2 ^ 224) a b (fun ab => Positional.reduce_cps (n:=sz2) wt s c ab id)}.
+ mul a b = goldilocks_mul_cps (n:=half_sz) (n2:=sz) wt (2 ^ 224) a b (fun ab => Positional.reduce_cps (n:=sz) wt s c ab id)}.
Proof.
eexists; cbv beta zeta; intros.
cbv [goldilocks_mul_cps].
@@ -228,7 +228,7 @@ Ltac basesystem_partial_evaluation_RHS :=
Defined.
Definition mul_sig :
- {mul : (Z^sz -> Z^sz -> Z^sz2)%type |
+ {mul : (Z^sz -> Z^sz -> Z^sz)%type |
forall a b : Z^sz,
let eval := Positional.Fdecode (m := m) wt in
Positional.Fdecode (m := m) wt (mul a b) = (eval a * eval b)%F}.
@@ -236,7 +236,7 @@ Ltac basesystem_partial_evaluation_RHS :=
eexists; cbv beta zeta; intros.
pose proof wt_nonzero.
let x := constr:(
- goldilocks_mul_cps (n:=half_sz) (n2:=sz) wt (2^224) a b (fun ab => Positional.reduce_cps (n:=sz2) wt s c ab id)) in
+ goldilocks_mul_cps (n:=half_sz) (n2:=sz) wt (2^224) a b (fun ab => Positional.reduce_cps (n:=sz) wt s c ab id)) in
F_mod_eq;
transitivity (Positional.eval wt x); repeat autounfold;