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)))
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)))
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))