Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Generalized Prop. 11 from formal frames (round six, `prop11H_formal`)

Proved
IntMul.Kappa.R6.Bit.prop11H_formal

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

complexity-theoryinteger-multiplicationkappa-improvement

Generalized Prop. 11 from formal frames. As prop11H_labels, with LabOK and ScalarOK replaced by FormalOK (no label condition on gates).

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

theorem IntMul.Kappa.R6.Bit.prop11H_formal {R : Type*} [CommRing R] {W T m : ℕ} [NeZero W] (C : QHNet R W T m)
    {q : ℕ} (hq : 1 ≤ q) (hm : 2 ≤ m) (hruns : C.RunsOK) (hE : ∀ f, C.EdgesOK (q ^ f))
    (hF : ∀ f, C.FormalOK (q ^ f)) {τ : ℝ} (hτ0 : 0 < τ) (hτ1 : τ ≤ 1)
    (hmom : histMoment C.hist m τ < W) :
    (∀ (e P L : ℕ) (A B Cs : Shape) (xs : List R), W ^ depH m e ∣ L →
      xs.length = vol (P :: L :: hdShape A B Cs e q) →
      progH C q e P L A B Cs xs =
        pull (P :: L :: hdShape A B Cs e q) (P :: L :: hdShape A B Cs e q)
          (blockSwap (A.length + 2) (A.length + B.length + e + 2) e) 0 xs) ∧
    ∃ K : ℝ, ∀ (e : ℕ) (V : ℝ), 0 ≤ V → costH C e V ≤ K * V * (e : ℝ) ^ τ

Context. Round six, bit side: the formal-frame calculus (FormalOK), replacing LabOK

R6BitNBObst shows that single-label networks (LabOK: every gate touches wires with equal frames) cannot save anything. S. Jain's two-stage network needs wires whose content is a sum of terms at different frames: after the two stages the data outputs are A = F y and B = F x + E y, and the copy correction (copy A, frame change T on the copy, T F = E, XOR into B) cancels E y in characteristic two.

The calculus: a wire's content is tracked as a formal value, a finite R-combination of framed inputs (F, u), meaning Φ(F)(ins u) (frameArr). Edges multiply every frame on the left by the edge matrix (lmulF), gates act linearly; no label condition on gates. If every role ρ w ends with the single term (swapMat, w), the ideal network is correct (idealOK_of_formal), and the generalized Prop. 11 follows (prop11H_formal).

For proofs about concrete networks:

  • formal_labels: on a program segment whose gates are label consistent (the old LabGates), formal values of the form L_w · φ_w evolve as L'_w · (scalar circuit on φ)_w, where the scalar circuit runs on module-valued wires (scalarStepM; here the module of formal values). So each stage of the two-stage motif is handled by its frame labels plus its scalar identity, and the stages compose through formal values.
  • partial swaps psw p = [[1-p, p], [p, 1-p]]: psw p * psw q = psw (p + q - 2pq),

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_Defs4

set_option autoImplicit false
set_option relaxedAutoImplicit false
set_option maxHeartbeats 1000000

open IntMul IntMul.Kappa IntMul.Kappa.R6 IntMul.Kappa.R6.Bit
open AModel AModelFac Matrix
Formal statement
theorem IntMul.Kappa.R6.Bit.prop11H_formal {R : Type*} [CommRing R] {W T m : ℕ} [NeZero W] (C : QHNet R W T m)
    {q : ℕ} (hq : 1 ≤ q) (hm : 2 ≤ m) (hruns : C.RunsOK) (hE : ∀ f, C.EdgesOK (q ^ f))
    (hF : ∀ f, C.FormalOK (q ^ f)) {τ : ℝ} (hτ0 : 0 < τ) (hτ1 : τ ≤ 1)
    (hmom : histMoment C.hist m τ < W) :
    (∀ (e P L : ℕ) (A B Cs : Shape) (xs : List R), W ^ depH m e ∣ L →
      xs.length = vol (P :: L :: hdShape A B Cs e q) →
      progH C q e P L A B Cs xs =
        pull (P :: L :: hdShape A B Cs e q) (P :: L :: hdShape A B Cs e q)
          (blockSwap (A.length + 2) (A.length + B.length + e + 2) e) 0 xs) ∧
    ∃ K : ℝ, ∀ (e : ℕ) (V : ℝ), 0 ≤ V → costH C 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.Bit.prop11H_formal`, Solutions/R6BitNBFormal.lean (lines 263–276) 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