I have this exercise where I have to show whether or not $d(p,q)$ is a metric for $X = \mathbb R^1$, and I have come up with this lemma to help me with it. I need help proving it (if it is true).
The requiements for a metric is that a) $d(p,q) > 0$ unless $p=q$, b) $d(p,q) = d(q,p)$, and c) $d(p,q) \leq d(p,r) + d(r,q)$.
Lemma. This works when $p,q$ only appear in the formula for $d(p,q)$ in the pair $|p-q|$, e.g. $d(p,q) = \frac{|p-q|}{1 + |p-q|}$ and $X$ is $\mathbb{R}^1$. Denote $f(x)$ to be the function $d(p,q)$ except $|p-q|$ replaced with $x$, i.e. in the above example $f(x) = \frac{x}{1+x}$. Then if a) and b) are true, for c) to be true it is sufficient that $f'(x) \geq 0$ and $f''(x) < 0$ for $x \geq 0$. In other words, $f(x)$ must increase at a rate less than or equal to a linear function.
Proof. WLOG $p<q$. If $r\leq p\leq q$ or $p\leq q\leq r$, $c)$ is clear because $f'(x) \geq 0$.
So consider $p<r<q$. Let $a = r-p$, $b = q-r, a+b = q-p$. We have $f(a+b) \leq f(a) + f(b)$ because $f'' \leq 0$. Thus $c)$ is proven. (This is the part I'm not sure about)
Is this lemma correct? Is the proof correct?
EDIT: Refinement for the $p<r<q$ case:
$f(a+b) \leq f(a) + f(b) \Leftrightarrow f(a+b) - f(b) \leq f(a) - f(0)$
We have that $\displaystyle \int_{b}^{a+b} f' \leq \int_0^a f'\Leftrightarrow f(a+b) - f(b) \leq f(a) - f(0)$. Let $A_{f,x,y}$ represent the average value of $f$ from $x$ to $y$. Since $f'' \leq 0$, $f'$ is non-increasing, so $A_{f',b,a+b} \leq A_{f',0,a}$. Furthermore $\displaystyle \int_a^b f = (b-a)A_{f,a,b}$, so $\displaystyle \int_{b}^{a+b} f' \leq \int_0^a f'$.
EDIT I believe the lemma is also biconditional.
Given: A metric $d(p,q)$ described as above where there is only $|p-q|$.
If: $a)$ holds, $f' \geq 0$, and $f'' \leq 0$ for $x \geq 0$
Then: $d$ is a metric.
Above I have already proved the forward case. For the backwards case I will prove the inverse.
If: any of the requirements above do not hold
Then: $d$ is not a metric.
If $a)$ doesn't hold,then clearly it's not a metric.
If $f' < 0$, then by $a)$ it starts at $f(0)=0$ so $f$ becomes negative, so $a)$ doesn't hold, so it's not a metric.
If $f' > 0$, then $A_{f', b, a+b} > A_{f', 0, a}$ so the integral equality above for $c)$ doesn't hold, so it is not a metric.