Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 3 (i) — Π\PiΠ is a projection matrix

Proved
EffResSparsify.Sampling.lemma_3_i

by mikedeng1 · Oct 7, 2026 · Mathlib 0df444a (Lean v4.33.1)

effective-resistancep2o-batch-pfp2bp2o-gran-per-chapterp2o-plan-paperp2o-v1projectionspectral-graph-theory

Let G=(V,E,w)G=(V,E,w)G=(V,E,w) be a connected weighted graph with positive edge weights, and let Π=W1/2BL+BTW1/2\Pi=W^{1/2}BL^{+}B^{\mathsf T}W^{1/2}Π=W1/2BL+BTW1/2, where BBB is the signed incidence matrix, WWW the diagonal weight matrix and L+L^{+}L+ the pseudoinverse of the Laplacian L=BTWBL=B^{\mathsf T}WBL=BTWB. Then Π\PiΠ is an orthogonal projection matrix:

Π2=ΠandΠT=Π.\Pi^2=\Pi\qquad\text{and}\qquad\Pi^{\mathsf T}=\Pi.Π2=ΠandΠT=Π.

This is what lets spectral-norm approximation of Π\PiΠ control quadratic forms, the reduction behind Lemma 4.

Formalization Note The paper's "projection matrix" is read as an orthogonal projection; symmetry is stated as a conjunct because the paper uses it in part (iv).

Preamble
import Mathlib
import Definitions.Def_EffResSparsify_Sampling_Defs
Formal statement
namespace EffResSparsify.Sampling

open Matrix

/-- Lemma 3 (i), p. 6: `Π = W^{1/2} B L⁺ Bᵀ W^{1/2}` is a projection matrix: it is idempotent
and symmetric. -/
theorem lemma_3_i {V E : Type} [Fintype V] [DecidableEq V] [Fintype E] [DecidableEq E]
    (G : WGraph V E) (hG : G.IsConnected) :
    G.projPi * G.projPi = G.projPi ∧ G.projPiᵀ = G.projPi := by sorry

end EffResSparsify.Sampling
Source
Spielman, Srivastava, Graph Sparsification by Effective Resistances, arXiv:0803.0929v4, p. 6, Lemma 3 (i)
Human review
  • Endorsed by Shuze Chen · Oct 7, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 7, 2026

    Confirmed by the mission captain (proposal self-audit).

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