Documentation

CslibFrontier.Foundations.Analysis.DiscreteChebyshev.GramBasis

Normalized Discrete Chebyshev (Gram) Polynomials #

Constructs the orthonormal discrete Chebyshev (Gram) basis gramPoly n d (d < n) on the interior uniform grid dinSet n, proves its three-term recurrence, basis expansion, and exact product and two-sided quantitative formulas for the leading Gram coefficient of monomials X^k.

Main definitions #

Main results #

Normalized Discrete Chebyshev (Gram) Basis on dinSet n #

noncomputable def Cslib.DiscreteChebyshev.gramInner (n : ℕ) (p q : Polynomial ℝ) :

The discrete inner product (p, q) = (1 / n) ∑_{i : Fin n} p(dinPoint n i) q(dinPoint n i).

theorem Cslib.DiscreteChebyshev.gramInner_add_left (n : ℕ) (p₁ p₂ q : Polynomial ℝ) :
gramInner n (p₁ + p₂) q = gramInner n p₁ q + gramInner n p₂ q

Normalization constant ‖R_d‖ for the d-th discrete Rodrigues polynomial.

theorem Cslib.DiscreteChebyshev.gramNormFactor_pos {n d : ℕ} (hn : 1 ≤ n) (_hd : d < n) :

The d-th orthonormal discrete Chebyshev (Gram) polynomial φ_d for grid parameter n.

theorem Cslib.DiscreteChebyshev.gramInner_gramPoly {n i j : ℕ} (hn : 1 ≤ n) (hi : i < n) (hj : j < n) :
gramInner n (gramPoly n i) (gramPoly n j) = if i = j then 1 else 0

Orthonormality of the discrete Chebyshev polynomials: (φ_i, φ_j) = δ_{ij} for i, j < n.

theorem Cslib.DiscreteChebyshev.gramPoly_natDegree_and_leadingCoeff {n d : ℕ} (hn : 1 ≤ n) (hd : d < n) :
(gramPoly n d).natDegree = d ∧ (gramPoly n d).leadingCoeff = (gramNormFactor n d)⁻¹ * ↑(2 * d).factorial / ↑d.factorial ^ 3 * (↑n / 2) ^ d

Three-Term Recurrence Coefficients #

noncomputable def Cslib.DiscreteChebyshev.gramAlpha (n i : ℕ) :

The discrete Chebyshev three-term recurrence coefficient α_i = (n / (i + 1)) √(((i + 1)^2 - 1/4) / (n^2 - (i + 1)^2)).

theorem Cslib.DiscreteChebyshev.gramAlpha_pos {n i : ℕ} (hi : i + 1 < n) :
0 < gramAlpha n i

Ratio of consecutive leading coefficients of gramPoly equals 2 * gramAlpha n d.

noncomputable def Cslib.DiscreteChebyshev.gramCoeff (n d : ℕ) (p : Polynomial ℝ) :

Discrete Chebyshev expansion coefficient gramInner n p (gramPoly n d).

theorem Cslib.DiscreteChebyshev.eq_sum_gramCoeff {n k : ℕ} (hn : 1 ≤ n) (hk : k < n) {p : Polynomial ℝ} (hp : p.natDegree ≤ k) :
p = ∑ d ∈ Finset.range (k + 1), Polynomial.C (gramCoeff n d p) * gramPoly n d

Unique expansion of any polynomial of degree ≤ k < n in {gramPoly n 0, ..., gramPoly n k}.

Top Gram coefficient of a polynomial of degree k < n.

theorem Cslib.DiscreteChebyshev.dinPoint_rev {n : ℕ} (i : Fin n) :
dinPoint n ⟨n - 1 - ↑i, ⋯⟩ = -dinPoint n i

Negating x reverses dinPoint n i via i ↦ n - 1 - i.

Three-term recurrence for discrete Chebyshev polynomials: φ_{d+1}(x) = 2 α_d x φ_d(x) - (α_d / α_{d-1}) φ_{d-1}(x).

Leading Gram Coefficient of Monomials X^k #

noncomputable def Cslib.DiscreteChebyshev.techProd (k : ℕ) :

Auxiliary product ∏_{i=1}^k ((i - 1/2)(i + 1/2) / i^2).

Uniform lower bound 3 / 8 ≤ techProd k for all k.

theorem Cslib.DiscreteChebyshev.prod_gramAlpha {n k : ℕ} (hk : k < n) :
∏ i ∈ Finset.range k, gramAlpha n i = ↑n ^ k * √(↑n / ↑(n - k)) * √(↑(n - k).factorial / ↑(n + k).factorial) * √(techProd k)

Exact product formula for ∏_{i=0}^{k-1} gramAlpha n i.

theorem Cslib.DiscreteChebyshev.leadingCoeff_gramPoly_eq_prod {n k : ℕ} (hn : 1 ≤ n) (hk : k < n) :
(gramPoly n k).leadingCoeff = 2 ^ k * ∏ i ∈ Finset.range k, gramAlpha n i
theorem Cslib.DiscreteChebyshev.gramCoeff_X_pow_eq {n k : ℕ} (hn : 1 ≤ n) (hk : k < n) :
gramCoeff n k (Polynomial.X ^ k) = (2 * ↑n)⁻¹ ^ k * √(↑(n - k) / ↑n) * √(↑(n + k).factorial / ↑(n - k).factorial) / √(techProd k)

Exact formula for the leading Gram coefficient of X^k (k < n).

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

Two-sided quantitative bounds on the leading Gram coefficient gramCoeff n k (X^k) for k < n.