laplacian_spectral_projection
For a simple graph G and real number θ, the spectral projection E_θ of the Laplacian matrix L onto the eigenspace of θ is the sum of outer products of Laplacian orthonormal eigenvectors with eigenvalue θ.
Statement
noncomputable def laplacian_spectral_projection {V : Type*} [Fintype V] [DecidableEq V] (G : SimpleGraph V) [DecidableRel G.Adj] (θ : ℝ) : Matrix V V ℝ
- Defined in
- arXiv:2611.21567, Section 2
- Verified
- 19 Nov 2026
- Axioms
- none listed
- Used by 2
- laplacian_mutual_eigenvalue_supportGiven a finite type V with decidable equality, a simple graph G on V with decidable adjacency, and two vertices u, v : V,…
- laplacian_bounding_entryFor a finite simple graph $G$ and vertices $u, v$, the Laplacian bounding entry $(B_L)_{u,v}$ is defined as the sum over all distinct…
Read back from the Lean
A definition laplacian_spectral_projection that takes:
- a type V with [Fintype V] and [DecidableEq V],
- a simple graph G on V with decidable adjacency [DecidableRel G.Adj], and
- a real number θ : ℝ,
and returns the V × V real matrix given by the sum over all i : V of:
- the rank-one matrix with (u, v)-entry (hL.eigenvectorBasis i u) * (hL.eigenvectorBasis i v) if hL.eigenvalues i = θ,
- the zero matrix otherwise,
where hL is the proof that the Laplacian matrix of G over ℝ is Hermitian (G.isHermitian_lapMatrix ℝ). This represents the orthogonal projection matrix onto the eigenspace of the Laplacian of G corresponding to the eigenvalue θ (or the zero matrix if θ is not an eigenvalue).
Written by a model that saw only the Lean, never the English above. If the two disagree, that is worth a challenge.
Lean source view module on GitHub
/-- Spectral projection matrix E_θ of the Laplacian matrix of G onto the eigenspace of θ. -/ noncomputable def laplacian_spectral_projection {V : Type*} [Fintype V] [DecidableEq V] (G : SimpleGraph V) [DecidableRel G.Adj] (θ : ℝ) : Matrix V V ℝ := let hL := G.isHermitian_lapMatrix ℝ ∑ i : V, if hL.eigenvalues i = θ then Matrix.of (fun u v => (hL.eigenvectorBasis i u) * (hL.eigenvectorBasis i v)) else 0