Documentation

CslibFrontier.Foundations.Analysis.DiscreteChebyshev.MonomialApprox

Discrete Uniform Polynomial Approximations of Monomials #

Establishes quantitative upper and lower bounds for the uniform (L^∞) approximation error of monomials X^k (and general degree ≤ k polynomials) by polynomials of degree < k over the uniform discrete grids doutSet n and dinSet n on [-1, 1].

Main results #

Gram Coefficient Algebra and Pointwise Bounds #

theorem Cslib.DiscreteChebyshev.gramCoeff_eq_zero_of_natDegree_lt {n d : ℕ} (hn : 1 ≤ n) (hd : d < n) {p : Polynomial ℝ} (hp : p.natDegree < d) :
gramCoeff n d p = 0
theorem Cslib.DiscreteChebyshev.gramInner_self_eq_sum_sq {n k : ℕ} (hn : 1 ≤ n) (hk : k < n) {p : Polynomial ℝ} (hp : p.natDegree ≤ k) :
gramInner n p p = ∑ d ∈ Finset.range (k + 1), gramCoeff n d p ^ 2
theorem Cslib.DiscreteChebyshev.abs_gramPoly_eval_le_sqrt {n d : ℕ} (hn : 1 ≤ n) (hd : d < n) (i : Fin n) :

Pointwise bound |φ_d(x)| ≤ √n at points of dinSet n, from (φ_d, φ_d) = 1.

theorem Cslib.DiscreteChebyshev.abs_gramPoly_eval_mem_dinSet_le {n d : ℕ} (hn : 1 ≤ n) (hd : d < n) {y : ℝ} (hy : y ∈ dinSet n) :

Uniform Approximation Upper Bounds over doutSet n #

theorem Cslib.DiscreteChebyshev.exists_natDegree_lt_approx_X_pow_doutSet_gram {n k : ℕ} (hn : 1 ≤ n) (hk : 1 ≤ k) (hkn : k < n) :
∃ (p : Polynomial ℝ), p.natDegree < k ∧ ∀ x ∈ doutSet n, |Polynomial.eval x p - x ^ k| ≤ 2 * √(↑n + 1) * (2 * ↑n)⁻¹ ^ k * √(↑(n + k + 1).factorial / ↑(n - k + 1).factorial)

For 1 ≤ k < n, there exists a polynomial p of degree < k approximating X^k on doutSet n with error at most 2 √(n + 1) * (2 n)^{-k} * √((n + k + 1)! / (n - k + 1)!).

theorem Cslib.DiscreteChebyshev.exists_natDegree_lt_approx_X_pow_doutSet {n k : ℕ} (hn : 1 ≤ n) (hk : 1 ≤ k) (hkn : k < n) :
∃ (p : Polynomial ℝ), p.natDegree < k ∧ ∀ x ∈ doutSet n, |Polynomial.eval x p - x ^ k| ≤ 6 * √(↑n + 1) * (2 * (↑n + 1))⁻¹ ^ k * √(↑(n + k + 1).factorial / ↑(n - k + 1).factorial)

For 1 ≤ k < n, there exists a degree < k polynomial approximating X^k on doutSet n with error at most 6 √(n + 1) (2(n+1))^{-k} √((n+k+1)! / (n-k+1)!).

theorem Cslib.DiscreteChebyshev.exists_natDegree_lt_approx_poly_doutSet {n k : ℕ} (hn : 1 ≤ n) (hk : 1 ≤ k) (hkn : k < n) {P : Polynomial ℝ} (hP : P.natDegree ≤ k) :
∃ (p : Polynomial ℝ), p.natDegree < k ∧ ∀ x ∈ doutSet n, |Polynomial.eval x p - Polynomial.eval x P| ≤ |P.coeff k| * (2 * √(↑n + 1) * (2 * ↑n)⁻¹ ^ k * √(↑(n + k + 1).factorial / ↑(n - k + 1).factorial))

Generalization of exists_natDegree_lt_approx_X_pow_doutSet_gram to an arbitrary polynomial P of degree ≤ k.

Uniform Approximation Lower Bounds over dinSet n and doutSet n #

theorem Cslib.DiscreteChebyshev.exists_mem_dinSet_gramCoeff_le {n k : ℕ} (hn : 1 ≤ n) (hkn : k < n) {p q : Polynomial ℝ} (hp : p.natDegree ≤ k) (hq : q.natDegree < k) :

Any degree < k polynomial approximating p (with deg p ≤ k < n) incurs error at least |gramCoeff n k p| at some point of dinSet n.

theorem Cslib.DiscreteChebyshev.exists_mem_doutSet_of_dinSet {n k : ℕ} (hn : 1 ≤ n) (hk : 1 ≤ k) {p : Polynomial ℝ} (hp : p.natDegree ≤ k) {ε : ℝ} (hdin : ∀ (q : Polynomial ℝ), q.natDegree < k → ∃ x ∈ dinSet n, ε ≤ |Polynomial.eval x p - Polynomial.eval x q|) (q' : Polynomial ℝ) :
q'.natDegree < k → ∃ x ∈ doutSet n, ε ≤ |Polynomial.eval x p - Polynomial.eval x q'|

Uniform approximation lower bounds on dinSet n transfer unchanged to doutSet n.

theorem Cslib.DiscreteChebyshev.stretch_gramCoeff_X_pow_ge {n k : ℕ} (hn : 1 ≤ n) (hkn : k < n) :
(2 * ↑n)⁻¹ ^ k * √(↑(n + k).factorial / ↑(n - k).factorial) ≤ ((↑n + 1) / ↑n) ^ k * gramCoeff (n + 1) k (Polynomial.X ^ k)

Scaling identity on dinSet (n + 1) giving the exact constant 1 for doutSet n.

theorem Cslib.DiscreteChebyshev.exists_mem_doutSet_le_sub_poly {n k : ℕ} (hn : 1 ≤ n) (hkn : k < n) {P q : Polynomial ℝ} (hP : P.natDegree ≤ k) (hq : q.natDegree < k) :
∃ x ∈ doutSet n, |P.coeff k| * ((2 * ↑n)⁻¹ ^ k * √(↑(n + k).factorial / ↑(n - k).factorial)) ≤ |Polynomial.eval x P - Polynomial.eval x q|

Lower bound for any degree < k polynomial approximating a degree ≤ k < n polynomial P over doutSet n.

theorem Cslib.DiscreteChebyshev.exists_mem_doutSet_le_sub_X_pow {n k : ℕ} (hn : 1 ≤ n) (hkn : k < n) {p : Polynomial ℝ} (hp : p.natDegree < k) :
∃ x ∈ doutSet n, (2 * ↑n)⁻¹ ^ k * √(↑(n + k).factorial / ↑(n - k).factorial) ≤ |Polynomial.eval x p - x ^ k|

For integers k < n, any degree < k polynomial approximating X^k over doutSet n has error at least (2n)^{-k} √((n + k)! / (n - k)!).