I need to prove that:
$$d(a,X) = 0 \iff X\cap U \neq \emptyset$$ for all open set $U$ that contains $a$
My idea is that if $d(a,X) = 0$, then there is a point $b\in X$ such that $d(a,b)=0$. In some way, I should be able to construct a ball that contains $a$ and $b$. Remember that $b\in X$ so the intersection should not be empty.
Any ideas on how to fill the gap I left in my proof?