Each result cited below is universally quantified over the data in its own statement.
Throughout, H(x,r,p)=ρr+21p2−f(x) for x∈X, r∈R and p∈T is the Hamiltonian Hρ,f on X of The Discounted Stationary Hopf-Lax Equation on an Open Subset of a Metric Space, so that by The Discounted Stationary Hopf-Lax Equation on an Open Subset of a Metric Space §discounted-hopf-lax the hypotheses say that u is an s-subsolution and v an s-supersolution of H=0 in X. In particular, by Slope-Based Viscosity Subsolutions, Supersolutions and Solutions on a Metric Space §subsolution and Slope-Based Viscosity Subsolutions, Supersolutions and Solutions on a Metric Space §supersolution, u is upper semicontinuous on X and v is lower semicontinuous on X, and by Slope-Based Viscosity Subsolutions, Supersolutions and Solutions on a Metric Space §hamiltonian we have H(x,r,p)≤H(x,r,p′) whenever p,p′∈T and p≤p′.
We argue by contradiction. Suppose that there is z∈X with v(z)<u(z), and put θ=u(z)−v(z), a positive real. The constants are chosen in the order M, β, σ, γ, ε of Step 2; the points (x0,y0) and (xε,yε) of Step 3 are chosen after ε.
Step 1 (the doubled space). Let Z=X×X and ϱ((x,y),(x′,y′))=d(x,x′)+d(y,y′). Conditions 1, 3 and 4 of Metric Space for ϱ follow by adding the same conditions for d in the two coordinates; and since both summands are nonnegative, ϱ((x,y),(x′,y′))=0 holds exactly when d(x,x′)=0 and d(y,y′)=0, that is, by condition 2 for d, exactly when (x,y)=(x′,y′). So (Z,ϱ) is a metric space.
It is complete: let ((xm,ym)) be a Cauchy sequence in (Z,ϱ). Since d(xm,xℓ)≤ϱ((xm,ym),(xℓ,yℓ)) and d(ym,yℓ)≤ϱ((xm,ym),(xℓ,yℓ)), the sequences (xm) and (ym) are Cauchy sequences in (X,d), so by completeness of (X,d) they converge to some xˉ∈X and yˉ∈X. Given a real τ>0, take N1,N2∈N with d(xm,xˉ)<τ/2 for m≥N1 and d(ym,yˉ)<τ/2 for m≥N2; then ϱ((xm,ym),(xˉ,yˉ))<τ for m≥max{N1,N2}, so ((xm,ym)) converges to (xˉ,yˉ) in (Z,ϱ).
Now let ε be a positive real and Φ(x,y)=u(x)−v(y)−ε1d(x,y)2 on Z. Then Φ is upper semicontinuous on Z in the sense of Upper Semicontinuous Function on a Subset of a Metric Space (for the metric space (Z,ϱ)). Indeed, fix (xˉ,yˉ)∈Z and a real τ>0, and put ℓ=d(xˉ,yˉ). Upper semicontinuity of u at xˉ gives a real δ1>0 with u(x)<u(xˉ)+τ/3 for all x∈X with d(xˉ,x)<δ1; lower semicontinuity of v at yˉ gives a real δ2>0 with v(yˉ)−τ/3<v(y) for all y∈X with d(yˉ,y)<δ2. Let δ3=min{1,ετ/(3(2ℓ+1))} and δ0=min{δ1,δ2,δ3}, and let (x,y)∈Z with s=ϱ((x,y),(xˉ,yˉ))<δ0. Then d(xˉ,x)≤s and d(yˉ,y)≤s, and the triangle inequality (condition 4 of Metric Space) gives ℓ≤d(xˉ,x)+d(x,y)+d(y,yˉ) and d(x,y)≤d(x,xˉ)+ℓ+d(yˉ,y), so ∣d(x,y)−ℓ∣≤s. If d(x,y)≤ℓ then
ℓ2−d(x,y)2=(ℓ−d(x,y))(ℓ+d(x,y))≤s(2ℓ+s)≤s(2ℓ+1)<ετ/3,
and if ℓ<d(x,y) then ℓ2−d(x,y)2<0<ετ/3. Adding the three estimates, Φ(x,y)<Φ(xˉ,yˉ)+τ.
Step 2 (constants). Since u and v are bounded above and below in the sense of The Real Numbers: Standing Notation and Background §bounds, there are reals a1,b1,a2,b2 with a1≤u(x)≤b1 and a2≤v(x)≤b2 for every x∈X; with M=1+∣a1∣+∣b1∣+∣a2∣+∣b2∣, a positive real, we get ∣u(x)∣≤M and ∣v(x)∣≤M for every x∈X, hence u(x)−v(y)≤2M for all x,y∈X. Let β=ρθ/4, a positive real. By uniform continuity of f on X there is a real σ>0 with ∣f(x)−f(y)∣<β for all x,y∈X with d(x,y)<σ. Let γ=min{σ,β/4}, and finally
ε=min{21, 2(2M+1)γ2, 2(2+ρ)β}.
Then 0<ε<1, so ε2≤ε, and
ε(2M+1)≤γ2/2<γ2,(2+ρ)ε2≤(2+ρ)ε≤β/2<β.(2.1)
Step 3 (doubling of variables and Ekeland's principle). Let Φ be the function of Step 1 for this ε. For all (x,y)∈Z we have Φ(x,y)≤u(x)−v(y)≤2M, so the nonempty set Φ(Z) is bounded above and S=sup(x,y)∈ZΦ(x,y) exists by The Real Numbers: Standing Notation and Background §bounds, with θ=Φ(z,z)≤S. By claim 3 of Approximation Property of the Supremum and the Infimum in R, applied with the positive real ε2, there is (x0,y0)∈Z with S−ε2<Φ(x0,y0). By Step 1, Ekeland's Variational Principle for Upper Semicontinuous Functions on a Complete Metric Space applies to F=Φ on the complete metric space (Z,ϱ) with η=ε2 and κ=ε, so that η/κ=ε; it gives (xε,yε)∈Z such that, by Ekeland's Variational Principle for Upper Semicontinuous Functions on a Complete Metric Space §value,
θ−ε2≤S−ε2≤Φ(x0,y0)≤Φ(xε,yε),
and, by Ekeland's Variational Principle for Upper Semicontinuous Functions on a Complete Metric Space §perturbed, Φ(x,y)−εd(x,xε)−εd(y,yε)<Φ(xε,yε) for every (x,y)=(xε,yε). Since the left-hand side equals Φ(xε,yε) at (x,y)=(xε,yε), we get
u(x)−v(y)−ε1d(x,y)2−εd(x,xε)−εd(y,yε)≤u(xε)−v(yε)−ε1d(xε,yε)2for all x,y∈X.(3.1)
Put δ=d(xε,yε) and p=2δ/ε, a nonnegative real. From θ−ε2≤Φ(xε,yε)=u(xε)−v(yε)−δ2/ε we get
θ−ε2≤u(xε)−v(yε)(3.2)
and δ2/ε≤u(xε)−v(yε)−θ+ε2≤2M+1, because 0<θ and ε2<1. Hence δ2≤ε(2M+1)<γ2 by (2.1), and since δ and γ are nonnegative, claim 1 of Monotonicity of Squaring on the Nonnegative Elements of an Ordered Field gives
δ<γ≤σand4δ<β.(3.3)
Step 4 (subsolution test at xε). Define ψ1,ψ2:X→R by ψ1(x)=ε1d(x,yε)2+v(yε) and ψ2(x)=εd(x,xε). Since (X,d) has interpolation points, Elementary Properties of Local Slopes: Order, Negation, Bounds from Difference Quotients, Lipschitz Functions and Squared Distances §squared-distance, applied with Ω=X, x0=yε, k=1/ε and C=v(yε), shows that ψ1∈C(X) and ∣∇ψ1∣(xε)=2d(xε,yε)/ε=p. For y,w∈X the triangle inequality gives ∣d(y,xε)−d(w,xε)∣≤d(y,w), so ∣ψ2(y)−ψ2(w)∣≤εd(y,w); by Elementary Properties of Local Slopes: Order, Negation, Bounds from Difference Quotients, Lipschitz Functions and Squared Distances §lipschitz with L=ε, ψ2 is locally Lipschitz on X and e1=∣∇ψ2∣∗(xε) satisfies e1≤ε. Taking y=yε in (3.1) and noting ψ2(xε)=0, we get u(x)−ψ1(x)−ψ2(x)≤u(xε)−ψ1(xε)−ψ2(xε) for every x∈X, so u−ψ1−ψ2 has a local maximum at xε relative to X (with any radius). By Slope-Based Viscosity Subsolutions, Supersolutions and Solutions on a Metric Space §subsolution,
H(xε,u(xε),max{p−e1,0})≤0.
Let p−=max{p−ε,0}∈T. Since p−ε≤p−e1, claim 1 of Elementary Properties of the Maximum of Two Elements gives p−ε≤max{p−e1,0} and 0≤max{p−e1,0}, so claim 3 of the same lemma gives p−≤max{p−e1,0}. By the monotonicity of H recalled above, H(xε,u(xε),p−)≤0, that is,
ρu(xε)+21p−2≤f(xε).(4.1)
Step 5 (supersolution test at yε). Define ψ3,ψ4:X→R by ψ3(y)=−ε1d(y,xε)2+u(xε) and ψ4(y)=−εd(y,yε). Then ψ3=−φ with φ(y)=ε1d(y,xε)2−u(xε), so the last sentence of Elementary Properties of Local Slopes: Order, Negation, Bounds from Difference Quotients, Lipschitz Functions and Squared Distances §squared-distance (with Ω=X, x0=xε, k=1/ε, C=−u(xε)) shows that ψ3∈C(X) and ∣∇ψ3∣(yε)=2d(yε,xε)/ε=p. As in Step 4, ∣ψ4(y)−ψ4(w)∣≤εd(y,w) for y,w∈X, so by Elementary Properties of Local Slopes: Order, Negation, Bounds from Difference Quotients, Lipschitz Functions and Squared Distances §lipschitz ψ4 is locally Lipschitz on X and e2=∣∇ψ4∣∗(yε) satisfies e2≤ε. Taking x=xε in (3.1) and using d(xε,y)=d(y,xε), we get u(xε)−v(y)−ε1d(y,xε)2−εd(y,yε)≤u(xε)−v(yε)−ε1δ2, which rearranges to v(yε)−ψ3(yε)−ψ4(yε)≤v(y)−ψ3(y)−ψ4(y) for every y∈X. So v−ψ3−ψ4 has a local minimum at yε relative to X, and Slope-Based Viscosity Subsolutions, Supersolutions and Solutions on a Metric Space §supersolution gives H(yε,v(yε),p+e2)≥0. Since p+e2≤p+ε and both lie in T, monotonicity of H gives H(yε,v(yε),p+ε)≥0, that is,
f(yε)≤ρv(yε)+21(p+ε)2.(5.1)
Step 6 (the quadratic terms). We show 21(p+ε)2−21p−2≤2εp+2ε2. If ε≤p, then 0≤p−ε≤p− by claim 1 of Elementary Properties of the Maximum of Two Elements, so (p−ε)2≤p−2 by claim 2 of Monotonicity of Squaring on the Nonnegative Elements of an Ordered Field, and 21(p+ε)2−21(p−ε)2=2εp. If p<ε, then 0≤p+ε≤2ε, so (p+ε)2≤4ε2 by claim 2 of Monotonicity of Squaring on the Nonnegative Elements of an Ordered Field, and with 0≤p−2 we get 21(p+ε)2−21p−2≤2ε2≤2εp+2ε2. Since εp=2δ,
21(p+ε)2−21p−2≤4δ+2ε2.(6.1)
Step 7 (contradiction). Adding (4.1) and (5.1) and using (6.1),
ρ(u(xε)−v(yε))≤f(xε)−f(yε)+4δ+2ε2.
Since 0<ρ, (3.2) gives ρθ−ρε2≤ρ(u(xε)−v(yε)). By (3.3), d(xε,yε)=δ<σ, so ∣f(xε)−f(yε)∣<β by the choice of σ, and 4δ<β. Together with (2.1),
4β=ρθ≤∣f(xε)−f(yε)∣+4δ+(2+ρ)ε2<3β,
which is impossible because 0<β. Hence there is no z∈X with v(z)<u(z), that is, u(x)≤v(x) for every x∈X.