Let $A$ and $B$ be disjoint closed subsets of $\mathbb R^n$. Define $d(A,B)=\inf\{\left\|a-b\right\|\colon a \in A \text{ and } b \in B\}$.
I have to show that if $A=\{a\}$ is a singleton, then $d(A,B) > 0$.
Also I am not sure how to show that if $A$ is compact, $d(A,B) > 0$.
Also I don't know how to find an example of two disjoint closed sets in $\mathbb R^2$ with $d(A,B) =0$.