logo

Proof of the Stone-Weierstrass Theorem 📂Analysis

Proof of the Stone-Weierstrass Theorem

Theorem1

Auxiliary Definitions

Let’s say AC(X)A \subset C(X) for XX.

  1. If for any distinct x1,x2Xx_{1}, x_{2} \in X, there always exists fAf \in A that satisfies f(x1)f(x2)f(x_{1}) \ne f(x_{2}), then we say AA separates the points of XX.
  2. If XX is a metric space and for all ε>0\varepsilon > 0 and fC(X)f \in C(X) there exists gAg \in A that satisfies gf<ε| g - f | < \varepsilon, then AA is said to be uniformly dense in C(X)C(X).

The Stone-Weierstrass Theorem

Suppose XX is a compact metric space. If AA is an algebra of C(X)C(X) that includes constant functions and separates the points of XX, then AA is uniformly dense in C(X)C(X).

Explanation

The Stone-Weierstrass theorem assures that continuous functions can be approximated by other functions. However, this statement might feel overly abstract. The Stone-Weierstrass theorem for polynomials in 11-dimension is written as follows:

Weierstrass Approximation Theorem: If ff is continuous on [a,b][a,b], for given ϵ>0\epsilon > 0, there exists a polynomial function p(x)p(x) satisfying maxx[a,b]f(x)p(x)<ϵ\displaystyle \max_{x \in [a,b]} | f(x) - p (x) | < \epsilon.

While the plain statement that p(x)p(x) exists holds its charm, reflecting on its significance now, it seems overly modest. Considering ϵ\epsilon as a form of tolerance, it’s fair to say, “Given any continuous function, it can be represented by a polynomial function.”

Proof

Strategy: It’s by no means easy. For FC(X)F \in C(X), we specifically work with the closure A\overline{A} of AA to find a GG that makes FG<ε| F - G | < \varepsilon possible. To construct GG, since A\overline{A} is a closed algebra, we must utilize good properties, and after pinpointing such a GG, presenting just one sequence of AA that converges to it concludes the process.


  • Part 1. a,bR,x1x2    fA:{f(x1)=af(x2)=ba, b \in \mathbb{R} , x_{1} \ne x_{2} \implies \exists f \in A : \begin{cases} f(x_{1}) = a \\ f(x_{2}) = b \end{cases}

    Since AA separates the points of XX, for any distinct x1,x2x_{1} , x_{2}, there exists gAg \in A that satisfies g(x1)g(x2)g(x_{1} ) \ne g (x_{2} ).

    Algebra: A set AA in C(X)C(X) is called an algebra if it satisfies the following three conditions:

    • (i): AC(X)\emptyset \ne A \subset C(X)
    • (ii): f,gA    (f+g),fgAf,g \in A \implies (f+g) , fg \in A
    • (iii): fA,cR    cfAf \in A , c \in \mathbb{R} \implies cf \in A

    f(t):=ag(t)g(x2)g(x1)g(x2)+bg(t)g(x1)g(x2)g(x1) f(t) := a {{ g(t) - g(x_{2} ) } \over { g(x_{1} ) - g( x_{2} ) }} + b {{ g(t) - g(x_{1} ) } \over { g(x_{2} ) - g( x_{1} ) }}

    Since AA is an algebra that includes constant functions, it also includes constant functions with value g(x1),g(x2)g(x_{1}) , g(x_{2}), and for a,bRa, b \in \mathbb{R}, defining ff as above, we have fAf \in A, and substituting t=x1,x2t=x_{1} , x_{2} yields f(x1)=af(x_{1}) = a and f(x2)=bf(x_{2} ) = b.

  • Part 2. f1,f2A    (f1f2),(f1g2)Af_{1} ,f_{2} \in \overline{A} \implies ( f_{1} \land f_{2} ), ( f_{1} \lor g_{2} ) \in \overline{A}

    \land and \lor imply the following for f,gC(X)f,g \in C(X) and xXx \in X: (fg)(x):=min{f(x),g(x)}(fg)(x):=max{f(x),g(x)} \begin{align*} (f \land g) (x) :=& \min \left\{ f(x) , g(x) \right\} \\ (f \lor g) (x) :=& \max \left\{ f(x) , g(x) \right\} \end{align*}

    Property of Uniform Closure: Let’s say AC(X)A \subset C(X) for the metric space XX. If every sequence {fnA:nN}\left\{ f_{n} \in A : n \in \mathbb{N} \right\} of AA converges to some fAf \in A as nn \to \infty, then AA is considered uniformly closed if ffn0\displaystyle | f - f_{n} | \to 0. If XX is a compact metric space and AA is a uniformly closed algebra of C(X)C(X) that includes constant functions, the following holds: f,gA    (fg),(fg)A f,g \in A \implies (f \land g), ( f \lor g ) \in A

    Considering the uniform closure A:={fC(X):limnfnf=0,fnA}\displaystyle \overline{A} := \left\{ f \in C(X) : \lim_{n \to \infty} | f_{n} - f | = 0, f_{n} \in A \right\} of AA, since AA is an algebra, A\overline{A} is also an algebra, and by the property of uniform closure,

    f1,f2A    (f1f2),(f1f2)A f_{1} ,f_{2} \in \overline{A} \implies (f_{1} \land f_{2}), ( f_{1} \lor f_{2} ) \in \overline{A}

  • Part 3. FG<ε2\displaystyle | F - G | < {{\varepsilon} \over {2}}

    Whenever FC(X)F \in C(X) and ε2>0\displaystyle {{\varepsilon} \over {2}} > 0 are given, we aim to prove that GAG \in \overline{A} satisfying FG<ε2\displaystyle | F - G | < {{\varepsilon} \over {2}} exists.

    • Part 3-1. gx0(x)<F(x)+ε2\displaystyle g_{x_{0}} ( x ) < F(x) + {{\varepsilon} \over {2}}

      Fixing x0Xx_{0} \in X and setting yx0y \ne x_{0}, according to Part 1, there exists a continuous function fyAAC(X)f_{y} \in A \subset \overline{A} \subset C(X) satisfying

      fy(x0)=F(x0)fy(y)=F(y) \begin{align*} f_{y} (x_{0}) =& F ( x_{0} ) \\ f_{y} ( y ) =& F ( y ) \end{align*} Since fyf_{y} and FF are continuous functions, Vy:={xX:fy(x)<F(x)+ε2} V_{y} := \left\{ x \in X : f_{y} (x) < F(x) + {{ \varepsilon } \over { 2 }} \right\} is an open set, and X=yx0Vy X = \bigcup_{y \ne x_{0}} V_{y} Thus, since XX is a compact set, there exist finite elements y1,,yN1Xy_{1} , \cdots , y_{N_{1}} \in X satisfying X=i=1N1Vi X = \bigcup_{i=1}^{N_{1}} V_{i} Now, for i=1,,N1i = 1 , \cdots , N_{1}, if we define it as fi:=fyigy0:=f1fN1 \begin{align*} f_{i} :=& f_{y_{i}} \\ g_{y_{0}} :=& f_{1} \land \cdots \land f_{N_{1}} \end{align*} then by Part 2, we have gx0Ag_{x_{0}} \in \overline{A}. Substituting x=x0x = x_{0}, we get gx0(x0)=f1(x0)fN1(x0)=F(x0)F(x0)=F(x0) \begin{align*} g_{x_{0}} ( x_{0} ) =& f_{1} ( x_{0} ) \land \cdots \land f_{N_{1}} ( x_{0} ) \\ =& F ( x_{0} ) \land \cdots \land F ( x_{0} ) \\ =& F ( x_{0} ) \end{align*} If xXx \in X, it means that xx belongs to at least one of Vy1,,VyN1V_{y_{1}} , \cdots , V_{y_{N_{1}}}, so for at least one 1kN11 \le k \le N_{1}, fk(x)<F(x)+ε2 f_{k} (x) < F(x) + {{\varepsilon} \over {2}} holds, and by the definition of gx0g_{x_{0}}, for all i=1,,N1i = 1, \cdots , N_{1}, gx0(x)fi(x)g_{x_{0}} ( x ) \le f_{i} (x), thus we obtain gx0(x)<F(x)+ε2 g_{x_{0}} ( x ) < F(x) + {{\varepsilon} \over {2}}

    • Part 3-2. F(x)ε2<G(x)<F(x)+ε2\displaystyle F(x) - {{\varepsilon} \over {2}} < G(x) < F(x) + {{\varepsilon} \over {2}}

      Similarly to {Vyi}i=1N1\left\{ V_{y_{i}} \right\}_{i=1}^{N_{1}}, let’s define a finite collection of open sets {Wxi}i=1N2\left\{ W_{x_{i}} \right\}_{i=1}^{N_{2}} that cover XX as follows: Wxi:={xX:gxi(x)>F(x)ε2} W_{x_{i}} := \left\{ x \in X : g_{x_{i}} (x) > F(x) - {{ \varepsilon } \over { 2 }} \right\} Just like in Part 3-1, for each x1,,xN2x_{1}, \cdots , x_{N_{2}}, the respective gxig_{x_{i}} satisfies gxi(x)>F(x)ε2 g_{x_{i}} ( x ) > F(x) - {{\varepsilon} \over {2}} for xiXx_{i} \in X. Now, let’s define the following functions for i=1,,N2i = 1, \cdots , N_{2}: gi:=gxiG:=g1gN2 \begin{align*} g_{i} :=& g_{x_{i}} \\ G :=& g_{1} \lor \cdots \lor g_{N_{2}} \end{align*} Then, for all xXx \in X, we have G(x)>F(x)ε2\displaystyle G(x) > F(x) - {{\varepsilon} \over {2}}. Meanwhile, if xXx \in X, it signifies that xx belongs to at least one of Wx1,,WxN2W_{x_{1}} , \cdots , W_{x_{N_{2}}}, hence for at least one jj, F(x)ε2<gjG(x) F(x) - {{\varepsilon} \over {2}} < g_{j} \le G(x)

    In summary, for all xXx \in X, since F(x)ε2<G(x)<F(x)+ε2\displaystyle F(x) - {{\varepsilon} \over {2}} < G(x) < F(x) + {{\varepsilon} \over {2}}, we derive F(x)G(x)<ε2 | F(x) - G(x) | < {{\varepsilon} \over {2}}

  • Part 4. AA is Uniformly Dense

    Since A\overline{A} is the uniform closure of AA, there exists a sequence {Gn}nN\left\{ G_{n} \right\}_{n \in \mathbb{N}} of AA that converges to GAG \in \overline{A}. In other words, for all ε2>0\displaystyle {{\varepsilon} \over {2}} >0, there exists NNN \in \mathbb{N} satisfying nN    GnG<ε2 n \ge N \implies | G_{n} - G | < {{\varepsilon} \over {2}} For all ε>0\varepsilon > 0 and given function FC(X)F \in C(X), with GAG \in \overline{A} satisfying F(x)G(x)<ε2 | F(x) - G(x) | < {{\varepsilon} \over {2}} and NN satisfying GNG<ε2 | G_{N} - G | < {{\varepsilon} \over {2}} we always have FGNFG+GGN=ε2+ε2=ε \begin{align*} | F - G_{N} | \le & | F - G | + | G - G_{N} | \\ =& {{\varepsilon} \over {2}} + {{\varepsilon} \over {2}} \\ =& \varepsilon \end{align*} That is, for all ε>0\varepsilon > 0 and given function FC(X)F \in C(X), there always exists GNAG_{N} \in A that satisfies FGN<ε| F - G_{N} | < \varepsilon, hence AA is uniformly dense in C(X)C(X).


  1. William R. Wade, An Introduction to Analysis (4th Edition, 2010), p379-381 ↩︎