Show that if $A$ and $B$ are compact subsets of $(\mathbb{R}^m,||.||_2)$ not empty and disjointed, then $$\inf\{||a-b||_2:a\in A,b\in B\} > 0$$
I know the definitions and I been trying for a while but I'm stuck with this proof. Any suggestions would be great!
Consider a function $A\times B \to \mathbb{R}$; $(a, b) \mapsto \|a-b\|_2$.
Since this function is continuous and the domain $A\times B $ is compact, there exist $a_0 \in A$, $b_0 \in B$ which satisfies $\|a_0 - b_0\|_2 = \inf \operatorname{im} f$. If this is zero, we have $\|a_0- b_0\|_2 = 0$, which implies $a_0 = b_0$, which implies $a_0 = b_0 \in A \cap B $ which is a contradiction.