A coefficient bound for polynomial multiplication
ProvedThreeSum1960614.Machine.ThreeSum.Karatsuba.product_coeff_bound3sum-1960614algorithmsformal-verification
Let integer lists have length at most and coefficient bound . Every coefficient of their polynomial product satisfies
This coefficient estimate supplies a safe word bound for the concrete Karatsuba product and its intermediate arrays.
Preamble
import Definitions.Def_ThreeSum1960614_Machine_Bundle003 import Definitions.Def_ThreeSum1962Source_Bundle01 import Lean import Lean.Elab.Tactic.Omega import Mathlib.Algebra.Order.BigOperators.Group.Finset import Mathlib.Algebra.Polynomial.Basic import Mathlib.Algebra.Polynomial.Coeff import Mathlib.Data.List.GetD import Mathlib.Tactic.Linarith import Mathlib.Tactic.NormNum import Mathlib.Tactic.Positivity import Mathlib.Tactic.Ring namespace Polynomial end Polynomial namespace ThreeSum end ThreeSum namespace ThreeSum.Karatsuba end ThreeSum.Karatsuba namespace ThreeSum1960614.Machine.ThreeSum end ThreeSum1960614.Machine.ThreeSum namespace ThreeSum1960614.Machine.ThreeSum.Karatsuba end ThreeSum1960614.Machine.ThreeSum.Karatsuba open _root_.ThreeSum open _root_.ThreeSum1960614.Machine.ThreeSum open _root_.ThreeSum.Karatsuba open _root_.ThreeSum1960614.Machine.ThreeSum.Karatsuba open _root_.Polynomial open scoped _root_.BigOperators
Formal statement
theorem ThreeSum1960614.Machine.ThreeSum.Karatsuba.product_coeff_bound {as bs : List ℤ} {n : ℕ} {U : ℤ}
(ha : as.length ≤ n) (hb : bs.length ≤ n)
(hA : _root_.ThreeSum1960614.Machine.ThreeSum.Karatsuba.CoeffBound as U) (hB : _root_.ThreeSum1960614.Machine.ThreeSum.Karatsuba.CoeffBound bs U) (j : ℕ) :
|(_root_.ThreeSum.Karatsuba.asPolynomial as * _root_.ThreeSum.Karatsuba.asPolynomial bs).coeff j| ≤ 2 * (n : ℤ) * U ^ 2 := by sorrySource