Conventions. The order β€ and the arithmetic of R are those of the ordered field of real numbers; β€ is in particular a total order, hence antisymmetric, and of any two real numbers one is at least the other. Multiplication by a nonnegative real number preserves β€: if aβ€b and 0β€Ξ» then either a=b, and the products are equal, or a<b, and then claim 10 of Elementary Order Arithmetic in an Ordered Field applies when 0<Ξ», while Ξ»=0 makes both products 0. Among the ordered field axioms is the compatibility of β€ with addition: if aβ€b then a+cβ€b+c for every cβR. That axiom is what we use for non-strict inequalities; claim 1 of Elementary Order Arithmetic in an Ordered Field is its strict counterpart and is cited only where the inequality is strict. Throughout, Auβ(x) and the witnessing radii are as described in Upper and Lower Semicontinuous Envelopes of a Real-Valued Function, and d is symmetric and satisfies the triangle inequality by the metric axioms. The claims are established below in the order 1, 3, 2, 4, 6, 5; each argument uses only claims established before it.
Claim 1. As recorded in Upper and Lower Semicontinuous Envelopes of a Real-Valued Function (ii), u(x) is a lower bound for Auβ(x). Since uβ(x) is the greatest lower bound of Auβ(x), we get u(x)β€uβ(x).
Claim 3. Let xβS and let Ξ΅βR be positive. Since v is upper semicontinuous at x relative to S, there is a positive Ξ΄βR such that every yβS with d(x,y)<Ξ΄ satisfies v(y)<v(x)+Ξ΅. Put r=Ξ΄β
2β1, which is positive and satisfies r<Ξ΄ by claim 8 of Elementary Order Arithmetic in an Ordered Field. If yβS satisfies d(y,x)β€r, then d(x,y)=d(y,x)β€r<Ξ΄, so d(x,y)<Ξ΄ by claim 2 of Elementary Order Arithmetic in an Ordered Field, whence u(y)β€v(y)<v(x)+Ξ΅ and in particular u(y)β€v(x)+Ξ΅. Therefore v(x)+Ξ΅βAuβ(x), and since uβ(x) is a lower bound for Auβ(x) we get uβ(x)β€v(x)+Ξ΅. As Ξ΅ was an arbitrary positive number, Comparison of Real Numbers with Arbitrary Positive Slack (i) gives uβ(x)β€v(x).
Claim 2. Let xβS and let Ξ΅βR be positive; put Ξ΅β²=Ξ΅β
2β1, positive with Ξ΅β²<Ξ΅ by claim 8 of Elementary Order Arithmetic in an Ordered Field. The set Auβ(x) is nonempty and bounded below, so claim 4 of Approximation Property of the Supremum and the Infimum in R provides cβAuβ(x) with c<uβ(x)+Ξ΅β². Let r be a positive real number witnessing cβAuβ(x), so that u(z)β€c for every zβS with d(z,x)β€r, and put Ξ΄=rβ
2β1, positive with Ξ΄+Ξ΄=r by claim 8.
Let yβS satisfy d(x,y)<Ξ΄, and let zβS satisfy d(z,y)β€Ξ΄. Then d(z,x)β€d(z,y)+d(y,x), and d(z,y)+d(y,x)<Ξ΄+Ξ΄=r by claim 3 of Elementary Order Arithmetic in an Ordered Field, since d(z,y)β€Ξ΄ and d(y,x)=d(x,y)<Ξ΄; hence d(z,x)<r by claim 2 there, and in particular d(z,x)β€r, so u(z)β€c. Thus Ξ΄ witnesses cβAuβ(y), and therefore
uβ(y)β€c<uβ(x)+Ξ΅β²<uβ(x)+Ξ΅,
the last step by claim 1 of Elementary Order Arithmetic in an Ordered Field. Claim 2 there gives uβ(y)<uβ(x)+Ξ΅. As Ξ΅ was arbitrary, uβ is upper semicontinuous at x relative to S, and as x was arbitrary, uβ is upper semicontinuous on S.
For the second assertion of the claim, fix xβS and run the previous paragraph with Ξ΅=1, which is positive by claim 6 of Elementary Order Arithmetic in an Ordered Field; it produces c and Ξ΄ as above. Put Ο=Ξ΄β
2β1, positive with Ο<Ξ΄ by claim 8. Every yβS with d(y,x)β€Ο satisfies d(x,y)=d(y,x)β€Ο<Ξ΄, hence uβ(y)β€c by the previous paragraph. So Ο witnesses cβAuββ(x), and uβ is bounded above near each point of S.
Claim 4. If uβ(x)=u(x) for every xβS, then u is upper semicontinuous on S by claim 2. Conversely, if u is upper semicontinuous on S, then claim 3 applied with v=u gives uβ(x)β€u(x) for every xβS; with claim 1 and the antisymmetry of β€ this gives uβ(x)=u(x).
Claim 6. Let xβS and let cβAvβ(x), with witnessing radius r. For yβS with d(y,x)β€r we have u(y)β€v(y)β€c, so r also witnesses cβAuβ(x). Hence Avβ(x)βAuβ(x). Since uβ(x) is a lower bound for Auβ(x) it is a lower bound for Avβ(x), and since vβ(x) is the greatest lower bound of Avβ(x) we conclude uβ(x)β€vβ(x).
Claim 5. Let xβS and let Ξ΅βR be positive. By claim 4 of Approximation Property of the Supremum and the Infimum in R there is cβAuβ(x) with c<uβ(x)+Ξ΅; let r be a positive witnessing radius for c. Let Ξ΅β² be the least of Ξ΅ and r, which exists and is positive by claim 9 of Elementary Order Arithmetic in an Ordered Field, being equal to one of them.
We first find zβS with d(z,x)β€Ξ΅β² and uβ(x)βΞ΅β²<u(z). Suppose no such z exists. Then, by the totality of β€, every zβS with d(z,x)β€Ξ΅β² satisfies u(z)β€uβ(x)βΞ΅β², so Ξ΅β² witnesses uβ(x)βΞ΅β²βAuβ(x) and therefore uβ(x)β€uβ(x)βΞ΅β². Adding βuβ(x)+Ξ΅β² to both sides gives Ξ΅β²β€0 by the compatibility of β€ with addition, contradicting 0<Ξ΅β².
Fix such a z. Since d(z,x)β€Ξ΅β²β€r, we get u(z)β€c<uβ(x)+Ξ΅, hence u(z)<uβ(x)+Ξ΅ by claim 2 of Elementary Order Arithmetic in an Ordered Field and so u(z)βuβ(x)<Ξ΅ by claim 1 there. Since Ξ΅β²β€Ξ΅, claim 4 of that lemma gives βΞ΅β€βΞ΅β², so uβ(x)βΞ΅β€uβ(x)βΞ΅β² by the compatibility of β€ with addition; combined with uβ(x)βΞ΅β²<u(z) and claim 2 of that lemma this gives uβ(x)βΞ΅<u(z), whence βΞ΅<u(z)βuβ(x) by claim 1 there. Claim 9 of Properties of the Absolute Value in an Ordered Field now gives β£u(z)βuβ(x)β£<Ξ΅, and d(z,x)β€Ξ΅β²β€Ξ΅. This proves the first assertion of claim 5.
For the sequence, write k also for the image in R of kβN under the canonical map of Properties of the Canonical Map from the Natural Numbers to an Ordered Field. By claim 2 there, 1β€k; since 0<1 by claim 6 of Elementary Order Arithmetic in an Ordered Field, claim 2 there gives 0<k, so kβ1 exists and is positive by claim 7 there. Applying the first assertion with Ξ΅=kβ1 and choosing, for each kβN, one of the points it provides β an appeal to countable choice β yields a point xkββS with
d(xkβ,x)β€kβ1andβ£u(xkβ)βuβ(x)β£<kβ1,
and these points form a sequence (xkβ)kβNβ in S.
Let Ξ·βR be positive. By claim 3 of The Archimedean Property of the Real Numbers there is NβN with Nβ1<Ξ·. Let kβN satisfy kβ₯N. Then Nβ€k in R: this is an equality if k=N, and follows from claim 6 of Properties of the Canonical Map from the Natural Numbers to an Ordered Field otherwise. Multiplying Nβ€k by the positive number Nβ1kβ1 gives kβ1β€Nβ1. Hence
d(xkβ,x)β€kβ1β€Nβ1<Ξ·anddRβ(u(xkβ),uβ(x))=β£u(xkβ)βuβ(x)β£<kβ1β€Nβ1<Ξ·,
using claim 2 of Elementary Order Arithmetic in an Ordered Field to chain the comparisons. By Convergent Sequence in a Metric Space, (xkβ) converges to x in (M,d) and (u(xkβ)) converges to uβ(x) in (R,dRβ).