Given a metric space $(M,d)$ and $\sim$ an equivalence relation on $M$.
I wonder if the function $\widetilde{d}:M/_\sim \times M/_\sim \rightarrow \mathbb{R}_{\geq 0}$ defined by
$\widetilde{d}([x]_{\sim},[y]_{\sim}) = inf_{x \in [x]_{\sim}, y \in [y]_{\sim}} d(x,y)$
Is it a metric on $M/\sim$?