Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Round six, complex side: correctness and cost of the recursive C-layer for slot-set networks

Proved
IntMul.Kappa.R6.Cx.recH_main

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

complexity-theoryinteger-multiplicationkappa-improvement

Let JJJ be a round-six complex interchange network Prop8IfaceH W T m h: a program on WWW data roles and TTT clean temporaries whose recursive child calls act on slot sets S⊆{0,…,m−1}S \subseteq \{0,\dots,m-1\}S⊆{0,…,m−1} (with sign sets), whose child widths form the multiset described by the histogram h=[(w,nw)]h = [(w, n_w)]h=[(w,nw​)], and which is correct on the data-to-data block. Let m≥2m \ge 2m≥2, 0<σ≤10 < \sigma \le 10<σ≤1, Lloc≥0L_{\mathrm{loc}} \ge 0Lloc​≥0, all widths 0<w<m0 < w < m0<w<m, and assume the moment condition

∑(w,nw)∈hnw(wm)σ<W.\sum_{(w, n_w) \in h} n_w \left(\frac{w}{m}\right)^{\sigma} < W.(w,nw​)∈h∑​nw​(mw​)σ<W.

Then (1) for every number of axes eee, the recursive C-layer recOpH J e computes exactly C⊗eC^{\otimes e}C⊗e, and (2) there is a constant KKK such that its cost on volume V≥0V \ge 0V≥0 satisfies

recCostH(J,Lloc,e,V)≤K V eσ.\mathrm{recCostH}(J, L_{\mathrm{loc}}, e, V) \le K\, V\, e^{\sigma}.recCostH(J,Lloc​,e,V)≤KVeσ.

This is the complex-side analogue of the OpenAI network recursion (§5.3), extended to children of arbitrary widths via slot sets.

In Lean:

theorem IntMul.Kappa.R6.Cx.recH_main {W T m : ℕ} {h : List (ℕ × ℕ)} [NeZero W] (J : Prop8IfaceH W T m h)
    {Lloc σ : ℝ} (hL : 0 ≤ Lloc) (hm : 2 ≤ m) (hσ0 : 0 < σ) (hσ1 : σ ≤ 1)
    (hw : ∀ p ∈ h, 0 < p.1 ∧ p.1 < m) (hmom : IntMul.Kappa.histMoment h m σ < W) :
    (∀ e, recOpH J e = Butterfly.tens Butterfly.Cm) ∧
      ∃ K : ℝ, ∀ (e : ℕ) (V : ℝ), 0 ≤ V → recCostH J Lloc e V ≤ K * V * (e : ℝ) ^ σ

Formalization Note. Part of the Lean formalization of the round-six κ-improvement (integer-multiplication-kappa campaign, target IntMul.Kappa.jain_round6_framework). The statement is copied verbatim from the Lean development; the platform node carries the same declaration name. Definitions it mentions live in the IntMul_Kappa_R6_Defs* bundles (on top of the published κ bundles IntMul_Kappa_K_Defs*).

Preamble
-- Round-six κ development (integer-multiplication-kappa), generated by skeleton subtraction.

import Definitions.Def_IntMul_Kappa_R6_Defs2

set_option autoImplicit false
set_option relaxedAutoImplicit false
set_option maxHeartbeats 1000000

open IntMul IntMul.Kappa IntMul.Kappa.R6 IntMul.Kappa.R6.Cx
Formal statement
theorem IntMul.Kappa.R6.Cx.recH_main {W T m : ℕ} {h : List (ℕ × ℕ)} [NeZero W] (J : Prop8IfaceH W T m h)
    {Lloc σ : ℝ} (hL : 0 ≤ Lloc) (hm : 2 ≤ m) (hσ0 : 0 < σ) (hσ1 : σ ≤ 1)
    (hw : ∀ p ∈ h, 0 < p.1 ∧ p.1 < m) (hmom : IntMul.Kappa.histMoment h m σ < W) :
    (∀ e, recOpH J e = Butterfly.tens Butterfly.Cm) ∧
      ∃ K : ℝ, ∀ (e : ℕ) (V : ℝ), 0 ≤ V → recCostH J Lloc e V ≤ K * V * (e : ℝ) ^ σ := by sorry
Source
S. Jain, round-six networks for the integer-multiplication κ-improvement campaign (https://github.com/Swapnil-jain/integer-mult-kappa, commit 5868dc7) and D. Colkitt, integer-mult-bounds (https://github.com/CrocSwap/integer-mult-bounds); target `IntMul.Kappa.jain_round6_framework`. Lean declaration `IntMul.Kappa.R6.Cx.recH_main`, Solutions/R6CxMain.lean (lines 17–24) of the round-six development.

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