Reason: First published proof. Claim 1 combines the inf-convolution approximation of bounded lower semicontinuous functions with a Dini-type compactness step on the increasing open sets where the approximation error is small. Claim 2 writes down the countable family explicitly from rational data on finite nets, using the axiom of countable choice exactly once, for the nets; the rational selection is finite and needs no choice principle. The Stone-Weierstrass theorem is not used.
Step 0 (finite minima). The order of the ordered fieldR is a total order, so the minimum of two elements is defined on R. For r∈N and a map s:[r]→R with values sk, define mink∈[r]sk by recursion on r: put mink∈[1]sk=s1 and, whenever m+1≤r,
k∈[m+1]minsk=min{k∈[m]minsk,sm+1},
the inner minimum being formed from the restriction of s to [m]. An induction on r, using that min{a,b} is a or b and is a lower bound for both, gives:
(a)mink′∈[r]sk′≤sk for every k∈[r];
(b) there is j∈[r] with mink∈[r]sk=sj.
From (a) and (b) we obtain a comparison principle:
(c) if s,t:[r]→R and η∈R satisfy sk≤tk+η for every k∈[r], then mink∈[r]sk≤mink∈[r]tk+η. Indeed, by (b) there is j∈[r] with mink∈[r]tk=tj, and by (a) we get mink∈[r]sk≤sj≤tj+η.
Step 1 (continuous functions on K are bounded). Let f:K→R be continuous on K. Continuity on K is exactly the hypothesis of Extreme Value Theorem on a Compact Subset of a Metric Space for the nonempty compact set K, so there are xmin,xmax∈K with f(xmin)≤f(x)≤f(xmax) for every x∈K. Put M0=max{∣f(xmin)∣,∣f(xmax)∣}, so 0≤M0 by claim 1 of Properties of the Absolute Value in an Ordered Field. By claim 3 of that lemma, −M0≤−∣f(xmin)∣≤f(xmin) and f(xmax)≤∣f(xmax)∣≤M0, whence −M0≤f(x)≤M0 for every x∈K, and claim 6 of that lemma gives ∣f(x)∣≤M0. Thus f is bounded, with bound M0.
its claim 1 gives 0≤Fk(x)≤F(x), its claim 2 that Fk is Lipschitz with constant ι(k) and continuous on K, its claim 3 that Fk(x)≤Fk+1(x), and its claim 4 that the sequence (Fk(x))k∈N converges to F(x).
Since Fk(x)≤Fk+1(x) we get F(x)−Fk+1(x)≤F(x)−Fk(x), so Vk⊆Vk+1, and by induction Vk⊆Vm whenever k≤m. Moreover every x∈K lies in some Vk: since (Fk(x))k∈N converges to F(x) there is k∈N with ∣Fk(x)−F(x)∣<ε, and claim 9 of Properties of the Absolute Value in an Ordered Field gives −ε<Fk(x)−F(x), that is F(x)−Fk(x)<ε.
Define g:K→R by g(x)=Fk0(x)−M0. Then f(x)−g(x)=F(x)−Fk0(x), so −ε≤f(x)−g(x)≤ε and claim 6 of Properties of the Absolute Value in an Ordered Field gives ∣f(x)−g(x)∣≤ε for every x∈K. Finally g(x)−g(y)=Fk0(x)−Fk0(y) for all x,y∈K, so dR(g(x),g(y))=dR(Fk0(x),Fk0(y))≤ι(k0)d(x,y) and g is Lipschitz with constant ι(k0). This proves claim 1.
Step 3 (a sequence of finite nets). Let S be the set of all a such that a∈Kr for some r∈N. If a∈Kr and a∈Kr′ then [r]=[r′], since both are the domain of a, and hence r=r′; so the length of a tuple is well defined.
Each An is nonempty. Indeed, K is compact in (K,Td), so by A Compact Subset of a Metric Space is Totally Bounded, applied with the ambient metric space (K,d), the set K is totally bounded in (K,d); hence there is a finite F⊆K with K⊆⋃b∈FBd(b,ι(n)−1). Since K is nonempty and a union indexed by the empty set is empty, F is nonempty, so Fhas r elements for some r∈N and a bijection[r]→F is an r-tuple a∈Kr whose set of components is F; this a lies in An.
By Axiom of Countable Choice, applied to the family (An)n∈N of subsets of S, there is a sequence(an)n∈N in S with an∈An for every n∈N. Let rn∈N be the length of an and write a1n,…,arnn for its components.
Step 4 (the family G and its countability). For m,n∈N and q∈Qrn define gm,n,q:K→R by
gm,n,q(x)=k∈[rn]min(qk+ι(m)d(x,akn)),
the minimum being that of Step 0, and put Gm,n={gm,n,q:q∈Qrn}.
Step 5 (members of G are Lipschitz and bounded). Fix m,n∈N and q∈Qrn, and put uk(x)=qk+ι(m)d(x,akn) for k∈[rn]. For x,y∈K condition 4 of the definition of a metric gives d(x,akn)≤d(x,y)+d(y,akn), and 0<ι(m), so uk(x)≤uk(y)+ι(m)d(x,y) for every k∈[rn]. By Step 0(c),
Step 6 (the approximation property). Let f:K→R be continuous on K and let ε>0. Write 2=1+1. Applying claim 8 of Elementary Order Arithmetic in an Ordered Field first to ε and then to η=ε⋅2−1 yields 0<η, η+η=ε, and, for ε1=η⋅2−1, both 0<ε1 and ε1+ε1=η. Consequently ε1+ε1+ε1<ε1+ε1+ε1+ε1=η+η=ε.
By claim 1, already proved, there is a Lipschitz map g0:K→R with ∣f(x)−g0(x)∣≤ε1 for every x∈K; by the definition of a Lipschitz map there is a nonnegative real L with ∣g0(x)−g0(y)∣≤Ld(x,y) for all x,y∈K.
By claim 2 of The Rational Numbers are Dense in the Real Numbers, for each k∈[rn] the set of qk∈Q with ∣g0(akn)−qk∣<ε1 is nonempty; since [rn] is finite, an induction on rn produces a tuple q∈Qrn with ∣g0(akn)−qk∣<ε1 for every k∈[rn], and no choice principle is needed for this. Claim 9 of Properties of the Absolute Value in an Ordered Field turns these inequalities into g0(akn)−ε1<qk<g0(akn)+ε1.
Fix x∈K and write g=gm,n,q∈G.
Lower estimate. For every k∈[rn] we have g0(x)≤g0(akn)+Ld(x,akn), and L<ι(m) together with 0≤d(x,akn) gives Ld(x,akn)≤ι(m)d(x,akn), while g0(akn)≤qk+ε1. Hence g0(x)−ε1≤qk+ι(m)d(x,akn) for every k∈[rn], and Step 0(b) yields g0(x)−ε1≤g(x).
Upper estimate. Since an∈An there is k1∈[rn] with x∈Bd(ak1n,ι(n)−1), that is d(x,ak1n)<ι(n)−1. Using Step 0(a), then qk1<g0(ak1n)+ε1, then g0(ak1n)≤g0(x)+Ld(x,ak1n)≤g0(x)+ι(m)d(x,ak1n), we obtain