Bit exchange, network form (the hypotheses of AModel.network_realizes): for any labelling of the gates by…
ProvedNetScalar.bit_exchange_netBit exchange, network form (the hypotheses of AModel.network_realizes): for any labelling of the gates by their names, every gate is OK and the scalar circuit routes w to ρ w.
The following holds (Lean statement, in the scope of module Solutions.NetScalar):
theorem NetScalar.bit_exchange_net {M : Type*} [AddGroup M] (hcard : ∀ t, #(ind t) = 3)
(hinj : Function.Injective ind) (lab : NetScalar.GName T → M) :
(∀ g ∈ bitGatesL ind lab, g.OK) ∧
∀ (v : NetScalar.Wr ind → ZMod 2) w, scalarRun (bitGatesL ind lab) v (NetScalar.ρ ind w) = v w
Context. The lemma belongs to the part Lemma 5 (bit construction) as a scalar gate network over 𝔽₂: Parameters: 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 NetScalar
open Matrix Finset AModel
variable {h : ℕ} {T : Type*} [Fintype T] [DecidableEq T] (ind : T → Finset (Fin h))
variable {ind}
variable (ind)
variable {ind}
theorem NetScalar.bit_exchange_net {M : Type*} [AddGroup M] (hcard : ∀ t, #(ind t) = 3)
(hinj : Function.Injective ind) (lab : NetScalar.GName T → M) :
(∀ g ∈ bitGatesL ind lab, g.OK) ∧
∀ (v : NetScalar.Wr ind → ZMod 2) w, scalarRun (bitGatesL ind lab) v (NetScalar.ρ ind w) = v w := by sorry