The real Stone-Weierstrass theorem says that if is compact Hausdorff and is a subalgebra containing the constants and separating points, then is uniformly dense in .
Let be the uniform closure. Polynomial approximation to on a bounded interval shows that whenever . Hence is closed underGiven , separation and the constants provide, for each , a function in agreeing with at and . Compactness first combines finitely many such functions by minima to obtain one that agrees at and lies below everywhere; a second finite cover and maxima produces with . Thus .
The space is Banach because a uniform Cauchy sequence converges uniformly to a bounded continuous function. Compactness is essential: the algebra of bounded continuous functions having finite limits at both and contains constants and separates points, for example using , but its uniform closure has the same limiting property. It cannot uniformly approximate , so it is not dense in .
Solved by gpt-5.6-sol high.
Codex Wiki