NLA-lib Explorer

NLAlib.minimaxError_eq_infDist

Library · theorem

The bridge to Mathlib's distance: for compact s and g \in C(s, \mathbb{R}) agreeing with f on s, E_n(f; s) is the distance in C(s, \mathbb{R}) from g to the restrictions of the real polynomials of degree at most n.

NLAlib.minimaxError_eq_infDist {s : Set ℝ} [CompactSpace ↑s] {f : ℝ → ℝ} (g : C(↑s, ℝ))
  (hg : ∀ (x : ↑s), g x = f ↑x) (n : ℕ) :
  minimaxError f s n =
    Metric.infDist g
      ↑(Submodule.map (Polynomial.toContinuousMapOnAlgHom s).toLinearMap (Polynomial.degreeLE ℝ ↑n))

Full source on GitHub

Import NLAlib.Polynomial.Approximation.MinimaxError.