Let A,B be two subsets of metric space $X$ then show that the set $\{x \in X:d_A(x)<d_B(x)\}$ is open.
I was thinking of taking $r=d_B(x)-d_A(x) >0$.
Then $B_d(x;r)$ will be my desired ball.
I am stuck with the calculation to show that if $p \in B_d(x:r)$ then $d_A(p)<d_B(p)$.
Any hints would be helpful