Let's do a proof by contradiction. Here's $A$ and $B$, as you defined them (50) and (51).
$$ A = \left\{ n + \frac{1}{2n} \mathop{:} n \in \mathbb{Z}_{> 0} \right\} \tag{50} $$
$$ B = \mathbb{Z}_{> 0} \tag{51} $$
Suppose $D(A, B) = c $ where $c > 0$ . $c$ is an arbitrary constant. The only thing we know about it is that it's a positive real number.
Let's introduce a new constant $c'$ so we know $c'$ is strictly closer to $0$ than it is to $1$ (101 and 102). The choices of $10$ and $4$ are somewhat arbitrary, but I think it makes the proof easier to visualize.
$$ c' = \min\left(\frac{1}{10},\; c\right) \tag{101} $$
$$ m = 4 \times \left\lceil{\frac{1}{c'}}\right\rceil \tag{102} $$
Note that $m$ is an integer by inspection and at least $10$, therefore it is a positive integer and hence (103).
$$ m + \frac{1}{2m} \in A \tag{103} $$
The distance between $m$, which is in $B$ and $m + \frac{1}{2m}$, which is in $A$, is $\frac{1}{2m}$.
$\frac{1}{2m} < c' \le c \tag{104}$
However, by hypothesis $c = D(A,B)$, which is defined to be the infimum of the distances between each item in $A$ and each item in $B$ .
Contradiction.
Therefore $D(A, B) \le 0$ . However, $D$ is the infimum of a set of non-negative reals, therefore $D(A, B) \ge 0$.
Thus, (105) as desired.
$$ D(A, B) = 0 \tag{105} $$