Conventions. We use the order arithmetic of Elementary Arithmetic in an Ordered Field and Elementary Order Arithmetic in an Ordered Field, the fact that β€ is a total order, hence reflexive, antisymmetric, transitive and comparing any two elements, and the elementary arithmetic of the underlying field. We use repeatedly that aβ€b and cβ€e imply a+cβ€b+e, which follows from claims 2 and 3 of Elementary Arithmetic in an Ordered Field with the addition axioms of the field, and in particular that aβ€b implies c+aβ€c+b. Set 2=1+1.
Let dKΓKβ be the restriction of dXΓXβ to KΓK, a metric by claim 1 of The Restriction of a Metric to a Subset Induces the Subspace Topology. Since dKΓKβ and dXΓXβ take the same values at points of KΓK, a function on KΓK is upper (or lower) semicontinuous on KΓK with respect to one of them if and only if it is so with respect to the other; the same applies to continuity. By A Product of Compact Subsets is Compact in the Product Metric the topological space consisting of KΓK with the subsets open in (KΓK,dKΓKβ) is compact, and KΓK is compact in XΓX. Since K is nonempty, so is KΓK: if xβK then (x,x)βKΓK.
Step 1: proof of claim 1. By claim 1 of Semicontinuity Under Negation and Characterization of Continuity, applied at each point of K, the function βv is upper semicontinuous on K, and then claim 1 of Sums and Nonnegative Multiples of Semicontinuous Functions shows that u+(βv), which is the function uβv, is upper semicontinuous on K. Claim 1 of Semicontinuous Functions Attain Their Extrema on a Compact Set, applied to the nonempty compact set K, provides xMββK with (uβv)(x)β€(uβv)(xMβ) for every xβK; put M=(uβv)(xMβ). If Mβ² has the two stated properties as well, then Mβ€Mβ² and Mβ²β€M, so M=Mβ² by antisymmetry.
Fix Ξ± with 0<Ξ±. Let Ο1β,Ο2β:KΓKβX be the maps Ο1β(x,y)=x and Ο2β(x,y)=y; by claim 1 of Continuity of the Projections and of the Distance Function on a Product Metric Space, applied with S=KΓK, both are continuous on KΓK relative to KΓK, and both take values in K. By claim 1 of Semicontinuity and Continuity Under Composition with a Continuous Map, applied with A=K, B=KΓK and g=Ο1β, the function uβΟ1β is upper semicontinuous on KΓK. By claim 2 of the same lemma with g=Ο2β, the function vβΟ2β is lower semicontinuous on KΓK, so β(vβΟ2β) is upper semicontinuous by claim 1 of Semicontinuity Under Negation and Characterization of Continuity. Since 0β€Ξ±, claim 3 of Sums and Nonnegative Multiples of Semicontinuous Functions shows that Ξ±Ο is lower semicontinuous on KΓK, and claim 1 of Semicontinuity Under Negation and Characterization of Continuity shows that β(Ξ±Ο) is upper semicontinuous. Since
Φαβ=(uβΟ1β)+(β(vβΟ2β))+(β(Ξ±Ο)),
two applications of claim 1 of Sums and Nonnegative Multiples of Semicontinuous Functions show that Φαβ is upper semicontinuous on KΓK. Claim 1 of Semicontinuous Functions Attain Their Extrema on a Compact Set, applied in the metric space (XΓX,dXΓXβ) to the nonempty compact set KΓK, provides a point at which Φαβ attains a greatest value MΞ±β, unique by antisymmetry as above.
Step 2: proof of claim 2. Let xβK. Then Ο(x,x)=0, so Ξ±Ο(x,x)=0 and Φαβ(x,x)=u(x)βv(x)=(uβv)(x). Hence (uβv)(x)β€MΞ±β for every xβK, and taking x=xMβ gives Mβ€MΞ±β.
Now let 0<Ξ± and Ξ±β€Ξ², and let (x,y)βKΓK. Since 0β€Ο(x,y), claim 5 of Elementary Arithmetic in an Ordered Field gives Ξ±Ο(x,y)β€Ξ²Ο(x,y), and claim 4 of Elementary Order Arithmetic in an Ordered Field gives βΞ²Ο(x,y)β€βΞ±Ο(x,y). Adding u(x)βv(y) yields Φββ(x,y)β€Ξ¦Ξ±β(x,y). In particular, choosing a point where Φββ attains MΞ²β,
MΞ²β=Φββ(xΞ²β,yΞ²β)β€Ξ¦Ξ±β(xΞ²β,yΞ²β)β€MΞ±β.
Step 3: proof of claim 3. Let w:KΓKβR be the function w(x,y)=u(x)βv(y), that is w=(uβΟ1β)+(β(vβΟ2β)), which is upper semicontinuous on KΓK by Step 1. By claim 1 of Semicontinuous Functions Attain Their Extrema on a Compact Set there is CβR with w(p)β€C for every pβKΓK.
We first record two facts used below. First, for every pβKΓK we have 0β€Ξ±Ο(p) by claim 5 of Elementary Arithmetic in an Ordered Field, hence βΞ±Ο(p)β€0 by claim 4 of Elementary Order Arithmetic in an Ordered Field, and therefore Φαβ(p)β€w(p). Second, if cβR and cβ€w(p) fails, then w(p)β€c by comparability.
Let Ξ΅ satisfy 0<Ξ΅ and put
AΞ΅β={pβKΓK:M+Ξ΅β€w(p)}.
By claim 3 of Semicontinuity via Sublevel and Superlevel Sets, applied in the metric space (XΓX,dXΓXβ) with the subset KΓK and the value M+Ξ΅, the set AΞ΅β is closed in the topological space KΓK whose open sets are the subsets open in (KΓK,dKΓKβ). That topological space is compact, so Closed Subset of a Compact Space is Compact shows that AΞ΅β is compact in the metric space (KΓK,dKΓKβ).
Case 1: AΞ΅β is empty. Then w(p)β€M+Ξ΅ for every pβKΓK, so Φαβ(p)β€w(p)β€M+Ξ΅ and hence MΞ±ββ€M+Ξ΅ for every Ξ± with 0<Ξ±. Since 0<1 by claim 6 of Elementary Order Arithmetic in an Ordered Field, the choice Ξ±0β=1 works.
Case 2: AΞ΅β is nonempty. By claim 4 of Semicontinuity and Continuity Under Composition with a Continuous Map the restriction of Ο to AΞ΅β is lower semicontinuous on AΞ΅β, so claim 2 of Semicontinuous Functions Attain Their Extrema on a Compact Set, applied in the metric space (KΓK,dKΓKβ) to the nonempty compact set AΞ΅β, provides pβ=(xβ,yβ)βAΞ΅β with Ο(pβ)β€Ο(p) for every pβAΞ΅β. Put c=Ο(pβ).
If xβ=yβ, then w(pβ)=u(xβ)βv(xβ)=(uβv)(xβ)β€M by claim 1, while M+Ξ΅β€w(pβ) because pββAΞ΅β; adding βM to M+Ξ΅β€M gives Ξ΅β€0, contradicting 0<Ξ΅. Hence xβξ =yβ, so Ο(pβ)ξ =0 by the hypothesis on Ο, and with 0β€c this gives 0<c. By claim 7 of Elementary Order Arithmetic in an Ordered Field the inverse cβ1 exists.
Put Ξ±0β=max{1,(CβMβΞ΅)cβ1}, the maximum of the two displayed numbers. By claim 1 of Elementary Properties of the Maximum of Two Elements we have 1β€Ξ±0β and (CβMβΞ΅)cβ1β€Ξ±0β, so 0<Ξ±0β.
Let Ξ± satisfy Ξ±0ββ€Ξ± and let p=(x,y)βKΓK. If pβ/AΞ΅β, then w(p)β€M+Ξ΅ and hence Φαβ(p)β€M+Ξ΅. If pβAΞ΅β, then cβ€Ο(p), so claim 5 of Elementary Arithmetic in an Ordered Field gives Ξ±cβ€Ξ±Ο(p) and claim 4 of Elementary Order Arithmetic in an Ordered Field gives βΞ±Ο(p)β€βΞ±c; adding w(p)β€C yields Φαβ(p)β€CβΞ±c. Moreover (CβMβΞ΅)cβ1β€Ξ± by transitivity, so multiplying by c, which satisfies 0β€c, gives CβMβΞ΅β€Ξ±c by claim 5 of Elementary Arithmetic in an Ordered Field; claim 4 of Elementary Order Arithmetic in an Ordered Field and adding C then give
CβΞ±cβ€Cβ(CβMβΞ΅)=M+Ξ΅.
Hence Φαβ(p)β€M+Ξ΅ in this case as well. Taking p=(xΞ±β,yΞ±β) gives MΞ±ββ€M+Ξ΅.
Step 4: proof of claim 4. From Φαβ(xΞ±β,yΞ±β)=MΞ±β we get
u(xΞ±β)βv(yΞ±β)=MΞ±β+Ξ±Ο(xΞ±β,yΞ±β).
Since 0β€Ξ±Ο(xΞ±β,yΞ±β), adding MΞ±β gives MΞ±ββ€u(xΞ±β)βv(yΞ±β), and Mβ€MΞ±β by claim 2; transitivity gives the first assertion.
Now let 0<Ξ΅ and put Ξ΅1β=Ξ΅β
2β1 and Ξ΅2β=Ξ΅1ββ
2β1. By claim 8 of Elementary Order Arithmetic in an Ordered Field we have 0<Ξ΅1β, Ξ΅1β+Ξ΅1β=Ξ΅, Ξ΅1β<Ξ΅, 0<Ξ΅2β, Ξ΅2β+Ξ΅2β=Ξ΅1β and Ξ΅2β<Ξ΅1β. Let Ξ±0β be as in claim 3 for Ξ΅2β and put Ξ±1β=2Ξ±0β, which satisfies 0<Ξ±1β by claim 5 of Elementary Order Arithmetic in an Ordered Field.
Let Ξ±1ββ€Ξ± and put Ξ²=Ξ±β
2β1, so that 0<Ξ², Ξ²+Ξ²=Ξ± and Ξ²<Ξ± by claim 8. Multiplying 2Ξ±0ββ€Ξ± by 2β1, which is nonnegative, gives Ξ±0ββ€Ξ² by claim 5 of Elementary Arithmetic in an Ordered Field, so claim 3 gives MΞ²ββ€M+Ξ΅2β.
Since (xΞ±β,yΞ±β)βKΓK and Ξ±ΟβΞ²Ο=Ξ²Ο at that point, because Ξ±=Ξ²+Ξ²,
MΞ±β+Ξ²Ο(xΞ±β,yΞ±β)=u(xΞ±β)βv(yΞ±β)βΞ²Ο(xΞ±β,yΞ±β)=Φββ(xΞ±β,yΞ±β)β€MΞ²ββ€M+Ξ΅2β.
By claim 2 we have Mβ€MΞ±β, hence βMΞ±ββ€βM by claim 4 of Elementary Order Arithmetic in an Ordered Field; adding βMΞ±β to the displayed inequality therefore gives
Ξ²Ο(xΞ±β,yΞ±β)β€M+Ξ΅2ββMΞ±ββ€Ξ΅2β.
Multiplying by 2, which is nonnegative, and using 2Ξ²=Ξ²+Ξ²=Ξ± and 2Ξ΅2β=Ξ΅2β+Ξ΅2β=Ξ΅1β, we obtain
Ξ±Ο(xΞ±β,yΞ±β)β€Ξ΅1ββ€Ξ΅.
Finally, Ξ²β€Ξ± and claim 2 give MΞ±ββ€MΞ²ββ€M+Ξ΅2β, so adding the last two inequalities,
u(xΞ±β)βv(yΞ±β)=MΞ±β+Ξ±Ο(xΞ±β,yΞ±β)β€M+Ξ΅2β+Ξ΅1ββ€M+Ξ΅1β+Ξ΅1β=M+Ξ΅.
Step 5: proof of claim 5. Let Ο:KΓKβR be the function Ο(x,y)=d(x,y). By claim 2 of Continuity of the Projections and of the Distance Function on a Product Metric Space, applied with T=KΓK, the function Ο is continuous on KΓK relative to KΓK, hence both upper and lower semicontinuous on KΓK by claim 2 of Semicontinuity Under Negation and Characterization of Continuity.
Let 0<Ξ· and put CΞ·β={pβKΓK:Ξ·β€Ο(p)}. By claim 3 of Semicontinuity via Sublevel and Superlevel Sets the set CΞ·β is closed in the topological space KΓK described in Step 3, hence compact in the metric space (KΓK,dKΓKβ) by Closed Subset of a Compact Space is Compact. Note that if pβKΓK and pβ/CΞ·β, then Ξ·β€Ο(p) fails, so comparability gives Ο(p)β€Ξ· and Ο(p)ξ =Ξ·, that is Ο(p)<Ξ·.
If CΞ·β is empty, then d(xΞ±β,yΞ±β)<Ξ· for every Ξ± with 0<Ξ±, and Ξ±2β=1 works. Otherwise, by claim 4 of Semicontinuity and Continuity Under Composition with a Continuous Map the restriction of Ο to CΞ·β is lower semicontinuous on CΞ·β, so claim 2 of Semicontinuous Functions Attain Their Extrema on a Compact Set provides p#=(x#,y#)βCΞ·β with Ο(p#)β€Ο(p) for every pβCΞ·β; put cΞ·β=Ο(p#). From Ξ·β€d(x#,y#) and 0<Ξ· we get d(x#,y#)ξ =0, so x#ξ =y# by condition 2 in the definition of a metric; hence cΞ·βξ =0 by the hypothesis on Ο, and 0<cΞ·β.
Let Ξ±1β be as in claim 4 for the value cΞ·β in place of Ξ΅, and put Ξ±2β=max{Ξ±1β,2}, so that 0<Ξ±2β by claim 1 of Elementary Properties of the Maximum of Two Elements. Let Ξ±2ββ€Ξ± and suppose that (xΞ±β,yΞ±β)βCΞ·β. Then cΞ·ββ€Ο(xΞ±β,yΞ±β), so claim 5 of Elementary Arithmetic in an Ordered Field and claim 4 of the present theorem give
Ξ±cΞ·ββ€Ξ±Ο(xΞ±β,yΞ±β)β€cΞ·β,
while 2β€Ξ±2ββ€Ξ± and 0β€cΞ·β give cΞ·β+cΞ·β=2cΞ·ββ€Ξ±cΞ·β. Hence cΞ·β+cΞ·ββ€cΞ·β, and adding βcΞ·β gives cΞ·ββ€0, contradicting 0<cΞ·β. Therefore (xΞ±β,yΞ±β)β/CΞ·β, that is d(xΞ±β,yΞ±β)<Ξ·.
Step 6: proof of claim 6. Write r=u(x^)βv(x^). Since x^βK, claim 1 gives rβ€M.
Let 0<Ξ΅. Since u is upper semicontinuous at x^ relative to K, there is Ξ΄1β with 0<Ξ΄1β such that every xβK with d(x^,x)<Ξ΄1β satisfies u(x)<u(x^)+Ξ΅. Since v is lower semicontinuous at x^ relative to K, there is Ξ΄2β with 0<Ξ΄2β such that every yβK with d(x^,y)<Ξ΄2β satisfies v(x^)βΞ΅<v(y). By claim 9 of Elementary Order Arithmetic in an Ordered Field there is Ξ΄ with Ξ΄β€Ξ΄1β, Ξ΄β€Ξ΄2β and Ξ΄ equal to Ξ΄1β or to Ξ΄2β; in either case 0<Ξ΄. Put Ξ΄β²=Ξ΄β
2β1, so 0<Ξ΄β², Ξ΄β²+Ξ΄β²=Ξ΄ and Ξ΄β²<Ξ΄ by claim 8.
By claim 5 there is Ξ±2β with 0<Ξ±2β such that d(xΞ±β,yΞ±β)<Ξ΄β² whenever Ξ±2ββ€Ξ±. By the hypothesis on x^, applied with Ξ΄β² and with Ξ²=Ξ±2β, there is Ξ± with Ξ±2ββ€Ξ± and d(x^,xΞ±β)<Ξ΄β². Fix such an Ξ±. Then d(x^,xΞ±β)<Ξ΄β²<Ξ΄β€Ξ΄1β, so u(xΞ±β)<u(x^)+Ξ΅; and condition 4 in the definition of a metric gives
d(x^,yΞ±β)β€d(x^,xΞ±β)+d(xΞ±β,yΞ±β)<Ξ΄β²+Ξ΄β²=Ξ΄β€Ξ΄2β,
so v(x^)βΞ΅<v(yΞ±β) and hence βv(yΞ±β)<Ξ΅βv(x^) by claim 4 of Elementary Order Arithmetic in an Ordered Field. Adding the two strict inequalities by claim 3 of that lemma,
u(xΞ±β)βv(yΞ±β)<(u(x^)+Ξ΅)+(Ξ΅βv(x^))=r+Ξ΅+Ξ΅.
By claim 4 we have Mβ€u(xΞ±β)βv(yΞ±β), so claim 2 of Elementary Order Arithmetic in an Ordered Field gives M<r+Ξ΅+Ξ΅, and in particular Mβ€r+Ξ΅+Ξ΅.
Suppose rξ =M. Since rβ€M, this gives r<M and hence 0<Mβr. Applying the previous paragraph with Ξ΅=(Mβr)β
2β1β
2β1, which is positive by claim 8 of Elementary Order Arithmetic in an Ordered Field, and using Ξ΅+Ξ΅=(Mβr)β
2β1<Mβr from the same claim, we obtain
Mβ€r+Ξ΅+Ξ΅<r+(Mβr)=M,
so M<M, which is impossible. Hence r=M, that is u(x^)βv(x^)=M.