Let $X$ be a metric space and $A$ and $B$ two subsets of $X$. If $A$ is closed, $B$ is a compact, and $A\cap B=\emptyset$, is it true that there is $d>0$ such that $\operatorname d (x,y)\ge d$ for all $y\in A$ and $x\in B$?
If so, is it the same as saying that the set $A\cup B$ is not connected?
Is it still true if $B$ is only closed? If not, can you give a counterexample in $\Bbb R^2$?