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ᴴ