Heine–Cantor Theorem

Continuous functions on compact metric spaces are uniformly continuous
Heine–Cantor Theorem

Heine–Cantor Theorem: Let (X,dX)(X,d_X) be a and let (Y,dY)(Y,d_Y) be a metric space. If f:XYf:X\to Y is , then ff is on XX; i.e., ε>0  δ>0  x,yX: dX(x,y)<δdY(f(x),f(y))<ε.\forall \varepsilon>0\;\exists \delta>0\;\forall x,y\in X:\ d_X(x,y)<\delta \Rightarrow d_Y(f(x),f(y))<\varepsilon.

This upgrades pointwise continuity to uniform control, and is essential for exchanging limits and integrals on compact domains and for approximation arguments.

Proof sketch (optional): Assume not uniformly continuous; then there exists ε0>0\varepsilon_0>0 and sequences xn,ynx_n,y_n with dX(xn,yn)0d_X(x_n,y_n)\to 0 but dY(f(xn),f(yn))ε0d_Y(f(x_n),f(y_n))\ge \varepsilon_0. By compactness, pass to a xnkxx_{n_k}\to x. Then ynkxy_{n_k}\to x as well. Continuity forces f(xnk)f(x)f(x_{n_k})\to f(x) and f(ynk)f(x)f(y_{n_k})\to f(x), contradicting the fixed separation ε0\varepsilon_0.