Stone–Weierstrass Theorem

A subalgebra of continuous functions that separates points is dense in C(K)
Stone–Weierstrass Theorem

Stone–Weierstrass Theorem (real version): Let KK be a and let AC(K,R)A\subseteq C(K,\mathbb{R}) be a subalgebra (closed under addition, multiplication, and scalar multiplication). Assume:

  • AA contains the constant functions, and
  • AA separates points: for any distinct x,yKx,y\in K there exists fAf\in A such that f(x)f(y)f(x)\neq f(y).

Then AA is in C(K,R)C(K,\mathbb{R}) with respect to the sup norm \|\cdot\|_\infty; i.e., for every gC(K,R)g\in C(K,\mathbb{R}) and ε>0\varepsilon>0 there exists fAf\in A with gf<ε. \|g-f\|_\infty<\varepsilon. (For the complex version, one typically also assumes AA is closed under complex conjugation.)

Stone–Weierstrass generalizes the classical (polynomials) to many other function families and is a central density theorem in analysis.

Proof sketch: Using point separation, one shows AA can approximate continuous functions that interpolate prescribed values at finitely many points. One then builds “local bump-like” approximations and uses compactness to patch them into a uniform approximation. A key ingredient is showing the uniform of AA is stable under taking max/min (in the real case), which allows approximation of general continuous functions.