NLA-lib Explorer

NLAlib.spectralMeasure_diagonal_sqrt_of_ae_mem

Library · theorem

Every finite measure carried by a finite set is a spectral measure: if a finite measure \nu is carried by a finite set s \subseteq \mathbb{R}, then \nu is the spectral measure of the real diagonal matrix of the points of s and the vector of the square roots of their masses, \nu = \mu_{\operatorname{diag}(\mathbf{x})_{\mathbf{x}\in s},\,(\sqrt{\nu\{\mathbf{x}\}})_{\mathbf{x}\in s}}.

NLAlib.spectralMeasure_diagonal_sqrt_of_ae_mem {ν : Measure ℝ} [IsFiniteMeasure ν] {s : Finset ℝ}
  (hν : ∀ᵐ (x : ℝ) ∂ν, x ∈ s) : (spectralMeasure (diagonal fun x ↦ ↑x) fun x ↦ √(ν.real {↑x})) = ν

Full source on GitHub

Import NLAlib.Matrix.Spectral.SpectralMeasure.