$A=\{n+1\mid n\in \mathbb{N}\}$ i.e. $A=\{2,3,\ldots\}$
$B=\{n+1/n\mid n\in A\}$ i.e. $B={2 \text{ whole } 1/2, 3\text{ whole } 1/3, \ldots}$
Obliviously $A \cap B = \phi$
$d(A,B)=\inf_{x\in A,y\in B} d(x,y)$
But my teacher says
$d(A,B)=\inf\{|x-y| : x\in A,y\in B\}$
$d(A,B)=\inf\{1/2,1/3,\ldots\}$
$d(A,B)=\inf\{1/n: n\in \mathbb{N}\}$. i.e $0$
He subtracted corresponding elements but according to me every element of $A$ should be subtracted from $B$ i.e
$d(A,B)=\inf\{1-1/n :n\in \mathbb{N}\}$ in general and in both cases and is zero so can anyone clearyfy that which one is correct