Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

The entry procedure

Proved
NLogN.KFW.p14Q

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

complexity-theoryinteger-multiplicationkappa-improvement

The entry procedure.

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

theorem NLogN.KFW.p14Q (jG jE jT jL jW : Fin Pp) (rowC : IStmt HS Pp)
    (hG : tbl jG = logC jG (coreC jE)) (hEc : tbl jE = eaccC jE (NLogN.KFW.bodyC jT jW))
    (hT : tbl jT = NLogN.KFW.topC jT jL) (hW : tbl jW = lowC jW jL) (hL : tbl jL = levC jL rowC)
    {K r Z Zr P D S ρ p w k q0 Bp H Mb Bz : ℕ} {Kc : ℝ}
    (hk : k = Nat.log mC D) (hq : q0 = q0f D k)
    (hBp : Bp = padB (P * 2 ^ (K * q0)) (P8Lift.Wc ^ k)) (hH : H = w + KFM.EwB NLogN.KFW.A0 D)
    (LV : ∀ j, LvQ Isym tbl jL rowC K r Z Zr H j (cbW Kc K j))
    (hρ : ρ < K) (hK : 1 ≤ K) (hS : 1 ≤ S) (hP : 1 ≤ P) (hr : 1 ≤ r) (hD : 1 ≤ D)
    (hZ32 : zsz ((32 * (P * 2 ^ (K * D) * S * r) : ℕ) : ℤ) ≤ Z)
    (hVt : zsz ((Vb K (K * D) S r H 0 P : ℕ) : ℤ) ≤ Zr)
    (hVl : ∀ j ≤ k, zsz ((Vb K (K * (D - q0)) S r H j Bp : ℕ) : ℤ) ≤ Zr)
    (hMb : zsz (Mb : ℤ) ≤ Bz) (hM : MbB K P D w k q0 Bp ≤ Mb)
    (hEZ : zsz (((q0 + lowF ES k (D - q0) + (D / 2 + D % 2)) : ℕ) : ℤ) ≤ Z)
    (hp : zsz (p : ℤ) ≤ Z) (hwZ : w < 2 ^ Z)
    (st : IState HS) (f : Fin HS → List ℤ) (zs : List GI) (l : List ℤ)
    (xs : List (Fin r → ℂ)) (hx : RecRep r p zs xs)
    (hl : xs.length = AModel.vol (Butterfly.layerShape P K D S)) (h0 : f 0 = gflat zs ++ l)
    (h36 : f 36 = [(P : ℤ), (K : ℤ), (D : ℤ), (S : ℤ), (ρ : ℤ), (r : ℤ), (p : ℤ), (w : ℤ), (Z : ℤ)])
    (hfree : ∀ j : Fin HS, j ≠ 0 → j ≠ 36 → j.val < 50 → f j = [])
    (hb : NLogN.KFB.GB w zs) (hdisk : ∀ j (h : j < xs.length), ‖xs[j]‖ ≤ 1)
    (hex : ∃ zs', RecRep r p zs' (Butterfly.prop14Proc (P := P) (S := S) hρ p
        (Butterfly.tens Butterfly.Cm : Butterfly.Op (Fin D)) xs)) :
    IRuns Isym tbl (p14C jG) (NLogN.KIL.encK st f)
      (NLogN.KIL.encK st (Function.update f 0 (gflat (Classical.choose hex) ++ l)))
      (8 * (2 * moveCost Z + 19) + (cChain Kc K S r H P D k q0 Bp Z Zr Bz w +
        8 * (2 * moveCost Z + 19)))

Context. The lemma belongs to the part KFW C-layer 16: the run of the entry procedure.

Formalization Note. This lemma belongs to layer 5 of the Lean formalization (integer-multiplication-kappa campaign) of the OpenAI preprint Integer multiplication below nlog⁡nn\log nnlogn: the uniform item-language machine (register programs over the NLogN multitape framework) assembling the Proposition 14 / Lemma 13 / Proposition 18 pieces, the resampling and chirp stages and the cost recurrences into one fixed machine, culminating in NLogN.KFTop.kappa_bound : IntMul.KappaBound (1 / 2 ^ 182) (the bound of Def_IntMul_MultitapeModel). All names refer to the definition bundles up to IntMul_Kappa_K_Defs33.

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

import Definitions.Def_IntMul_Kappa_K_Defs33

set_option autoImplicit false
set_option relaxedAutoImplicit false
set_option maxHeartbeats 1000000

set_option linter.unusedSimpArgs false
set_option linter.unusedVariables false
set_option linter.unusedSectionVars false
open NLogN
open NLogN.KFW
open IntMul KIL KFD KFB KFG KFH KFN Complex Butterfly
variable {Pp : ℕ} {Isym : List Sym} {tbl : Fin Pp → IStmt HS Pp}
Formal statement
theorem NLogN.KFW.p14Q (jG jE jT jL jW : Fin Pp) (rowC : IStmt HS Pp)
    (hG : tbl jG = logC jG (coreC jE)) (hEc : tbl jE = eaccC jE (NLogN.KFW.bodyC jT jW))
    (hT : tbl jT = NLogN.KFW.topC jT jL) (hW : tbl jW = lowC jW jL) (hL : tbl jL = levC jL rowC)
    {K r Z Zr P D S ρ p w k q0 Bp H Mb Bz : ℕ} {Kc : ℝ}
    (hk : k = Nat.log mC D) (hq : q0 = q0f D k)
    (hBp : Bp = padB (P * 2 ^ (K * q0)) (P8Lift.Wc ^ k)) (hH : H = w + KFM.EwB NLogN.KFW.A0 D)
    (LV : ∀ j, LvQ Isym tbl jL rowC K r Z Zr H j (cbW Kc K j))
    (hρ : ρ < K) (hK : 1 ≤ K) (hS : 1 ≤ S) (hP : 1 ≤ P) (hr : 1 ≤ r) (hD : 1 ≤ D)
    (hZ32 : zsz ((32 * (P * 2 ^ (K * D) * S * r) : ℕ) : ℤ) ≤ Z)
    (hVt : zsz ((Vb K (K * D) S r H 0 P : ℕ) : ℤ) ≤ Zr)
    (hVl : ∀ j ≤ k, zsz ((Vb K (K * (D - q0)) S r H j Bp : ℕ) : ℤ) ≤ Zr)
    (hMb : zsz (Mb : ℤ) ≤ Bz) (hM : MbB K P D w k q0 Bp ≤ Mb)
    (hEZ : zsz (((q0 + lowF ES k (D - q0) + (D / 2 + D % 2)) : ℕ) : ℤ) ≤ Z)
    (hp : zsz (p : ℤ) ≤ Z) (hwZ : w < 2 ^ Z)
    (st : IState HS) (f : Fin HS → List ℤ) (zs : List GI) (l : List ℤ)
    (xs : List (Fin r → ℂ)) (hx : RecRep r p zs xs)
    (hl : xs.length = AModel.vol (Butterfly.layerShape P K D S)) (h0 : f 0 = gflat zs ++ l)
    (h36 : f 36 = [(P : ℤ), (K : ℤ), (D : ℤ), (S : ℤ), (ρ : ℤ), (r : ℤ), (p : ℤ), (w : ℤ), (Z : ℤ)])
    (hfree : ∀ j : Fin HS, j ≠ 0 → j ≠ 36 → j.val < 50 → f j = [])
    (hb : NLogN.KFB.GB w zs) (hdisk : ∀ j (h : j < xs.length), ‖xs[j]‖ ≤ 1)
    (hex : ∃ zs', RecRep r p zs' (Butterfly.prop14Proc (P := P) (S := S) hρ p
        (Butterfly.tens Butterfly.Cm : Butterfly.Op (Fin D)) xs)) :
    IRuns Isym tbl (p14C jG) (NLogN.KIL.encK st f)
      (NLogN.KIL.encK st (Function.update f 0 (gflat (Classical.choose hex) ++ l)))
      (8 * (2 * moveCost Z + 19) + (cChain Kc K S r H P D k q0 Bp Z Zr Bz w +
        8 * (2 * moveCost Z + 19))) := 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.KFW.p14Q` of the Lean development Solutions/KFWC16.lean (lines 23–111), 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