NLA-lib Explorer

Polynomial approximation of analytic functions on an interval

Library ยท Result group

Theorem (exists_degree_le_isUniformApproxOn_Icc_of_differentiableOn). Polynomial approximation of analytic functions on an interval. On [a,\mathbf{b}] with a<\mathbf{b}, a compatible extension of the affine pullback of f, holomorphic and bounded by \mathbf{M} on the open Bernstein ellipse, gives a polynomial of degree at most N with uniform error \frac{2\mathbf{M}}{\rho^N(\rho-1)}\,. An affine-rescaling corollary of [Trefethen2019, Theorem 8.2], generalized to RCLike values. The polynomial is obtained from the canonical truncation, including N=0.

Headline (provisional)

Lean statement and details
NLAlib.exists_degree_le_isUniformApproxOn_Icc_of_differentiableOn.{u_1} {๐•œ : Type u_1} [RCLike ๐•œ]
  {f : โ„ โ†’ ๐•œ} {F : โ„‚ โ†’ โ„‚} {a b ฯ M : โ„} (hab : a < b) (hฯ : 1 < ฯ)
  (hFd : DifferentiableOn โ„‚ F (openBernsteinEllipse ฯ))
  (hM : Metric.IsUniformApproxOn F (fun x โ†ฆ 0) (openBernsteinEllipse ฯ) M)
  (hExt :
    Set.EqOn (fun t โ†ฆ RCLike.toComplex (f (((b - a) * t + b + a) / 2))) (fun t โ†ฆ F โ†‘t)
      (Set.Icc (-1) 1))
  (N : โ„•) :
  โˆƒ p,
    p.degree โ‰ค โ†‘N โˆง
      Metric.IsUniformApproxOn (fun x โ†ฆ Polynomial.eval (โ†‘x) p) f (Set.Icc a b)
        (2 * M / (ฯ ^ N * (ฯ - 1)))

Full source on GitHub

Copy link

Other forms

Theorem (isUniformApproxOn_chebyshevTrunc_of_differentiableOn). Chebyshev truncation error for analytic functions. With a compatible extension holomorphic and bounded by \mathbf{M} on the OPEN Bernstein ellipse, the canonical degree-N truncation satisfies \|p_N(\mathbf{x})-f(\mathbf{x})\|\le\frac{2\mathbf{M}}{\rho^N(\rho-1)}\quad(\mathbf{x}\in[-1,1]). [Trefethen2019, Theorem 8.2, Eq. (8.2)], generalized to RCLike values. Every N\ge0 and \mathbf{M}=0 are included. No continuous extension to the ellipse boundary is required.

Lean statement and details
NLAlib.isUniformApproxOn_chebyshevTrunc_of_differentiableOn.{u_1} {๐•œ : Type u_1} [RCLike ๐•œ]
  {f : โ„ โ†’ ๐•œ} {F : โ„‚ โ†’ โ„‚} {ฯ M : โ„} (hฯ : 1 < ฯ)
  (hFd : DifferentiableOn โ„‚ F (openBernsteinEllipse ฯ))
  (hM : Metric.IsUniformApproxOn F (fun x โ†ฆ 0) (openBernsteinEllipse ฯ) M)
  (hExt : Set.EqOn (fun x โ†ฆ RCLike.toComplex (f x)) (fun x โ†ฆ F โ†‘x) (Set.Icc (-1) 1)) (N : โ„•) :
  Metric.IsUniformApproxOn (fun x โ†ฆ Polynomial.eval (โ†‘x) (chebyshevTrunc f N)) f (Set.Icc (-1) 1)
    (2 * M / (ฯ ^ N * (ฯ - 1)))

Full source on GitHub

Copy link

Theorem (minimaxError_le_of_differentiableOn). Analytic functions and the minimax error. On [a, \mathbf{b}], a < \mathbf{b}, if the pullback t \mapsto f(((\mathbf{b} - a)t + \mathbf{b} + a)/2) of a real f extends to a function holomorphic and bounded by \mathbf{M} on the open Bernstein ellipse E_\rho, \rho > 1, then E_N(f; [a, \mathbf{b}]) \le \frac{2\mathbf{M}}{\rho^N(\rho - 1)}\,. [Trefethen2019, Theorem 8.2] (locator to check), there on [-1, 1] for the Chebyshev truncation.

Lean statement and details
NLAlib.minimaxError_le_of_differentiableOn {f : โ„ โ†’ โ„} {F : โ„‚ โ†’ โ„‚} {a b ฯ M : โ„} (hab : a < b)
  (hฯ : 1 < ฯ) (hFd : DifferentiableOn โ„‚ F (openBernsteinEllipse ฯ))
  (hM : Metric.IsUniformApproxOn F (fun x โ†ฆ 0) (openBernsteinEllipse ฯ) M)
  (hExt : Set.EqOn (fun t โ†ฆ โ†‘(f (((b - a) * t + b + a) / 2))) (fun t โ†ฆ F โ†‘t) (Set.Icc (-1) 1))
  (N : โ„•) : minimaxError f (Set.Icc a b) N โ‰ค 2 * M / (ฯ ^ N * (ฯ - 1))

Full source on GitHub

Copy link