The areas / V13. General topology
Mathlib.Topology.ContinuousMap.Weierstrass
5 declarations. Mathlib docs · Source
theorem polynomialFunctions_closure_eq_top' E1 #
(polynomialFunctions unitInterval).topologicalClosure = ⊤
The special case of the Weierstrass approximation theorem for the interval [0,1].
This is just a matter of unravelling definitions and using the Bernstein approximations.
theorem polynomialFunctions_closure_eq_top E3 #
∀ (a b : ℝ), (polynomialFunctions (Set.Icc a b)).topologicalClosure = ⊤
The Weierstrass Approximation Theorem:
polynomials functions on [a, b] ⊆ ℝ are dense in C([a,b],ℝ)
(While we could deduce this as an application of the Stone-Weierstrass theorem,
our proof of that relies on the fact that abs is in the closure of polynomials on [-M, M],
so we may as well get this done first.)
theorem continuousMap_mem_polynomialFunctions_closure E1 #
∀ (a b : ℝ) (f : C(↑(Set.Icc a b), ℝ)), f ∈ (polynomialFunctions (Set.Icc a b)).topologicalClosure
An alternative statement of Weierstrass' theorem.
Every real-valued continuous function on [a,b] is a uniform limit of polynomials.
theorem exists_polynomial_near_continuousMap E1 #
∀ (a b : ℝ) (f : C(↑(Set.Icc a b), ℝ)) (ε : ℝ), 0 < ε → ∃ p, ‖p.toContinuousMapOn (Set.Icc a b) - f‖ < ε
An alternative statement of Weierstrass' theorem, for those who like their epsilons.
Every real-valued continuous function on [a,b] is within any ε > 0 of some polynomial.
theorem exists_polynomial_near_of_continuousOn E2 #
∀ (a b : ℝ) (f : ℝ → ℝ),
ContinuousOn f (Set.Icc a b) → ∀ (ε : ℝ), 0 < ε → ∃ p, ∀ x ∈ Set.Icc a b, |Polynomial.eval x p - f x| < ε
Another alternative statement of Weierstrass's theorem, for those who like epsilons, but not bundled continuous functions.
Every real-valued function ℝ → ℝ which is continuous on [a,b]
can be approximated to within any ε > 0 on [a,b] by some polynomial.