Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Corollary 5.5 — T(n)<1728d−1/2T(3rp)+O(1)\mathsf T(n)<\frac{1728}{d-1/2}\mathsf T(3rp)+O(1)T(n)<d−1/21728​T(3rp)+O(1) for the recursive multiplication algorithm

Open
IntMul.HvdH.corollary_5_5

by avi · Oct 9, 2026 · Mathlib 0df444a (Lean v4.33.1)

complexity-theoryinteger-multiplication

Corollary 5.5 of Harvey–van der Hoeven. Fix a dimension parameter d≥2d\ge2d≥2 and put n0=2d12n_0=2^{d^{12}}n0​=2d12. For n≥n0n\ge n_0n≥n0​, the parameters of §5.1 are:

  • b=⌈log⁡2n⌉b=\lceil\log_2 n\rceilb=⌈log2​n⌉ and p=6bp=6bp=6b;
  • TTT, the unique power of two with 4n/b≤T<8n/b4n/b\le T<8n/b4n/b≤T<8n/b;
  • rrr, the unique power of two with T1/d≤r<2T1/dT^{1/d}\le r<2T^{1/d}T1/d≤r<2T1/d.

There is a deterministic multitape Turing machine MMM, correct on all nnn-bit inputs for every n≥1n\ge1n≥1, with worst-case running time M(n)\mathsf M(n)M(n), and a constant AAA, such that for every n≥n0n\ge n_0n≥n0​, with T(n):=M(n)/(nlog⁡n)\mathsf T(n):=\mathsf M(n)/(n\log n)T(n):=M(n)/(nlogn),

T(n)<1728d−12 T(3rp)+A.\mathsf T(n)<\frac{1728}{d-\frac12}\,\mathsf T(3rp)+A .T(n)<d−21​1728​T(3rp)+A.

Here log⁡\loglog is the natural logarithm. Taking d=1729d=1729d=1729, the factor is below 0.99980.99980.9998, and an induction on nnn then gives T(n)=O(1)\mathsf T(n)=O(1)T(n)=O(1), that is, Theorem 1.1, M(n)=O(nlog⁡n)\mathsf M(n)=O(n\log n)M(n)=O(nlogn). In the paper this corollary follows from Proposition 5.4, M(n)<12TrM(3rp)+O(nlog⁡n)\mathsf M(n)<\frac{12T}{r}\mathsf M(3rp)+O(n\log n)M(n)<r12T​M(3rp)+O(nlogn), the recursive step of the algorithm.

Formalization Note The machine model is IntMul_MultitapeModel. M(n)\mathsf M(n)M(n) is inf⁡{τ:MultipliesAt(M,n,τ)}\inf\{\tau:\mathrm{MultipliesAt}(M,n,\tau)\}inf{τ:MultipliesAt(M,n,τ)}, which is exactly MMM's worst-case halting time on pairs of nnn-bit inputs. The parameters b,p,T,rb,p,T,rb,p,T,r are universally quantified under their defining conditions, and these conditions determine them uniquely. The paper's M\mathsf MM is the running time of its specific algorithm. The statement asserts the existence of a correct machine satisfying the recurrence, which is what the paper establishes for that algorithm.

Preamble
import Mathlib
import Definitions.Def_IntMul_MultitapeModel
Formal statement
namespace IntMul.HvdH

theorem corollary_5_5 (d : ℕ) (hd : 2 ≤ d) :
    ∃ M : MultitapeTM, (∀ n : ℕ, 1 ≤ n → ∃ τ : ℝ, MultipliesAt M n τ) ∧
      ∃ A : ℝ, ∀ n : ℕ, 2 ^ (d ^ 12) ≤ n →
        ∀ b p T r : ℕ, b = Nat.clog 2 n → p = 6 * b →
          (∃ k : ℕ, T = 2 ^ k) → 4 * (n : ℝ) / b ≤ T → (T : ℝ) < 8 * (n : ℝ) / b →
          (∃ j : ℕ, r = 2 ^ j) → (T : ℝ) ^ ((1 : ℝ) / d) ≤ r → (r : ℝ) < 2 * (T : ℝ) ^ ((1 : ℝ) / d) →
          sInf {τ : ℝ | MultipliesAt M n τ} / ((n : ℝ) * Real.log n) <
            1728 / ((d : ℝ) - 1 / 2) *
              (sInf {τ : ℝ | MultipliesAt M (3 * r * p) τ} /
                (((3 * r * p : ℕ) : ℝ) * Real.log ((3 * r * p : ℕ) : ℝ))) + A := by sorry

end IntMul.HvdH
Source
D. Harvey, J. van der Hoeven, Integer multiplication in time O(n log n), Ann. of Math. 193 (2021), https://doi.org/10.4007/annals.2021.193.2.4 (preprint https://hal.science/hal-02070778v2), Corollary 5.5, p. 41; parameters from §5 (n0 = 2^{d^12}), (5.1) b, (5.2) p, (5.6) T, (5.7) r, pp. 36-37

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