Throughout, write Sk,x={f(y)+λkd(x,y):y∈X} for k∈N and x∈X, and let dR be the absolute-value metric on R. By claim 3 of Properties of the Canonical Map from the Natural Numbers to an Ordered Field we have 0<λk for every k∈N.
Claim 1. Since X is nonempty, Sk,x is nonempty. Every element of Sk,x is nonnegative, because 0≤f(y) by hypothesis and 0≤λkd(x,y) by condition 1 of Metric Space together with 0<λk; so 0 is a lower bound of Sk,x. Hence the infimum of Sk,x exists by Existence of the Infimum of a Nonempty Subset of R Bounded Below, is unique by Uniqueness of the Supremum and of the Infimum, and satisfies 0≤fk(x). Taking y=x and using d(x,x)=0 (condition 2 of Metric Space) shows that f(x)∈Sk,x, so fk(x)≤f(x); and f(x)≤M by hypothesis.
Claim 2. Let x,x′∈X and let y∈X be arbitrary. Since fk(x) is a lower bound of Sk,x, and by the triangle inequality (condition 4 of Metric Space) together with 0≤λk,
fk(x)≤f(y)+λkd(x,y)≤f(y)+λkd(x′,y)+λkd(x,x′).
Hence fk(x)−λkd(x,x′)≤f(y)+λkd(x′,y) for every y∈X, so fk(x)−λkd(x,x′) is a lower bound of Sk,x′ and therefore
fk(x)−fk(x′)≤λkd(x,x′).
Interchanging x and x′ and using the symmetry of d (condition 3 of Metric Space) gives fk(x′)−fk(x)≤λkd(x,x′). By claim 6 of Properties of the Absolute Value in an Ordered Field, the two inequalities give
dR(fk(x),fk(x′))=∣fk(x)−fk(x′)∣≤λkd(x,x′),
so fk is Lipschitz with constant λk, and hence continuous on X by A Lipschitz Map is Uniformly Continuous.
Claim 3. By claim 6 of Properties of the Canonical Map from the Natural Numbers to an Ordered Field, λk<λk+1. For every y∈X we have 0≤d(x,y), so λkd(x,y)≤λk+1d(x,y) and therefore
fk(x)≤f(y)+λkd(x,y)≤f(y)+λk+1d(x,y).
Thus fk(x) is a lower bound of Sk+1,x, whence fk(x)≤fk+1(x).
Claim 4. Fix x∈X and let ε be a real number with 0<ε. Since f is lower semicontinuous at x relative to X, there is a real δ>0 such that every y∈X with d(x,y)<δ satisfies
f(x)−2ε<f(y).
By claim 2 of The Archimedean Property of the Real Numbers there is K∈N with M<λKδ. Let k∈N with K≤k; then λK≤λk, by claim 6 of Properties of the Canonical Map from the Natural Numbers to an Ordered Field if K<k and trivially if K=k.
Let y∈X. If d(x,y)<δ, then 0≤λkd(x,y) gives f(x)−2ε<f(y)≤f(y)+λkd(x,y). If instead δ≤d(x,y), then
f(y)+λkd(x,y)≥λkd(x,y)≥λKδ>M≥f(x)>f(x)−2ε,
using 0≤f(y) and 0<ε. In both cases f(x)−2ε<f(y)+λkd(x,y), so f(x)−2ε is a lower bound of Sk,x and therefore f(x)−2ε≤fk(x).
Combining with claim 1, f(x)−2ε≤fk(x)≤f(x) for every k≥K, so ∣fk(x)−f(x)∣≤2ε<ε for every k≥K. Since ε was arbitrary, (fk(x))k∈N converges to f(x) in the sense of Limit of a Sequence of Real Numbers.
Finally, f(x) is an upper bound of {fk(x):k∈N} by claim 1. Let t be a real number with t<f(x) and apply the argument above with ε=f(x)−t, which is positive: it produces K∈N with f(x)−2ε≤fK(x), and since 0<ε we have t=f(x)−ε<f(x)−2ε≤fK(x), so t is not an upper bound. Hence f(x) is the least upper bound of {fk(x):k∈N}.