Each result cited is universally quantified over the data in its own statement. Elementary ordered-field arithmetic and order in R are used without further citation (The Real Numbers: Standing Notation and Background §background). Sums and differences of elements of L2(ν;Rd) are formed in that real Hilbert space (Wasserstein Spaces, Random Vectors, Vector Fields and Symmetric Matrices in Every Dimension: Standing Notation §fields); sums and differences of elements of S(d) lie in S(d) by claim 1 of The Positive Semidefinite Ordering is a Partial Order Compatible with the Linear Structure, and matrix arithmetic is entrywise. For every penalty pair the score domain is contained in the penalty domain (Penalty Pairs on the Wasserstein Space: the Penalty, Its Score, and Their Domains §pair); hence for an intrinsic test function Θ on D and ν∈DΣ the gradient ∇Θ(ν) is defined and lies in Tν⊆L2(ν;Rd) by property (b) of Intrinsic Test Functions on the Wasserstein Space and Their Translation Hessians §differentiability, and HΘ(ν)∈S(d) by Intrinsic Test Functions on the Wasserstein Space and Their Translation Hessians §hessian. The distance W2 is a metric (The Quadratic Wasserstein Distance is a Metric on the Wasserstein Space §metric), in particular symmetric, and W2(ν,μ)2≤I(π) for every π∈Π(ν,μ) by The Quadratic Wasserstein Distance on Euclidean Space §distance; costs I(π) and discrepancies are nonnegative real numbers (The Intrinsic Calculus on the Wasserstein Space: Standing Notation §couplings).
Step 0. Three auxiliary claims.
Claim A (envelopes and continuous functions). Let g:D→R, let Θ′:P2(Rd)→R be continuous in the sense of Continuous Map Between Metric Spaces (for W2 and the absolute-value metric), and let g−Θ′ be the function on D with value g(μ)−Θ′(μ). (i) If g is bounded above near each point of D (Upper and Lower Semicontinuous Envelopes of a Real-Valued Function §near-bounds), then so is g−Θ′, and the upper semicontinuous envelopes (Upper and Lower Semicontinuous Envelopes of a Real-Valued Function §upper) satisfy (g−Θ′)∗(x)=g∗(x)−Θ′(x) for every x∈D. (ii) If g is bounded below near each point of D, then so is g−Θ′, and the lower semicontinuous envelopes (Upper and Lower Semicontinuous Envelopes of a Real-Valued Function §lower) satisfy (g−Θ′)∗(x)=g∗(x)−Θ′(x) for every x∈D.
Proof of (i). Fix x∈D and a positive κ∈R. By continuity of Θ′ at x there is a positive r0 with ∣Θ′(y)−Θ′(x)∣<κ whenever W2(x,y)<r0. Let c∈Ag(x), with radius r as in Upper and Lower Semicontinuous Envelopes of a Real-Valued Function, and put r′=min{r,r0/2}, a positive number. For y∈D with W2(y,x)≤r′ we have W2(x,y)<r0, hence g(y)−Θ′(y)≤c−Θ′(x)+κ. Thus c−Θ′(x)+κ∈Ag−Θ′(x). Since Ag(x) is nonempty, so is Ag−Θ′(x), and g−Θ′ is bounded above near each point. Moreover, (g−Θ′)∗(x)=infAg−Θ′(x)≤c−Θ′(x)+κ for every c∈Ag(x). So (g−Θ′)∗(x)+Θ′(x)−κ is a lower bound of Ag(x), and hence it is at most the greatest lower bound g∗(x). As κ was arbitrary, (g−Θ′)∗(x)≤g∗(x)−Θ′(x). The function −Θ′ is continuous, because ∣(−a)−(−b)∣=∣a−b∣ (claim 2 of Properties of the Absolute Value in an Ordered Field), and g=(g−Θ′)−(−Θ′) pointwise. The inequality just proved, applied to g−Θ′ and −Θ′, gives g∗(x)≤(g−Θ′)∗(x)+Θ′(x), and so equality holds. The proof of (ii) is the same argument with Bg(x), suprema and reversed inequalities: c∈Bg(x) gives c−Θ′(x)−κ∈Bg−Θ′(x), and so on.
Claim C (ε-form of property (c)). Let Θ be an intrinsic test function on D, let μ^∈D and let κ∈R be positive. Then there is a positive λ∈R such that ∫Rd+d∥∇Θ(ν)(x)−∇Θ(μ^)(y)∥2π(dz)<κ for every ν∈D and every π∈Π(ν,μ^) with I(π)<λ.
Proof. Suppose not. Then for each n∈N there are νn∈D and πn∈Π(νn,μ^) with I(πn)<(n+1)−1 whose discrepancy above is at least κ. The sequence (I(πn)) converges to 0 in the sense of Limit of a Sequence of Real Numbers. Indeed, given a positive κ′, claim 3 of The Archimedean Property of the Real Numbers gives N∈N with 0<N−1<κ′, and then 0≤I(πn)<(n+1)−1≤N−1<κ′ for n≥N. By property (c) of Intrinsic Test Functions on the Wasserstein Space and Their Translation Hessians §gradient-continuity, applied at μ^∈D to the sequences (νn) in D and (πn), the discrepancies converge to 0, so some of them are less than κ, a contradiction.
Notation. For a function g:D→R and a second-order equation operator G over DΣ (The Bundle of Vector Fields over a Set of Measures, Second-Order Equation Operators on the Wasserstein Space, and Their Delta-Shifts §operator), say that (g,G) satisfies (S−) if the following holds. For every intrinsic test function φ on D, every μ^∈D at which g−φ has a local maximum relative to D, and every positive ε, there exist ν∈DΣ, π∈Π(ν,μ^), s∈R, q∈L2(ν;Rd) and Y∈S(d) with I(π)<ε2, ∣g(ν)−g(μ^)∣<ε, ∣s−g(μ^)∣<ε, ∫Rd+d∥q(x)−∇φ(μ^)(y)∥2π(dz)<ε2, ∥Y−Hφ(μ^)∥<ε and G(ν,s,q,Y)≤ε. Say that (g,G) satisfies (S+) if the same holds with "local minimum" in place of "local maximum" and with −ε≤G(ν,s,q,Y) in place of G(ν,s,q,Y)≤ε. Let v have penalty-subordinate growth from above relative to a penalty pair with domains D,DΣ. By Viscosity Subsolution, Supersolution and Solution of a Second-Order Equation on the Wasserstein Space §subsolution, v is a viscosity subsolution of an operator F relative to that pair if and only if (vδ−,Fδ−) satisfies (S−) for every δ∈(0,1), with envelopes and δ-shifts relative to that pair. By Viscosity Subsolution, Supersolution and Solution of a Second-Order Equation on the Wasserstein Space §supersolution, the analogous statement with growth from below, (vδ+,Fδ+) and (S+) characterises viscosity supersolutions.
Claim B (one shift at fixed δ). Let Θ be an intrinsic test function on D, let g,g′:D→R satisfy g′(μ)=g(μ)−Θ(μ) for μ∈D, and let G,G′ be second-order equation operators over DΣ with
G′(ν,r,q,Y)=G(ν, r+Θ(ν), q+∇Θ(ν), Y+HΘ(ν))
for all (ν,q)∈V(DΣ), r∈R, Y∈S(d). Then (g,G) satisfies (S−) if and only if (g′,G′) does, and (g,G) satisfies (S+) if and only if (g′,G′) does.
Proof, "only if" for (S−). Fix an intrinsic test function φ on D, a point μ^∈D at which g′−φ has a local maximum relative to D, and a positive ε. By Restrictions, Sums, Real Multiples and Differences of Intrinsic Test Functions on the Wasserstein Space §linear (with a=b=1), φ+Θ is an intrinsic test function on D with ∇(φ+Θ)(μ^)=∇φ(μ^)+∇Θ(μ^) and Hφ+Θ(μ^)=Hφ(μ^)+HΘ(μ^). Since g−(φ+Θ) and g′−φ agree at every point of D, g−(φ+Θ) has a local maximum at μ^. Order of choice. First, by continuity of Θ (property (a), Intrinsic Test Functions on the Wasserstein Space and Their Translation Hessians §continuity) at μ^, choose a positive η with ∣Θ(ν)−Θ(μ^)∣<ε/2 whenever W2(μ^,ν)<η. Second, by Claim C with κ=ε2/4, choose a positive λ. Third, by property (e) of Intrinsic Test Functions on the Wasserstein Space and Their Translation Hessians §hessian-continuity for Θ at μ^ with ε/2, choose a positive θ with ∥HΘ(ν)−HΘ(μ^)∥<ε/2 whenever W2(ν,μ^)<θ (the Hessians there are the translation Hessians, Intrinsic Test Functions on the Wasserstein Space and Their Translation Hessians §hessian). Finally put ε′=min{ε/2,1,η,λ,θ}, which is positive. Apply (S−) for (g,G) to φ+Θ, μ^ and ε′. This gives ν∈DΣ, π∈Π(ν,μ^), s, q and Y satisfying the six conditions with ε′, g, G and φ+Θ. Put
s′=s−Θ(ν),q′=q−∇Θ(ν)∈L2(ν;Rd),Y′=Y−HΘ(ν)∈S(d).
Since 0<ε′≤1 we have ε′2≤ε′. From W2(ν,μ^)2≤I(π)<ε′2 and claim 1 of Monotonicity of Squaring on the Nonnegative Elements of an Ordered Field we get W2(ν,μ^)<ε′≤min{η,θ}. Also I(π)<ε′2≤ε′≤λ, and ε′2≤(ε/2)2 by claim 2 of that lemma. We verify the six conditions for g′, G′, φ, ε and (ν,π,s′,q′,Y′).
(1) I(π)<ε′2≤ε2/4<ε2.
(2) g′(ν)−g′(μ^)=(g(ν)−g(μ^))−(Θ(ν)−Θ(μ^)). By the triangle inequality (claims 2 and 5 of Properties of the Absolute Value in an Ordered Field), its absolute value is less than ε′+ε/2≤ε.
(3) Likewise s′−g′(μ^)=(s−g(μ^))−(Θ(ν)−Θ(μ^)) has absolute value less than ε.
(4) Choose representatives with q′=q−∇Θ(ν) and ∇(φ+Θ)(μ^)=∇φ(μ^)+∇Θ(μ^) pointwise; discrepancies do not depend on representatives, and their integrands are nonnegative Borel functions (The Discrepancy of Two Square-Integrable Vector Fields Along a Coupling of Their Base Measures §well-defined). For z∈Rd+d put a(z)=q(x)−∇(φ+Θ)(μ^)(y) and b(z)=∇Θ(ν)(x)−∇Θ(μ^)(y). Then q′(x)−∇φ(μ^)(y)=a(z)−b(z). By claims 5 and 6 of Elementary Properties of the Euclidean Norm on Rn, ∥a(z)−b(z)∥≤∥a(z)∥+∥b(z)∥. Hence, by claim 2 of Monotonicity of Squaring on the Nonnegative Elements of an Ordered Field and (α+β)2≤2α2+2β2 (the difference being (α−β)2≥0), ∥a(z)−b(z)∥2≤2∥a(z)∥2+2∥b(z)∥2. Integrating against π (linearity and monotonicity, Linearity and Monotonicity of the Lebesgue Integral §nonnegative) and using I(π)<λ with Claim C (note ν∈DΣ⊆D), we get
∫Rd+d∥q′(x)−∇φ(μ^)(y)∥2π(dz)<2ε′2+2⋅4ε2≤2ε2+2ε2=ε2.
(5) Y′−Hφ(μ^)=(Y−Hφ+Θ(μ^))−(HΘ(ν)−HΘ(μ^)). By the triangle inequality for the metric dS(d)(A,B)=∥A−B∥ (Real Matrices, Symmetric Matrices and the Semidefinite Ordering: Standing Notation §norm, The Set of Symmetric Real Matrices is a Metric Space, applied to the points Y′, Y−HΘ(μ^), Hφ(μ^)), ∥Y′−Hφ(μ^)∥<ε′+ε/2≤ε.
(6) G′(ν,s′,q′,Y′)=G(ν,s,q,Y)≤ε′≤ε.
So (g′,G′) satisfies (S−). For (S+) the argument is identical, with "local minimum" in place of "local maximum" and with (6) replaced by −ε≤−ε′≤G(ν,s,q,Y)=G′(ν,s′,q′,Y′).
"If". By Restrictions, Sums, Real Multiples and Differences of Intrinsic Test Functions on the Wasserstein Space §difference, −Θ is an intrinsic test function on D with ∇(−Θ)=−∇Θ on D and H−Θ=−HΘ. We have g(μ)=g′(μ)−(−Θ)(μ), and G(ν,r,q,Y)=G′(ν,r+(−Θ)(ν),q+∇(−Θ)(ν),Y+H−Θ(ν)). So the "only if" part, applied to (g′,G′), (g,G) and −Θ, gives the converse.
Step 1 (composition). Let k0:Rd→R be the constant function 0. With Rd open by claim 1 of Euclidean Space is Open in Itself, and Ck Maps are Continuous, claim 2 of Differences and Constants for Functions of Class C2 on a Euclidean Open Set says that k0 is of class C2 with Dk0(a)=0Rd and D2k0(a)=0d for every a. By The Squared Wasserstein Distance to a Fixed Measure and Functions of the Mean are Intrinsic Test Functions §mean with Q=D and ϕ=k0, the function μ↦k0(m(μ))=0, which is the zero function 0, is an intrinsic test function on D. By the formulas of that clause, ∇0(μ)=Dk0(m(μ)) for μ∈D and H0(μ)=D2k0(m(μ)). So its gradient ∇0(μ) is the class of the constant map with value 0Rd, that is, the zero element of L2(μ;Rd), for μ∈D, and H0(μ)=0d. Hence, by Viscosity Subsolutions, Supersolutions and Solutions Relative to a Penalty Pair and a Profile §shifted, F0(ν,r,q,Y)=F(ν,r+0,q+0,Y+0d)=F(ν,r,q,Y), so F0=F. Now let Φ,Θ be intrinsic test functions on D. By Restrictions, Sums, Real Multiples and Differences of Intrinsic Test Functions on the Wasserstein Space §linear with a=b=1, Φ+Θ is one too, with ∇(Φ+Θ)=∇Φ+∇Θ on D and HΦ+Θ=HΦ+HΘ. The operator FΦ is a second-order equation operator over DΣ (Viscosity Subsolutions, Supersolutions and Solutions Relative to a Penalty Pair and a Profile §shifted), so (FΦ)Θ is defined. Applying that definition twice, for (ν,q)∈V(DΣ), r∈R, Y∈S(d) we get
(FΦ)Θ(ν,r,q,Y)=F(ν, r+Θ(ν)+Φ(ν), q+∇Θ(ν)+∇Φ(ν), Y+HΘ(ν)+HΦ(ν))=FΦ+Θ(ν,r,q,Y).
Step 2 (shift). Let δ∈(0,1). Suppose v and v−Θ have growth from above relative to P. By The Delta-Envelopes of a Function on the Penalty Domain Relative to a Penalty Pair §minus, v−δE is bounded above near each point and vδ−=(v−δE)∗. Since (v−Θ)−δE=(v−δE)−Θ pointwise and Θ is continuous (property (a)), Claim A(i) gives (v−Θ)δ−=vδ−−Θ on D. By The Bundle of Vector Fields over a Set of Measures, Second-Order Equation Operators on the Wasserstein Space, and Their Delta-Shifts §shifted, applied to the operator FΘ over DΣ, and by Viscosity Subsolutions, Supersolutions and Solutions Relative to a Penalty Pair and a Profile §shifted,
(FΘ)δ−(ν,r,q,Y)=F(ν, r+δE(ν)+Θ(ν), q+δΣ(ν)+∇Θ(ν), Y+δHE(ν)+HΘ(ν))=Fδ−(ν, r+Θ(ν), q+∇Θ(ν), Y+HΘ(ν)).
So Claim B applies with g=vδ−, g′=(v−Θ)δ−, G=Fδ− and G′=(FΘ)δ−: (vδ−,Fδ−) satisfies (S−) if and only if ((v−Θ)δ−,(FΘ)δ−) does. As this holds for every δ∈(0,1), the characterisation in the Notation paragraph gives: v is a viscosity subsolution of F relative to P if and only if v−Θ is a viscosity subsolution of FΘ relative to P. For supersolutions, with growth from below, the argument is the same. Use The Delta-Envelopes of a Function on the Penalty Domain Relative to a Penalty Pair §plus and Claim A(ii): (v−Θ)δ+=((v+δE)−Θ)∗=vδ+−Θ. The identity (FΘ)δ+(ν,r,q,Y)=Fδ+(ν,r+Θ(ν),q+∇Θ(ν),Y+HΘ(ν)) follows in the same way from the second formula of The Bundle of Vector Fields over a Set of Measures, Second-Order Equation Operators on the Wasserstein Space, and Their Delta-Shifts §shifted. Then apply Claim B for (S+).
Step 3 (invariance). By Restrictions, Sums, Real Multiples and Differences of Intrinsic Test Functions on the Wasserstein Space §difference, Φ′−Φ is an intrinsic test function on D. Put v=u−Φ. Then v−(Φ′−Φ)=u−Φ′ pointwise, so v and v−(Φ′−Φ) have growth from above. Step 2 holds for an arbitrary second-order equation operator over DΣ. Apply it with FΦ in place of F and Θ=Φ′−Φ, and use Step 1: (FΦ)Φ′−Φ=FΦ+(Φ′−Φ)=FΦ′, since Φ+(Φ′−Φ)=Φ′ pointwise. This shows that u−Φ is a viscosity subsolution of FΦ relative to P if and only if u−Φ′ is a viscosity subsolution of FΦ′ relative to P. By Viscosity Subsolutions, Supersolutions and Solutions Relative to a Penalty Pair and a Profile §subsolution this is the asserted equivalence. Supersolutions are handled identically, using growth from below, the supersolution half of Step 2 and Viscosity Subsolutions, Supersolutions and Solutions Relative to a Penalty Pair and a Profile §supersolution. For the "in particular", take Φ′=0, an intrinsic test function by Step 1. Then u−0=u and F0=F, so being a viscosity subsolution (supersolution) relative to P and the profile 0 means being one of F relative to P.
Step 4 (pair). First, HE′=HE+HΨ on D. Let μ∈D. For a∈Rd, (τa)#μ∈D by Penalty Pairs on the Wasserstein Space: the Penalty, Its Score, and Their Domains §translation, so eμ′(a)=E′((τa)#μ)=eμ(a)+ψμ(a), where ψμ(a)=Ψ((τa)#μ). Thus eμ=eμ′−ψμ. Here eμ′ is of class C2 by Penalty Pairs on the Wasserstein Space: the Penalty, Its Score, and Their Domains §translation for P′, and ψμ is of class C2 by property (d) of Intrinsic Test Functions on the Wasserstein Space and Their Translation Hessians §translation-c2. So claim 1 of Differences and Constants for Functions of Class C2 on a Euclidean Open Set gives D2eμ(0Rd)=D2eμ′(0Rd)−D2ψμ(0Rd), that is, HE(μ)=HE′(μ)−HΨ(μ) (Penalty Pairs on the Wasserstein Space: the Penalty, Its Score, and Their Domains §hessian, Intrinsic Test Functions on the Wasserstein Space and Their Translation Hessians §hessian).
Now let δ∈(0,1), and write Fδ′∓ and vδ′∓ for the δ-shifts and envelopes relative to P′. By Restrictions, Sums, Real Multiples and Differences of Intrinsic Test Functions on the Wasserstein Space §linear with φ=χ=Ψ and (a,b)=(δ,0), respectively (−δ,0), the functions Θ±=±δΨ are intrinsic test functions on D with ∇Θ±=±δ∇Ψ on D and HΘ±=±δHΨ. By The Bundle of Vector Fields over a Set of Measures, Second-Order Equation Operators on the Wasserstein Space, and Their Delta-Shifts §shifted for P′ and for P, the hypotheses on E′,Σ′ and the identity for HE′,
Fδ′−(ν,r,q,Y)=F(ν, r+δE(ν)+δΨ(ν), q+δΣ(ν)+δ∇Ψ(ν), Y+δHE(ν)+δHΨ(ν))=Fδ−(ν, r+Θ+(ν), q+∇Θ+(ν), Y+HΘ+(ν)),
and likewise Fδ′+(ν,r,q,Y)=Fδ+(ν,r+Θ−(ν),q+∇Θ−(ν),Y+HΘ−(ν)). If v has growth from above relative to P and to P′, then v−δE′=(v−δE)−Θ+ pointwise. So The Delta-Envelopes of a Function on the Penalty Domain Relative to a Penalty Pair §minus and Claim A(i) (Θ+ being continuous by property (a)) give vδ′−=vδ−−Θ+. If v has growth from below relative to both pairs, then v+δE′=(v+δE)−Θ−, and The Delta-Envelopes of a Function on the Penalty Domain Relative to a Penalty Pair §plus and Claim A(ii) give vδ′+=vδ+−Θ−. Claim B with Θ=Θ+, g=vδ−, g′=vδ′−, G=Fδ−, G′=Fδ′− gives: (vδ−,Fδ−) satisfies (S−) if and only if (vδ′−,Fδ′−) does. Claim B with Θ=Θ− gives the same for (S+) and the plus objects. As δ∈(0,1) is arbitrary, the characterisation in the Notation paragraph, applied to P and to P′ (which have the same domains, so (S±) refers to the same test functions and local extrema), gives both equivalences of clause 4.