Canonical: https://knowlpedia.com/topology/compactness-of-graphs-lemma/

# Compactness of graphs lemma

The graph of a continuous map from a compact space is compact in the product.

**Compactness of graphs lemma:** Let \(f:X\to Y\) be a [continuous map](https://knowlpedia.com/topology/continuous-map/) between topological spaces, and let
\[
\Gamma_f=\{(x,f(x)):\ x\in X\}\subseteq X\times Y
\]
be its graph, where \(X\times Y\) carries the [product topology](https://knowlpedia.com/topology/product-topology/). If \(X\) is [compact](https://knowlpedia.com/topology/compact-set/), then \(\Gamma_f\) is a compact subset of \(X\times Y\). If, in addition, \(Y\) is [Hausdorff](https://knowlpedia.com/topology/hausdorff-space/), then \(\Gamma_f\) is a [closed set](https://knowlpedia.com/topology/closed-set/) in \(X\times Y\).

## Related uses

This observation is often combined with the fact that compact subsets of Hausdorff spaces are closed (see [compact subsets of Hausdorff spaces are closed](https://knowlpedia.com/topology/compact-subset-of-hausdorff-is-closed/)) in arguments about [homeomorphisms](https://knowlpedia.com/topology/homeomorphism/).
