Let $X$ be a set and $d : X \times X \to \mathbb R$ be a function satisfying the following conditions:
$d(x, x) = 0$ whatever $x \in X$;
$d(x, y) = d(y, x)$ whatever $x, y \in X$;
$d(x, z) \le d(x, y) + d(y, z)$ whatever $x, y, z \in X$.
Show that $d(x, y) \ge 0$ whatever $x, y \in X$.
My attempt
$d(x, y) \le d(x, y) + d(x, y)$
$d(x, y) \le d(x, y) + d(x, y)$
$d(x, y) - d(x,y) \le d(x, y)$
$0 \le d(x, y)$
I know it shouldn't be too difficult but I'm not sure about my answer, is that correct?
$0=d(x,x)\le d(x,y)+d(y,x)=d(x,y)+d(x,y)=2d(x,y)$
where all properties 1,2 and 3 have been used.