NLAlib.exists_natDegree_le_one_sub_integral_mul_div_le
Library · theorem
The gap-free polynomial filter step: for a finite measure \nu supported in [0, 1] with an atom at 1, \nu(\{1\}) > 0, and every q \ge 1, there is a real polynomial p of degree at most q with p(1) = 1 and 1 - \frac{\int \mathbf{x}\,p(\mathbf{x})^2\,d\nu}{\int p(\mathbf{x})^2\,d\nu} \le \frac{4}{q^2}\Bigl(1 + \frac{\log(\nu(\mathbb{R})/\nu(\{1\}))}{\log 2}\Bigr)^2\,; p is a power of the even Chebyshev filter, the number of factors chosen from the logarithmic ratio. [KuczynskiWozniakowski1992, Theorem 4.2] (locator to check); there for the Lanczos method with a random start, here for any such measure.
NLAlib.exists_natDegree_le_one_sub_integral_mul_div_le {ν : Measure ℝ} [IsFiniteMeasure ν]
(hν : ∀ᵐ (x : ℝ) ∂ν, x ∈ Set.Icc 0 1) (h1 : 0 < ν.real {1}) {q : ℕ} (hq : 1 ≤ q) :
∃ p,
p.natDegree ≤ q ∧
Polynomial.eval 1 p = 1 ∧
1 - (∫ (x : ℝ), x * Polynomial.eval x p ^ 2 ∂ν) / ∫ (x : ℝ), Polynomial.eval x p ^ 2 ∂ν ≤
4 * (1 + Real.log (ν.real Set.univ / ν.real {1}) / Real.log 2) ^ 2 / ↑q ^ 2Import NLAlib.Polynomial.Chebyshev.EvenFilter.