Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Fixed-point Bluestein reduction with an arbitrary convolution oracle

Proved
IntMul.HvdH.bluestein_fp

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

integer-multiplication

Let rrr be even, ti=2eit_i=2^{e_i}ti​=2ei​ with 2≤ti∣r2\le t_i\mid r2≤ti​∣r for i<di<di<d, and consider arrays on the box t1×⋯×td×rt_1\times\cdots\times t_d\times rt1​×⋯×td​×r in fixed point at precision ppp. Let MMM be any map on fixed-point arrays such that, for inputs U,VU,VU,V in the disc of radius 2p2^p2p on the box, M(U,V)M(U,V)M(U,V) lies in the disc on the box and

∣M(U,V)j−2p 1T(u∗v)j∣≤δ(u=2−pU, v=2−pV),\bigl|M(U,V)_j-2^p\,\tfrac1T(u*v)_j\bigr|\le\delta\qquad(u=2^{-p}U,\ v=2^{-p}V),​M(U,V)j​−2pT1​(u∗v)j​​≤δ(u=2−pU, v=2−pV),

where T=r∏itiT=r\prod_it_iT=r∏i​ti​ and ∗*∗ is the cyclic convolution convC. Let AAA be a fixed-point chirp table in the disc with ∣Ax−2pax∣≤εa|A_x-2^p a_x|\le\varepsilon_a∣Ax​−2pax​∣≤εa​ on the box, where ax=e2πiηx/(2r)a_x=e^{2\pi i\eta_x/(2r)}ax​=e2πiηx​/(2r) and ηx=∑irtixi2+xd+12\eta_x=\sum_i\frac{r}{t_i}x_i^2+x_{d+1}^2ηx​=∑i​ti​r​xi2​+xd+12​ (chirpIdx). Then Bluestein's algorithm j↦mulZ(Aj‾, M(A‾⋅U, A)j)j\mapsto \mathrm{mulZ}\bigl(\overline{A_j},\,M(\overline A\cdot U,\,A)_j\bigr)j↦mulZ(Aj​​,M(A⋅U,A)j​) stays in the disc on the box and approximates the normalised DFT:

∣u^~j−2p u^j∣≤δ+3εa+3.\bigl|\widetilde{\hat u}_j-2^p\,\hat u_j\bigr|\le\delta+3\varepsilon_a+3 .​u^j​−2pu^j​​≤δ+3εa​+3.

This separates Theorem 3.1 of Harvey–van der Hoeven from the way the convolution is computed. Any convolution routine (for example an exact one over a Fermat ring followed by a single rounding) and any chirp table can be plugged in.

Preamble
import Definitions.Def_IntMul_HvdH_ConvC
Formal statement
namespace IntMul.HvdH
theorem bluestein_fp {d : ℕ} (p r : ℕ) (e : Fin d → ℕ) (hr : 1 ≤ r) (hr2 : Even r)
    (he1 : ∀ i, 1 ≤ e i) (he : ∀ i, 2 ^ e i ∣ r)
    (M : ((Fin (d + 1) → ℕ) → ℤ × ℤ) → ((Fin (d + 1) → ℕ) → ℤ × ℤ) → (Fin (d + 1) → ℕ) → ℤ × ℤ)
    (δ : ℝ)
    (hM : ∀ U V : (Fin (d + 1) → ℕ) → ℤ × ℤ,
      (∀ x : Fin (d + 1) → ℕ, (∀ i : Fin d, x i.castSucc < 2 ^ e i) → x (Fin.last d) < r →
        ‖gC (U x)‖ ≤ 2 ^ p) →
      (∀ x : Fin (d + 1) → ℕ, (∀ i : Fin d, x i.castSucc < 2 ^ e i) → x (Fin.last d) < r →
        ‖gC (V x)‖ ≤ 2 ^ p) →
      ∀ j : Fin (d + 1) → ℕ, (∀ i : Fin d, j i.castSucc < 2 ^ e i) → j (Fin.last d) < r →
        ‖gC (M U V j)‖ ≤ 2 ^ p ∧
        ‖gC (M U V j) - 2 ^ p *
          convC r e (fun x => gC (U x) / 2 ^ p) (fun x => gC (V x) / 2 ^ p) j‖ ≤ δ)
    (A : (Fin (d + 1) → ℕ) → ℤ × ℤ) (εa : ℝ)
    (hA : ∀ x : Fin (d + 1) → ℕ, (∀ i : Fin d, x i.castSucc < 2 ^ e i) → x (Fin.last d) < r →
      ‖gC (A x)‖ ≤ 2 ^ p ∧
      ‖gC (A x) - 2 ^ p *
        Complex.exp (2 * Real.pi * Complex.I * (chirpIdx r e x : ℂ) / ((2 * r : ℕ) : ℂ))‖ ≤ εa)
    (U : (Fin (d + 1) → ℕ) → ℤ × ℤ)
    (hU : ∀ x : Fin (d + 1) → ℕ, (∀ i : Fin d, x i.castSucc < 2 ^ e i) → x (Fin.last d) < r →
      ‖gC (U x)‖ ≤ 2 ^ p) :
    ∀ j : Fin (d + 1) → ℕ, (∀ i : Fin d, j i.castSucc < 2 ^ e i) → j (Fin.last d) < r →
      ‖gC (mulZ p (conjZ (A j)) (M (fun k => mulZ p (conjZ (A k)) (U k)) A j))‖ ≤ 2 ^ p ∧
      ‖gC (mulZ p (conjZ (A j)) (M (fun k => mulZ p (conjZ (A k)) (U k)) A j)) -
        2 ^ p * dftC r e (fun x => gC (U x) / 2 ^ p) j‖ ≤ δ + 3 * εa + 3 := 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, proof of Theorem 3.1

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