The uniform closure A is a uniformly closed algebra, still separating points and containing constants. That it is an algebra: if fn→f and gn→g uniformly on K, the convergent sequences are uniformly bounded (some constant bounds all ∥fn∥,∥gn∥), and ∥fngn−fg∥≤∥fn∥∥gn−g∥+∥g∥∥fn−f∥→0 — hence fg∈A. (This boundedness step is needed because multiplication on all of C(K) is not globally uniformly continuous.)
The lattice steps (b)–(c) below are carried out inside A, not A (the absolute-value lemma applied to the uniformly closed algebra A). Proving A dense in C(K,R) then gives density of A.
(a) Two-point interpolation: fix f∈C(K,R) and ε>0. For distinct x,y∈K, the separation hypothesis gives u∈A with u(x)=u(y).
The system (u(x)u(y)11)(ab)=(f(x)f(y)) has determinant u(x)−u(y)=0, so a unique solution (a,b) exists, and gxy:=au+b∈A satisfies gxy(x)=f(x), gxy(y)=f(y) (the b term lies in A because A contains the constants). For x=y take the constant function f(x).
(b) Pressing from above (run with ε/2 slack): fix x. For each y∈K, the set Uy:={z:gxy(z)<f(z)+ε/2} is open by continuity of gxy and f, and y∈Uy since gxy(y)=f(y). So {Uy:y∈K} is an open cover of the compact K, and a finite subcover Uy1,…,Uym exists.
Quantifier care: gxyj<f+ε/2 holds only on Uyj, not on all of K. But for each z∈K there is some j with z∈Uyj, and for that j, gxyj(z)<f(z)+ε/2; hence gx(z):=minjgxyj(z)≤gxyj(z)<f(z)+ε/2 holds pointwise for every z. By the lattice property applied to A, gx=minjgxyj∈A. Also gxyj(x)=f(x) for every j, so gx(x)=f(x).
(c) Lifting from below: for each x∈K, Vx:={z:gx(z)>f(z)−ε} is open and x∈Vx since gx(x)=f(x). The {Vx} form an open cover of K, so a finite subcover Vx1,…,Vxl exists.
With h:=maxigxi∈A (lattice property in A), every z∈K lies in some Vxi, giving h(z)≥gxi(z)>f(z)−ε, while the ε/2 slack in (b) gives gxi≤f+ε/2, so h≤f+ε/2<f+ε. Hence f−ε<h<f+ε on K, with h∈A.
Since ε>0 was arbitrary, f∈A; since f∈C(K,R) was arbitrary, A=C(K,R) — A is uniformly dense. Numerical check: for f(x)=∣x∣ and the trigonometric-polynomial algebra T, at degree n=25 we get ∥S25−f∥∞≈0.0245, matching the caption, and the error tends to zero as the degree grows (0.0159 at n=40).