$d$ :$X×X$ $\to$ $\mathbb R$ is a metric space iff it satisfies the four conditions -
$d(x,y)$ $\ge$ $0$
$d(x,y)=0$ iff $x=y$
$d(x,y)$=$d(y,x)$ for all $x,y \in$ $X$
$d(x,y)$ $\le$ $d(x,z)$ +$d(z,y)$ for all $x,y,z$ $\in$ $X$
These are the very familiar axioms of a metric space. But from axiom $4$ we can deduce the axiom $3$ but still why in many books, statement $3$ is used as an axiom(although it is not an axiom) ?
Please suggest some edit.