The areas / V13. General topology
Mathlib.Topology.ContinuousMap.StoneWeierstrass
39 declarations. Mathlib docs · Source
The Stone-Weierstrass theorem
If a subalgebra A of C(X, ℝ), where X is a compact topological space,
separates points, then it is dense.
We argue as follows.
- In any subalgebra
AofC(X, ℝ), iff ∈ A, thenabs f ∈ A.topologicalClosure. This follows from the Weierstrass approximation theorem on[-‖f‖, ‖f‖]by approximatingabsuniformly thereon by polynomials. - This ensures that
A.topologicalClosureis actually a sublattice: if it containsfandg, then it contains the pointwise supremumf ⊔ gand the pointwise infimumf ⊓ g. - Any nonempty sublattice
LofC(X, ℝ)which separates points is dense, by a nice argument approximating a givenfabove and below using separating functions. For eachx y : X, we pick a functiong x y ∈ Lsog x y x = f xandg x y y = f y. By continuity these functions remain close tofon small patches aroundxandy. We use compactness to identify a certain finitely indexed infimum of finitely indexed supremums which is then close tofeverywhere, obtaining the desired approximation. - Finally we put these pieces together.
L = A.topologicalClosureis a nonempty sublattice which separates points sinceAdoes, and so is dense (in fact equal to⊤).
We then prove the complex version for star subalgebras A, by separately approximating
the real and imaginary parts using the real subalgebra of real-valued functions in A
(which still separates points, by taking the norm-square of a separating function).
TODO
Extend to cover the case of subalgebras of the continuous functions vanishing at infinity, on non-compact spaces.
Continuous maps sending zero to zero
theorem AddMonoidHom.compLeftContinuous.congr_simp E1 #
∀ (α : Type u_1) {β : Type u_2} [inst : TopologicalSpace α] [inst_1 : TopologicalSpace β] {γ : Type u_3}
[inst_2 : AddMonoid β] [inst_3 : ContinuousAdd β] [inst_4 : TopologicalSpace γ] [inst_5 : AddMonoid γ]
[inst_6 : ContinuousAdd γ] (g g_1 : β →+ γ) (e_g : g = g_1) (hg : Continuous ⇑g),
AddMonoidHom.compLeftContinuous α g hg = AddMonoidHom.compLeftContinuous α g_1 ⋯
theorem AlgHom.compLeftContinuous.congr_simp E1 #
∀ (R : Type u_2) [inst : CommSemiring R] {A : Type u_3} [inst_1 : TopologicalSpace A] [inst_2 : Semiring A]
[inst_3 : Algebra R A] [inst_4 : IsTopologicalSemiring A] {A₂ : Type u_4} [inst_5 : TopologicalSpace A₂]
[inst_6 : Semiring A₂] [inst_7 : Algebra R A₂] [inst_8 : IsTopologicalSemiring A₂] {α : Type u_5}
[inst_9 : TopologicalSpace α] (g g_1 : A →ₐ[R] A₂) (e_g : g = g_1) (hg : Continuous ⇑g),
AlgHom.compLeftContinuous R g hg = AlgHom.compLeftContinuous R g_1 ⋯
def ContinuousMap.attachBound E1 #
{X : Type u_1} → [inst : TopologicalSpace X] → [inst_1 : CompactSpace X] → (f : C(X, ℝ)) → C(X, ↑(Set.Icc (-‖f‖) ‖f‖))
Turn a function f : C(X, ℝ) into a continuous map into Set.Icc (-‖f‖) (‖f‖),
thereby explicitly attaching bounds.
theorem ContinuousMap.attachBound_apply_coe E0 #
∀ {X : Type u_1} [inst : TopologicalSpace X] [inst_1 : CompactSpace X] (f : C(X, ℝ)) (x : X), ↑(f.attachBound x) = f x
theorem ContinuousMap.polynomial_comp_attachBound E1 #
∀ {X : Type u_1} [inst : TopologicalSpace X] [inst_1 : CompactSpace X] (A : Subalgebra ℝ C(X, ℝ)) (f : ↥A)
(g : Polynomial ℝ), (g.toContinuousMapOn (Set.Icc (-‖f‖) ‖f‖)).comp (↑f).attachBound = ↑((Polynomial.aeval f) g)
theorem ContinuousMap.polynomial_comp_attachBound_mem E2 #
∀ {X : Type u_1} [inst : TopologicalSpace X] [inst_1 : CompactSpace X] (A : Subalgebra ℝ C(X, ℝ)) (f : ↥A)
(g : Polynomial ℝ), (g.toContinuousMapOn (Set.Icc (-‖f‖) ‖f‖)).comp (↑f).attachBound ∈ A
Given a continuous function f in a subalgebra of C(X, ℝ), postcomposing by a polynomial
gives another function in A.
This lemma proves something slightly more subtle than this:
we take f, and think of it as a function into the restricted target Set.Icc (-‖f‖) ‖f‖,
and then postcompose with a polynomial function on that interval.
This is in fact the same situation as above, and so also gives a function in A.
theorem ContinuousMap.comp_attachBound_mem_closure E1 #
∀ {X : Type u_1} [inst : TopologicalSpace X] [inst_1 : CompactSpace X] (A : Subalgebra ℝ C(X, ℝ)) (f : ↥A)
(p : C(↑(Set.Icc (-‖f‖) ‖f‖), ℝ)), p.comp (↑f).attachBound ∈ A.topologicalClosure
theorem ContinuousMap.abs_mem_subalgebra_closure E1 #
∀ {X : Type u_1} [inst : TopologicalSpace X] [inst_1 : CompactSpace X] (A : Subalgebra ℝ C(X, ℝ)) (f : ↥A),
|↑f| ∈ A.topologicalClosure
theorem ContinuousMap.inf_mem_subalgebra_closure E1 #
∀ {X : Type u_1} [inst : TopologicalSpace X] [inst_1 : CompactSpace X] (A : Subalgebra ℝ C(X, ℝ)) (f g : ↥A),
↑f ⊓ ↑g ∈ A.topologicalClosure
theorem ContinuousMap.inf_mem_closed_subalgebra E1 #
∀ {X : Type u_1} [inst : TopologicalSpace X] [CompactSpace X] (A : Subalgebra ℝ C(X, ℝ)),
IsClosed ↑A → ∀ (f g : ↥A), ↑f ⊓ ↑g ∈ A
theorem ContinuousMap.sup_mem_subalgebra_closure E1 #
∀ {X : Type u_1} [inst : TopologicalSpace X] [inst_1 : CompactSpace X] (A : Subalgebra ℝ C(X, ℝ)) (f g : ↥A),
↑f ⊔ ↑g ∈ A.topologicalClosure
theorem ContinuousMap.sup_mem_closed_subalgebra E1 #
∀ {X : Type u_1} [inst : TopologicalSpace X] [CompactSpace X] (A : Subalgebra ℝ C(X, ℝ)),
IsClosed ↑A → ∀ (f g : ↥A), ↑f ⊔ ↑g ∈ A
theorem ContinuousMap.sublattice_closure_eq_top E1 #
∀ {X : Type u_1} [inst : TopologicalSpace X] [CompactSpace X] (L : Set C(X, ℝ)),
L.Nonempty → (∀ f ∈ L, ∀ g ∈ L, f ⊓ g ∈ L) → (∀ f ∈ L, ∀ g ∈ L, f ⊔ g ∈ L) → L.SeparatesPointsStrongly → closure L = ⊤
theorem ContinuousMap.subalgebra_topologicalClosure_eq_top_of_separatesPoints E3 #
∀ {X : Type u_1} [inst : TopologicalSpace X] [inst_1 : CompactSpace X] (A : Subalgebra ℝ C(X, ℝ)),
A.SeparatesPoints → A.topologicalClosure = ⊤
The Stone-Weierstrass Approximation Theorem,
that a subalgebra A of C(X, ℝ), where X is a compact topological space,
is dense if it separates points.
theorem ContinuousMap.continuousMap_mem_subalgebra_closure_of_separatesPoints E2 #
∀ {X : Type u_1} [inst : TopologicalSpace X] [inst_1 : CompactSpace X] (A : Subalgebra ℝ C(X, ℝ)),
A.SeparatesPoints → ∀ (f : C(X, ℝ)), f ∈ A.topologicalClosure
An alternative statement of the Stone-Weierstrass theorem.
If A is a subalgebra of C(X, ℝ) which separates points (and X is compact),
every real-valued continuous function on X is a uniform limit of elements of A.
theorem ContinuousMap.exists_mem_subalgebra_near_continuousMap_of_separatesPoints E2 #
∀ {X : Type u_1} [inst : TopologicalSpace X] [inst_1 : CompactSpace X] (A : Subalgebra ℝ C(X, ℝ)),
A.SeparatesPoints → ∀ (f : C(X, ℝ)) (ε : ℝ), 0 < ε → ∃ g, ‖↑g - f‖ < ε
An alternative statement of the Stone-Weierstrass theorem, for those who like their epsilons.
If A is a subalgebra of C(X, ℝ) which separates points (and X is compact),
every real-valued continuous function on X is within any ε > 0 of some element of A.
theorem ContinuousMap.exists_mem_subalgebra_near_continuous_of_separatesPoints E2 #
∀ {X : Type u_1} [inst : TopologicalSpace X] [CompactSpace X] (A : Subalgebra ℝ C(X, ℝ)),
A.SeparatesPoints → ∀ (f : X → ℝ), Continuous f → ∀ (ε : ℝ), 0 < ε → ∃ g, ∀ (x : X), ‖↑g x - f x‖ < ε
An alternative statement of the Stone-Weierstrass theorem, for those who like their epsilons and don't like bundled continuous functions.
If A is a subalgebra of C(X, ℝ) which separates points (and X is compact),
every real-valued continuous function on X is within any ε > 0 of some element of A.
theorem ContinuousMap.exists_mem_subalgebra_near_continuous_of_isCompact_of_separatesPoints E2 #
∀ {X : Type u_2} [inst : TopologicalSpace X] {A : Subalgebra ℝ C(X, ℝ)},
A.SeparatesPoints → ∀ (f : C(X, ℝ)) {K : Set X}, IsCompact K → ∀ {ε : ℝ}, 0 < ε → ∃ g ∈ A, ∀ x ∈ K, ‖g x - f x‖ < ε
A variant of the Stone-Weierstrass theorem where X need not be compact:
If A is a subalgebra of C(X, ℝ) which separates points, then, for any compact set K ⊆ X,
every real-valued continuous function on X is within any ε > 0 of some element of A on K.
theorem Subalgebra.SeparatesPoints.rclike_to_real E1 #
∀ {𝕜 : Type u_1} {X : Type u_2} [inst : RCLike 𝕜] [inst_1 : TopologicalSpace X] {A : StarSubalgebra 𝕜 C(X, 𝕜)},
A.SeparatesPoints →
(Subalgebra.comap (AlgHom.compLeftContinuous ℝ RCLike.ofRealAm ⋯)
(Subalgebra.restrictScalars ℝ A.toSubalgebra)).SeparatesPoints
If a star subalgebra of C(X, 𝕜) separates points, then the real subalgebra
of its purely real-valued elements also separates points.
theorem ContinuousMap.starSubalgebra_topologicalClosure_eq_top_of_separatesPoints E1 #
∀ {𝕜 : Type u_1} {X : Type u_2} [inst : RCLike 𝕜] [inst_1 : TopologicalSpace X] [inst_2 : CompactSpace X]
(A : StarSubalgebra 𝕜 C(X, 𝕜)), A.SeparatesPoints → A.topologicalClosure = ⊤
The Stone-Weierstrass approximation theorem, RCLike version, that a star subalgebra A of
C(X, 𝕜), where X is a compact topological space and RCLike 𝕜, is dense if it separates
points.
theorem polynomialFunctions.topologicalClosure E2 #
∀ (s : Set ℝ) [inst : CompactSpace ↑s], (polynomialFunctions s).topologicalClosure = ⊤
Polynomial functions in are dense in C(s, ℝ) when s is compact.
See polynomialFunctions_closure_eq_top for the special case s = Set.Icc a b which does not use
the full Stone-Weierstrass theorem. Of course, that version could be used to prove this one as
well.
theorem polynomialFunctions.starClosure_topologicalClosure E1 #
∀ {𝕜 : Type u_1} [inst : RCLike 𝕜] (s : Set 𝕜) [inst_1 : CompactSpace ↑s],
(polynomialFunctions s).starClosure.topologicalClosure = ⊤
The star subalgebra generated by polynomials functions is dense in C(s, 𝕜) when s is
compact and 𝕜 is either ℝ or ℂ.
theorem ContinuousMap.elemental_id_eq_top E1 #
∀ {𝕜 : Type u_1} [inst : RCLike 𝕜] (s : Set 𝕜) [inst_1 : CompactSpace ↑s],
StarAlgebra.elemental 𝕜 (ContinuousMap.restrict s (ContinuousMap.id 𝕜)) = ⊤
theorem ContinuousMap.induction_on E1 #
∀ {𝕜 : Type u_1} [inst : RCLike 𝕜] {s : Set 𝕜} {p : C(↑s, 𝕜) → Prop},
(∀ (r : 𝕜), p (ContinuousMap.const (↑s) r)) →
p (ContinuousMap.restrict s (ContinuousMap.id 𝕜)) →
p (star (ContinuousMap.restrict s (ContinuousMap.id 𝕜))) →
(∀ (f g : C(↑s, 𝕜)), p f → p g → p (f + g)) →
(∀ (f g : C(↑s, 𝕜)), p f → p g → p (f * g)) →
((∀ f ∈ (polynomialFunctions s).starClosure, p f) → ∀ (f : C(↑s, 𝕜)), p f) → ∀ (f : C(↑s, 𝕜)), p f
An induction principle for C(s, 𝕜).
theorem ContinuousMap.induction_on_of_compact E1 #
∀ {𝕜 : Type u_1} [inst : RCLike 𝕜] {s : Set 𝕜} [CompactSpace ↑s] {p : C(↑s, 𝕜) → Prop},
(∀ (r : 𝕜), p (ContinuousMap.const (↑s) r)) →
p (ContinuousMap.restrict s (ContinuousMap.id 𝕜)) →
p (star (ContinuousMap.restrict s (ContinuousMap.id 𝕜))) →
(∀ (f g : C(↑s, 𝕜)), p f → p g → p (f + g)) →
(∀ (f g : C(↑s, 𝕜)), p f → p g → p (f * g)) →
(∀ (f : C(↑s, 𝕜)), (∃ᶠ (g : C(↑s, 𝕜)) in nhds f, p g) → p f) → ∀ (f : C(↑s, 𝕜)), p f
theorem ContinuousMap.algHom_ext_map_X E1 #
∀ {A : Type u_1} [inst : Semiring A] [inst_1 : Algebra ℝ A] [inst_2 : TopologicalSpace A] [T2Space A] {s : Set ℝ}
[CompactSpace ↑s] {φ ψ : C(↑s, ℝ) →ₐ[ℝ] A},
Continuous ⇑φ →
Continuous ⇑ψ →
φ ((Polynomial.toContinuousMapOnAlgHom s) Polynomial.X) =
ψ ((Polynomial.toContinuousMapOnAlgHom s) Polynomial.X) →
φ = ψ
Continuous algebra homomorphisms from C(s, ℝ) into an ℝ-algebra A which agree
at X : 𝕜[X] (interpreted as a continuous map) are, in fact, equal.
theorem ContinuousMap.starAlgHom_ext_map_X E1 #
∀ {𝕜 : Type u_1} {A : Type u_2} [inst : RCLike 𝕜] [inst_1 : Ring A] [inst_2 : StarRing A] [inst_3 : Algebra 𝕜 A]
[inst_4 : TopologicalSpace A] [T2Space A] {s : Set 𝕜} [CompactSpace ↑s] {φ ψ : C(↑s, 𝕜) →⋆ₐ[𝕜] A},
Continuous ⇑φ →
Continuous ⇑ψ →
φ ((Polynomial.toContinuousMapOnAlgHom s) Polynomial.X) =
ψ ((Polynomial.toContinuousMapOnAlgHom s) Polynomial.X) →
φ = ψ
Continuous star algebra homomorphisms from C(s, 𝕜) into a star 𝕜-algebra A which agree
at X : 𝕜[X] (interpreted as a continuous map) are, in fact, equal.
theorem ContinuousMap.adjoin_id_eq_span_one_union E1 #
∀ {𝕜 : Type u_1} [inst : RCLike 𝕜] (s : Set 𝕜),
↑(StarAlgebra.adjoin 𝕜 {ContinuousMap.restrict s (ContinuousMap.id 𝕜)}) =
↑(Submodule.span 𝕜 ({1} ∪ ↑(NonUnitalStarAlgebra.adjoin 𝕜 {ContinuousMap.restrict s (ContinuousMap.id 𝕜)})))
theorem ContinuousMap.adjoin_id_eq_span_one_add E1 #
∀ {𝕜 : Type u_1} [inst : RCLike 𝕜] (s : Set 𝕜),
↑(StarAlgebra.adjoin 𝕜 {ContinuousMap.restrict s (ContinuousMap.id 𝕜)}) =
↑(𝕜 ∙ 1) + ↑(NonUnitalStarAlgebra.adjoin 𝕜 {ContinuousMap.restrict s (ContinuousMap.id 𝕜)})
theorem ContinuousMap.nonUnitalStarAlgebraAdjoin_id_subset_ker_evalStarAlgHom E1 #
∀ {𝕜 : Type u_1} [inst : RCLike 𝕜] {s : Set 𝕜} (h0 : 0 ∈ s),
↑(NonUnitalStarAlgebra.adjoin 𝕜 {ContinuousMap.restrict s (ContinuousMap.id 𝕜)}) ⊆
↑(RingHom.ker (ContinuousMap.evalStarAlgHom 𝕜 𝕜 ⟨0, h0⟩))
theorem ContinuousMap.ker_evalStarAlgHom_inter_adjoin_id E1 #
∀ {𝕜 : Type u_1} [inst : RCLike 𝕜] (s : Set 𝕜) (h0 : 0 ∈ s),
↑(StarAlgebra.adjoin 𝕜 {ContinuousMap.restrict s (ContinuousMap.id 𝕜)}) ∩
↑(RingHom.ker (ContinuousMap.evalStarAlgHom 𝕜 𝕜 ⟨0, h0⟩)) =
↑(NonUnitalStarAlgebra.adjoin 𝕜 {ContinuousMap.restrict s (ContinuousMap.id 𝕜)})
theorem ContinuousMap.AlgHom.closure_ker_inter E1 #
∀ {F : Type u_2} {S : Type u_3} {K : Type u_4} {A : Type u_5} [inst : CommRing K] [inst_1 : Ring A]
[inst_2 : Algebra K A] [inst_3 : TopologicalSpace K] [T1Space K] [inst_5 : TopologicalSpace A] [ContinuousSub A]
[ContinuousSMul K A] [inst_8 : FunLike F A K] [inst_9 : AlgHomClass F K A K] [inst_10 : SetLike S A] [OneMemClass S A]
[AddSubgroupClass S A] [SMulMemClass S K A] (φ : F),
Continuous ⇑φ → ∀ (s : S), closure (↑s ∩ ↑(RingHom.ker φ)) = closure ↑s ∩ ↑(RingHom.ker φ)
theorem ContinuousMap.ker_evalStarAlgHom_eq_closure_adjoin_id E1 #
∀ {𝕜 : Type u_1} [inst : RCLike 𝕜] (s : Set 𝕜) (h0 : 0 ∈ s) [CompactSpace ↑s],
↑(RingHom.ker (ContinuousMap.evalStarAlgHom 𝕜 𝕜 ⟨0, h0⟩)) =
closure ↑(NonUnitalStarAlgebra.adjoin 𝕜 {ContinuousMap.restrict s (ContinuousMap.id 𝕜)})
theorem ContinuousMapZero.adjoin_id_dense E1 #
∀ {𝕜 : Type u_1} [inst : RCLike 𝕜] (s : Set 𝕜) [inst_1 : Fact (0 ∈ s)] [CompactSpace ↑s],
Dense ↑(NonUnitalStarAlgebra.adjoin 𝕜 {ContinuousMapZero.id s})
If s : Set 𝕜 with RCLike 𝕜 is compact and contains 0, then the non-unital star subalgebra
generated by the identity function in C(s, 𝕜)₀ is dense. This can be seen as a version of the
Weierstrass approximation theorem.
theorem ContinuousMapZero.elemental_eq_top E1 #
∀ {𝕜 : Type u_2} [inst : RCLike 𝕜] (s : Set 𝕜) [inst_1 : Fact (0 ∈ s)] [inst_2 : CompactSpace ↑s],
NonUnitalStarAlgebra.elemental 𝕜 (ContinuousMapZero.id s) = ⊤
theorem ContinuousMapZero.induction_on E1 #
∀ {𝕜 : Type u_1} [inst : RCLike 𝕜] {s : Set 𝕜} [inst_1 : Fact (0 ∈ s)] {p : ContinuousMapZero (↑s) 𝕜 → Prop},
p 0 →
p (ContinuousMapZero.id s) →
p (star (ContinuousMapZero.id s)) →
(∀ (f g : ContinuousMapZero (↑s) 𝕜), p f → p g → p (f + g)) →
(∀ (f g : ContinuousMapZero (↑s) 𝕜), p f → p g → p (f * g)) →
(∀ (r : 𝕜) (f : ContinuousMapZero (↑s) 𝕜), p f → p (r • f)) →
((∀ f ∈ NonUnitalStarAlgebra.adjoin 𝕜 {ContinuousMapZero.id s}, p f) →
∀ (f : ContinuousMapZero (↑s) 𝕜), p f) →
∀ (f : ContinuousMapZero (↑s) 𝕜), p f
An induction principle for C(s, 𝕜)₀.
theorem ContinuousMapZero.induction_on_of_compact E1 #
∀ {𝕜 : Type u_1} [inst : RCLike 𝕜] {s : Set 𝕜} [inst_1 : Fact (0 ∈ s)] [CompactSpace ↑s]
{p : ContinuousMapZero (↑s) 𝕜 → Prop},
p 0 →
p (ContinuousMapZero.id s) →
p (star (ContinuousMapZero.id s)) →
(∀ (f g : ContinuousMapZero (↑s) 𝕜), p f → p g → p (f + g)) →
(∀ (f g : ContinuousMapZero (↑s) 𝕜), p f → p g → p (f * g)) →
(∀ (r : 𝕜) (f : ContinuousMapZero (↑s) 𝕜), p f → p (r • f)) →
(∀ (f : ContinuousMapZero (↑s) 𝕜), (∃ᶠ (g : ContinuousMapZero (↑s) 𝕜) in nhds f, p g) → p f) →
∀ (f : ContinuousMapZero (↑s) 𝕜), p f
theorem ContinuousMapZero.nonUnitalStarAlgHom_apply_mul_eq_zero E1 #
∀ {𝕜 : Type u_2} {A : Type u_3} [inst : RCLike 𝕜] [inst_1 : NonUnitalSemiring A] [inst_2 : Star A]
[inst_3 : TopologicalSpace A] [SeparatelyContinuousMul A] [T2Space A] [inst_6 : DistribMulAction 𝕜 A]
[IsScalarTower 𝕜 A A] {s : Set 𝕜} [inst_8 : Fact (0 ∈ s)] [CompactSpace ↑s] (φ : ContinuousMapZero (↑s) 𝕜 →⋆ₙₐ[𝕜] A)
(a : A),
φ (ContinuousMapZero.id s) * a = 0 →
φ (star (ContinuousMapZero.id s)) * a = 0 → Continuous ⇑φ → ∀ (f : ContinuousMapZero (↑s) 𝕜), φ f * a = 0
theorem ContinuousMapZero.mul_nonUnitalStarAlgHom_apply_eq_zero E1 #
∀ {𝕜 : Type u_2} {A : Type u_3} [inst : RCLike 𝕜] [inst_1 : NonUnitalSemiring A] [inst_2 : Star A]
[inst_3 : TopologicalSpace A] [SeparatelyContinuousMul A] [T2Space A] [inst_6 : DistribMulAction 𝕜 A]
[SMulCommClass 𝕜 A A] {s : Set 𝕜} [inst_8 : Fact (0 ∈ s)] [CompactSpace ↑s] (φ : ContinuousMapZero (↑s) 𝕜 →⋆ₙₐ[𝕜] A)
(a : A),
a * φ (ContinuousMapZero.id s) = 0 →
a * φ (star (ContinuousMapZero.id s)) = 0 → Continuous ⇑φ → ∀ (f : ContinuousMapZero (↑s) 𝕜), a * φ f = 0