Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

LabGates depends only on labels of touched wires

Proved
IntMul.Kappa.R8.Bit.Oppbank.LabGates_congr

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

intmulkappalabgates

If two labelings L,L′L,L'L,L′ agree on every wire touched by an instruction list ℓ\ellℓ, then LabGates N ℓ L\mathrm{LabGates}\,N\,\ell\,LLabGatesNℓL if and only if LabGates N ℓ L′\mathrm{LabGates}\,N\,\ell\,L'LabGatesNℓL′.

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 FMat Instr)
theorem LabGates_congr {Wr : Type*} [Fintype Wr] [DecidableEq Wr] {R : Type*} [CommRing R]
    {m N : ℕ} (l : List (Instr Wr R m)) (L L' : Wr → FMat m N)
    (h : ∀ w, (∃ i ∈ l,
      match i with
      | .gate _ S => w ∈ S
      | .edge w' _ => w = w') → L w = L' w) :
    LabGates N l L ↔ LabGates N l 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