NLA-lib Explorer

A commuting family of Hermitian matrices is simultaneously unitarily diagonalisable

Library · Result group

Theorem (exists_hasOrthonormalCols_forall_eq_mul_diagonal_of_pairwise_commute). A commuting family of Hermitian matrices is simultaneously unitarily diagonalisable, with real diagonals: there is a unitary \mathbf{U} with \mathbf{A}_i = \mathbf{U} \operatorname{diag}(\mathbf{d}_i) \mathbf{U}^{\mathsf{H}}, \mathbf{d}_i real, for every i; over \mathbb{R} the unitary matrix is orthogonal. [HornJohnson2013, Theorem 4.1.6 context].

Headline (provisional)

Lean statement and details
NLAlib.exists_hasOrthonormalCols_forall_eq_mul_diagonal_of_pairwise_commute.{u_1, u_3, u_4}
  {𝕜 : Type u_1} [RCLike 𝕜] {ι : Type u_3} {n : Type u_4} [Fintype n] [DecidableEq n]
  {A : ι → Matrix n n 𝕜} (hA : ∀ (i : ι), (A i).IsHermitian)
  (h : Pairwise fun i j ↦ Commute (A i) (A j)) :
  ∃ U, HasOrthonormalCols U ∧ ∀ (i : ι), ∃ d, A i = (U * diagonal fun j ↦ ↑(d j)) * Uᴴ

Full source on GitHub

Copy link

Other forms

Theorem (pairwise_commute_iff_exists_forall_eq_mul_diagonal_mul_conjTranspose). A family of normal matrices commutes exactly when it is simultaneously unitarily diagonalisable: the complex normal \mathbf{A}_i commute pairwise if and only if there is a unitary \mathbf{U} with \mathbf{A}_i = \mathbf{U} \operatorname{diag}(\mathbf{d}_i) \mathbf{U}^{\mathsf{H}} for every i. [HornJohnson2013, Theorem 2.5.5].

Lean statement and details
NLAlib.pairwise_commute_iff_exists_forall_eq_mul_diagonal_mul_conjTranspose.{u_3, u_4}
  {ι : Type u_3} {n : Type u_4} [Fintype n] [DecidableEq n] {A : ι → Matrix n n ℂ}
  (hA : ∀ (i : ι), IsStarNormal (A i)) :
  (Pairwise fun i j ↦ Commute (A i) (A j)) ↔
    ∃ U, HasOrthonormalCols U ∧ ∀ (i : ι), ∃ d, A i = U * diagonal d * Uᴴ

Full source on GitHub

Copy link