I have the problem:
Let $S \subset \mathbb{R}$ be any set, and define for any $x\in\mathbb{R}$ the distance between $x$ and the set $S$ by:
$$d(x,S) = \inf\{|x-s| : x \in S\}$$
I'm to prove ($\overline{S}$ being the closure of $S$):
If $x\notin \overline{S}$, then $d(x,S) > 0$.
I can understand this from a common sense way but not sure how to prove it.