Each result cited below is universally quantified over the data in its own statement.
Throughout, Hf(x,r,p)=p−f(x) for x∈Ω, r∈R and p∈T is the Hamiltonian on Ω of The Eikonal Equation on an Open Subset of a Metric Space; by The Eikonal Equation on an Open Subset of a Metric Space §eikonal the hypotheses say that the restriction u∣Ω of u to Ω is an s-subsolution and the restriction v∣Ω an s-supersolution of Hf=0 in Ω, in the sense of 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. The properties of D used below are those of The Distance to a Set is Nonexpansive (with A=K): for all x,y∈X and k∈K, D(x)≤d(x,k) by its claim 2 and D(x)≤d(x,y)+D(y) by its claim 3.
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, c, β, σ, λ, σ′, γ, ε 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 c and ε be positive reals and Φ(x,y)=cu(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ˉ). Since u is upper semicontinuous at xˉ, there is a real δ1>0 with u(x)<u(xˉ)+τ/(3c), hence cu(x)<cu(xˉ)+τ/3, for all x∈X with d(xˉ,x)<δ1; since v is lower semicontinuous at yˉ, there is 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. In particular θ≤∣u(z)∣+∣v(z)∣≤2M.
Let c=1−θ/(16M). Then 0<θ/(16M)≤1/8, so 7/8≤c<1, and
(1−c)∣u(x)∣≤16MθM=16θfor every x∈X.(2.1)
Let β=θ/2. By the boundary hypothesis of the statement, applied with the positive real β/4, there is a real σ>0 with u(x)−v(y)<β/4 for all x,y∈X with D(x)+D(y)+d(x,y)<σ. For such x,y, (2.1) gives −(1−c)u(x)≤θ/16=β/8, hence
cu(x)−v(y)=(u(x)−v(y))−(1−c)u(x)<β/4+β/8<β/2whenever D(x)+D(y)+d(x,y)<σ.(2.2)
Let λ=(1−c)c0, a positive real. By uniform continuity of f on Ω there is a real σ′>0 with ∣f(x)−f(y)∣<λ/2 for all x,y∈Ω with d(x,y)<σ′. Let γ=min{σ/4,σ′}, and finally
ε=min{21, 4θ, 4Mγ2, 4λ}.
Then 0<ε<1, so ε2≤ε≤θ/4; moreover 2Mε≤γ2/2<γ2 and 2ε≤λ/2.
Step 3 (doubling of variables and Ekeland's principle). Let Φ be the function of Step 1 for these c and ε. Since 0<c≤1, for all (x,y)∈Z we have Φ(x,y)≤cu(x)−v(y)≤cM+M≤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. By (2.1),
S≥Φ(z,z)=cu(z)−v(z)=θ−(1−c)u(z)≥θ−θ/16=15θ/16.
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 and ε2≤θ/4,
Φ(xε,yε)≥Φ(x0,y0)≥S−ε2≥15θ/16−θ/4=11θ/16>β,(3.1)
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
cu(x)−v(y)−ε1d(x,y)2−εd(x,xε)−εd(y,yε)≤cu(xε)−v(yε)−ε1d(xε,yε)2for all x,y∈X.(3.2)
Put δ=d(xε,yε). From (3.1), β<Φ(xε,yε)≤cu(xε)−v(yε) and δ2/ε=cu(xε)−v(yε)−Φ(xε,yε)<2M, so δ2<2Mε<γ2; as δ and γ are nonnegative, claim 1 of Monotonicity of Squaring on the Nonnegative Elements of an Ordered Field gives
δ<γ≤min{σ/4,σ′}.(3.3)
Step 4 (the points lie in Ω). Suppose D(xε)≤σ/4. Since D(yε)≤δ+D(xε), (3.3) gives D(xε)+D(yε)+δ≤2D(xε)+2δ<σ/2+σ/2=σ, so cu(xε)−v(yε)<β/2 by (2.2), contradicting β<cu(xε)−v(yε) from Step 3. Symmetrically, if D(yε)≤σ/4 then D(xε)≤δ+D(yε) leads to the same contradiction. Hence D(xε)>σ/4>0 and D(yε)>σ/4>0. If xε were in K, then D(xε)≤d(xε,xε)=0; so xε∈Ω, and likewise yε∈Ω.
Step 5 (subsolution test at xε). Define ψ1,ψ2:Ω→R by ψ1(x)=cε1d(x,yε)2+c1v(yε) and ψ2(x)=cεd(x,xε). Since (X,d) has interpolation points and Ω is open, Elementary Properties of Local Slopes: Order, Negation, Bounds from Difference Quotients, Lipschitz Functions and Squared Distances §squared-distance, applied with x0=yε, k=1/(cε) and C=v(yε)/c, shows that ψ1∈C(Ω) and ∣∇ψ1∣(xε)=2δ/(cε). For y,w∈Ω the triangle inequality gives ∣d(y,xε)−d(w,xε)∣≤d(y,w), so ∣ψ2(y)−ψ2(w)∣≤cεd(y,w); by Elementary Properties of Local Slopes: Order, Negation, Bounds from Difference Quotients, Lipschitz Functions and Squared Distances §lipschitz with L=ε/c, ψ2 is locally Lipschitz on Ω and e1=∣∇ψ2∣∗(xε) satisfies e1≤ε/c. Taking y=yε in (3.2), dividing by c>0 and noting ψ2(xε)=0, we get u(x)−ψ1(x)−ψ2(x)≤u(xε)−ψ1(xε)−ψ2(xε) for every x∈Ω, so u∣Ω−ψ1−ψ2 has a local maximum at xε relative to Ω (with any radius). By Slope-Based Viscosity Subsolutions, Supersolutions and Solutions on a Metric Space §subsolution, max{2δ/(cε)−e1,0}−f(xε)≤0. By claim 1 of Elementary Properties of the Maximum of Two Elements and e1≤ε/c,
cε2δ−cε≤cε2δ−e1≤max{cε2δ−e1,0}≤f(xε),soε2δ≤cf(xε)+ε.(5.1)
Step 6 (supersolution test at yε). Define ψ3,ψ4:Ω→R by ψ3(y)=−ε1d(y,xε)2+cu(xε) and ψ4(y)=−εd(y,yε). Then ψ3=−φ with φ(y)=ε1d(y,xε)2−cu(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 x0=xε, k=1/ε, C=−cu(xε)) shows that ψ3∈C(Ω) and ∣∇ψ3∣(yε)=2d(yε,xε)/ε=2δ/ε. As in Step 5, ∣ψ4(y)−ψ4(w)∣≤εd(y,w) for y,w∈Ω, so by Elementary Properties of Local Slopes: Order, Negation, Bounds from Difference Quotients, Lipschitz Functions and Squared Distances §lipschitz ψ4 is locally Lipschitz on Ω and e2=∣∇ψ4∣∗(yε) satisfies e2≤ε. Taking x=xε in (3.2) and using d(xε,y)=d(y,xε), we get cu(xε)−v(y)−ε1d(y,xε)2−εd(y,yε)≤cu(xε)−v(yε)−ε1δ2, which rearranges to v(yε)−ψ3(yε)−ψ4(yε)≤v(y)−ψ3(y)−ψ4(y) for every y∈Ω. So v∣Ω−ψ3−ψ4 has a local minimum at yε relative to Ω, and Slope-Based Viscosity Subsolutions, Supersolutions and Solutions on a Metric Space §supersolution gives 2δ/ε+e2−f(yε)≥0, hence
f(yε)≤ε2δ+e2≤ε2δ+ε.(6.1)
Step 7 (contradiction). By (6.1) and (5.1), f(yε)≤cf(xε)+2ε, that is,
(1−c)f(xε)≤f(xε)−f(yε)+2ε.
Since xε∈Ω, c0≤f(xε), and 0<1−c, the left-hand side is at least (1−c)c0=λ. Since xε,yε∈Ω and d(xε,yε)=δ<σ′ by (3.3), the choice of σ′ gives f(xε)−f(yε)<λ/2, and 2ε≤λ/2 by Step 2. Hence λ<λ/2+λ/2=λ, which is impossible. Hence there is no z∈X with v(z)<u(z), that is, u(x)≤v(x) for every x∈X.