[guided]We want to prove that a bound on the supremum of all ratios gives the pointwise contraction inequality. The supremum appearing in the hypothesis is taken over the set
\begin{align*}
R:=\left\{\frac{d(f(u),f(v))}{d(u,v)}:u,v\in X,\ u\ne v\right\}.
\end{align*}
The hypothesis says $\sup R\le c$ for some $c\in[0,1)$. By the defining order property of the supremum, every element of $R$ is bounded above by $\sup R$, and therefore every element of $R$ is bounded above by $c$.
Now fix arbitrary points $x,y\in X$. There are two cases because the ratio is only defined for distinct points. First suppose $x\ne y$. Since $d$ is a metric, definiteness gives $d(x,y)>0$. Therefore the ratio
\begin{align*}
\frac{d(f(x),f(y))}{d(x,y)}
\end{align*}
is a well-defined element of $R$. The supremum bound gives
\begin{align*}
\frac{d(f(x),f(y))}{d(x,y)}\le c.
\end{align*}
Because $d(x,y)>0$, multiplying both sides by $d(x,y)$ preserves the inequality, and we obtain
\begin{align*}
d(f(x),f(y))\le c\,d(x,y).
\end{align*}
It remains to handle the case $x=y$, which is not included in the ratio set. If $x=y$, then $f(x)=f(y)$ because $f:X\to X$ is a map. Applying definiteness of the metric $d$ at the point $f(x)\in X$ gives
\begin{align*}
d(f(x),f(y))=d(f(x),f(x))=0.
\end{align*}
Also $d(x,y)=d(x,x)=0$, so
\begin{align*}
d(f(x),f(y))=0=c\,d(x,y).
\end{align*}
Thus the inequality
\begin{align*}
d(f(x),f(y))\le c\,d(x,y)
\end{align*}
holds for every pair $x,y\in X$. Since the constant satisfies $c\in[0,1)$, this is precisely the contraction condition.[/guided]