$A,B\subseteq(X,d)$ metric space$,\;A\neq \emptyset,\;B\neq\emptyset,\;A\cap B=\emptyset,\;A$ is closed and $B$ is compact.
$d(x,A):=inf\{d(x,a)|\;a\in A\}$
$d(A,B):= inf\{d(b,A)|\;b\in B\}$
Prove that $d(A,B)>0$.
I tried to write definitions and properties (of closed and compact sets) and understood the problem "visually" but I can't write a rigorous proof. Help?