Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Magnitude bounds for all intermediate lists of the HvdH reference step

Proved
NLogN.BD.refStep_LB_mkParams

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

harvey-van-der-hoeven-tminteger-multiplicationturing-machines

Let K≥20K \ge 20K≥20, N≥228K+1N \ge 2^{2^{8K}+1}N≥228K+1, q=mkParams(K,N)q = \mathrm{mkParams}(K,N)q=mkParams(K,N) and x,y∈Nx, y\in\mathbb Nx,y∈N. There is an explicit bound Bq=2max⁡(2p,BW) cSKB_q = 2\max(2^p, B_W)\,c_S^KBq​=2max(2p,BW​)cSK​ with Bq<2PB_q < 2^PBq​<2P and size(Bq)≤p+⌊p/8⌋\mathrm{size}(B_q) \le p + \lfloor p/8\rfloorsize(Bq​)≤p+⌊p/8⌋ such that every intermediate list of refStep q x y has all (real and imaginary) entries bounded by BqB_qBq​ in absolute value: (a) the CRT digit vectors rU q x, rU q y and their scaled complex versions ecU; (b) every stage of the Gaussian-resampling (S~\tilde SS~) passes of the three forward transforms (inputs UUU, VVV and the pointwise product WWW) and every stage of the B~\tilde BB~ passes; (c) the inputs of the Fermat convolution and the chirp table chirpL q; (d) every convL and FtL output (and every fermatW output is bounded by 2P2^P2P); (e) the products WWW, YYY; (f) the output of exactConvL and the crtOut digits.

Formalization Note. LB L B (resp. LBz) says every pair (resp. integer) in the list has absolute values ≤B\le B≤B; tensorGo (axs.take k) dims is the list after the first kkk axis passes. All list functions (refStep, fwdL, FtL, convL, fermatW, exactConvL, crtIn/crtOut, tensorGo) are those of the published Def_IntMul_HvdH_MachineRef. These bounds size the registers of the machine implementation.

Preamble
-- Harvey–van der Hoeven multitape-TM development (NLogN), generated by skeleton subtraction.

import Definitions.Def_IntMul_HvdH_M_Defs4

set_option autoImplicit false
set_option relaxedAutoImplicit false
set_option maxHeartbeats 1000000

set_option linter.unusedSimpArgs false
open NLogN
open NLogN.BD
open IntMul.HvdH IntMul.HvdH.Ref NLogN.Asym
Formal statement
theorem NLogN.BD.refStep_LB_mkParams (K N : ℕ) (hK : 20 ≤ K) (hN : 2 ^ (2 ^ (8 * K) + 1) ≤ N)
    (x y : ℕ) :
    let q := mkParams K N
    Bq q < 2 ^ q.P ∧ Nat.size (Bq q) ≤ q.p + q.p / 8 ∧
    -- (a)
    LBz (rU q x) (Bq q) ∧ LBz (rU q y) (Bq q) ∧
    LB (ecU q (rU q x)) (Bq q) ∧ LB (ecU q (rU q y)) (Bq q) ∧
    -- (b) the `S̃` stages
    (∀ k, LB (tensorGo ((axS q).take k) q.sdims (ecU q (rU q x))) (Bq q)) ∧
    (∀ k, LB (tensorGo ((axS q).take k) q.sdims (ecU q (rU q y))) (Bq q)) ∧
    (∀ k, LB (tensorGo ((axS q).take k) q.sdims (ecW q (rU q x) (rU q y))) (Bq q)) ∧
    -- (c) the `fermatW` arguments
    LB (ftIn q (ecU q (rU q x))) (Bq q) ∧ LB (ftIn q (ecU q (rU q y))) (Bq q) ∧
    LB (ftIn q (ecW q (rU q x) (rU q y))) (Bq q) ∧ LB (chirpL q) (Bq q) ∧
    -- (d)
    (∀ X Y, LB (fermatW q X Y) (2 ^ q.P)) ∧ (∀ X Y, LB (convL q X Y) (Bq q)) ∧
    (∀ X, LB (FtL q X) (Bq q)) ∧
    -- (b) the `B̃` stages
    (∀ X k, LB (tensorGo ((axB q).take k) q.tdims (FtL q X)) (Bq q)) ∧
    (∀ X, LB (fwdL q X) (Bq q)) ∧
    -- (e)
    LB (ecW q (rU q x) (rU q y)) (Bq q) ∧ LB (ecY q (rU q x) (rU q y)) (Bq q) ∧
    -- (f)
    LBz (exactConvL q (rU q x) (rU q y)) (Bq q) ∧
    LBz (crtOut q.s (2 * q.L - 1) (exactConvL q (rU q x) (rU q y))) (Bq q) := by sorry
Source
D. Harvey, J. van der Hoeven, Integer multiplication in time O(n log n), Ann. of Math. 193 (2021), 563–617 (Theorem 1.1: multitape Turing machine multiplication in O(n log n)). Lemma `NLogN.BD.refStep_LB_mkParams` of the Lean development NLogN/HBd3.lean (lines 361–460), written for the prove2.me integer-multiplication campaign.

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