[Math] Distance and compact sets

real-analysis

enter image description here

EDIT

This was posted a year ago, I feel like presenting an alternative solution(s).

(a)

(i) Since $A \cap B = \phi$, we have $a \notin B$. Thus for each $b \in B$, we have $\| a -b\| > 0$. Consider the set $C = \{\|a-b\| : a \in A, b \in B\}$. Obvious $C$ is bounded below by $0$. Therefore by the glb property we have $0 <\inf C $

(ii) The one uses the fact that $B$ is closed and using the definition of $\inf$. Applying the Squeeze Theorem yields $a \in B$, but we have a contradiction.

Best Answer

You’re getting off on the wrong foot right from the start: it is not true that $d(A,B)=0$ iff $A=B$. For example, let $A=\{0\}$ and $B=[0,1]$ in $\Bbb R$; then

$$\begin{align*} d(A,B)&=\inf\{|a-b|:a\in A\text{ and }b\in B\}\\ &=\inf\{|b|:b\in[0,1]\}\\ &=0\;, \end{align*}$$

but it’s certainly not true that $\{a\}=[0,1]$.

Similarly, for (a) you should have

$$d(\{a\},B)=\inf\{\|a-b\|:b\in B\}\;.$$ This is $0$ iff for each $\epsilon>0$ there is a $b_\epsilon\in B$ such that $\|a-b_\epsilon\|<\epsilon$. Thus, if $d(\{a\},B)=0$, there is a sequence in $B$ converging to $a$ (why?), and since $B$ is closed, this implies that $a\in B$. Since we were told that $\{a\}\cap B=\varnothing$, this is impossible, and $d(\{a\},B)\ne 0$. Since the distance function takes only non-negative values, this means that $d(\{a\},B)>0$.

You can use (a) to help you prove (b). You know from (a) that $d(\{a\},B)>0$ for each $a\in A$. Now suppose that $d(A,B)=0$. Show that for each $\epsilon>0$ there must be some $a_\epsilon\in A$ such that $d(\{a\},B)<\epsilon$. Conclude that there is a sequence $\sigma=\langle a_k:k\in\Bbb Z^+\rangle$ in $A$ such that $d(\{a_k\},B)<\frac1k$ for each $k\in\Bbb Z^+$. $A$ is compact, so $\sigma$ has a convergent subsequence. Show that the limit of this subsequence is in $A\cap B$, thereby getting a contradiction and showing that $d(A,B)$ must be positive.

From (b) you know that the two sets in (c) cannot be compact. They are closed, however, so they cannot be bounded. Look for two unbounded closed sets that get closer and closer together but never meet.

Added in response to edit of question: You write:

Assume $d(A,B)=0$, then $\forall\epsilon>0,\exists a_\epsilon\in A$ such that $|a−a_\epsilon|<\epsilon$.

This makes no sense, I’m afraid. First, $a$ comes out of nowhere. What is it? Where did it come from? What properties does it have? Secondly, you’ve asserted the existence of the points $a_\epsilon$, but you’ve given no justification for the assertion. Start over, this time paying a bit more attention to the suggestion.

Suppose that $d(A,B)=0$. By definition

$$\begin{align*} d(A,B)&=\inf\{|a-b|:a\in A\text{ and }b\in B\}\\ &\overset{*}=\inf_{a\in A}\inf\{|a-b|:b\in B\}\\ &=\inf_{a\in A}d(\{a\},B)\;. \end{align*}$$

This means that for each $\epsilon>0$ there is an $a_\epsilon\in A$ such that $d(\{a\},B)<\epsilon$. (Why, and why is the starred step above justified?) Now consider the sequence $\langle a_{1/k}:k\in\Bbb Z^+\rangle$; $A$ is compact, so this sequence has a convergent subsequence $\langle a_{1/n_k}:k\in\Bbb Z^+\rangle$. Let $a$ be the limit of this subsequence; then $a\in A$ (why?). On the other hand, for each $k\in\Bbb Z^+$ we know that $d(\{a_{1/n_k}\},B)<\frac1{n_k}$, so there is a point $b_k\in B$ such that $d(a_{1/n_k},b_k)<\frac1{n_k}$. Prove that the sequence $\langle b_k:k\in\Bbb Z^+\rangle$ converges to $a$, and use the fact that $B$ is closed to conclude that $a\in B$. This is a contradiction; what hypothesis does it contradict?

Related Question