Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

The network (register counts, under the invariant)

Proved
NLogN.KFD.netCF_runs

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

complexity-theoryinteger-multiplicationkappa-improvement

The network (register counts, under the invariant).

The following holds (Lean statement, in the scope of module Solutions.KFDNet):

theorem NLogN.KFD.netCF_runs {G0 : Fin HS → List Item} (Φ : M → List (ZMod 2) → List (ZMod 2))
    (Pr : M → Prop)
    (hΦl : ∀ X, Pr X → ∀ ys : List (ZMod 2), ys.length = v → (Φ X ys).length = v)
    (hE : ∀ X, Pr X → ∀ ys : List (ZMod 2), ys.length = v → ∀ (t : IState HS) (R : List Item),
      NLogN.KIL.Inv G0 t →
      IRuns I iprog (E X) (t.upd 0 (ints (enc2 ys) ++ R)) (t.upd 0 (ints (enc2 (Φ X ys)) ++ R))
        (cE X))
    (s : IState HS) (hs : NLogN.KIL.Inv G0 s) (rest : List ℤ) {Bb : ℕ} (hB : TabB W v Bb) (hv1 : 1 ≤ v)
    (Mout : Fin W → M) :
    ∀ (gates : List (NGate (Fin W) (ZMod 2) M)) (lab : Fin W → M) (Y : Fin W → Fin v → ZMod 2)
      (f : Fin HS → List ℤ), FramesOK Pr gates lab Mout →
      (∀ r, Prot r → f r = []) → RegS s f W v →
      f 0 = tabR 0 W (tabOf Y) ++ rest → f 21 = [] →
      IRuns I iprog (netCF E Mout lab gates) (encK s f)
        (encK s (Function.update f 0
          (tabR 0 W (tabOf (netRunF (funΦ v Φ) gates lab Mout Y)) ++ rest)))
        (netCIF cE (W * v) Bb Mout lab gates)

Context. The lemma belongs to the part KFD: the fine network of one level: KIL5Net's framesU_runs, gateCU_runs, netCU_runs for the fine table code (applyCF, fcode rebuildCU, KFDTab). Every frame change costs cE X + cCF (W·v) Bb, every gate cRebuildF W (W·v) Bb + 1; cCF V Bb = O(V) + O((Bb+2)^2).

Formalization Note. This lemma belongs to the item-language (IL) layer of the integer-multiplication-kappa campaign: tape-level programs (register programs over 64 item stacks of the NLogN multitape framework, definition bundles IntMul_HvdH_M_Defs1–IntMul_HvdH_M_Defs8) that implement the data-movement primitives of the OpenAI preprint Integer multiplication below nlog⁡nn\log nnlogn (field moves, row split/merge, shifts, the uniform Proposition 11 interchange, Lemma 12 with fine O(1)O(1)O(1)-per-element costs, Gaussian record primitives, Proposition 14 pieces) with exact list denotations from the array-model bundles IntMul_Kappa_K_Defs* and explicit cost bounds. All names refer to the definition bundles up to IntMul_Kappa_K_Defs18.

Preamble
-- OpenAI-preprint / κ-improvement development (integer-multiplication-kappa), generated by skeleton subtraction.

import Definitions.Def_IntMul_Kappa_K_Defs18

set_option autoImplicit false
set_option relaxedAutoImplicit false
set_option maxHeartbeats 1000000

set_option linter.unusedSimpArgs false
set_option linter.unnecessarySeqFocus false
open NLogN
open NLogN.KFD
open IntMul RS AModel KIL
variable {Pp : ℕ} {I : List Sym} {iprog : Fin Pp → IStmt HS Pp}
variable {W v : ℕ} {M : Type*} [AddGroup M]
variable (E : M → IStmt HS Pp)
variable (cE : M → ℕ)
variable {E cE}
Formal statement
theorem NLogN.KFD.netCF_runs {G0 : Fin HS → List Item} (Φ : M → List (ZMod 2) → List (ZMod 2))
    (Pr : M → Prop)
    (hΦl : ∀ X, Pr X → ∀ ys : List (ZMod 2), ys.length = v → (Φ X ys).length = v)
    (hE : ∀ X, Pr X → ∀ ys : List (ZMod 2), ys.length = v → ∀ (t : IState HS) (R : List Item),
      NLogN.KIL.Inv G0 t →
      IRuns I iprog (E X) (t.upd 0 (ints (enc2 ys) ++ R)) (t.upd 0 (ints (enc2 (Φ X ys)) ++ R))
        (cE X))
    (s : IState HS) (hs : NLogN.KIL.Inv G0 s) (rest : List ℤ) {Bb : ℕ} (hB : TabB W v Bb) (hv1 : 1 ≤ v)
    (Mout : Fin W → M) :
    ∀ (gates : List (NGate (Fin W) (ZMod 2) M)) (lab : Fin W → M) (Y : Fin W → Fin v → ZMod 2)
      (f : Fin HS → List ℤ), FramesOK Pr gates lab Mout →
      (∀ r, Prot r → f r = []) → RegS s f W v →
      f 0 = tabR 0 W (tabOf Y) ++ rest → f 21 = [] →
      IRuns I iprog (netCF E Mout lab gates) (encK s f)
        (encK s (Function.update f 0
          (tabR 0 W (tabOf (netRunF (funΦ v Φ) gates lab Mout Y)) ++ rest)))
        (netCIF cE (W * v) Bb Mout lab gates) := by sorry
Source
OpenAI, Integer multiplication below n log n (preprint, 23 Sep 2026), https://github.com/openai/math/tree/adc7f1241b42e322a6451854ab7e4b4c146bf78a/preprints/Integer-multiplication-below-n-log-n-September-23-2026. Lemma `NLogN.KFD.netCF_runs` of the Lean development Solutions/KFDNet.lean (lines 197–240), integer-multiplication-kappa campaign.

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