NLA-lib Explorer

Matrix.IsHermitian.re_trace_pow_eq_sum_range_eigenvalue_pow

Library ยท theorem

The real part of the trace of a power of a Hermitian matrix is the power sum of its eigenvalues: \operatorname{Re} \operatorname{tr}(\mathbf{A}^p) = \sum_{k < \lvert n \rvert} \lambda_k(\mathbf{A})^p. This is the form used by the moment method.

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

Full source on GitHub

Import NLAlib.Matrix.Spectral.EigenvalueTransform.