NLA-lib Explorer

The minimax error of \mathbf{x}^{n + 1}

Library · Result group

Theorem (minimaxError_pow_Icc_neg_one_one). The minimax error of \mathbf{x}^{n + 1}: on [-1, 1], the best approximation of \mathbf{x}^{n + 1} by polynomials of degree at most n has error E_n(\mathbf{x}^{n + 1}; [-1, 1]) = 2^{-n}, attained by \mathbf{x}^{n + 1} - 2^{-n}T_{n + 1}; equivalently, 2^{-n}T_{n + 1} is the monic polynomial of degree n + 1 of least uniform norm on [-1, 1]. [GolubMeurant2010, §2.5.1, Theorem 2.15]; [Trefethen2019, Ch. 10].

Headline (provisional)

Lean statement and details
NLAlib.minimaxError_pow_Icc_neg_one_one (n : ℕ) :
  minimaxError (fun x ↦ x ^ (n + 1)) (Set.Icc (-1) 1) n = (2 ^ n)⁻¹

Full source on GitHub

Copy link

Other forms

Theorem (Polynomial.Chebyshev.isLeast_chebyshev_monic_minimax). Minimax property of monic Chebyshev polynomials. Among monic real polynomials of degree q, the least uniform bound on [-1,1] is 1/2^{q-1}, attained by T_q/2^{q-1}. [GolubMeurant2010, §2.5.1, Theorem 2.15] for q\ge1. The q=0 extension has witness one and value one; the exponent uses natural subtraction.

Lean statement and details
Polynomial.Chebyshev.isLeast_chebyshev_monic_minimax (q : ℕ) :
  IsLeast
    {M |
      ∃ p,
        p.Monic ∧
          p.natDegree = q ∧
            Metric.IsUniformApproxOn (fun x ↦ Polynomial.eval x p) (fun x ↦ 0) (Set.Icc (-1) 1) M}
    (2 ^ (q - 1))⁻¹

Full source on GitHub

Copy link