1

Please tell me whether my argument for the following result is true:

The distance between two disjoint compact subsets $A,B$ of a metric space $X$ is positive:

$d:X\times X\to \mathbb R$ is continuous$\implies d|_{A\times B}$ is continuous on $A\times B$

$A,B$ are compact $\implies A\times B$ is compact$\implies d|_{A\times B}$ assumes its minimum on $A\times B\implies\exists~a\in A,b\in B$ such that $$\inf_{x\in A,~y\in B} d|_{A\times B}(x,y)=d(a,b)>0.$$

1 Answers1

1

There is no need to deal with restrictions of $d$. All that is necessary is to note that $A \times B $ is compact.

Let $m = \min_{a\in A, b\in B} d(a,b)$. If $m = 0$, then $m=d(a,b)$ for some $a \in A, b \in B$, and since $d(a,b) = 0$, we have $A \cap B \ne \emptyset$, a contradiction.

copper.hat
  • 172,524