Let $(X,d)$ be a metric space. Let $E$, $F$ be two disjoint non-empty subsets of $X$ with $E$ compact and $F$ closed.
Show that $\inf\{d(x,y): x\in E, y\in F\}>0$
Show that this does not longer true is $E$ is not compact: find two disjoint closed subsets $E$ and $F$ of $\mathbb{R}^2$ so that $\inf\{d(x,y): x\in E, y\in F\}=0$
I have been trying to use the fact sequential compactness iff compact on a metric space. I haven't had much luck. Any help would be hugely appreciated.