Continuous functions on compact sets are bounded

A continuous real-valued function on a compact set has finite sup norm
Continuous functions on compact sets are bounded

Let (X,d)(X,d) be a , let KXK\subseteq X be , and let f:KRf:K\to\mathbb{R} be .

Proposition: The function ff is on KK: there exists M<M<\infty such that f(x)M|f(x)|\le M for all xKx\in K.

This proposition is one of the core reasons compactness is the right hypothesis for global control from local continuity.

Proof sketch: The f(K)f(K) is in R\mathbb{R} because ff is continuous and KK is compact. Compact subsets of R\mathbb{R} are bounded, so f(K)f(K) is bounded. Equivalently, apply the to ff and f-f.