Let us consider the function on the set $M$
$$d:M\times M \rightarrow \mathbb R.$$
I want to show that it defines a metric space on $M$ if the following two conditions are hold:
$d(x,y) =0 \iff x=y$
$d(x,y)\leq d(x,z)+d(y,z)$
So we need to prove that $d(x,y)\geq 0$ and $d(x,y)=d(y,x)$ but I don't know how to prove these two things.