NLA-lib Explorer

Matrix.IsHermitian.empiricalSpectralMeasure_real

Library · theorem

The empirical spectral measure of every set: for Hermitian \mathbf{A} and every S \subseteq \mathbb{R}, \nu_{\mathbf{A}}(S) = \operatorname{Re}\operatorname{tr}\mathbf{1}_S(\mathbf{A}) / \lvert n\rvert, the fraction of the eigenvalues, counted with multiplicity, that lie in S; \nu_{\mathbf{A}} is the empirical spectral measure. No measurability of S is needed (the measure is atomic).

Matrix.IsHermitian.empiricalSpectralMeasure_real.{u_1, u_2} {𝕜 : Type u_1} [RCLike 𝕜] {n : Type u_2}
  [Fintype n] [DecidableEq n] {A : Matrix n n 𝕜} (hA : A.IsHermitian) (S : Set ℝ) :
  (empiricalSpectralMeasure A).real S =
    RCLike.re (cfc (S.indicator fun x ↦ 1) A).trace / ↑(Fintype.card n)

Full source on GitHub

Import NLAlib.Matrix.Spectral.SpectralMeasure.