Order arithmetic is that of Elementary Order Arithmetic in an Ordered Field; recall from its preamble that the order of the ordered field R is a total order, and set 2=1+1.
Two degenerate cases. Take r=1, which satisfies 0<r by claim 6 of Elementary Order Arithmetic in an Ordered Field. If K is empty the assertion holds vacuously. If Ω=X then Bˉd(x,1)⊆X=Ω for every x∈K, since every closed ball is a subset of X by Closed Ball in a Metric Space.
So assume from now on that K is nonempty and that the set A={z∈X:z∈/Ω} is nonempty. Write distd(z,A) for the distance from z to A in (X,d), and let F:K→R be given by F(z)=distd(z,A).
Step 1 (a minimising point). Let x∈K and let ε∈R with 0<ε. Put δ=ε. Every y∈K with d(x,y)<δ satisfies, by claim 4 of The Distance to a Set is Nonexpansive and claim 2 of Elementary Order Arithmetic in an Ordered Field,
∣F(y)−F(x)∣≤d(x,y)<ε.
Thus F has the continuity property required in Extreme Value Theorem on a Compact Subset of a Metric Space, and K is nonempty and compact in X. That theorem therefore provides xmin∈K with
F(xmin)≤F(x)for every x∈K.
Put m=F(xmin).
Step 2 (m is positive). Since xmin∈K⊆Ω and Ω is open in (X,d), Open Subset of a Metric Space provides a real number s with 0<s and Bd(xmin,s)⊆Ω, where Bd denotes the open ball.
Let a∈A. Then a∈/Ω, hence a∈/Bd(xmin,s), so d(xmin,a)<s fails. As ≤ is a total order, either s≤d(xmin,a), or d(xmin,a)≤s; in the second case d(xmin,a)=s, since otherwise d(xmin,a)<s. In both cases s≤d(xmin,a).
Hence s is a lower bound for the set Sxmin,A={t∈R:t=d(xmin,a) for some a∈A} of Distance from a Point to a Nonempty Subset of a Metric Space. Since m=distd(xmin,A) is by that definition the greatest lower bound of Sxmin,A, we get s≤m, and therefore 0<m by claim 2 of Elementary Order Arithmetic in an Ordered Field.
Step 3 (conclusion). Put r=m⋅2−1. By claim 8 of Elementary Order Arithmetic in an Ordered Field, 0<r and r<m.
Let x∈K and let y∈Bˉd(x,r), so that d(x,y)≤r by Closed Ball in a Metric Space. Suppose, for a contradiction, that y∈/Ω; then y∈A, so claim 2 of The Distance to a Set is Nonexpansive gives
distd(x,A)≤d(x,y)≤r.
On the other hand x∈K, so m≤F(x)=distd(x,A) by Step 1. Combining, m≤r by transitivity of the total order ≤ on R (Total Order on a Set). Together with r<m this yields m<m by claim 2 of Elementary Order Arithmetic in an Ordered Field, which is impossible because m<m includes m=m.
Therefore y∈Ω. As y∈Bˉd(x,r) was arbitrary, Bˉd(x,r)⊆Ω; and as x∈K was arbitrary, this holds for every x∈K. ■