Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

R8 Oppbank Pnd/prjM/Pc idempotence (densified)

Definition
IntMul_Kappa_R8_Data_BitOppbankPndIdem

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

bitnbfb0idempotenceoppbankpndprojectorsr8

Densified node projectors are idempotent: for every complemented subspace VVV, the BBB-orthogonal projector prjM(V)\mathrm{prjM}(V)prjM(V) satisfies prjM(V)2=prjM(V)\mathrm{prjM}(V)^2=\mathrm{prjM}(V)prjM(V)2=prjM(V); hence Pnd(sup)2=Pnd(sup)\mathrm{Pnd}(\mathrm{sup})^2=\mathrm{Pnd}(\mathrm{sup})Pnd(sup)2=Pnd(sup) for every support, and Pc(1773+n)2=Pc(1773+n)\mathrm{Pc}(1773+n)^2=\mathrm{Pc}(1773+n)Pc(1773+n)2=Pc(1773+n) whenever densified support nnn is centred. Together with MoveFacts Pc\mathrm{Pc}Pc-idempotence on LOW/HIGH/PT codes, every code projector used by densified Pis0\mathrm{Pis0}Pis0 is idempotent under HasCentre\mathrm{HasCentre}HasCentre hypotheses — unblocking full hPis0h\mathrm{Pis0}hPis0 toward FB0_ex\mathrm{FB0\_ex}FB0_ex.

Definition code
-- Densified Pnd/prjM idempotence (unblocks full hPis0 / FB0_ex).

import Definitions.Def_IntMul_Kappa_R6_Defs4
import Definitions.Def_IntMul_Kappa_R8_Data_BitOppbankPnd
import Definitions.Def_IntMul_Kappa_R8_Data_BitOppbankSupG
import Definitions.Def_IntMul_Kappa_R8_Data_BitOppbankMoveFacts
import Mathlib

set_option autoImplicit false
set_option relaxedAutoImplicit false
set_option maxHeartbeats 4000000

/-!
# `prjM` / `Pnd` / densified `Pc` idempotence

Uses Mathlib `Submodule.isIdempotentElem_projection` + `LinearMap.toMatrix'_comp`.
Together with MoveFacts `Pc_idem_PT` this gives `Pc` idempotent on all code branches
when ND supports are centred — the missing half of `hPis0` for full `FB0_ex`.
-/

open Matrix
open IntMul.Kappa.R8.Bit.Oppbank
open IntMul.Kappa.R8.Bit.Oppbank.Pnd
open IntMul.Kappa.R8.Bit.Oppbank.SupG
open IntMul.Kappa.R8.Bit.Oppbank.MoveFacts

namespace IntMul.Kappa.R8.Bit.Oppbank.PndIdem

theorem prjM_idem (V : Submodule ℚ V23) (h : IsCompl V (Bf.orthogonal V)) :
    prjM V h * prjM V h = prjM V h := by
  simp only [prjM]
  rw [← LinearMap.toMatrix'_comp]
  congr 1
  exact Submodule.isIdempotentElem_projection h

theorem Pnd_idem {sup : ℕ} (h : HasCentre sup) :
    Pnd sup * Pnd sup = Pnd sup := by
  rw [Pnd_eq_prj h]
  exact prjM_idem _ (compl_spanS h)

theorem Pnd_idem_zero {sup : ℕ} (h : ¬ HasCentre sup) :
    Pnd sup * Pnd sup = Pnd sup := by
  rw [Pnd_zero_of_no_centre h, Matrix.zero_mul]

theorem Pnd_idem_all {sup : ℕ} : Pnd sup * Pnd sup = Pnd sup := by
  by_cases h : HasCentre sup
  · exact Pnd_idem h
  · exact Pnd_idem_zero h

theorem PndD_idem (n : ℕ) : PndD n * PndD n = PndD n :=
  Pnd_idem_all

theorem Pc_idem_ND {n : ℕ} (hn : 1773 + n < codeBound)
    (hC : HasCentre (densSupG n)) :
    Pc (1773 + n) * Pc (1773 + n) = Pc (1773 + n) := by
  rw [Pc_of_ND n hn, PndD, Pnd_idem hC]

/-- Package: every densified ND code is idempotent under `HasCentre`. -/
theorem Pc_idem_dens {c : ℕ} (hc : c < codeBound)
    (hND : 1773 ≤ c → HasCentre (densSupG (c - 1773))) :
    Pc c * Pc c = Pc c := by
  by_cases h0 : c = 0
  · subst h0; exact Pc_idem_low
  by_cases h1 : c = 1
  · subst h1; exact Pc_idem_high
  by_cases hPT : c < 1773
  · have h2 : 2 ≤ c := by omega
    exact Pc_idem_PT h2 hPT
  · have hn : 1773 + (c - 1773) < codeBound := by omega
    have hC : HasCentre (densSupG (c - 1773)) := hND (by omega)
    have : c = 1773 + (c - 1773) := by omega
    rw [this]; exact Pc_idem_ND hn hC

theorem PndIdemStmt_holds : PndIdemStmt := fun {_} h => Pnd_idem h

end IntMul.Kappa.R8.Bit.Oppbank.PndIdem
Source
Mathlib Submodule.isIdempotentElem_projection; BitOppbankPnd prjM; MoveFacts Pc_idem_PT.

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