Let $A,B \subseteq \mathbb{R}^d$ be non-empty sets. Define their distance to be
$$ d(A,B) = \inf \{ ||x-y|| : x \in A, \; \; y \in B \} $$
For any $A,B$, do we have that $d(A,B) = d( \overline{A}, \overline{B} ) $.
Is the following proof correct?
Proof
Note, you always have $d(A,B)\geq d(\bar{A},\bar{B})$ since the supremum is taken over a bigger set on the right hand side.
If $d(\bar{A},\bar{B}) = d$ then $\exists x_1,x_2,...\in \bar{A}$ and $y_1,y_2,...\in \bar{B}$, for $\epsilon>0$, $\exists N$ such that $d(x_n,y_n)\leq d+\epsilon$ for $n\geq N$
Now each of the $x_i$ are in the $\bar{A}$, this means for each $x_i$, there exists $x_i'\in A$ such that $d(x_i,x_i')<\epsilon$ (In a metric space, the closure is the set of limit point of $A$, so there must be $d(x_i,x_i')<\epsilon$ with $x_i'\in A$). Similarly there exists $y_i'\in B$ such that $d(y_i,y_i')<\epsilon$. Then
$ d(\bar{A},\bar{B})\geq d(x_i,y_i)-\epsilon\geq d(x_i',y_i')-3\epsilon \geq d(A,B)-3\epsilon$
where I used $d(x_i,y_i)+d(x_i',x_i)+d(y_i,y_i')\geq d(x_i',y_i')$ but $\epsilon$ is arbitrary... so we are done.