Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Move/projector idempotence feed toward hPis0 / FB0_ex (B)

Definition
IntMul_Kappa_R8_Data_BitOppbankMoveFactsB

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

complexity-theoryinteger-multiplicationround-eight

Idempotence lemmas for densified opp-bank projectors toward full hPis0\mathrm{hPis0}hPis0 / FB0_ex\mathrm{FB0\_ex}FB0_ex (republish of MoveFacts content).

Proves (1−P)2=1−P(1-P)^2=1-P(1−P)2=1−P from P2=PP^2=PP2=P, idempotence of prjM\mathrm{prjM}prjM, Pnd(sup)\mathrm{Pnd}(\mathrm{sup})Pnd(sup) when HasCentre\mathrm{HasCentre}HasCentre, and Pc\mathrm{Pc}Pc on LOW/HIGH/PT/ND branches.

Definition code
-- Densified Pc/Pl idempotence feed (PT/LOW/HIGH); ND Pnd_idem companion stmt.

import Definitions.Def_IntMul_Kappa_R6_Defs4
import Definitions.Def_IntMul_Kappa_R8_Data_BitOppbankPnd
import Definitions.Def_IntMul_Kappa_R8_Data_BitOppbankNetFB
import Definitions.Def_IntMul_Kappa_R8_Data_BitOppbankSupG
import Mathlib

set_option autoImplicit false
set_option relaxedAutoImplicit false
set_option maxHeartbeats 4000000

/-!
# Move facts (PT/LOW/HIGH) toward full `hPis0`

`Pc_idem` on codes `< 1773` via NetFB `Pl_idem`. ND idempotence packaged as `PndIdemStmt`.
-/

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

namespace IntMul.Kappa.R8.Bit.Oppbank.MoveFacts

theorem one_sub_idem {n : ℕ} {P : Matrix (Fin n) (Fin n) ℚ} (h : P * P = P) :
    (1 - P) * (1 - P) = 1 - P := by
  rw [sub_mul, mul_sub, mul_sub, h]; simp

theorem Pc_low : Pc 0 = 0 := by simp [Pc]
theorem Pc_high : Pc 1 = 1 := by simp [Pc]
theorem Pc_idem_low : Pc 0 * Pc 0 = Pc 0 := by simp [Pc_low]
theorem Pc_idem_high : Pc 1 * Pc 1 = Pc 1 := by simp [Pc_high]

theorem Pc_idem_PT {c : ℕ} (_h1 : 2 ≤ c) (h2 : c < 1773) :
    Pc c * Pc c = Pc c := by
  have hP : Pc c = 1 - Pl (c - 2) := by
    simp [Pc, show c ≠ 0 by omega, show c ≠ 1 by omega, h2]
  rw [hP]
  exact one_sub_idem (Pl_idem (T := c - 2) (by omega))

/-- Package: centred densified supports give idempotent `Pnd`. -/
def PndIdemStmt : Prop :=
  ∀ {sup : ℕ}, HasCentre sup → Pnd sup * Pnd sup = Pnd sup

def AllDensCentred : Prop := ∀ n < nNodes, HasCentre (densSupG n)

def PcIdemNDStmt : Prop :=
  ∀ n, 1773 + n < codeBound → HasCentre (densSupG n) →
    Pc (1773 + n) * Pc (1773 + n) = Pc (1773 + n)

end IntMul.Kappa.R8.Bit.Oppbank.MoveFacts
Source
Jain R8; Pnd 1351eb81; NetFB cb08d016; R6 move_facts pattern

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