LabGates of flatMap from per-prefix label states
ProvedIntMul.Kappa.R8.Bit.Oppbank.LabGates_flatMap_prefixintmulkappalabgates
Let and fix an initial frame labeling . Write for the prefix program.
If for every the block is label-gate consistent from the labeling produced by running on , then the full concatenation is label-gate consistent from :
This is the correct composition principle for assembling stage-one/stage-two LabGates of net0O.prog.
Preamble
import Definitions.Def_IntMul_Kappa_R6_Defs4 import Mathlib set_option autoImplicit false set_option relaxedAutoImplicit false set_option maxRecDepth 8192
Formal statement
namespace IntMul.Kappa.R8.Bit.Oppbank
open IntMul.Kappa.R6.Bit (LabGates labStepH FMat)
theorem LabGates_flatMap_prefix {Wr : Type*} [Fintype Wr] [DecidableEq Wr] {R : Type*} [CommRing R]
{m N k : ℕ} (blk : ℕ → List (IntMul.Kappa.R6.Bit.Instr Wr R m))
(L : Wr → FMat m N)
(h : ∀ (i : ℕ), i < k →
LabGates N (blk i) (((List.range i).flatMap blk).foldl (labStepH N) L)) :
LabGates N ((List.range k).flatMap blk) L := by sorry
end IntMul.Kappa.R8.Bit.Oppbank