NLA-lib Explorer

NLAlib.probeSpectralMeasure_real

Library · theorem

The probe spectral measure of every set is a Girard–Hutchinson estimate: for every square \mathbf{A}, every test matrix \mathbf{\Omega} and every S \subseteq \mathbb{R}, \mathsf{probeSpectralMeasure}(\mathbf{A}, \mathbf{\Omega})(S) = \frac{\operatorname{Re}\,\mathsf{girardHutchinson}(\mathbf{1}_S(\mathbf{A}), \mathbf{\Omega})}{\lvert n\rvert}\,, \mathbf{1}_S(\mathbf{A}) the spectral projector of S, an orthogonal projector (isStarProjection_cfc_indicator). No measurability of S is needed.

NLAlib.probeSpectralMeasure_real.{u_1, u_2, u_3} {𝕜 : Type u_1} [RCLike 𝕜] {n : Type u_2}
  {m : Type u_3} [Fintype n] [DecidableEq n] [Fintype m] (A : Matrix n n 𝕜) (Ω : Matrix n m 𝕜)
  (S : Set ℝ) :
  (probeSpectralMeasure A Ω).real S =
    RCLike.re (girardHutchinson (cfc (S.indicator fun x ↦ 1) A) Ω) / ↑(Fintype.card n)

Full source on GitHub

Import NLAlib.Estimation.Spectral.SpectralDensity.