We define $D(A,B) =\inf\{d(a, b) : a \in A \text{ and } b\in B\}$. I know $D$ is not metric. Take $A=\{1\}$ and $B=(0, 1)$ then $D(A, B) = 0 $ as $1$ is in closure of $B$ but $A\neq B$.
But I take particular example $A=\{\frac{1}{2n} + n : n \in \mathbb{N}\}$ and $B=\mathbb{N}$ then my intuition says $D(A, B) =0$ but I am unable to prove this. Can anyone prove this analytically?
Thanks
Let $\epsilon > 0$. Then there exists a sufficiently large natural number $N$ in which $\epsilon > \frac{1}{2n}$ for every $n \geq N$. So, pick any $n \geq N$ and it follows that $n + \frac{1}{2n} \in A$, $n \in B$ and $$|n+ \frac{1}{2n} - n| = \frac{1}{2n} < \epsilon.$$ Since $\epsilon$ was an arbitrary positive real number, it follows that $D(A, B) = 0.$