this is my first post and wasn't able to find this question anywhere. I am trying to show, that $$\text{dist}(A,B):=\text{inf}\left \{ d(a,b): a\in A, b\in B\right \}$$ is a metric on $\mathcal{P}(X) \backslash \emptyset$ at whereat $(X,d)$ is a metric room, $\mathcal{P}(X)$ is the power set of $X$ and $\emptyset \neq A,B \in X$. The two attributes "identity of indiscernibles" and "symmetry" are done. These just come from the metric $d$. Now I am trying to show the triangle inequality and I am not sure either my proof is okay: $$\text{dist}(A,C)\leq d(a,c)\leq d(a,b) +d(b,c)$$ Then we have
$$ \inf \left \{ \text{dist}(A,B) \right \}\leq \inf\left \{ d(a,b) +d(b,c)\right \}\leq \inf\left \{ d(a,b) \right \}+\inf\left \{ d(b,c) \right \}$$ The last inequality comes from non-negativity of $d$.