Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Error of the fixed-point complex product

Proved
IntMul.HvdH.mulZ_err

by xuanji · Oct 12, 2026 · Mathlib 0df444a (Lean v4.33.1)

integer-multiplication

Let a,b∈Z[i]a,b\in\mathbb Z[i]a,b∈Z[i] with ∣a∣≤2p|a|\le 2^p∣a∣≤2p, and let x,y∈Cx,y\in\mathbb Cx,y∈C with ∣y∣≤1|y|\le1∣y∣≤1. The fixed-point product mulZp(a,b)=ρ0(ab/2p)\mathrm{mulZ}_p(a,b)=\rho_0(ab/2^p)mulZp​(a,b)=ρ0​(ab/2p) (both parts rounded towards zero) approximates 2p xy2^p\,xy2pxy with

∣mulZp(a,b)−2p xy∣≤∣a−2px∣+∣b−2py∣+2.\bigl|\mathrm{mulZ}_p(a,b)-2^p\,xy\bigr|\le |a-2^p x|+|b-2^p y|+\sqrt2 .​mulZp​(a,b)−2pxy​≤∣a−2px∣+∣b−2py∣+2​.

This is the fixed-point multiplication error estimate (Lemma 2.4 and Corollary 2.10 of Harvey–van der Hoeven) in the form used for twiddle factors, chirps and pointwise products.

Preamble
import Definitions.Def_IntMul_HvdH_ConvC
Formal statement
namespace IntMul.HvdH
theorem mulZ_err (p : ℕ) (a b : ℤ × ℤ) (x y : ℂ) (ha : ‖gC a‖ ≤ 2 ^ p) (hy : ‖y‖ ≤ 1) :
    ‖gC (mulZ p a b) - 2 ^ p * (x * y)‖ ≤
      ‖gC a - 2 ^ p * x‖ + ‖gC b - 2 ^ p * y‖ + Real.sqrt 2 := by sorry
end IntMul.HvdH
Source
Harvey, van der Hoeven, Integer multiplication in time O(n log n), Annals of Math. 193 (2021), https://hal.science/hal-02070778, Lemma 2.4, Corollary 2.10

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me