Chapter 7 of Walter Rudin's Principles of Mathematical Analysis (3rd edition, McGraw-Hill, 1976) asks when a limit of functions inherits the properties of its members. Pointwise convergence preserves almost nothing: Rudin's opening examples give continuous with discontinuous limit, and sequences where . Uniform convergence is the hypothesis that repairs this, and the chapter's second half asks the converse question — which functions arise as uniform limits from a given family — answered by the Stone–Weierstrass theorem (Theorem 7.32): an algebra of continuous real functions on a compact set that separates points and vanishes nowhere is uniformly dense in all continuous functions there.
The classical Weierstrass approximation theorem (7.26) — polynomials are dense in — is the special case that made the general theorem worth proving, and is used in Chapter 8 for Fourier series and in Chapter 11 for the density of continuous functions in .
This mission is the seventh in a series formalizing Rudin Chapters 1–11; it uses the compactness results of Mission II, the continuity results of Mission IV and the Riemann–Stieltjes integral of Mission VI.
A sequence converges uniformly to on if for every there is with for all and all — the same for every point. A family is equicontinuous on if a single serves all its members in the definition of uniform continuity; it is pointwise bounded if each orbit is bounded, and uniformly bounded if one bound works for all and all .
A set of real functions is an algebra if it is closed under addition, multiplication and multiplication by real scalars; it separates points on if for in some has ; it vanishes at no point of if for each some has . The uniform closure of on is the set of uniform limits on of sequences from .
Let be compact and let be an algebra of real continuous functions on which separates points on and vanishes at no point of . Then
every continuous real function on is a uniform limit on of members of .
Uniform convergence is the standard hypothesis under which limits commute with continuity, integration and (with an extra condition) differentiation, and Theorems 7.11, 7.12, 7.16 and 7.17 are used throughout the rest of the book; Chapter 8 in particular builds the exponential, trigonometric and Gamma functions as uniform limits and differentiates them term by term on the strength of 7.17. Theorem 7.18 shows how weak pointwise differentiability is as a consequence of continuity: a uniform limit of piecewise-linear functions can fail to be differentiable anywhere. Arzelà–Ascoli is the compactness criterion for families of functions, and it is the standard route to existence theorems for differential and integral equations.
Stone–Weierstrass is the structural theorem of the chapter: it replaces the combinatorial Bernstein-polynomial proof of Weierstrass's theorem with a statement about algebras of functions, applicable to trigonometric polynomials, polynomials in several variables, and Lipschitz algebras alike.
Mathlib contains a Stone–Weierstrass theorem for subalgebras of C(X, ℝ) on compact Hausdorff
spaces, and a version of Arzelà–Ascoli. This mission states the results in Rudin's terms — plain
sets of functions on a compact subset of a metric space, uniform closure defined by
sequences — so that they can be used together with the Riemann–Stieltjes integral built in
Mission VI, which is not part of the library.
Stone–Weierstrass is the one theorem in this mission whose proof is genuinely structural: from the algebra one first produces as a uniform limit of polynomials in (which needs the polynomial approximation of on and so cannot be circular with Theorem 7.26), then maxima and minima of pairs, then functions matching prescribed values at two points, and only then the local-to-global patching over a finite subcover. Each step is short; keeping the uniform closure a lattice and an algebra simultaneously is the bookkeeping burden.
Two hypotheses are easy to lose and both are necessary: an algebra that vanishes at a point cannot approximate functions that do not, and one that fails to separate two points cannot approximate functions that distinguish them.
Conventions fixed by this mission:
TendstoUniformlyOn … atTop; complex-valued sequences are
used where Rudin allows complex values.Rudin.IsFunctionAlgebra, Rudin.SeparatesPointsOn, Rudin.VanishesAtNoPointOn,
Rudin.UniformClosureOn, defined for sets of functions X → ℝ and a compact subset K.
The goal's conclusion is membership in the uniform closure, i.e. the existence of an
approximating sequence from the algebra.Rudin.EquicontinuousOn,
Rudin.PointwiseBoundedOn, Rudin.UniformlyBoundedOn, stated with explicit and
as in Definitions 7.19 and 7.22.namespace Rudin
/-- Rudin, Theorem 7.32 (Stone–Weierstrass): let `A` be an algebra of real continuous functions
on a compact set `K`. If `A` separates points on `K` and vanishes at no point of `K`, then
the uniform closure of `A` on `K` contains every function that is continuous on `K`. -/
theorem ch07_stone_weierstrass {X : Type*} [MetricSpace X] (K : Set X) (hK : IsCompact K)
(A : Set (X → ℝ)) (halg : IsFunctionAlgebra A) (hcont : ∀ f ∈ A, ContinuousOn f K)
(hsep : SeparatesPointsOn A K) (hvan : VanishesAtNoPointOn A K) :
∀ g : X → ℝ, ContinuousOn g K → g ∈ UniformClosureOn A K := by sorry
end RudinLet be an algebra of real continuous functions on a compact set . If separates points on and vanishes at no point of , then every real continuous function on lies in the uniform closure of : it is the uniform limit on of a sequence of members of .
No open leaves. Every sub-goal is proved or awaiting decomposition.