{\displaystyle D_{\rho }(A,B)={\begin{cases}\inf {\{\rho (a,b):a\in A,b\in B\}},&{\text{if }}A{\text{ and }}B{\text{ are not empty}},\\\infty ,&{\text{if }}A{\text{ or }}B{\text{ is empty}}.\end{cases}}}