Lemma (composition preserves Lipschitz continuity)

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

If $f$ is $L_f$-Lipschitz and $g$ is $L_g$-Lipschitz, then $g\circ f$ is $(L_f\cdot L_g)$-Lipschitz.

Proof