If $X$ is an non-empty set and $d: X \times X \rightarrow \mathbb {R}$ has the following properties
$d(x,y)=0$ if and only if $x=y$
$d(x,y) \leq d(x,z)+\color{red}{d(z,y)}$
Prove that d defines a metric on X.
I need to prove that $d(x,y) \geq 0$
$d(x,y)=d(y,x)$
I know this result.
But the conditions that are set are different, I have tried to do it in an analogous way, but I think that with the conditions that are given it does not meet that it is a metric.
The question falls on the fact that in the statement that I mention you have to d(x,y) $\leq d(x,z)+\color{red}{d(y,z)}$ I would appreciate any hint or if you can help me prove that it is not metric.