Theorem (eq_minimaxPoly_of_isUniformApproxOn_minimaxError).Every best approximation is the chosen one: for a < \mathbf{b}, f continuous on [a, \mathbf{b}] and p a real polynomial of degree at most n with \lvert f - p \rvert \le E_n(f; [a, \mathbf{b}]) on [a, \mathbf{b}], p = \mathrm{minimaxPoly}\ f\ [a, \mathbf{b}]\ n. [Trefethen2019, Theorem 10.1].
Headline (provisional)
Lean statement and details
NLAlib.eq_minimaxPoly_of_isUniformApproxOn_minimaxError {f : ℝ → ℝ} {a b : ℝ} (hab : a < b)
(hf : ContinuousOn f (Set.Icc a b)) {n : ℕ} {p : Polynomial ℝ} (hp : p.degree ≤ ↑n)
(hbest :
Metric.IsUniformApproxOn (fun x ↦ Polynomial.eval x p) f (Set.Icc a b)
(minimaxError f (Set.Icc a b) n)) :
p = minimaxPoly f (Set.Icc a b) n
Theorem (eq_of_isUniformApproxOn_minimaxError).The best approximation is unique: for a < \mathbf{b} and f continuous on [a, \mathbf{b}], two real polynomials p, q of degree at most n that are both within E_n(f; [a, \mathbf{b}]) of f on [a, \mathbf{b}] are equal. [Trefethen2019, Theorem 10.1]; [Rivlin1981, Ch. 1] (locators to check).
Lean statement and details
NLAlib.eq_of_isUniformApproxOn_minimaxError {f : ℝ → ℝ} {a b : ℝ} (hab : a < b)
(hf : ContinuousOn f (Set.Icc a b)) {n : ℕ} {p q : Polynomial ℝ} (hp : p.degree ≤ ↑n)
(hq : q.degree ≤ ↑n)
(hpb :
Metric.IsUniformApproxOn (fun x ↦ Polynomial.eval x p) f (Set.Icc a b)
(minimaxError f (Set.Icc a b) n))
(hqb :
Metric.IsUniformApproxOn (fun x ↦ Polynomial.eval x q) f (Set.Icc a b)
(minimaxError f (Set.Icc a b) n)) :
p = q