Let Sx,A be the set of real numbers of the form d(x,a) with a∈A, as in the definition of the distance to a set, so that distd(x,A) is the greatest lower bound of Sx,A; the set Sx,A is nonempty and bounded below by 0. Write s<t to mean s≤t and s=t.
Necessity of membership in the closure. Assume x∈clX(A). By claim 1 of The Distance to a Set is Nonexpansive we have 0≤distd(x,A). Suppose distd(x,A)=0; then 0<distd(x,A). Applying condition 3 of Characterization of the Closure in a Metric Space by Open Balls with ε=distd(x,A) produces a∈A with d(x,a)<distd(x,A). But claim 2 of The Distance to a Set is Nonexpansive gives distd(x,A)≤d(x,a), so claim 2 of Elementary Order Arithmetic in an Ordered Field yields distd(x,A)<distd(x,A), contradicting the requirement that the two sides of a strict inequality be distinct. Hence distd(x,A)=0.
Sufficiency. Assume distd(x,A)=0, and let ε be a real number with 0<ε. Then distd(x,A)<ε, so claim 2 of Approximation Property of the Supremum and the Infimum in R, applied to the nonempty set Sx,A bounded below, produces t∈Sx,A with t<ε. By the description of Sx,A there is a∈A with t=d(x,a), so d(x,a)<ε. Since ε was arbitrary, condition 3 of Characterization of the Closure in a Metric Space by Open Balls holds, and that theorem gives x∈clX(A).