Theorem (Matrix.IsHermitian.exists_eq_mul_diagonal_mul_conjTranspose). Spectral theorem: a Hermitian matrix is \mathbf{A} = \mathbf{U} \operatorname{diag}\bigl(\lambda_0(\mathbf{A}), \dots, \lambda_{\lvert n \rvert - 1}(\mathbf{A})\bigr) \mathbf{U}^{\mathsf{H}} for a matrix \mathbf{U} with orthonormal columns indexed by Fin (Fintype.card n). [HornJohnson2013, Theorem 2.5.6].
Headline
Lean statement and details
Matrix.IsHermitian.exists_eq_mul_diagonal_mul_conjTranspose.{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 * diagonal fun i ↦ ↑(eigenvalue A ↑i)) * Uᴴ