For $A \subset \mathbb{X}$ non empty and $x \in \mathbb{X}$ define the distance of x to A by $$d_A(x)=inf_{a \in A} d(x,a)$$
I am trying to prove for $$x \in \mathbb{X}: x \in \bar{A} \Leftrightarrow d_A(x)=0$$
The proof starts of by saying if $x \in \bar{A}$ then there is some $y\in A$.
How can we say this?
How do we know there is some $y \in A$?