NLA-lib Explorer

Weighted Laplacian rank

Library · Result group

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

Full source on GitHub

Copy link

General form: sizes are index types. A size is carried by a finite index type: |k| is the number of elements of the index type k, and "k nonempty" means k ≥ 1.