Let (X,d) be a metric space. f: X $\rightarrow \mathbb{R}$ ist called "Katetov map" iff $\forall x, y, \in X : |f(x)-f(y)| \leq d(x,y) \leq f(x) + f(y)$. The set of all Katetov-maps on X is denoted by E(X).
If f $\in$ E(X) and S $\subset$ X are such that $f(x) = \inf \{f(s) + d(x,s) : s \in S\}$, we say that f is "supported by S".
Show that if f, g $\in$ E(X) are both supported by S $\subset$ X it holds that $d(f,g)= \sup_{s \in S} |f(s)-g(s)| $ where d denotes the sup-metric.
Apparently this is an easy fact, but I am failing to prove it. Can someone help me please?