Matrix.IsHermitian.exists_mul_eq_mul_diagonal
Library · theorem
Spectral theorem, in the form of an invariance equation: a Hermitian matrix \mathbf{A} has a matrix \mathbf{U} of orthonormal eigenvectors, one column for each eigenvalue in order, with \mathbf{A}\mathbf{U} = \mathbf{U} \operatorname{diag}\bigl(\lambda_0(\mathbf{A}), \dots, \lambda_{\lvert n \rvert - 1}(\mathbf{A})\bigr). The matrix \mathbf{U} has as many columns as rows, so HasOrthonormalCols.mul_conjTranspose_self_of_card_eq gives \mathbf{U}\mathbf{U}^{\mathsf{H}} = \mathbf{I}. [HornJohnson2013, Theorem 2.5.6].
Matrix.IsHermitian.exists_mul_eq_mul_diagonal.{u_1, u_2} {𝕜 : Type u_1} [RCLike 𝕜] {n : Type u_2}
[Fintype n] {A : Matrix n n 𝕜} (hA : A.IsHermitian) :
∃ U, HasOrthonormalCols U ∧ A * U = U * diagonal fun i ↦ ↑(eigenvalue A ↑i)Import NLAlib.Matrix.Spectral.Eigenvalues.