NLA-lib Explorer

NLAlib.MatchesMoments.abs_integral_sub_integral_le_of_isUniformApproxOn

Library · theorem

Moment matching transfers uniform approximation: let \mu and \nu be finite measures supported in [a, \mathbf{b}] that match their first N moments, f integrable against both, and p a real polynomial of degree less than N within \varepsilon of f on [a, \mathbf{b}]. Then \Bigl\lvert\int f\,d\mu - \int f\,d\nu\Bigr\rvert \le (\mu(\mathbb{R}) + \nu(\mathbb{R}))\,\varepsilon\,; for probability measures the bound is 2\varepsilon.

NLAlib.MatchesMoments.abs_integral_sub_integral_le_of_isUniformApproxOn {μ ν : Measure ℝ} {N : ℕ}
  (h : MatchesMoments μ ν N) [IsFiniteMeasure μ] [IsFiniteMeasure ν] {a b : ℝ}
  (hμ : ∀ᵐ (x : ℝ) ∂μ, x ∈ Set.Icc a b) (hν : ∀ᵐ (x : ℝ) ∂ν, x ∈ Set.Icc a b) {f : ℝ → ℝ}
  (hfμ : Integrable f μ) (hfν : Integrable f ν) {p : Polynomial ℝ} (hp : p.degree < ↑N) {ε : ℝ}
  (hε : Metric.IsUniformApproxOn (fun x ↦ Polynomial.eval x p) f (Set.Icc a b) ε) :
  |∫ (x : ℝ), f x ∂μ - ∫ (x : ℝ), f x ∂ν| ≤ (μ.real Set.univ + ν.real Set.univ) * ε

Full source on GitHub

Import NLAlib.Polynomial.Orthogonal.Moments.