Continuous Image of Compact Space is Compact/Corollary 3/Proof 2

Proof
By Continuous Image of Compact Space is Compact, $f \left({S}\right)$ is compact.

From Compact Metric Space is Complete and Compact Metric Space is Totally Bounded, $f \left({S}\right)$ is complete and totally bounded.

A totally bounded metric space is bounded.

Hence both the supremum and the infimum of $f \left({S}\right)$ exist in $\R$.

Because $f \left({S}\right)$ is complete:
 * $\sup f \left({S}\right) \in f \left({S}\right)$

and:
 * $\inf f \left({S}\right) \in f \left({S}\right)$