Constructive Dyadic Walsh-Hadamard Factorization, Arbitrary-k Mersenne-CRT Arithmetic, Exact Integer Newton Convergence, and Non-Asymptotic Tape-Barrier Certificates in Lean 4
Admitted after checks by named AI models and editor approval. Not peer reviewed. Screening record
We present a self-contained, zero-dependency Lean 4.36.0 formalization (36 top-level theorems, 1,660 lines, zero Mathlib imports, -DwarningAsError=true, zero sorry, zero native_decide) and an AST-audited zero-float verification suite for four foundational mathematical pillars underlying multi-tape integer multiplication architectures and entropy-barrier analyses: (1) arbitrary-depth L = 2^k dyadic Walsh-Hadamard involution, polarization, Parseval isometry, XOR-convolution, l1-energy and Donoho-Stark support uncertainty |supp(x)|*|supp(W_k x)| >= 2^k, exact rectangular M x N transposition range and involution, structural dyadic matrix transposition involution (A^T)^T = A, and both transpose-free and full transpose-based 2D Cooley-Tukey block factorizations; (2) constructive extended Euclidean algorithm extGcd, arbitrary-k pairwise-coprime CRT existence and uniqueness, sharp unsigned (M > (2^n - 1)^2) and balanced-signed integer (M > 2 B^2) product-recovery thresholds with explicit boundary collision witnesses, and the inductive Mersenne-GCD coprimality law gcd(2^a - 1, 2^b - 1) = 2^(gcd(a,b)) - 1; (3) total well-founded correctness of integer Newton isqrt, exact fixed-point stopping equivalence, linear halving, exact quadratic error contraction 2(r+d)(step(N,r+d)-r) <= d^2 + 2r, and the 2^k-order cleared-integer reciprocal residual law S_k - d x_k = (S - d x_0)^(2^k); and (4) the infinite alternating Pell-Lucas unpaid-entropy threshold hierarchy P_j^2 - 2 Q_j^2 = (-1)^(j+1) converging to 1 - 1/sqrt(2) (gap 1/1,070,379,110,497 < 10^-11 at j = 15, 16), exact discrete product-sum optimality F(m) = min_{kb >= m}(k+b) = ceil(2*sqrt(m)) with constructive minimizer (floor(s/2), ceil(s/2)), and genuine constructive non-asymptotic Theta(n sqrt(log2 n)) separation using Lean's Nat.log2 and verified ceilTwoSqrt. An AST-audited zero-float Python suite (4,832 AST nodes, 0 violations, 17 red-team test suites) independently cross-checks all four pillars up to L = 1024 WHT blocks, 4096-bit Mersenne-CRT products, and 4096-bit integer Newton roots. This work provides a machine-checked verification kernel for exact arithmetic and block-transform primitives and explicitly disclaims any unconditional multi-tape Turing-machine lower bound.
Structure & key results
Manuscript structure
- Introduction and Summary of v1 → v2 Revision
- Pillar 1: Arbitrary-Depth Dyadic Walsh–Hadamard Harmonic Analysis and 2D Block Factorization
- Pillar 2: Arbitrary-k Constructive CRT, Sharp Dynamic-Range Dichotomy, and Mersenne–GCD Law
- Pillar 3: Total Integer Newton isqrt Convergence and 2^k-Order Reciprocal Law
- Pillar 4: Pell–Lucas Unpaid-Entropy Hierarchy, Exact F(m) = ⌈ 2√m⌉, and Constructive Θ(n√(log₂ n)) Separation
- Lean 4.36.0 Formalization Ledger and Zero-Float Computational Verification
- Reproducibility and Conclusion
Selected results from the manuscript source
Theorem 1 — Arbitrary-Depth Dyadic WHT Algebra and Donoho–Stark Uncertainty
For every k ∈ N and all x, y ∈ DyadicVec(k): · Involution (wht_involution): WHT_k(WHT_k(x)) = 2^k · x. · Polarization & Parseval (wht_polarization, wht_parseval): ⟨ WHT_k(x), WHT_k(y)⟩ = 2^k ⟨ x, y⟩, ‖WHT_k(x)‖₂² = 2^k ‖x‖₂². · XOR-Convolution (wht_xor_convolution): WHT_k(x *_⊕ y) = WHT_k(x) odot WHT_k(y), where odot denotes pointwise (Hadamard) product. · ℓ₁-Energy and Donoho–Stark Uncertainty (wht_l1_energy_uncertainty, wht_donoho_stark_uncertainty): ‖x‖₁ · ‖WHT_k(x)‖₁ ≥ 2^k ‖x‖₂², and whenever ‖x‖₂² > 0 (equivalently x ≠ 0), |supp(x)| · |supp(WHT_k(x))| ≥ 2^k.
Theorem 2 — Rectangular Transposition, Structural Dyadic Transposition, and 2D Cooley–Tukey Factorization
· Rectangular Transposition (rectTranspose_involution): For any M, N ≥ 1 and i < M N, let τ_(M,N)(i) = (i mod N) · M + ⌊ i / N⌋. Then τ_(M,N)(i) < N M and τ_(N,M)(τ_(M,N)(i)) = i. · Structural Dyadic Transposition & 2D Cooley–Tukey Factorization (DyadicMat.wht_block_factorization, DyadicMat.transpose_involution, DyadicMat.wht_transpose_factorization): Represent a 2^a × 2^b matrix as a depth-a row tree DyadicMat(a, b) whose leaves are depth-b row vectors DyadicVec(b), with row-major flattening flat: DyadicMat(a,b) → DyadicVec(b+a) given by flat(rowLeaf(v)) = v and…
Theorem 3 — Arbitrary-k Constructive CRT Existence and Uniqueness
Let extGcd(a, b) be the well-founded extended Euclidean algorithm returning (u, v) ∈ Z² via extGcd(0, b) = (0, 1) and, for a > 0, extGcd(a, b) = (v' - ⌊ b/a⌋ u', u') where (u', v') = extGcd(b mod a, a). Then: · Constructive Bézout Identity (extGcd_bezout): For all a, b ∈ N, a u + b v = gcd(a, b) in Z. · Arbitrary-k Existence and Canonical Range (crtReconstruct_sound): For any finite list of pairs [(m₁, r₁), …, (m_k, r_k)] with every m_i > 0 and gcd(m_i, m_j) = 1 for i ≠ j, the recursively constructed integer X = crtReconstruct([(m_i, r_i)]) satisfies 0 ≤ X < M = ∏_(i=1)^k…
Theorem 4 — Sharp Unsigned and Balanced-Signed Product Dynamic-Range Dichotomy
· Unsigned threshold (unsigned_product_range_sharp, unsigned_product_boundary_collision): For all n ≥ 1 and 0 ≤ a, b < 2ⁿ, if M > (2ⁿ - 1)² then 0 ≤ ab < M, so ab is uniquely recovered from its residues modulo M. Conversely, at the critical modulus M = (2ⁿ - 1)², the valid inputs a = b = 2ⁿ - 1 satisfy a² ≡ 0 (mod M) while a² ≠ 0. · Balanced-signed threshold (signed_product_unique_iff, signed_product_boundary_collision): For all B, M ∈ N and all integers a, b, a', b' ∈ Z with |a|,|b|,|a'|,|b'| ≤ B, if M > 2B² and M | (ab - a'b'), then ab = a'b'.
Theorem 5 — Inductive Mersenne–GCD Coprimality Law
For all a, b ∈ N (mersenne_gcd, mersenne_coprime_of_coprime), gcd(2^a - 1, 2^b - 1) = 2^(gcd(a,b)) - 1. In particular, whenever gcd(a,b) = 1, the Mersenne moduli 2^a - 1 and 2^b - 1 are coprime, so any set of distinct primes (or pairwise-coprime exponents) p₁, …, p_k automatically yields a pairwise-coprime Mersenne CRT basis 2^(p₁)-1, …, 2^(p_k)-1 with hardware-friendly bit-shift reduction.
Theorem 6 — Total Correctness and Exact Quadratic Contraction of Integer Newton isqrt
Let N ≥ 1 and let r ∈ N denote the exact integer square root (r² ≤ N < (r+1)²). · Lower invariant (newtonStep_ge_isqrt): For every s ≥ 1, step(N, s) ≥ r. · Exact stopping equivalence and strict descent (newtonStep_ge_self_iff, newtonStep_lt_self): For every s ≥ 1, step(N, s) ≥ s ⇔ s² ≤ N; in particular, N < s² implies step(N, s) < s. · Total well-founded correctness (newtonIsqrt_correct): Define newtonIsqrtAux(N, s) recursively by returning s if step(N,s) ≥ s and recursing on step(N,s) otherwise (terminating by strict decrease of s), and set newtonIsqrt(0) = 0…
Key contributions noted in exact-version screening
- Complete, zero-dependency Lean 4.36.0 formalization of 36 universally quantified theorems across 1,660 lines, live-verified with -DwarningAsError=true and AuditAxioms.lean (3 {propext}, 24 {propext, Quot.sound}, 9 {propext, Classical.choice, Quot.sound}, 0 sorryAx, 0 ofReduceBool, 0 trustCompiler).
- Round-1 Theorem 2.4(b) gap completely closed via formal DyadicMat.transpose, transpose_involution, whtCols_eq_transpose_mapRows, and wht_transpose_factorization, with aligned proof in the PDF and aligned wht_block_2d in verify_v2.py.
- Explicit, honest epistemic scope boundary in Section 1.1 and Table 1 cleanly separating machine-checked kernels from open complexity-theoretic separations.
Excerpted from published exact-version model assessment reports (not peer review). Full reports below →
Preview PDF on this page v2
Uses your browser's PDF viewer. Open the PDF directly if a preview is unavailable.
Full manuscript text in HTML (6,051 words — searchable plain text)
--- Page 1 --- Constructive Dyadic Walsh–Hadamard Factorization, Arbitrary-k Mersenne–CRT Arithmetic, Exact Integer Newton Convergence, and Non-Asymptotic Tape-Barrier Certificates in Lean 4 Major Revision (v2) of ARR-2026-6W84HHWBAA927T02 Lluis Eriksson Independent Researcher, Östersund, Sweden editor@airr.science December 2026 Abstract We present a self-contained, zero-dependency Lean 4.36.0 formalization and exact zerofloat computational verification suite for four foundational mathematical pillars underlying multi-tape integer multiplication architectures and entropy-barrier analyses: 1. Arbitrary-depth dyadic Walsh–Hadamard harmonic analysis and 2D block factorization: Over exact integer trees DyadicVec(k) ∼= Z2k for all k ∈N, we prove the involution Wk(Wk(x)) = 2kx, polarization and Parseval isometry ∥Wk(x)∥2 2 = 2k∥x∥2 2, the dyadic XOR-convolution theorem Wk(x ∗⊕y) = Wk(x) ⊙Wk(y), the ℓ1-energy and Donoho–Stark support uncertainty principle | supp(x)|·| supp(Wk(x))| ≥2k, exact rectangular M × N transposition range and involution, structural dyadic matrix transposition involution (AT)T = A, and both the transpose-free and full transpose-based 2D Cooley– Tukey factorizations Wb+a(flat(A)) = flat (( Wrows((Wrows(A))T) )T) . 2. Arbitrary-k constructive Chinese Remainder Theorem, sharp dynamic-range dichotomy, and Mersenne–GCD law: From a constructive extended Euclidean algorithm extGcd, we prove simultaneous residue satisfaction and uniqueness modulo M = ∏k i=1 mi for any pairwise-coprime positive list, establish the sharp unsigned (M > (2n − 1)2) and balanced-signed (M > 2B2) product-recovery thresholds together with explicit boundary collision witnesses at M = (2n −1)2 and M = 2B2, and prove inductively the Mersenne–GCD coprimality law gcd(2a −1, 2b −1) = 2gcd(a,b) −1 for all a, b ∈N. 3. Total integer Newton isqrt convergence and 2k-order reciprocal residual law: We prove the exact invariant, fixed-point stopping equivalence step(N, s) ≥s ⇐⇒s2 ≤ N, strict descent, total well-founded correctness of newtonIsqrt, linear halving step(N, r + d) ≤r + ⌊d/2⌋, exact quadratic error contraction 2(r + d)(step(N, r + d) −r) ≤d2 + 2r, and the 2k-order cleared-integer reciprocal residual law Sk −dxk = (S −dx0)2k for all k ∈N and d, S, x0 ∈Z. 4. Pell–Lucas unpaid-entropy hierarchy, exact discrete product-sum optimality, and non-asymptotic Θ(n √ log2 n) separation: We prove the alternating Pell equation P 2 j −2Q2 j = (−1)j+1 for all j ∈N, yielding an infinite ladder of arbitrarily tight cleared-integer upper and lower thresholds converging to 1 −1/ √ 2 (bracket width 1/1,070,379,110,497 < 10−11 at j = 15, 16); we prove exact discrete optimality F(m) = minkb≥m(k + b) = ⌈2√m⌉with constructive minimizer (k∗, b∗) = (⌊s/2⌋, ⌈s/2⌉); and we establish genuine constructive non-asymptotic Θ(n √ log2 n) separation using Lean’s real Nat.log2 and verified ceilTwoSqrt: for every C ≥1, Cn < n⌈2 √ ⌊log2 n⌋⌉for all n ≥2C2+1 and Cn⌈2 √ ⌊log2 n⌋⌉< n⌊log2 n⌋for all n ≥2(2C+2)2. All 36 theorems compile in Lean 4.36.0 with -DwarningAsError=true, zero sorry, zero native_decide, and zero external dependencies; an AST-audited zero-float Python suite (4,832 AST nodes, 0 violations, 17 red-team test suites) independently cross-checks all four 1 AIRR.SCIENCE · ARR-2026-6W84HHWBAA927T02 v2 [Mathematics] 4 Dec 2026
--- Page 2 --pillars up to L = 1024 WHT blocks, 4096-bit Mersenne–CRT products, and 4096-bit integer Newton roots. Keywords: Lean 4 formal verification; dyadic Walsh–Hadamard transform; Cooley–Tukey block factorization; Chinese Remainder Theorem; Mersenne–GCD law; integer Newton square root; Pell–Lucas convergents; discrete product-sum optimization. Code & Artifacts (MIT): https://github.com/lluiseriksson/tape-multiplication-certificates-v2 AI Disclosure: Parts of the Lean 4 proof engineering, AST-audited verification scripts, and manuscript preparation were assisted by Google Antigravity; all 36 formal theorems were mechanically verified by the Lean 4.36.0 kernel and independently cross-checked by the zero-float Python red-team suite. 1 Introduction and Summary of v1 →v2 Revision Multi-tape integer multiplication architectures—including Schönhage–Strassen, Fürer, Harvey– van der Hoeven [2], and block-transposition / CRT-based sequential-access pipelines—rely on four recurring mathematical mechanisms: (i) hierarchical orthogonal transforms factored through rectangular matrix transpositions, (ii) residue-number arithmetic over pairwise-coprime moduli with exact dynamic-range guarantees, (iii) exact integer root and reciprocal iterations with certified stopping and quadratic contraction laws, and (iv) discrete block-dimension and entropy-rate trade-offs governing streaming tape passes. 1.1 Explicit Scope Boundary To maintain strict epistemic precision, we delineate clearly what this paper proves and what it does not claim: • Proved and machine-checked here: Complete, self-contained mathematical proofs and zero-dependency Lean 4.36.0 formalizations of all 36 theorems across Pillars 1–4 (arbitrary-depth L = 2k WHT, structural dyadic transposition involution, and transposefree/transpose-based 2D Cooley–Tukey block factorization; arbitrary-k constructive CRT, sharp unsigned/signed boundaries, and Mersenne–GCD coprimality; total integer Newton isqrt correctness, halving, quadratic contraction, and 2k-order cleared-integer reciprocal residuals; the infinite Pell–Lucas unpaid-entropy hierarchy, exact discrete optimality F(m) = ⌈2√m⌉, and constructive non-asymptotic Θ(n √log2 n) bounds via real ⌊log2 n⌋). • Explicitly outside scope: We do not prove a new unconditional multi-tape Turing-machine lower bound for integer multiplication (such as separating O(n log n) from o(n log n) or O(n√log n) in the Turing-machine model), nor do we formalize full complex/NTT floatingpoint FFT error analysis or an end-to-end Turing-machine interpreter. Our contribution is an exact, self-contained, zero-dependency algebraic, combinatorial, and numerical verification kernel whose components are universally quantified over arbitrary dimension, modulus count, bit width, and iteration depth. 1.2 Complete Resolution of v1 Referee Objections Version 1 of ARR-2026-6W84HHWBAA927T02 was properly criticized during blind screening for proving only 18 elementary fixed-size arithmetic inequalities, omitting self-contained proofs from the PDF, using an incorrect N quantifier in place of Z for signed CRT dynamic range, relying on a vacuous proxy n < ns < ns2 in place of genuine logarithmic separation, and fixing a single coarse rational threshold 29/100 for 1 −1/ √ 2. Table 1 maps every v1 limitation to its v2 resolution. 2
--- Page 3 --- Table 1: Exact resolution of every v1 referee critique in ARR-2026-6W84HHWBAA927T02 v2. Dimension Version 1 (Deficient) Version 2 (This Paper) WHT & Transposition Fixed 2 × 2 butterfly and scalar k = 1 identity Arbitrary-depth L = 2k inductive DyadicVec, Parseval, XOR-convolution, Donoho–Stark, rectangular M × N transpose, and 2D Cooley–Tukey block factorization (Section 2) CRT & Coprimality 2-modulus product; broken N quantifier for signed range Constructive extGcd, arbitrary-k CRT existence/uniqueness, sharp unsigned/signed Z dichotomy + boundary collisions, and inductive gcd(2a −1, 2b −1) = 2gcd(a,b) −1 (Section 3) Integer Newton Single-step AM–GM inequality; no loop or termination Complete well-founded newtonIsqrt correctness, exact iffstop criterion, halving, quadratic contraction, and 2k-order reciprocal residual law (Section 4) Entropy & Separation Single 29/100 check; vacuous n < ns < ns2 proxy Infinite Pell–Lucas ladder (P 2 j −2Q2 j = (−1)j+1), exact F(m) = ⌈2√m⌉ optimality, and true constructive Θ(n √ log2 n) bounds via Nat.log2 (Section 5) Self-Containment Claims without printed proofs or code Complete proofs printed in-paper, 36-theorem Lean 4.36.0 axiom ledger, and AST-audited zero-float suite (17 red-team suites) 2 Pillar 1: Arbitrary-Depth Dyadic Walsh–Hadamard Harmonic Analysis and 2D Block Factorization Instead of indexing vectors by Fin(2k) with heavy modular index arithmetic, we model dyadic vectors of length L = 2k over Z directly as balanced binary trees of depth k. This representation mirrors the recursive butterfly memory layout and permits clean, zero-dependency structural induction in Lean 4. Definition 2.1 (Dyadic Vectors and Matrices). Define DyadicVec(k) inductively by leaf(a) for k = 0 (a ∈Z) and node(u, v) for k + 1 (u, v ∈DyadicVec(k)). Pointwise addition, subtraction, scalar multiplication, inner product ⟨x, y⟩, ℓ2 energy ∥x∥2 2 = ⟨x, x⟩, ℓ1 norm ∥x∥1, ℓ∞norm ∥x∥∞, and support cardinality | supp(x)| are defined structurally on leaves and recursively by summing (or taking max for ∥·∥∞) over subtrees. The unnormalized Walsh–Hadamard transform Wk : DyadicVec(k) →DyadicVec(k) is defined by W0(leaf(a)) = leaf(a), Wk+1(node(u, v)) = node (Wk(u) + Wk(v), Wk(u) −Wk(v) ). Dyadic XOR-convolution x ∗⊕y is defined structurally by leaf(a) ∗⊕leaf(b) = leaf(ab) and node(u1, v1) ∗⊕node(u2, v2) = node (u1 ∗⊕u2 + v1 ∗⊕v2, u1 ∗⊕v2 + v1 ∗⊕u2 ), which coincides identically with (x∗⊕y)u = ∑ v∈{0,1}k xvyu⊕v by splitting the highest bit of u and v. Theorem 2.2 (Arbitrary-Depth Dyadic WHT Algebra and Donoho–Stark Uncertainty). For every k ∈N and all x, y ∈DyadicVec(k): (a) Involution (wht_involution): Wk(Wk(x)) = 2k · x. (b) Polarization & Parseval (wht_polarization, wht_parseval): ⟨Wk(x), Wk(y)⟩= 2k⟨x, y⟩, ∥Wk(x)∥2 2 = 2k∥x∥2 2. 3
--- Page 4 --- (c) XOR-Convolution (wht_xor_convolution): Wk(x ∗⊕y) = Wk(x) ⊙Wk(y), where ⊙denotes pointwise (Hadamard) product. (d) ℓ1-Energy and Donoho–Stark Uncertainty (wht_l1_energy_uncertainty, wht_donoho_stark_uncertainty): ∥x∥1 · ∥Wk(x)∥1 ≥2k∥x∥2 2, and whenever ∥x∥2 2 > 0 (equivalently x̸ = 0), | supp(x)| · | supp(Wk(x))| ≥2k. Proof. All parts proceed by induction on k; the base case k = 0 is immediate from integer arithmetic (and for a̸ = 0, | supp(leaf(a))| = 1). Assume the results hold at depth k and write x = node(u, v), y = node(u′, v′), U = Wk(u), V = Wk(v). (a) Involution. By linearity of Wk (proved by a 2-line structural induction), Wk+1(Wk+1(node(u, v))) = Wk+1(node(U + V, U −V )) = node (Wk(U + V ) + Wk(U −V ), Wk(U + V ) −Wk(U −V ) ) = node(2Wk(U), 2Wk(V )) = 2 · 2k · node(u, v) = 2k+1x. (b) Polarization & Parseval. With U′ = Wk(u′) and V ′ = Wk(v′), bilinearity of ⟨·, ·⟩gives ⟨Wk+1(x), Wk+1(y)⟩= ⟨U + V, U′ + V ′⟩+ ⟨U −V, U′ −V ′⟩ = 2⟨U, U′⟩+ 2⟨V, V ′⟩= 2 · 2k(⟨u, u′⟩+ ⟨v, v′⟩) = 2k+1⟨x, y⟩. Setting y = x yields ∥Wk(x)∥2 2 = 2k∥x∥2 2. (c) XOR-Convolution. Let Ui = Wk(ui), Vi = Wk(vi) for i ∈{1, 2}. By linearity of Wk and the induction hypothesis on all four depth-k convolutions, the left half of Wk+1(x ∗⊕y) is Wk(u1 ∗⊕u2 + v1 ∗⊕v2) + Wk(u1 ∗⊕v2 + v1 ∗⊕u2) = U1 ⊙U2 + V1 ⊙V2 + U1 ⊙V2 + V1 ⊙U2 = (U1 + V1) ⊙(U2 + V2), and the right half is (U1 ⊙U2 + V1 ⊙V2) −(U1 ⊙V2 + V1 ⊙U2) = (U1 −V1) ⊙(U2 −V2), which equals Wk+1(x) ⊙Wk+1(y). (d) ℓ1-Energy and Donoho–Stark Uncertainty. First observe by structural induction that ∥Wk(x)∥∞≤∥x∥1 (since |a + b| ≤|a| + |b| and |a −b| ≤|a| + |b| at each butterfly) and that ∥z∥2 2 ≤∥z∥∞∥z∥1 for every z ∈DyadicVec(k). Applying both inequalities together with Parseval gives 2k∥x∥2 2 = ∥Wk(x)∥2 2 ≤∥Wk(x)∥∞∥Wk(x)∥1 ≤∥x∥1∥Wk(x)∥1. Next, we prove the discrete Cauchy–Schwarz bound ∥z∥2 1 ≤| supp(z)| · ∥z∥2 2 directly over N by structural induction on z: at a leaf a, if a = 0 both sides are 0, and if a̸ = 0 both sides equal |a|2; at node(u, v), let Su = | supp(u)|, Sv = | supp(v)|, Lu = ∥u∥1, Lv = ∥v∥1, Eu = ∥u∥2 2, Ev = ∥v∥2 2. Using the cleared-integer cross-term identity (SuEv + SvEu)2 ≥4SuEuSvEv ≥4L2 uL2 v =⇒SuEv + SvEu ≥2LuLv, we obtain (Lu + Lv)2 ≤SuEu + 2LuLv + SvEv ≤(Su + Sv)(Eu + Ev). Squaring the ℓ1-energy inequality and applying Cauchy–Schwarz to both x and Wk(x) gives (2k)2(∥x∥2 2)2 ≤∥x∥2 1∥Wk(x)∥2 1 ≤| supp(x)|∥x∥2 2 · | supp(Wk(x))|∥Wk(x)∥2 2 = | supp(x)| · | supp(Wk(x))| · 2k(∥x∥2 2)2. Canceling the strictly positive integer 2k(∥x∥2 2)2 > 0 yields | supp(x)| · | supp(Wk(x))| ≥2k. 4
--- Page 5 --- Remark 2.3 (Sharpness of Donoho–Stark). Equality | supp(x)| · | supp(Wk(x))| = 2k is attained for every k ≥1 by the indicator vector of any F2-linear subspace of dimension d ∈{0, . . . , k} (for instance d = ⌊k/2⌋, where | supp(x)| = 2d and | supp(Wk(x))| = 2k−d), verified explicitly for k = 1, . . . , 10 in Section 6. 2.1 Rectangular Transposition and 2D Cooley–Tukey Block Factorization To certify cache- and tape-oblivious block-transposition transforms, we formalize both general rectangular index transposition and the exact 2D dyadic matrix factorization of Wa+b. Theorem 2.4 (Rectangular Transposition, Structural Dyadic Transposition, and 2D Cooley— Tukey Factorization). (a) Rectangular Transposition (rectTranspose_involution): For any M, N ≥1 and i < MN, let τM,N(i) = (i mod N) · M + ⌊i/N⌋. Then τM,N(i) < NM and τN,M(τM,N(i)) = i. (b) Structural Dyadic Transposition & 2D Cooley–Tukey Factorization (DyadicMat.wht_block_factorization, DyadicMat.transpose_involution, DyadicMat.wht_transpose_factorization): Represent a 2a × 2b matrix as a depth-a row tree DyadicMat(a, b) whose leaves are depth-b row vectors DyadicVec(b), with row-major flattening flat : DyadicMat(a, b) →DyadicVec(b + a) given by flat(rowLeaf(v)) = v and flat(rowNode(A1, A2)) = node(flat(A1), flat(A2)), row-wise transform Wrows = mapRows(Wb), recursive column-wise transform Wcols, and structural transposition T : DyadicMat(a, b) → DyadicMat(b, a) given by (rowLeaf(v))T = ofVecCol(v) and (rowNode(A1, A2))T = zipCols(AT 1 , AT 2 ). For all a, b ∈N and every A ∈DyadicMat(a, b), (AT)T = A, Wcols(A) = (Wrows(AT) )T, and Wb+a (flat(A) ) = flat (Wcols(Wrows(A)) ) = flat ((Wrows ((Wrows(A))T))T) . Proof. Part (a) follows from Euclidean division: writing q = ⌊i/N⌋< M and r = i mod N < N, we have r + 1 ≤N, so τM,N(i) = rM + q < (r + 1)M ≤NM, hence ⌊τM,N(i)/M⌋= r and τM,N(i) mod M = q, giving τN,M(τM,N(i)) = qN + r = i. For Part (b), first prove the transpose-free identity Wb+a(flat(A)) = flat(Wcols(Wrows(A))) by structural induction on A: at A = rowLeaf(v), flat and Wcols act as the identity so both sides equal Wb(v); at A = rowNode(A1, A2), Wb+a+1(node(flat(A1), flat(A2))) = node(Wb+a(flat(A1))+ Wb+a(flat(A2)), Wb+a(flat(A1)) −Wb+a(flat(A2))), and since flat commutes with matrix addition and subtraction (flatten_addMat, flatten_subMat), the induction hypothesis yields flat(Wcols(Wrows(A))). Next, structural induction on v ∈DyadicVec(b) shows (ofVecCol(v))T = rowLeaf(v), and induction on X ∈DyadicMat(b, a) shows (zipCols(X, Y ))T = rowNode(XT, Y T). Inducting on A ∈DyadicMat(a, b) immediately gives (AT)T = A. Similarly, transposition distributes over addMat and subMat (via zipCols distributing over addMat/subMat), Wrows(ofVecCol(v)) = ofVecCol(v) (since W0 is the identity on leaves), and Wrows(zipCols(X, Y )) = zipCols(Wrows(X)+ Wrows(Y ), Wrows(X)−Wrows(Y )) directly from the butterfly definition of Wa+1. Therefore, inducting on A yields Wcols(A) = (Wrows(AT))T, and substituting this identity into the transpose-free factorization gives the exact transpose-based 2D Cooley–Tukey factorization. 3 Pillar 2: Arbitrary-k Constructive CRT, Sharp Dynamic- Range Dichotomy, and Mersenne–GCD Law Residue-number integer multiplication splits a 2n-bit product across k pairwise-coprime moduli m1, . . . , mk and reconstructs the unique integer product modulo M = ∏k i=1 mi. We formalize the 5
--- Page 6 --complete constructive pipeline for arbitrary k ∈N, close the v1 signed-quantifier bug, prove sharp boundary collisions, and establish the Mersenne–GCD coprimality theorem. Theorem 3.1 (Arbitrary-k Constructive CRT Existence and Uniqueness). Let extGcd(a, b) be the well-founded extended Euclidean algorithm returning (u, v) ∈Z2 via extGcd(0, b) = (0, 1) and, for a > 0, extGcd(a, b) = (v′ −⌊b/a⌋u′, u′) where (u′, v′) = extGcd(b mod a, a). Then: (a) Constructive Bézout Identity (extGcd_bezout): For all a, b ∈N, au + bv = gcd(a, b) in Z. (b) Arbitrary-k Existence and Canonical Range (crtReconstruct_sound): For any finite list of pairs [(m1, r1), . . . , (mk, rk)] with every mi > 0 and gcd(mi, mj) = 1 for i̸ = j, the recursively constructed integer X = crtReconstruct([(mi, ri)]) satisfies 0 ≤X < M = ∏k i=1 mi and mi | (X −ri) for every i ∈{1, . . . , k}. (c) Arbitrary-k Uniqueness (crt_uniqueness_list): If X, Y ∈Z both satisfy mi | (X −ri) and mi | (Y −ri) for all i, then M | (X −Y ). Proof. (a) By strong recursion on a: if a = 0, 0 · 0 + b · 1 = b = gcd(0, b). For a > 0, writing b = qa + r with q = ⌊b/a⌋and r = b mod a < a, the induction hypothesis gives ru′ + av′ = gcd(r, a) = gcd(a, b), whence a(v′ −qu′) + bu′ = av′ −qau′ + (qa + r)u′ = ru′ + av′ = gcd(a, b). Using extGcd_bezout, if gcd(a, b) = 1 and gcd(a, c) = 1, multiplying the two Bézout identities shows any common divisor d of a and bc divides 1, so gcd(a, bc) = 1, and by list induction gcd(m, ∏ n∈L n) = 1 whenever m is coprime to every element of L. (b) For two coprime moduli (m1, m2) with Bézout pair (u, v), set crtPair(m1, m2, r1, r2) = r1vm2 + r2um1. Substituting vm2 = 1 −um1 gives crtPair −r1 = m1(r2 −r1)u, and symmetrically crtPair −r2 = m2(r1 −r2)v. Inducting along the list combines (m1, r1) with the recursive reconstruction modulo Mrest = ∏ i≥2 mi (coprime to m1), and taking the Euclidean remainder modulo M > 0 places X ∈[0, M) while shifting by a multiple of M, preserving every congruence. (c) If gcd(a, b) = 1, a | d, and b | d (say d = aka = bkb), multiplying d by au + bv = 1 gives d = ab(kbu + kav), so ab | d. List induction over the pairwise-coprime moduli yields M | (X −Y ). Theorem 3.2 (Sharp Unsigned and Balanced-Signed Product Dynamic-Range Dichotomy). (a) Unsigned threshold (unsigned_product_range_sharp, unsigned_product_boundary_collision): For all n ≥1 and 0 ≤a, b < 2n, if M > (2n −1)2 then 0 ≤ab < M, so ab is uniquely recovered from its residues modulo M. Conversely, at the critical modulus M = (2n −1)2, the valid inputs a = b = 2n −1 satisfy a2 ≡0 (mod M) while a2̸ = 0. (b) Balanced-signed threshold (signed_product_unique_iff, signed_product_boundary_collision): For all B, M ∈N and all integers a, b, a′, b′ ∈Z with |a|, |b|, |a′|, |b′| ≤B, if M > 2B2 and M | (ab −a′b′), then ab = a′b′. Conversely, for every B ≥1, at M = 2B2, the valid integer pairs (B, B) and (−B, B) satisfy B · B −(−B) · B = M while B2̸ = −B2. Proof. For (a), a, b ≤2n −1 implies ab ≤(2n −1)2 < M; at M = (2n −1)2, (2n −1)2 mod M = 0 and (2n −1)2 > 0 since n ≥1. For (b), |ab| ≤B2 and |a′b′| ≤B2 imply |ab −a′b′| ≤2B2 < M. If ab −a′b′ = Mq with q̸ = 0, then |ab −a′b′| = M|q| ≥M, contradiction; hence q = 0 and ab = a′b′. The boundary collision (B)(B) −(−B)(B) = 2B2 = M is immediate and non-zero for B ≥1. Theorem 3.3 (Inductive Mersenne–GCD Coprimality Law). For all a, b ∈N (mersenne_gcd, mersenne_coprime_of_coprime), gcd(2a −1, 2b −1) = 2gcd(a,b) −1. In particular, whenever gcd(a, b) = 1, the Mersenne moduli 2a −1 and 2b −1 are coprime, so any set of distinct primes (or pairwise-coprime exponents) {p1, . . . , pk} automatically yields a pairwisecoprime Mersenne CRT basis {2p1 −1, . . . , 2pk −1} with hardware-friendly bit-shift reduction. 6
--- Page 7 --- Proof. First, for any b ≤a, rewriting 2a = 2a−b2b yields the exact identity 2a −1 = 2a−b(2b −1) + (2a−b −1), which implies gcd(2a −1, 2b −1) = gcd(2a−b −1, 2b −1). Iterating this subtraction by strong induction on a for any b > 0 gives the Euclidean reduction step gcd(2a −1, 2b −1) = gcd(2a mod b −1, 2b −1). Now induct on b (well-founded via a mod b < b): when b = 0, gcd(2a−1, 0) = 2a−1 = 2gcd(a,0)−1; when b > 0, gcd(2a −1, 2b −1) = gcd(2b −1, 2a mod b −1) = 2gcd(b,a mod b) −1 = 2gcd(a,b) −1. 4 Pillar 3: Total Integer Newton isqrt Convergence and 2k- Order Reciprocal Law Exact integer square roots and Newton–Raphson reciprocals govern both optimal block-dimension selection (s = ⌈2√m⌉) and exact multi-precision division. Define the single integer Newton step for N, s ∈N by step(N, s) = ⌊(s + ⌊N/s⌋)/2⌋. Theorem 4.1 (Total Correctness and Exact Quadratic Contraction of Integer Newton isqrt). Let N ≥1 and let r ∈N denote the exact integer square root (r2 ≤N < (r + 1)2). (a) Lower invariant (newtonStep_ge_isqrt): For every s ≥1, step(N, s) ≥r. (b) Exact stopping equivalence and strict descent (newtonStep_ge_self_iff, newtonStep_lt_self): For every s ≥1, step(N, s) ≥s ⇐⇒s2 ≤N; in particular, N < s2 =⇒step(N, s) < s. (c) Total well-founded correctness (newtonIsqrt_correct): Define newtonIsqrtAux(N, s) recursively by returning s if step(N, s) ≥s and recursing on step(N, s) otherwise (terminating by strict decrease of s), and set newtonIsqrt(0) = 0, newtonIsqrt(N) = newtonIsqrtAux(N, N) for N ≥1. For every N ∈N, r∗= newtonIsqrt(N) satisfies (r∗)2 ≤N < (r∗+ 1)2. (d) Guaranteed linear halving (newtonStep_halving): For every d ≥1, step(N, r + d) ≤r + ⌊d/2⌋. (e) Exact quadratic error contraction (newtonStep_quadratic_error): For every d ≥1, 2(r + d) (step(N, r + d) −r ) ≤d2 + 2r. Proof. (a) Since r2 ≤N and 2rs ≤r2 + s2, we have 2rs ≤s2 + N. If s + ⌊N/s⌋< 2r, then s+⌊N/s⌋+1 ≤2r, so multiplying by s > 0 gives s2 +(⌊N/s⌋+1)s ≤2rs ≤s2 +N, contradicting N < (⌊N/s⌋+ 1)s. Thus 2r ≤s + ⌊N/s⌋, hence r ≤step(N, s). (b) Observe step(N, s) ≥s ⇐⇒s + ⌊N/s⌋≥2s ⇐⇒⌊N/s⌋≥s ⇐⇒s2 ≤N (since s > 0). (c) Any s ≥1 satisfying the invariant (∀t, t2 ≤N =⇒t ≤s) passes that exact invariant to s′ = step(N, s) by (a), while s′ ≥1 because 12 ≤N. When the recursion halts at s′ ≥s, part (b) gives s2 ≤N; meanwhile N < (s + 1)2, for otherwise (s + 1)2 ≤N would force s + 1 ≤s by the invariant. For s0 = N ≥1, t2 ≤N implies t ≤t2 ≤N for t ≥1, establishing the initial invariant. (d) Because d ≥1, N < (r + 1)2 ≤(r + d)(r + 1), so ⌊N/(r + d)⌋≤r. Hence step(N, r + d) = ⌊(r + d) + ⌊N/(r + d)⌋ 2 ⌋ ≤ ⌊2r + d 2 ⌋ = r + ⌊d/2⌋. (e) By (a), step(N, r + d) ≥r. Moreover 2(step(N, r + d) −r) ≤(r + d) + ⌊N/(r + d)⌋−2r. Multiplying by r + d and using (r + d)⌊N/(r + d)⌋≤N ≤r2 + 2r (from N < (r + 1)2) yields 2(r + d) (step(N, r + d) −r ) ≤(r + d)2 + (r + d)⌊N/(r + d)⌋−2r(r + d) ≤(r2 + 2rd + d2) + (r2 + 2r) −(2r2 + 2rd) = d2 + 2r. 7
--- Page 8 --- Theorem 4.2 (Exact 2k-Order Cleared-Integer Newton Reciprocal Residual Law). For fixed d ∈Z, define (Sk, xk) = newtonRecipIter(d, k, S, x0) by (S0, x0) = (S, x0) and (Sk+1, xk+1) = (S2 k, xk(2Sk −dxk) ). Then for every k ∈N and all d, S, x0 ∈Z (newtonRecipIter_exact), Sk = S2k and Sk −dxk = (S −dx0)2k. Proof. By induction on k: at k = 0, 20 = 1 gives S0 = S1 and S0 −dx0 = (S −dx0)1. At k + 1, Sk+1 = S2 k = (S2k)2 = S2k+1 and Sk+1 −dxk+1 = S2 k −dxk(2Sk −dxk) = (Sk −dxk)2 = ((S −dx0)2k)2 = (S −dx0)2k+1. 5 Pillar 4: Pell–Lucas Unpaid-Entropy Hierarchy, Exact F(m) = ⌈2√m⌉, and Constructive Θ(n√log2 n) Separation 5.1 Infinite Pell–Lucas Unpaid-Entropy Threshold Hierarchy In sequential-tape entropy analyses, the cleared-integer unpaid-entropy barrier takes the quadratic form 2(q −p)2 > q2 (for rational fraction p/q ∈[0, 1)), equivalently p/q < 1 −1/ √ 2 ≈ 0.2928932188 . . . . Rather than hard-coding a single coarse rational margin like 29/100, we formalize the complete alternating Pell–Lucas sequence that brackets 1 −1/ √ 2 to arbitrary rational precision. Theorem 5.1 (Alternating Pell–Lucas Hierarchy for the Unpaid-Entropy Barrier). Define (Pj, Qj) ∈N2 inductively by (P0, Q0) = (1, 1) and (Pj+1, Qj+1) = (Pj + 2Qj, Pj + Qj). Then for all j, k, p, q ∈N: (a) Exact alternating Pell identity (pellPair_identity): P 2 j −2Q2 j = (−1)j+1 in Z. (b) Arbitrarily tight necessary upper thresholds (unpaid_entropy_pell_upper): For every odd index 2k + 1, if p < q and 2(q −p)2 > q2, then P2k+1 p < (P2k+1 −Q2k+1) q. (c) Arbitrarily tight sufficient lower thresholds (unpaid_entropy_pell_lower): For every even index 2k, if q ≥1 and P2k p ≤(P2k −Q2k) q, then p < q and 2(q −p)2 > q2. Proof. (a) At j = 0, 12 −2 · 12 = −1 = (−1)1. For the step j →j + 1, P 2 j+1 −2Q2 j+1 = (Pj + 2Qj)2 −2(Pj + Qj)2 = −(P 2 j −2Q2 j) = −(−1)j+1 = (−1)j+2. (b) At j = 2k + 1, part (a) gives P 2 = 2Q2 + 1 with 1 ≤Q ≤P. Suppose for contradiction that P(q −p) ≤Qq. Squaring gives (2Q2 + 1)(q −p)2 ≤Q2q2, whence Q2 · 2(q −p)2 ≤Q2q2, contradicting 2(q −p)2 > q2 since Q2 > 0. Thus Qq < P(q −p) = Pq −Pp, rearranging to Pp < (P −Q)q. (c) At j = 2k, part (a) gives P 2 + 1 = 2Q2 with 1 ≤Q ≤P. Since Pp ≤(P −Q)q < Pq (as Q, q ≥1), we obtain p < q and Qq ≤P(q −p). Squaring and multiplying by 2 yields P 2q2 < (P 2 + 1)q2 = 2Q2q2 ≤2P 2(q −p)2 = P 2 · 2(q −p)2. Canceling P 2 > 0 gives 2(q −p)2 > q2. Already at j = 4, 5, (P4 −Q4)/P4 = 12/41 ≈0.292683 and (P5 −Q5)/P5 = 29/99 ≈0.292929 strictly dominate v1’s (29/100, 3/10); at j = 15, 16, the exact rational gap is P15 −Q15 P15 −P16 −Q16 P16 = 1 1,070,379,110,497 < 10−11. 8
--- Page 9 --- 5.2 Exact Discrete Product-Sum Optimality and True Non-Asymptotic Θ(n √ log2 n) Separation In two-level block-factorized tape passes covering m = ⌊log2 n⌋stages with block parameters k, b ≥1 subject to kb ≥m, the pass overhead is proportional to k + b (or weighted βk + αb). Define the exact integer ceiling function using our verified newtonIsqrt: ceilTwoSqrt(m) := { r if r2 = 4m, r + 1 if r2 < 4m, where r = newtonIsqrt(4m). Theorem 5.2 (Exact Discrete Product-Sum Optimality and Weighted Trade-Off). For every m ≥1, let s = ceilTwoSqrt(m). Then: (a) Tight bracket (ceilTwoSqrt_spec): (s −1)2 < 4m ≤s2. (b) Universal lower bound (product_sum_lower_bound): Every k, b ∈N with kb ≥m satisfies k + b ≥s. (c) Exact constructive attainment (product_sum_exact_attainment): Setting k∗= ⌊s/2⌋and b∗= s −⌊s/2⌋= ⌈s/2⌉yields k∗≥1, b∗≥1, k∗+ b∗= s, and k∗b∗≥m. Thus minkb≥m(k + b) = ⌈2√m⌉exactly. (d) Weighted lower bound and discrete exchange (weighted_product_sum_lower, discrete_amgm_exchange): For all α, β, k, b ∈N with kb ≥m, (βk + αb)2 ≥4αβm; moreover, for any a, b ∈N with a + 2 ≤b, balancing strictly increases the product: ab < (a + 1)(b −1). Proof. Part (a) follows immediately from Theorem 4.1(c) applied to 4m: r2 ≤4m < (r + 1)2. For (b), 4m ≤4kb ≤(k + b)2; if k + b ≤s −1, then (k + b)2 ≤(s −1)2 < 4m, contradiction. For (c), since m ≥1 we have s2 ≥4, hence s ≥2 and k∗, b∗≥1. Checking parities s = 2t and s = 2t + 1 gives the exact identity 4k∗b∗+ (s mod 2) = s2 ≥4m. Because s mod 2 ∈{0, 1} < 4 and 4k∗b∗, 4m are multiples of 4, it follows that 4k∗b∗≥4m, so k∗b∗≥m. For (d), 4αβm ≤ 4(βk)(αb) ≤(βk + αb)2, and when a + 2 ≤b we have (a + 1)(b −1) −ab = b −a −1 ≥1 > 0. Theorem 5.3 (Constructive Non-Asymptotic Θ(n √log2 n) Separation). Let ⌊log2 n⌋denote Lean’s standard binary logarithm Nat.log2 n. For every constant C ≥1 and every n ∈N: (a) Superlinear separation (theta_sqrt_log_beats_linear): Whenever n ≥2C2+1, Cn < n · ceilTwoSqrt(⌊log2 n⌋). (b) Sub-n log n separation (theta_sqrt_log_beats_nlogn): Whenever n ≥2(2C+2)2, C · (n · ceilTwoSqrt(⌊log2 n⌋) ) < n · ⌊log2 n⌋. Proof. Write m = ⌊log2 n⌋and s = ceilTwoSqrt(m). Since n ≥2E implies m ≥E (by Nat.le_log2): (a) From m ≥C2 + 1 ≥1, Theorem 5.2(a) gives s2 ≥4m > C2, hence C < s. Multiplying by n > 0 yields Cn < ns. (b) From m ≥(2C+2)2 = 4C2+8C+4, we have m > C and 4C2+2C ≤m, so (4C2+2C)m ≤ m2. By Theorem 5.2(a), (s −1)2 < 4m, whence (C(s −1) )2 = C2(s −1)2 < 4C2m ≤m2 −2Cm < m2 −2Cm + C2 = (m −C)2. Hence C(s −1) < m −C, i.e., Cs = C(s −1) + C < m (as s ≥1). Multiplying by n > 0 yields C(ns) < nm. 9
--- Page 10 --- 0 2 4 6 8 10 12 14 16 Pell convergent index j 10−12 10−10 10−8 10−6 10−4 10−2 100 Absolute error from 1 −1/√2 (a) Pell-Lucas Unpaid-Entropy Hierarchy (Thm. 5.1) Even j = 2k (lower sufficient (Pj −Qj)/Pj) Odd j = 2k + 1 (upper necessary (Pj −Qj)/Pj) v1 fixed margin |29/100 −(1 −1/√2)| 50 100 150 200 250 Bit-length log parameter m = ⌊log2 n⌋ 0 10 20 30 40 50 60 Multiplicative factor over n C = 3: m ≥64 ⇒3F(m) < m (b) Exact Product-Sum Optimality & Θ(n√log2 n) (Thms. 5.2-5.3) Exact discrete F(m) = ⌈2√m⌉ (Thm. 5.2) Continuous 2√m 1 4⌊log2 n⌋ (sub-nlog n comparison) Figure 1: (a) Exponential convergence of the alternating Pell–Lucas unpaid-entropy bounds (Pj − Qj)/Pj to 1 −1/ √ 2 (Theorem 5.1); already at j = 4, 5 the bounds beat v1’s fixed (29/100, 3/10) interval, and by j = 15, 16 the rational bracket width is 1/1,070,379,110,497 < 10−11. (b) Exact discrete optimality F(m) = ⌈2√m⌉(Theorem 5.2) and explicit Θ(n √log2 n) separation thresholds (Theorem 5.3). 6 Lean 4.36.0 Formalization Ledger and Zero-Float Computational Verification The entire formal development lives in a single standalone, zero-dependency Lean 4.36.0 file lean/TapeMultiplicationV2.lean (1,660 lines, zero Mathlib imports) compiled under lean -DwarningAsError=true with 0 errors and 0 warnings, and audited via lean/AuditAxioms.lean using #print axioms on every one of the 36 top-level theorems (Table 3). Across all 36 theorems, zero theorems use sorryAx, zero use Lean.ofReduceBool (native_decide), and zero use Lean.trustCompiler or custom axioms: 3 theorems depend strictly on {propext} alone, 24 depend strictly on {propext, Quot.sound}, and 9 theorems depend on standard Lean core axioms {propext, Classical.choice, Quot.sound}. 0 1 2 3 4 5 6 7 8 9 10 Integer Newton iteration t 0 500 1000 1500 2000 Error bit-length (bits) (a) Quadratic Integer Newton Convergence (Thm. 4.1) Observed bit_length(st −r) (4096-bit N = 24095 + 1) Thm. 4.1(e) bit_length(⌊(d2 t −1 + 2r)/(2(r + dt −1))⌋) 16b 64b 256b 512b 1024b 2048b Operand bit-width n 0 1000 2000 3000 4000 Bit-length k=5 k=10 k=18 k=24 k=33 k=45 (b) Verified Prime-Exponent Mersenne-CRT Capacity (Thm. 3.3) Exact product width 2n (bits) Certified log2 M (M > 2(2n −1)2) Figure 2: (a) Observed error bit-length bit_length(st −r) of integer Newton isqrt on the worst-case 4096-bit input N = 24095 + 1 starting from s0 = 22048, overlaid with the exact algebraic quadratic bound of Theorem 4.1(e); convergence terminates in 10 exact iterations. (b) Verified prime-exponent Mersenne–CRT capacity M = ∏k i=1(2pi −1) > 2(2n −1)2 across n ∈{16, 64, 256, 512, 1024, 2048} bits. 10
--- Page 11 --- Table 2: Zero-float AST-audited verification results (scripts/verify_v2.py, 4,832 AST nodes, 0 float/division violations; tests/test_redteam.py, 17/17 red-team suites passing). Pillar / Suite Verified Domain Exact Quantitative Result Pillar 1 (Dyadic WHT) k = 1, . . . , 10 (L = 2, . . . , 1024); (a, b) with a + b ≤10 All 10 depths pass involution, Parseval, Donoho–Stark + tight witnesses; k ≤8 cross-checked vs. O(L2) character sums & XOR-convolution; 56 2D block factorizations & 6 rectangular transpositions verified Pillar 2 (Mersenne–CRT) 1 ≤a ≤b ≤64; operands n ∈{16, . . . , 2048} bits 2,080 Mersenne–GCD pairs verified; exact unsigned & balanced-signed CRT up to 4096-bit products (k = 45 primes up to p = 199, log2 M = 4225 bits); 32 unsigned & signed boundary collisions verified Pillar 3 (Newton) Exhaustive N ∈[0, 104]; 64–4096-bit inputs; k = 0..8 All 10,001 small roots + 4096-bit worst-case inputs (4, 6, 7, 8, 9, 10 iters for 64–4096 bits) satisfy Theorem 4.1(a)–(e) at every step; order-28 = 256 reciprocal law verified up to 2561-bit S8 Pillar 4 (Pell / Tape) j = 0..16; m = 1..1000; C ∈{1, 2, 3, 5, 10, 20} 17 Pell convergents verified (exact j = 15, 16 gap 1/1,070,379,110,497 < 10−11); F(m) = ⌈2√m⌉matches brute force for all m ≤1000; 19,700 weighted bounds & all separation thresholds verified Adversarial Red-Team 17 suites in tests/test_redteam.py Rejects all 9 forbidden float/import/division AST tampers, non-power-of-two WHT, missing transpose, non-coprime Mersenne CRT, residue/root tampers; exhaustive Donoho–Stark over all 6,560 nonzero vectors in {−1, 0, 1}8; live Lean 4.36.0 + 36-theorem axiom audit 11
Showing searchable text extract (31,538 characters of 6,051 total words). Open or download the canonical PDF above for the complete typeset manuscript and equations.
References (5)
- D. L. Donoho and P. B. Stark, Uncertainty principles and signal recovery, SIAM Journal on Applied Mathematics 49(3) (1989), 906–931
- D. Harvey and J. van der Hoeven, Integer multiplication in time $O(n \log n)$, Annals of Mathematics 193(2) (2021), 563–617
- D. E. Knuth, The Art of Computer Programming, Volume 2: Seminumerical Algorithms, 3rd ed., Addison–Wesley, 1997
- R. P. Brent and P. Zimmermann, Modern Computer Arithmetic, Cambridge University Press, 2010
- L. de Moura and S. Ullrich, The Lean 4 Theorem Prover and Programming Language, in CADE-28, LNAI 12699, Springer, 2021, 625–635
Cite this paper
Lluis Eriksson (2026). Constructive Dyadic Walsh-Hadamard Factorization, Arbitrary-k Mersenne-CRT Arithmetic, Exact Integer Newton Convergence, and Non-Asymptotic Tape-Barrier Certificates in Lean 4. AIRR.SCIENCE, ARR-2026-6W84HHWBAA927T02, v2. https://airr.science/papers/ARR-2026-6W84HHWBAA927T02/versions/v2/ DOI: 10.5281/zenodo.24652392.
Use the DOI (when listed) or permanent version link to cite the exact manuscript you read. A DOI is a persistent citation identifier, not journal peer review. A Working paper label means the version has not completed AIRR screening. Import BibTeX, RIS or CSL JSON into your reference manager to apply a citation style.
Version history
The paper identifier remains stable. Each version has its own immutable release, timestamp and version identifier.
Revision statement
Major revision. Major v2 upgrade resolving every v1 referee critique: replaces v1's 18 fixed-size inequalities with 36 standalone zero-dependency Lean 4.36.0 theorems (1,660 lines, 0 sorry, 0 native_decide) across four pillars: arbitrary-depth L=2^k dyadic WHT/Parseval/XOR-convolution/Donoho-Stark plus structural DyadicMat.transpose involution and transpose-free & transpose-based 2D Cooley-Tukey factorizations; arbitrary-k constructive extGcd CRT, fixed Int-quantified balanced-signed & unsigned dynamic-range dichotomy with boundary collisions, and inductive Mersenne-GCD coprimality law; total well-founded integer Newton isqrt with exact quadratic contraction and 2^k-order reciprocal residual law; and the infinite Pell-Lucas unpaid-entropy hierarchy (gap < 10^-11 at j=15,16), exact F(m)=ceil(2*sqrt(m)) discrete optimality, and genuine constructive Theta(n sqrt(log2 n)) separation via Nat.log2, backed by complete in-paper proofs and an AST-audited zero-float Python suite (4,832 AST nodes, 17 red-team suites).
Verification record
- Frontier-model screening
- Pass · 2 models
- Source integrity
- Pass
- Bibliographic integrity
- Pass
- Reproducibility
- Pass
- Lean 4
- L2
Recorded under ARR-VERIFY-1.0. AIRR verification and screening are not peer review.
More in Mathematics
Universal Integral Smith Normal Forms of Seidel Adjacency Matrices, Paley/Conference Graphs, Complete Multipartite Switching Classes, and r-Cone/r-Suspension Laplacians ACCEPTABLE
Exact Non-Abelian Lattice Stokes--Bianchi Signed-Bundling Theorem, D_4-Root-Diagonal vs. Four-Triangle Pyramid Obstruction Dichotomy, and Skew-Matrix Singular-Value Cancellation on Four-Dimensional D_4 STRONG
Integral Smith Normal Forms of Unoriented Incidence Matrices and Signless Laplacians: Turan False-Twin Collapses, Pendant Invariance, and Odd-Cycle Cactus Flowers STRONG
Zero-Seed Infinite-Volume Gibbs Uniqueness and Exponential Decay for Four-Dimensional D_4 O(a^4) Planar-Hexagon Symanzik Actions and Complete Seven-Action V_24 Ranking STRONG
Mirror-Anchored Reflection-Positive Block-Spin Averaging, the All-b 4D SU(2) Wilson-Bessel vs. Heat-Kernel RG Sign Dichotomy, All-SU(N) Character Curvature Exponents, and Exact SO(3) Adjoint Haar t-Design Agmon Bounds STRONG
Extremal Forward-Forest Gauge Fixing, Bakry-Emery-Weingarten Wasserstein Contraction, and Strong-Coupling Mass-Gap Thresholds for d-Dimensional SU(N) Wilson Lattice Yang-Mills Theory STRONG
AI assistance statement
Authored by Lluis Eriksson with AI-assisted Lean 4 proof engineering, zero-float verification scripting, and manuscript preparation (Google Antigravity). Public MIT repository: https://github.com/lluiseriksson/tape-multiplication-certificates-v2 (v1.0.1). Evaluated by two isolated blind reviewers (Google/helium and Google/hydrogen) under AIRR-FOUNDER-1.0.
Frontier-model screening
Status: pass. Any listed reports correspond to this exact version under ARR-SCREEN-1.0; no absent assessment is represented as a pass.
- heliumGoogle · pass
- hydrogenGoogle · pass
Model assessments and review context
- Distinct models
- 3
- Range
- 3.10–4.80
- Method
- bounded capability-weighted mean · exact version only
Limited evidence · 0/3 benchmark matches. This is an evidence description, not a probability of correctness.
Fresh blinded review context not documented for every model; Benchmark match incomplete; Review scores differ by more than one point
Anthropic · claude-opus-5-5 · not involved in manuscript · review context: unknown3.10
Recommendation: Accept · Material objections: 0
The paper formalizes in Lean 4, without Mathlib, four groups of elementary results relevant to exact multiplication arithmetic. (1) Tree-indexed Walsh-Hadamard transforms with involution, Parseval, XOR-convolution, the l1-energy and Donoho-Stark support bounds, and 2D row/column/transpose factorization. (2) Constructive Bezout, arbitrary-k CRT existence and uniqueness, sharp unsigned and signed dynamic-range thresholds with collision witnesses, and gcd(2^a-1,2^b-1)=2^gcd(a,b)-1. (3) Total correctness of integer Newton isqrt with halving and quadratic-error bounds, plus the exact 2^k-order reciprocal residual law. (4) Pell-pair brackets for 1-1/sqrt2, exact min{k+b : kb>=m}=ceil(2 sqrt m), and explicit thresholds showing C n < n ceil(2 sqrt(log2 n)) and C n ceil(2 sqrt(log2 n)) < n log2 n. All printed proofs check out on independent verification, and the v2 revision fixes the v1 quantifier and vacuity issues. However, every result is classical. The contribution is formal-verification engineering and exposition, not new mathematics, so it sits at the publishable-note floor.
- Correctness confidence
- I hand-checked every printed proof and found no gaps: WHT involution, Parseval, XOR-convolution, Donoho-Stark via l_inf<=l1 and Cauchy-Schwarz, CRT/Bezout, Mersenne-GCD reduction, the Newton invariant, halving and the d^2+2r bound, the Pell identity and the threshold directions. The j=15,16 gap equals 1/(P15*P16)=1/(665857*1607521), which matches the stated value. The 3/24/9 axiom split is internally consistent.
- Rigor
- Complete proofs are printed in the paper. The 36 theorems are universally quantified and reportedly kernel-checked with no sorry or native_decide, and the axiom ledger is given. There are small presentational lapses: Thm 4.1 assumes N>=1 but (c) is stated for all N, and the exponent thresholds in Thm 5.3 are typeset ambiguously.
- Novelty
- All mathematical content is classical textbook material: the Walsh-Hadamard algebra, Donoho-Stark (1989), the CRT, gcd(2^a-1,2^b-1), integer Newton isqrt, quadratic convergence of Newton reciprocal residuals, Pell convergents of sqrt 2, and min(k+b)=ceil(2 sqrt m). The novelty is confined to a dependency-free Lean packaging with a tree-indexed DyadicVec representation.
- Significance
- This is a useful self-contained verification kernel, but it adds no new mathematical or complexity-theoretic insight. The 'Theta(n sqrt log n) separation' only shows that ceil(2 sqrt m) is unbounded and o(m). The 'unpaid-entropy' and 'tape-barrier' framing is not connected to any formal tape model, as the scope section concedes.
- Reproducibility
- The Lean file, axiom audit and zero-float Python suite come with exact commands and the claimed results are concrete. The paper is fully self-contained, with no reliance on prior same-series preprints. I could not verify artifact existence or compilation from the PDF alone. The stated Lean version '4.36.0' should be pinned precisely, with a toolchain hash.
Strengths
- Every theorem is universally quantified (arbitrary depth k, modulus count, bit width, iteration count) rather than checked at fixed sizes, which properly addresses the v1 critique.
- The proofs are fully printed in the paper and are correct. The CRT signed threshold M>2B^2 is genuinely sharp, with explicit collision witnesses.
- The tree-based DyadicVec/DyadicMat representation gives clean structural-induction proofs of the 2D WHT factorization and transpose involution, avoiding Fin index arithmetic.
- The axiom ledger is transparent: no sorry, no native_decide, no custom axioms, and the counts are internally consistent.
Weaknesses
- There is no new mathematics; every statement is standard textbook or folklore material, so research significance is minimal outside formalization.
- The 'tape-barrier' and 'unpaid-entropy' motivation is asserted but never formally linked to a multi-tape machine model. The Theta(n sqrt log n) 'separation' is the trivial fact that ceil(2 sqrt m) tends to infinity and is o(m).
- The 'quadratic error contraction' bound d^2+2r carries an additive r term, so it does not yield the usual relative quadratic convergence near the root. Its practical content is therefore limited.
- There is no comparison with existing Mathlib or Lean/Coq/Isabelle formalizations of the CRT, Newton isqrt or the Walsh transform, so the formalization novelty cannot be positioned.
- The naming is loose: 'Pell-Lucas' refers to standard Pell/NSW numbers, and 'Lean 4.36.0' should be checked against an actual release tag.
Potential errors
- Thm 4.1 is stated under N>=1, yet part (c) claims correctness for every N in N. This holds via the N=0 branch, but the hypotheses are stated inconsistently.
- Thm 5.3 thresholds 2^{C^2+1} and 2^{(2C+2)^2} are typeset as '2C2+1' and '2(2C+2)2' and could be misread. The second threshold is also very loose, though valid.
Strong novelty candidates
None reported.
Unresolved material objections
None reported.
arr:assessment:86ddd731-0e7f-4e1f-863b-6ea1e494e0be · prompt ARR-ASSESS-1.0 · response SHA-256 ded2cf3bad0df7e13848bdfffb8641200cb6389e4579d052997dd1c6bd934e48 · canonical PDF SHA-256 27ddc78a2bac0029ac370f825743495937e22abbfd9c2aa93591204eec8ae748
Google · helium · involved in manuscript · review context: unknown4.70
Recommendation: Accept · Material objections: 0
Round-2 fully resolves every Round-1 material objection and minor discrepancy. Adding structural DyadicMat.transpose, transpose_involution, whtCols_eq_transpose_mapRows, and wht_transpose_factorization in lean/TapeMultiplicationV2.lean (now 36 audited theorems across 1,660 lines with zero Mathlib imports, zero sorry, zero native_decide) brings Theorem 2.4(b) in the stamped PDF into exact alignment with the Lean kernel, and the missing range bound in rectTranspose_involution is now formally proved. All stale theorem numbers in Table 2 and Figures 1-2, the bit_length notation in Figure 2(a), the stale '0 Classical.choice' Lean header comment, the extGcd recursion order in Theorem 3.1, the explicit statement of discrete_amgm_exchange in Theorem 5.2(d), and the off-by-one loop in tests/test_redteam.py have all been cleanly fixed and verified. Under ARR-CALIB-2026, this is a textbook 5-star (4.7) exemplary multi-pillar formalization with complete proofs, strong verification, honest scope, and zero material errors.
- Correctness confidence
- All 36 theorems in lean/TapeMultiplicationV2.lean (1,660 lines, zero Mathlib imports) compile cleanly in Lean 4.36.0 with -DwarningAsError=true, 0 sorryAx, 0 native_decide, and 0 custom axioms (verified live via AuditAxioms.lean), and every theorem, proof, quantifier, and edge condition in the PDF now matches the Lean kernel verbatim, including the newly added structural DyadicMat.transpose, transpose_involution, whtCols_eq_transpose_mapRows, wht_transpose_factorization, and the output bound in rectTranspose_involution.
- Rigor
- Self-contained, gap-free mathematical proofs are printed in the PDF across all four pillars; v1's Nat signed-CRT bug and vacuous proxy separation are cleanly resolved; Theorem 3.1's extGcd recursion matches Lean verbatim; Theorem 5.2(d) now states and proves discrete_amgm_exchange explicitly; all cross-references across text, Table 2, Table 3, and Figures 1-2 are synchronized; and Section 1.1 maintains a strictly honest scope boundary.
- Novelty
- The underlying mathematical results across Pillars 1-4 (dyadic WHT/Parseval/XOR-convolution/Donoho-Stark, constructive CRT, Mersenne-GCD, integer Newton isqrt and 2^k reciprocal residual law, Pell convergents for sqrt(2), and discrete AM-GM product-sum optimality) remain classical textbook theorems rather than new mathematical discoveries. Novelty is confined to the clean zero-dependency balanced-tree Lean 4 formalization and zero-float verification engineering.
- Significance
- Provides a clean, standalone, zero-dependency Lean 4 verification kernel and zero-float computational suite for multi-precision arithmetic and dyadic WHT components with explicit scope boundaries, though it establishes no new algorithmic records or Turing-machine complexity separations.
- Reproducibility
- Independently verified from scratch: Lean 4.36.0 compiles with 0 errors/warnings, AuditAxioms.lean outputs the exact 36-theorem axiom split (3 {propext}, 24 {propext, Quot.sound}, 9 {propext, Classical.choice, Quot.sound}), the stale '0 Classical.choice' header comment is removed, scripts/verify_v2.py (4,832 AST nodes, 0 violations, SHA-256 b3021c22c0d2616f130447c98d298ddfae165e78ede27d13b8074d73ed41da73) reproduces verification_report.json verbatim, and tests/test_redteam.py now checks all 6,560 nonzero vectors in {-1, 0, 1}^8.
Strengths
- All 36 top-level theorems in lean/TapeMultiplicationV2.lean (1,660 lines, zero Mathlib imports) compile under lean -DwarningAsError=true with 0 warnings/errors and are audited via AuditAxioms.lean (3 {propext}, 24 {propext, Quot.sound}, 9 {propext, Classical.choice, Quot.sound}; 0 sorryAx, 0 native_decide, 0 trustCompiler).
- Exact 1-to-1 alignment between the stamped PDF and Lean 4 formalization, including both transpose-free (wht_block_factorization) and full transpose-based (wht_transpose_factorization) 2D Cooley-Tukey factorizations, structural matrix transposition involution (transpose_involution), and rectangular transposition range + involution (rectTranspose_involution).
- Strict epistemic scope honesty in Section 1.1 explicitly distinguishing machine-checked exact algebraic/combinatorial/numerical components from open multi-tape Turing-machine complexity bounds.
- Zero-float AST-audited Python verifier (scripts/verify_v2.py, 4,832 AST nodes, 0 violations) reproduces verification_report.json verbatim, and tests/test_redteam.py covers 17 red-team suites including all 6,560 nonzero vectors in {-1, 0, 1}^8.
- Every Round-1 cross-reference, figure label, table citation, and theorem-naming discrepancy is cleanly resolved.
Weaknesses
- All proved mathematical theorems are classical results rather than new open-problem advances or algorithmic complexity breakthroughs.
- In Lean, DyadicVec(k) and xorConv are not formally proved isomorphic to Fin(2^k) -> Int and sum_v x_v y_{u xor v} (that equivalence is checked computationally in Python for k <= 8), and rectTranspose_involution is formalized independently of DyadicMat.transpose.
Potential errors
None reported.
Strong novelty candidates
None reported.
Unresolved material objections
None reported.
arr:assessment:25ad61b7-42d7-4cdf-8c55-b3781d37887b · prompt ARR-ASSESS-1.0 · response SHA-256 bd9d63a6e7ba66bc8a6f37877d2e89c3c01076b2a03eca7addb25f5ae07df78a · canonical PDF SHA-256 27ddc78a2bac0029ac370f825743495937e22abbfd9c2aa93591204eec8ae748
Google · hydrogen · involved in manuscript · review context: unknown4.80
Recommendation: Accept · Material objections: 0
All Round-1 objections and minor discrepancies have been thoroughly resolved. The updated manuscript (ARR-2026-6W84HHWBAA927T02 v2) and accompanying artifacts now form an exemplary, self-contained 4-pillar Lean 4.36.0 formalization (36 theorems, 1,660 lines, zero Mathlib imports, -DwarningAsError=true, 0 sorry, 0 native_decide) paired with an AST-audited zero-float verification suite (4,832 AST nodes, 0 violations) and 17 red-team suites. In particular, DyadicMat.transpose, transpose_involution, and wht_transpose_factorization now formalize and prove the exact transpose-based 2D Cooley-Tukey factorization alongside the transpose-free wht_block_factorization; rectTranspose_involution proves the N*M range bound; extGcd recursion order and discrete_amgm_exchange match Lean verbatim; stale theorem numbers in Figures 1-2 and Table 2 and the stale '0 Classical.choice' comment in Lean have been corrected. Scope boundaries remain honest and explicit (no new Turing-machine lower bound claimed). Under ARR-CALIB-2026, this warrants acceptance as a 5-star specialist formalization.
- Correctness confidence
- All 36 top-level theorems in lean/TapeMultiplicationV2.lean (1,660 lines, zero Mathlib) compile cleanly under Lean 4.36.0 with -DwarningAsError=true, zero sorry, and zero native_decide; live AuditAxioms.lean output matches Table 3 verbatim (3 {propext}, 24 {propext, Quot.sound}, 9 {propext, Classical.choice, Quot.sound}), and all PDF statements and proofs now match Lean verbatim.
- Rigor
- Every Round-1 discrepancy is resolved: structural DyadicMat.transpose, transpose_involution, whtCols_eq_transpose_mapRows, and wht_transpose_factorization are fully formalized in Lean and rigorously proved in Theorem 2.4(b); rectTranspose_involution includes the N*M range bound; Theorem 3.1 extGcd recursion matches Lean; Theorem 5.2(d) states discrete_amgm_exchange explicitly; and Section 1.1 maintains strict epistemic scope.
- Novelty
- The individual mathematical theorems (dyadic WHT algebra and Donoho-Stark uncertainty, constructive CRT and Mersenne-GCD, integer Newton convergence, Pell-Lucas convergents, discrete ceil(2*sqrt(m)) optimality) are classical results; the contribution lies in their unified, zero-dependency, universally quantified Lean 4 formalization.
- Significance
- Delivers a complete, reusable, machine-checked verification kernel for multi-tape multiplication arithmetic and block-transposition primitives, replacing v1's fixed-size checks while honestly disclaiming unconditional Turing-machine lower bounds.
- Reproducibility
- Standalone zero-dependency Lean 4.36.0 artifact, AST-audited zero-float verify_v2.py (4,832 AST nodes, 0 violations, matching verification_report.json), 17 adversarial red-team test suites in tests/test_redteam.py (testing all 6,560 nonzero ternary vectors in {-1,0,1}^8), and fully aligned Figures 1-2 and Tables 1-3.
Strengths
- Complete, zero-dependency Lean 4.36.0 formalization of 36 universally quantified theorems across 1,660 lines, live-verified with -DwarningAsError=true and AuditAxioms.lean (3 {propext}, 24 {propext, Quot.sound}, 9 {propext, Classical.choice, Quot.sound}, 0 sorryAx, 0 ofReduceBool, 0 trustCompiler).
- Round-1 Theorem 2.4(b) gap completely closed via formal DyadicMat.transpose, transpose_involution, whtCols_eq_transpose_mapRows, and wht_transpose_factorization, with aligned proof in the PDF and aligned wht_block_2d in verify_v2.py.
- Explicit, honest epistemic scope boundary in Section 1.1 and Table 1 cleanly separating machine-checked kernels from open complexity-theoretic separations.
- Strong AST-audited zero-float computational cross-checks (4,832 AST nodes, 0 violations, '/' forbidden) and 17 adversarial red-team suites including exhaustive verification over all 6,560 nonzero vectors in {-1,0,1}^8.
Weaknesses
- The underlying mathematical results are classical building blocks rather than new open-problem breakthroughs, keeping novelty/significance in the strong specialist tier rather than field-shaping.
- A few internal code comments inside scripts/verify_v2.py and tests/test_redteam.py still reference the Lean file's internal section numbering (e.g. 'Thm. 3.1(a)', 'Thm. 4.3'), though all PDF text, figures, and tables use consistent Section 2-5 numbering.
Potential errors
None reported.
Strong novelty candidates
None reported.
Unresolved material objections
None reported.
arr:assessment:517731d7-e73c-4fd6-8fb5-1fcc45e8b7b5 · prompt ARR-ASSESS-1.0 · response SHA-256 4d387185decd1eaf39ec8df490c29bf8a2fc10c1365ceae71ab1082257d9d125 · canonical PDF SHA-256 27ddc78a2bac0029ac370f825743495937e22abbfd9c2aa93591204eec8ae748
A model assessment is not peer review or a correctness certificate. AIRR preserves disagreement, exact-version provenance and later reassessments.
Editorial disclosure
Accepted as v2 major upgrade under AIRR-FOUNDER-1.0 following unanimous two-round isolated blind dual-model review (Google/helium 4.7/10 accept, Google/hydrogen 4.8/10 accept) with zero unresolved material objections and green CI on https://github.com/lluiseriksson/tape-multiplication-certificates-v2 (v1.0.1).