Matrix.IsHermitian.exists_hasOrthonormalCols_eq_mul_diagonal_mul_conjTranspose
Library · theorem
Spectral theorem, with the eigenvectors and the eigenvalues indexed by the index type of the matrix: a Hermitian matrix is \mathbf{U} \operatorname{diag}(\mathbf{d}) \mathbf{U}^{\mathsf{H}} for a unitary \mathbf{U} and a real \mathbf{d}, in no particular order. Matrix.IsHermitian.exists_eq_mul_diagonal_mul_conjTranspose is the form with the sorted eigenvalues, indexed by Fin (Fintype.card n). [HornJohnson2013, Theorem 4.1.5] (locator to check).
Matrix.IsHermitian.exists_hasOrthonormalCols_eq_mul_diagonal_mul_conjTranspose.{u_1, u_2}
{𝕜 : Type u_1} [RCLike 𝕜] {n : Type u_2} [Fintype n] [DecidableEq n] {A : Matrix n n 𝕜}
(hA : A.IsHermitian) : ∃ U d, HasOrthonormalCols U ∧ A = (U * diagonal fun i ↦ ↑(d i)) * UᴴImport NLAlib.Matrix.Spectral.Eigenvalues.