NLA-lib Explorer

Matrix.IsHermitian.trace_pow_eq_sum_range_eigenvalue_pow

Library ยท theorem

The trace of a power of a Hermitian matrix is the power sum of its eigenvalues: \operatorname{tr}(\mathbf{A}^p) = \sum_{k < \lvert n \rvert} \lambda_k(\mathbf{A})^p. For p = 0 both sides are the dimension.

Matrix.IsHermitian.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 : โ„•) :
  (A ^ p).trace = โ†‘(โˆ‘ k โˆˆ Finset.range (Fintype.card n), eigenvalue A k ^ p)

Full source on GitHub

Import NLAlib.Matrix.Spectral.EigenvalueTransform.