Theorem (GraphEdgeOrientation.rank_weightedLaplacian_add). Weighted Laplacian rank. For positive weights the rank plus the number of connected components equals the number of vertices, including isolated vertices. [SpielmanSrivastava2011, §2], extended componentwise.
Headline General form: sizes are index types
Lean statement and details
NLAlib.GraphEdgeOrientation.rank_weightedLaplacian_add.{u_1, u_2} {V : Type u_1} {E : Type u_2}
{G : SimpleGraph V} (o : GraphEdgeOrientation G E) [DecidableEq V] [Fintype V] [Fintype E]
{w : E → ℝ} (hw : ∀ (e : E), 0 < w e) :
(o.weightedLaplacian w).rank + Nat.card G.ConnectedComponent = Fintype.card V