Suppose $(X,d)$ is a metric space and $a,b \in X, S \subseteq X, S \ne \{\phi\}$.
Then, prove that $d(a,b) \le \inf ~\{ ~d(a,s)~|~s \in S \} + \inf ~\{ ~d(b,s)~|~s \in S \} + \sup ~\{~d(s_1,s_2)~|~s_1,s_2 \in S\}$
My Textbook ( Metric Spaces by Michael Searcoid) gives the following proof :
By definition of metric spaces :
$d(a,b) \le d(a,s_1) + d(s_1,s_2) + d(b,s_2)$ where $s_1,s_2 \in S$
$~~~~~~~~~~~\le d(a,s_1) + d(b,s_2) + \sup ~\{~d(s_1,s_2)~|~s_1,s_2 \in S\}~\forall s_1,.s_2 \in S$
$~~~~~~~~~~~$ where $\sup ~\{~d(s_1,s_2)~|~s_1,s_2 \in S\} = k$ is a constant.
$~~~~~~~~~~~\le \inf \{ d(a,s_1) + d(b,s_2)\} + k~~~;s_1,s_2 \in S$
$~~~~~~~~\le \inf \{ d(a,s)~|~s \in S \} + \inf \{d(b, s)~|~s \in S\} + k$
I think there is an error in the last step because $\inf$ has been distributed. In general $\inf f + \inf g \le \inf ( f + g) $ where $f,g$ are two random functions. Also, see this answer where distribution of the infimum has been cited as false: https://math.stackexchange.com/a/2852545/66069
Could anyone please clarify. Thanks a lot.
Separating the $s_1$ and $s_2$ dependent terms, \begin{align*} \require{color} &\inf\{d(a,s_1)+d(b,s_2)\mid s_1,s_2\in S\}\\ &=\inf\{\inf\{d(a,s_1){\color{red}{+d(b,s_2)}}\mid s_1\in S\}\mid s_2\in S\}\\ &=\inf\{{\color{blue}\inf\{d(a,s_1)\mid s_1\in S\}}{\color{red}{+d(b,s_2)}}\mid s_2\in S\}\\ &={\color{blue}{\inf\{d(a,s_1)\mid s_1\in S\}+}}\inf\{d(b,s_2)\mid s_2\in S\}\\ &=\inf\{d(a,s)\mid s\in S\}+\inf\{d(b,s)\mid s\in S\}. \end{align*} The red and blue terms are independent of the immediate variable in inf, so can be pulled outside as shown.
But there is indeed a mistake in the proof you wrote: $$ d(a,s_1)+d(b,s_2)+k $$ is not $\leq\inf\{d(a,s_1)+d(b,s_2)\mid s_1,s_2\in S\}+k$. One correct way is to give yourself some room first (another way is given by DanielWainfleet in the comments). For $\varepsilon>0$, pick $s_1,s_2\in S$ so that $$ d(a,s_1)+d(b,s_2)\leq\inf\{d(a,s_1)+d(b,s_2)\mid s_1,s_2\in S\}+\varepsilon $$ and hence \begin{align*} d(a,b)&\leq d(a,s_1)+d(b,s_2)+d(s_1,s_2)\\ &\leq\inf\{d(a,s_1)+d(b,s_2)\mid s_1,s_2\in S\}+\varepsilon+k\\ &=\inf\{d(a,s)\mid s\in S\}+\inf\{d(b,s)\mid s\in S\}+k+\varepsilon \end{align*} Now $\varepsilon>0$ is arbitrary, so $$ d(a,b)\leq\inf\{d(a,s)\mid s\in S\}+\inf\{d(b,s)\mid s\in S\}+k. $$