Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Source lengths of mkParams are pairwise coprime and sit in the window

Proved
IntMul.HvdH.Ref.mkParams_s_spec

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, the source lengths s0,…,sK−1s_0,\dots,s_{K-1}s0​,…,sK−1​ of q=mkParams(K,N)q = \mathrm{mkParams}(K,N)q=mkParams(K,N) form a list of length KKK of pairwise coprime positive integers, and each satisfies

4K−24K 2ti<si≤4K−14K 2ti,\frac{4K-2}{4K}\,2^{t_i} < s_i \le \frac{4K-1}{4K}\,2^{t_i},4K4K−2​2ti​<si​≤4K4K−1​2ti​,

where 2ti2^{t_i}2ti​ is the corresponding target length.

Preamble
import Definitions.Def_IntMul_HvdH_MachineRef
Formal statement
namespace IntMul.HvdH.Ref
theorem mkParams_s_spec (K : ℕ) (hK : 1 ≤ K) (N : ℕ)
    (hN : 2 ^ 2 ^ (K * (64 * K ^ 2 * (256 * K ^ 2).factorial) + 4) ≤ N) :
    (mkParams K N).s.length = K ∧ (mkParams K N).s.Pairwise Nat.Coprime ∧
    (∀ x ∈ (mkParams K N).s, 0 < x) ∧
    ∀ i < K, (4 * K - 2) * 2 ^ (mkParams K N).te i < 4 * K * (mkParams K N).s.getD i 1 ∧
      4 * K * (mkParams K N).s.getD i 1 ≤ (4 * K - 1) * 2 ^ (mkParams K N).te i := by sorry
end IntMul.HvdH.Ref
Source
Harvey, van der Hoeven, Integer multiplication in time O(n log n), Ann. of Math. 193 (2021), Lemma 5.1 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