Given a set $\mathscr{M}$ such that $\# \mathscr{M}\geq 2$, we know that there is, at least, an uncountable number of metrics defined on $\mathscr{M}$: $$\begin{array}{cccc}d_a:&\mathscr{M}\times \mathscr{M}&\longrightarrow &\mathbb{R}\\ & (x,y)&\longmapsto & a\cdot \delta_{x,y}\end{array}$$ with $a\in \mathbb{R}_+$ and $\delta_{x,y}=0$ if $x=y$ and $\delta_{x,y}=1$ otherwise.
Now, my question is: given a metric $d$ on a set $\mathscr{M}$ is there some sufficient and necessary conditions over a function $f:A\subset \mathbb{R} \longrightarrow \mathbb{R}$ in order to $$D_f=f\circ d:\mathscr{M}\times \mathscr{M} \longrightarrow \mathbb{R}$$ also be a metric over $\mathscr{M}$?
I found that
- $I\supset d(\mathscr{M}\times \mathscr{M})$;
- $f(0)=0$ and $f(x)> 0,\forall x \in d(\mathscr{M}\times \mathscr{M})-\{0\}$.
are obviously sufficient and necessary to be possible to compose and to have $D_f(x,y)\geq 0$ with $D_f(x,y)=0\iff x=y$. We don't need to request anything from $f$ in order to gain $D_f(x,y)=D_f(y,x)$, since $d$ is symmetric and $f$ is a function. The trouble arises at the triangular inequality. Obviously, $$D_f(x,y)\leq D_f(x,z)+D_f(z,y)$$ is a sufficient and necessary condition, but I don't want to suppose anything about $D_f$, only about $f$ itself.
Well, I found that
- $f$ is monotonically increasing, i.e. $x\leq y \implies f(x)\leq f(y)$, when restricted to $d(\mathscr{M}\times \mathscr{M})$;
- $f(x+y)\leq f(x)+f(y), \forall x,y\in d(\mathscr{M}\times \mathscr{M})$
are SUFFICIENT conditions for this, but seems far from being necessary (at least, I couldn't show it).
Note, for example, that given $a>0$ a real number and $f:\mathbb{R}\longrightarrow \mathbb{R}$, $f(x)=\min \{a,x\}$, then $f$ satisfies 1, 2, 3 and 4.
Note that my question is not duplicate to
- What operations is a metric closed under?, since here are not asked about NECESSARY conditions; and
- If $d$ is a metric and $f$ a function when is $d\circ f$ a metric?, since the author of this question supposed $f$ to be decreasing and, furthermore, there is not an answer yet.