Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

LabGates of a flatMap of equal-label blocks

Proved
IntMul.Kappa.R8.Bit.Oppbank.LabGates_flatMap_range

by Ethan Cheung Wang · Oct 28, 2026 · Mathlib 0df444a (Lean v4.33.1)

intmulkappalabgates

If every block blk(i)\mathtt{blk}(i)blk(i) for i<ki<ki<k is label-gate consistent from any incoming frame labeling, then the concatenated program

(List.range k).flatMap blk(\mathrm{List.range}\,k).\mathrm{flatMap}\,\mathtt{blk}(List.rangek).flatMapblk

is label-gate consistent from any initial labeling LLL.

This packages the induction that lifts per-bank blk1/blk2 LabGates facts to the full 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_range {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 → ∀ L', LabGates N (blk i) L') :
    LabGates N ((List.range k).flatMap blk) L := by sorry
end IntMul.Kappa.R8.Bit.Oppbank

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 paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me