NLA-lib Explorer

NLAlib.AlternatesOn.minimaxError_eq

Library · theorem

Headline of equioscillation (provisional)

An equioscillating error is the minimax error: if \deg p \le n, \lvert f - p \rvert \le \varepsilon on s and f - p alternates on s at n + 2 points with level \varepsilon, then E_n(f; s) = \varepsilon, and p is a best approximation. On any set, for any f: the certificate direction of the equioscillation theorem. [Trefethen2019, Theorem 10.1]; [Rivlin1981, Ch. 1] (locators to check). Result: equioscillation

NLAlib.AlternatesOn.minimaxError_eq {f : ℝ → ℝ} {s : Set ℝ} {n : ℕ} {p : Polynomial ℝ} {ε : ℝ}
  (h : AlternatesOn (fun x ↦ f x - Polynomial.eval x p) s (n + 2) ε) (hp : p.degree ≤ ↑n)
  (hε : Metric.IsUniformApproxOn (fun x ↦ Polynomial.eval x p) f s ε) : minimaxError f s n = ε

Full source on GitHub

Import NLAlib.Polynomial.Approximation.Equioscillation.