NLA-lib Explorer

Matrix.IsHermitian.re_trace_eq_sum_range_eigenvalue

Library ยท theorem

The real part of the trace of a Hermitian matrix is the sum of its eigenvalues: \operatorname{Re} \operatorname{tr} \mathbf{A} = \sum_{k < \lvert n \rvert} \lambda_k(\mathbf{A}).

Matrix.IsHermitian.re_trace_eq_sum_range_eigenvalue.{u_1, u_2} {๐•œ : Type u_1} [RCLike ๐•œ]
  {n : Type u_2} [Fintype n] {A : Matrix n n ๐•œ} (hA : A.IsHermitian) :
  RCLike.re A.trace = โˆ‘ k โˆˆ Finset.range (Fintype.card n), eigenvalue A k

Full source on GitHub

Import NLAlib.Matrix.Spectral.EigenvalueTransform.