NLA-lib Explorer

NLAlib.isLeast_minimaxError

Library · theorem

The minimax error is a minimum: for s compact and nonempty and f continuous on s, E_n(f; s) is the least \varepsilon such that some real polynomial of degree at most n is within \varepsilon of f on s. [Trefethen2019, Ch. 10].

NLAlib.isLeast_minimaxError {f : ℝ → ℝ} {s : Set ℝ} (hs : IsCompact s) (hne : s.Nonempty)
  (hf : ContinuousOn f s) (n : ℕ) :
  IsLeast {ε | ∃ p, p.degree ≤ ↑n ∧ Metric.IsUniformApproxOn (fun x ↦ Polynomial.eval x p) f s ε}
    (minimaxError f s n)

Full source on GitHub

Import NLAlib.Polynomial.Approximation.MinimaxError.