Problem
Let $X$ be a non-empty set. Let $f:X\times X\to \mathbb{R}$ satisfying the following properties,
$f(x,y)=0\iff x=y$ for all $x,y\in X$.
$f(x,y)=-f(y,x)$ for all $x,y\in X$.
$f(x,y)=f(x,z)+f(z,y)$ for all $x,y,z\in X$.
If such a function exists, call the function $f$ to be a pre-metric on $X$. Prove that,
The function $d(x,y)=|f(x,y)|$ defined a metric on $X$ where $|\cdot|$ is the absolute value function of $\mathbb{R}$.
From the previous result you can conclude that we can always get a metric from a pre-metric but is the converse always true?
If the converse doesn't hold in general, what condition(s) on $d$ are needed to ensure that the converse also holds?
The first part of the problem is easy and I have proved it but for the second and third part I got nowhere. Can anyone help me?