Sufficiency. Suppose (amβ)mβNβ is a sequence in X with amββA for every mβN, converging to x in (X,d). Let Ξ΅>0 be a real number. By the definition of convergence there is NβN such that d(amβ,x)<Ξ΅ for every mβN with mβ₯N; taking m=N gives d(aNβ,x)<Ξ΅. By condition 3 of the definition of a metric we have d(x,aNβ)=d(aNβ,x), so d(x,aNβ)<Ξ΅ with aNββ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).
Necessity. Suppose xβclXβ(A). By Existence of a Sequence of Positive Real Numbers with Limit Zero there is a sequence (hmβ)mβNβ of real numbers such that 0<hmβ for every mβN and such that (hmβ)mβNβ has limit 0.
For each mβN let Amβ be the set of all aβA with d(x,a)<hmβ. By condition 3 of Characterization of the Closure in a Metric Space by Open Balls, applied with Ξ΅=hmβ, the set Amβ is nonempty. Since AβX, the assignment sending m to Amβ is a family of subsets of X indexed by N, and every member of this family is nonempty. Hence Axiom of Countable Choice provides a sequence (amβ)mβNβ in X with amββAmβ for every mβN. In particular amββA and d(x,amβ)<hmβ for every mβN.
It remains to check that (amβ)mβNβ converges to x in (X,d). Let Ξ΅>0 be a real number. Since (hmβ)mβNβ has limit 0, there is NβN such that β£hmββ0β£<Ξ΅ for every mβN with mβ₯N. Fix such an m. By claim 4 of Additive Cancellation and Elementary Additive Identities in a Field we have hmββ0=hmβ, so β£hmββ£<Ξ΅, and claim 9 of Properties of the Absolute Value in an Ordered Field, applied in the ordered field of real numbers, gives hmβ<Ξ΅. By condition 3 of the definition of a metric we have d(amβ,x)=d(x,amβ)<hmβ, and hmβ<Ξ΅, so d(amβ,x)<Ξ΅ by claim 2 of Elementary Order Arithmetic in an Ordered Field. As Ξ΅ was arbitrary, (amβ)mβNβ converges to x in (X,d).