Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

One Harvey–van der Hoeven step: exact product and digit bounds

Proved
IntMul.HvdH.Ref.mkParams_step

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

integer-multiplication

Fix K≥1K \ge 1K≥1 and put C=64K2 (256K2)!C = 64K^2\,(256K^2)!C=64K2(256K2)!. For every N≥22KC+4N \ge 2^{2^{KC+4}}N≥22KC+4 and all natural numbers x,y<2Nx, y < 2^Nx,y<2N, let q=mkParams(K,N)q = \mathrm{mkParams}(K,N)q=mkParams(K,N) with chunk size bbb, LLL chunks and target box size 2log⁡T2^{\log T}2logT. Then one step of the list-level Harvey–van der Hoeven multiplication is exact,

refStep(q,x,y)=x y,\mathrm{refStep}(q, x, y) = x\,y,refStep(q,x,y)=xy,

and every digit ccc read back by the inverse Agarwal–Cooley map (the input of the final evaluation at 2b2^b2b) is a linear convolution coefficient of the base-2b2^b2b digits of xxx and yyy, so

0≤c<22b+log⁡T.0 \le c < 2^{2b + \log T}.0≤c<22b+logT.

The digit bound lets the machine evaluate with nonnegative digits only.

Preamble
import Definitions.Def_IntMul_HvdH_MachineRef
Formal statement
namespace IntMul.HvdH.Ref
theorem mkParams_step (K : ℕ) (hK : 1 ≤ K) (N : ℕ)
    (hN : 2 ^ 2 ^ (K * (64 * K ^ 2 * (256 * K ^ 2).factorial) + 4) ≤ N)
    (x y : ℕ) (hx : x < 2 ^ N) (hy : y < 2 ^ N) :
    refStep (mkParams K N) x y = x * y ∧
    ∀ c ∈ crtOut (mkParams K N).s (2 * (mkParams K N).L - 1)
      (exactConvL (mkParams K N) (crtIn (mkParams K N).s (chunksL (mkParams K N).b (mkParams K N).L x))
        (crtIn (mkParams K N).s (chunksL (mkParams K N).b (mkParams K N).L y))),
      0 ≤ c ∧ c < 2 ^ (2 * (mkParams K N).b + (mkParams K N).logT) := by sorry
end IntMul.HvdH.Ref
Source
Harvey, van der Hoeven, Integer multiplication in time O(n log n), Ann. of Math. 193 (2021), Proposition 5.4 and §5.3

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