Im trying to understand the proofs of this question or this.
Let $(E,d)$ be a metric space. Let $A$, $B$ be two disjoint non-empty subsets of $E$ with $A$ compact and $B$ closed. Show that $dist(A,B):=\inf\{d(x,y): x\in A, y\in B\}>0$
Poof begins supposing $dist(A,B)=0$. Then it implies that there are of sequences $\{a_n\}$ in A and $\{b_n\}$ in B, with $d(a_n,b_n) \rightarrow 0$.
I really don't understand why is that. Could someone explain to me?