Stone–Weierstrass Theorem
Stone–Weierstrass Theorem (real version): Let be a compact metric space and let be a subalgebra (closed under addition, multiplication, and scalar multiplication). Assume:
- contains the constant functions, and
- separates points: for any distinct there exists such that .
Then is dense in with respect to the sup norm ; i.e., for every and there exists with (For the complex version, one typically also assumes is closed under complex conjugation.)
Stone–Weierstrass generalizes the classical Weierstrass approximation theorem (polynomials) to many other function families and is a central density theorem in analysis.
Proof sketch: Using point separation, one shows 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 closure of is stable under taking max/min (in the real case), which allows approximation of general continuous functions.