For zβX let Sz,Aβ be the set of real numbers of the form d(z,a) with aβA, as in the definition of the distance to a set, so that distdβ(z,A) is the greatest lower bound of Sz,Aβ; this set is nonempty and bounded below, so the greatest lower bound exists by Existence of the Infimum of a Nonempty Subset of R Bounded Below.
Claim 1. By condition 1 of the definition of a metric, 0β€t for every tβSx,Aβ, so 0 is a lower bound for Sx,Aβ. A greatest lower bound dominates every lower bound, so 0β€distdβ(x,A).
Claim 2. For aβA we have d(x,a)βSx,Aβ, and a greatest lower bound is in particular a lower bound, so distdβ(x,A)β€d(x,a).
Claim 3. Let aβA. By condition 4 of the definition of a metric, d(x,a)β€d(x,y)+d(y,a), and by claim 2 we have distdβ(x,A)β€d(x,a); hence distdβ(x,A)β€d(x,y)+d(y,a) by transitivity of the order. Adding βd(x,y) to both sides, which preserves β€ by the compatibility of the order with addition in an ordered field, and simplifying by commutativity and associativity of addition together with claim 3 of Additive Cancellation and Elementary Additive Identities in a Field, gives
distdβ(x,A)βd(x,y)β€d(y,a).
Since aβA was arbitrary, distdβ(x,A)βd(x,y) is a lower bound for Sy,Aβ, so it is at most the greatest lower bound:
distdβ(x,A)βd(x,y)β€distdβ(y,A).
Adding d(x,y) to both sides and simplifying in the same way gives claim 3.
Claim 4. Adding βdistdβ(y,A) to both sides of claim 3 and simplifying gives
distdβ(x,A)βdistdβ(y,A)β€d(x,y).
Exchanging the roles of x and y in claim 3 and arguing in the same way gives distdβ(y,A)βdistdβ(x,A)β€d(y,x), and d(y,x)=d(x,y) by condition 3 of the definition of a metric. Write u=distdβ(x,A)βdistdβ(y,A); by claim 6 of Additive Cancellation and Elementary Additive Identities in a Field the second inequality reads βuβ€d(x,y), which by claim 4 of Elementary Order Arithmetic in an Ordered Field is equivalent to βd(x,y)β€u. So βd(x,y)β€u and uβ€d(x,y), and claim 6 of Properties of the Absolute Value in an Ordered Field gives β£uβ£β€d(x,y), which is claim 4.
Claim 5. Let Ξ΅βR with 0<Ξ΅, and take Ξ΄=Ξ΅, so that 0<Ξ΄. Let x,yβX satisfy d(x,y)<Ξ΄. By the definition of dRβ and by claim 4,
dRβ(f(x),f(y))=β£distdβ(x,A)βdistdβ(y,A)β£β€d(x,y)<Ξ΅,
so dRβ(f(x),f(y))<Ξ΅ by claim 2 of Elementary Order Arithmetic in an Ordered Field. This is exactly uniform continuity of f on X.
For continuity on X, let xβX and let Ξ΅>0; take the same Ξ΄=Ξ΅. Every yβX with d(x,y)<Ξ΄ satisfies dRβ(f(x),f(y))<Ξ΅ by the previous paragraph, and dRβ(f(y),f(x))=dRβ(f(x),f(y)) by condition 3 of the definition of a metric applied to dRβ, which is a metric by The Absolute Value Metric on the Real Line. Hence f is continuous at x relative to X, and as x was arbitrary, continuous on X.