Let $M$ be a set and let d be a function from $M \times M$ into $\mathbb R$ which satisfies the properties:
- $d(x,y) = 0$ if and only if $x=y$
- $d(x,y) = d(y,x)$ for all $x,y \in M$
- $d(x,z) \leq d(x,y) + d(y,z)$ for all $x,y,z \in M$
Prove that $d: M \times M \to [0, \infty)$.