Each result cited is universally quantified over the data in its own statement. Natural numbers are read in R through the canonical map as in The Real Numbers: Standing Notation and Background §numbers, so 1/n is a positive real for every n∈N; the successor of n is written n+1, as in claim 1 of Natural Numbers. Since X=∅ and f is bounded above, σ=supx∈Xf(x) exists by The Real Numbers: Standing Notation and Background §bounds, and f(x)≤σ for every x∈X. Since each ck is positive and 0≤g(x,y), claim 5 of Elementary Arithmetic in an Ordered Field gives
0≤ckg(x,y)for all k∈N and x,y∈X.(0)
Step 1 (Gauge radii). For n∈N let Bn be the set of reals β>0 such that d(x,y)<1/n for all x,y∈X with g(x,y)≤β. The hypothesis on g, applied with η=1/n, shows that Bn is nonempty. Thus (Bn)n∈N is a family of nonempty subsets of R, and Axiom of Countable Choice gives a sequence (βn)n∈N with βn∈Bn for every n, that is,
0<βn,andg(x,y)≤βn ⟹ d(x,y)<n1(x,y∈X).(1)
Step 2 (Recursive construction). Let T be the set of quadruples (n,z,H,A) with n∈N, A⊆X, z∈A, and H:X→R bounded above. For (n,z,H,A)∈T put A+={x∈A: H(z)≤H(x)}. Then z∈A+, so H(A+) is nonempty, and it is bounded above because H is; let M(n,z,H,A)=supx∈A+H(x) (The Real Numbers: Standing Notation and Background §bounds).
Let R be the relation on T consisting of the pairs ((n,z,H,A),(n+1,y,H′,A+)) with (n,z,H,A)∈T, y∈A+, H′(x)=H(x)−cn+1g(x,y) for every x∈X, and
H(y)>M(n,z,H,A)−cn+1βn.
Every (n,z,H,A)∈T has an R-successor in T: cn+1βn is positive by (1) and claim 5 of Elementary Order Arithmetic in an Ordered Field, so claim 3 of Approximation Property of the Supremum and the Infimum in R, applied to H(A+) with ε=cn+1βn, gives y∈A+ with H(y)>M(n,z,H,A)−cn+1βn; the function H′ so defined satisfies H′(x)≤H(x) for every x by (0) and claim 3 of Elementary Arithmetic in an Ordered Field, so it is bounded above, and y∈A+, whence (n+1,y,H′,A+)∈T.
Let F1:X→R be given by F1(x)=f(x)−c1g(x,x1); as above F1(x)≤f(x)≤σ, so (1,x1,F1,X)∈T. By Axiom of Dependent Choice there is a sequence (am)m∈N in T with a1=(1,x1,F1,X) and (am,am+1)∈R for every m. By the form of R and induction on m, am=(m,xm,Fm,Tm), where (xm)m∈N is a sequence in X whose first term is the given point x1, each Fm:X→R is a function and each Tm⊆X, such that T1=X and, for every m∈N,
xm∈Tm,Tm+1={x∈Tm: Fm(xm)≤Fm(x)},xm+1∈Tm+1,(2)
Fm+1(x)=Fm(x)−cm+1g(x,xm+1)(x∈X),(3)
Fm(xm+1)>x∈Tm+1supFm(x)−cm+1βm.(4)
Step 3 (Partial sums, the series, and semicontinuity). For x∈X and n∈N let pn(x)=∑k=1nckg(x,xk), the n-th partial sum of (ckg(x,xk))k∈N. Then
Fn(x)=f(x)−pn(x)(x∈X, n∈N),(5)
by induction on n: for n=1 this is the definition of F1 together with ∑k=11ak=a1 from claim 1 of Properties of Finite Sums, and the step from n to n+1 is (3) together with the recursion pn+1(x)=pn(x)+cn+1g(x,xn+1) of the same claim. In particular F1(x1)=f(x1)−c1g(x1,x1)=f(x1), since g(x1,x1)=0.
Fix x∈X. By (0) and the hypotheses, 0≤ck, 0≤g(x,xk)≤G for every k, and ∑k=1∞ck converges, so the tail bound for dominated series (with μk=ck, wk=g(x,xk) and M=G) shows that the series P(x)=∑k=1∞ckg(x,xk) converges and 0≤P(x)−pn(x) for every n. Hence Φ(x)=f(x)−P(x) is defined and, by claim 3 of Elementary Arithmetic in an Ordered Field and (5), since Fn(x)−Φ(x)=P(x)−pn(x),
Φ(x)≤Fn(x)(x∈X, n∈N).(6)
Each Fn is upper semicontinuous on X. Indeed, for every k the function ckg(⋅,xk) is lower semicontinuous on X by claim 3 of Sums and Nonnegative Multiples of Semicontinuous Functions, since g(⋅,xk) is and 0≤ck. As f is upper semicontinuous on X, claim 3 of Negation, Restriction, and Separated Differences of Semicontinuous Functions shows that F1=f−c1g(⋅,x1) is upper semicontinuous on X; and if Fn is, then so is Fn+1=Fn−cn+1g(⋅,xn+1), by (3) and the same claim.
Step 4 (Nesting and monotone values). We claim that, whenever n≤m,
Tm⊆Tn,xm∈Tn,Fn(xn)≤Fm(xm).(7)
First, for every m we have Tm+1⊆Tm by (2), and
Fm+1(xm+1)=Fm(xm+1)−cm+1g(xm+1,xm+1)=Fm(xm+1)≥Fm(xm)
by (3), g(xm+1,xm+1)=0, and xm+1∈Tm+1 in (2). Now argue by induction on m. For m=1, n≤1 and 1≤n (claim 4 of Properties of the Order on the Natural Numbers) force n=1 by claim 2 there, and the first and third assertions are trivial. If they hold for m and n≤m+1, then either n=m+1, where they are trivial, or n≤m by claim 5 of Properties of the Order on the Natural Numbers, in which case Tm+1⊆Tm⊆Tn and Fn(xn)≤Fm(xm)≤Fm+1(xm+1). The second assertion follows from the first because xm∈Tm by (2).
Step 5 (The sets Tn are closed). We show by induction on n: if y∈X is such that for every real δ>0 some w∈Tn satisfies d(y,w)<δ, then y∈Tn. For n=1 this is clear since T1=X. Assume it for n, and let y have this property relative to Tn+1. Since Tn+1⊆Tn, y has it relative to Tn, so y∈Tn. Suppose Fn(xn)≤Fn(y) fails; then Fn(y)<Fn(xn) since the order is total, and γ=Fn(xn)−Fn(y) is positive by claim 1 of Elementary Order Arithmetic in an Ordered Field. As Fn is upper semicontinuous at y relative to X (Step 3), there is δ>0 with Fn(w)<Fn(y)+γ=Fn(xn) for every w∈X with d(y,w)<δ. Taking such a w in Tn+1 contradicts Fn(xn)≤Fn(w), which holds by (2). Hence Fn(xn)≤Fn(y), and y∈Tn+1 by (2).
Step 6 (Small sets). Let n∈N and x∈Tn+2. Then x∈Tn+1 by (7), so Fn(x)≤supw∈Tn+1Fn(w), and by (4) and claims 1 and 2 of Elementary Order Arithmetic in an Ordered Field, Fn(x)<Fn(xn+1)+cn+1βn. On the other hand Fn+1(xn+1)≤Fn+1(x) by (2) applied with m=n+1, which by (3) and g(xn+1,xn+1)=0 reads Fn(xn+1)≤Fn(x)−cn+1g(x,xn+1). Combining the two,
cn+1g(x,xn+1)≤Fn(x)−Fn(xn+1)<cn+1βn,
and multiplying by cn+1−1>0 (claims 7 and 10 of Elementary Order Arithmetic in an Ordered Field) gives g(x,xn+1)<βn. By (1),
d(x,xn+1)<n1for every n∈N and every x∈Tn+2.(8)
Step 7 (Centres). Let a real ε>0 be given. By claim 8 of Elementary Order Arithmetic in an Ordered Field and claim 3 of The Archimedean Property of the Real Numbers there is n∈N with 1/n<ε/2. For m,ℓ∈N with m≥n+2 and ℓ≥n+2, (7) gives xm,xℓ∈Tn+2, so (8) and the symmetry and triangle inequality of Metric Space give
d(xm,xℓ)≤d(xm,xn+1)+d(xℓ,xn+1)<n1+n1<ε,
using claims 3 and 8 of Elementary Order Arithmetic in an Ordered Field. Thus (xm) is a Cauchy sequence, and since (X,d) is complete it converges to some xˉ∈X. This is the centres assertion.
Moreover xˉ∈Tn for every n∈N. Given a real δ>0, convergence gives N∈N with d(xm,xˉ)<δ for all m≥N; let m be the larger of N and n (trichotomy, claim 3 of Properties of the Order on the Natural Numbers). Then xm∈Tn by (7) and d(xˉ,xm)<δ, so Step 5 gives xˉ∈Tn.
Step 8 (The sets Tn shrink to xˉ). Let y∈X lie in Tn for every n∈N. For each n, both y and xˉ lie in Tn+2, so as in Step 7, (8) gives d(y,xˉ)≤d(y,xn+1)+d(xˉ,xn+1)<2/n. Given a real ε>0, choosing n with 1/n<ε/2 as in Step 7 yields d(y,xˉ)<ε; since 0≤d(y,xˉ), vanishing gives d(y,xˉ)=0, so y=xˉ by Metric Space.
Step 9 (Value). We show
Fn(xn)≤Φ(xˉ)for every n∈N.(9)
Fix n and suppose instead that Φ(xˉ)<Fn(xn), so that γ=Fn(xn)−Φ(xˉ) is positive by claim 1 of Elementary Order Arithmetic in an Ordered Field. By Step 3 and the definition of the sum, (pm(xˉ))m∈N converges to P(xˉ), so there is N∈N with ∣pm(xˉ)−P(xˉ)∣<γ, hence P(xˉ)−pm(xˉ)<γ by claim 9 of Properties of the Absolute Value in an Ordered Field, for all m≥N. Let m be the larger of N and n. Since xˉ∈Tm+1 by Step 7, (2) gives Fm(xm)≤Fm(xˉ), and Fn(xn)≤Fm(xm) by (7). Using (5) and claim 1 of Elementary Order Arithmetic in an Ordered Field,
Fn(xn)≤Fm(xˉ)=f(xˉ)−pm(xˉ)<f(xˉ)−P(xˉ)+γ=Φ(xˉ)+γ=Fn(xn),
so claim 2 of Elementary Order Arithmetic in an Ordered Field would give Fn(xn)<Fn(xn), which is impossible because a<b requires a=b. Hence (9) holds, since the order is total. Taking n=1 and recalling F1(x1)=f(x1) from Step 3 gives Φ(xˉ)≥f(x1), the value assertion.
Step 10 (Strict maximum). Let x∈X with x=xˉ. By Step 8, x does not lie in every Tj. Hence there is n∈N with x∈Tn and x∈/Tn+1: otherwise, since x∈T1=X, induction on n would give x∈Tn for every n. By (2), x∈/Tn+1 with x∈Tn means that Fn(xn)≤Fn(x) fails, so Fn(x)<Fn(xn). By (6) and (9),
Φ(x)≤Fn(x)<Fn(xn)≤Φ(xˉ),
and claim 2 of Elementary Order Arithmetic in an Ordered Field gives Φ(x)<Φ(xˉ), the strict maximum assertion.
Step 11 (Localisation). By (6) with n=1, the value assertion, the hypothesis on x1 and f(xˉ)≤σ,
f(xˉ)−c1g(xˉ,x1)=F1(xˉ)≥Φ(xˉ)≥f(x1)≥σ−ε≥f(xˉ)−ε.
By claim 3 of Elementary Arithmetic in an Ordered Field, 0≤(f(xˉ)−c1g(xˉ,x1))−(f(xˉ)−ε)=ε−c1g(xˉ,x1), and by the same claim c1g(xˉ,x1)≤ε, the localisation assertion.