Lemma (composition preserves uniform continuity)

Let $f: (X,d)\to (Y,d')$ and $g: (Y,d')\to (Z,d'')$ be functions between metric spaces.

If $f$ and $g$ are uniformly continuous, then $g\circ f$ is also uniformly continuous.

Proof