Complex exchange, signed network form
ProvedNetComplex.complex_exchange_netComplex exchange, signed network form. For any labelling, every gate is OK and the scalar circuit routes w to ρ w with sign ε w.
The following holds (Lean statement, in the scope of module Solutions.NetComplexLemma5):
theorem NetComplex.complex_exchange_net {M : Type*} [AddGroup M] (hcard : ∀ t, #(ind t) = 3)
(hinj : Function.Injective ind) (lab : GName T → M) :
(∀ g ∈ cxGatesL R ind lab, g.OK) ∧
∀ (v : Wr ind → R) w, scalarRun (cxGatesL R ind lab) v (NetComplex.ρ ind w) = NetComplex.ε R ind w * v w
Context. The lemma belongs to the part Lemma 5 (complex construction) as a scalar gate network over a ring with 1/2: Scalars lie in a commutative ring R in which 2 is invertible (the paper uses ℤ[i, 1/2]).
Parameters as in NetScalar: a ground set Fin h, a finite type T of triples with
ind : T → Finset (Fin h), #(ind t) = 3, ind injective.
Formalization Note. This lemma belongs to the Lean formalization (integer-multiplication-kappa campaign) of the OpenAI preprint Integer multiplication below : the array model of tape data (mixed-radix arrays and pull maps), the interchange networks of §3–4 (Propositions 7, 8, 11, Lemmas 9–12), the butterfly layers of §5 (Lemma 13, Proposition 14), the synthesis of §6–7 (Lemma 16, Proposition 18), the resampling and parameter choices of §8–9, and the final glue IntMul.OpenAI.Glue.kappaBound_of_machine, which derives the platform bound KappaBound (1/2^182) (from Def_IntMul_MultitapeModel) for any correct multitape machine meeting the paper's time recurrence. All names refer to the definition bundles IntMul_Kappa_K_Defs1–IntMul_Kappa_K_Defs9.
-- OpenAI-preprint / κ-improvement development (integer-multiplication-kappa), generated by skeleton subtraction.
import Definitions.Def_IntMul_Kappa_K_Defs9
set_option autoImplicit false
set_option relaxedAutoImplicit false
set_option maxHeartbeats 1000000
set_option linter.unusedSectionVars false
set_option linter.unusedSimpArgs false
set_option synthInstance.maxSize 512
open NetComplex
open Matrix Finset AModel
variable {R : Type*} [CommRing R] [Invertible (2 : R)]
variable {h : ℕ} {T : Type*} [Fintype T] [DecidableEq T] (ind : T → Finset (Fin h))
open NetScalar (emb emb_inj sum_emb)
variable {ind}
variable (R ind)
variable {R ind}
theorem NetComplex.complex_exchange_net {M : Type*} [AddGroup M] (hcard : ∀ t, #(ind t) = 3)
(hinj : Function.Injective ind) (lab : GName T → M) :
(∀ g ∈ cxGatesL R ind lab, g.OK) ∧
∀ (v : Wr ind → R) w, scalarRun (cxGatesL R ind lab) v (NetComplex.ρ ind w) = NetComplex.ε R ind w * v w := by sorry