NLA-lib Explorer

NLAlib.isUniformApproxOn_minimaxError_iff_exists_alternatesOn

Library · theorem

Chebyshev's equioscillation theorem. Let a < \mathbf{b}, f continuous on [a, \mathbf{b}] and p a real polynomial of degree at most n. Then p is a best approximation, \lvert f - p \rvert \le E_n(f; [a, \mathbf{b}]) on [a, \mathbf{b}], if and only if for some \varepsilon, \lvert f - p \rvert \le \varepsilon on [a, \mathbf{b}] and f - p alternates at n + 2 points of [a, \mathbf{b}] with level \varepsilon (and then \varepsilon = E_n(f; [a, \mathbf{b}])). [Trefethen2019, Theorem 10.1]; [Rivlin1981, Ch. 1] (locators to check). Result: equioscillation

NLAlib.isUniformApproxOn_minimaxError_iff_exists_alternatesOn {f : ℝ → ℝ} {a b : ℝ} (hab : a < b)
  (hf : ContinuousOn f (Set.Icc a b)) {n : ℕ} {p : Polynomial ℝ} (hp : p.degree ≤ ↑n) :
  Metric.IsUniformApproxOn (fun x ↦ Polynomial.eval x p) f (Set.Icc a b)
      (minimaxError f (Set.Icc a b) n) ↔
    ∃ ε,
      Metric.IsUniformApproxOn (fun x ↦ Polynomial.eval x p) f (Set.Icc a b) ε ∧
        AlternatesOn (fun x ↦ f x - Polynomial.eval x p) (Set.Icc a b) (n + 2) ε

Full source on GitHub

Import NLAlib.Polynomial.Approximation.Equioscillation.