Ma · Mathematics

Is Every Subset of a Compact Set Compact?

Published By the 9to5Science editorial team

At a glance

  1. 1. Check the claim

    A subset of a compact space need not be compact; compactness does not pass to arbitrary subspaces.

  2. 2. Use the closed-set condition

    A closed subset of a compact space is compact, with the topology inherited from the space.

  3. 3. Test the converse

    In a Hausdorff space, compact subsets are closed; without Hausdorffness, this need not hold.

  4. 4. Apply a counterexample

    The open interval (0, 1) is a noncompact subset of the compact interval [0, 1].

A compact space can contain subsets that are not compact. The key distinction is whether the subset is closed in the compact space. Compactness is inherited by closed subsets, but not by arbitrary subsets.

What compactness means for a subset

A subset AA of a topological space XX is given the subspace topology: its open sets are sets of the form A∩UA \cap U, where UU is open in XX. Compactness of AA means that every cover of AA by sets open in this subspace topology has a finite subcover.

The fact that XX is compact controls open covers of all of XX. It does not ensure that every open cover of a smaller subset can be reduced to finitely many sets. A closedness condition supplies the missing link.

Why closed subsets of compact spaces are compact

Suppose XX is compact and FF is closed in XX. Take any open cover of FF in its subspace topology. Each member of that cover can be written as F∩UF \cap U for some open set UU in XX. The corresponding open sets UU cover FF.

Add the open set X∖FX \setminus F to this collection. Since FF is closed, X∖FX \setminus F is open, and the resulting collection covers all of XX. Compactness of XX gives a finite subcover. Removing X∖FX \setminus F if it was selected leaves finitely many sets that cover FF. Thus FF is compact.

This proof works in any topological space; it does not require the space to be Hausdorff.

A concrete counterexample to the general claim

The interval [0,1][0,1] is compact in the usual topology on the real line. Its subset (0,1)(0,1) is not compact.

For each integer n≥2n \geq 2, define the relatively open subset

Un=(1/n,1)U_n = (1/n,1)

of (0,1)(0,1). These sets cover (0,1)(0,1): for any xx with 0<x<10<x<1, choose an integer nn large enough that 1/n<x1/n<x. But no finite collection of the UnU_n covers (0,1)(0,1). In a finite collection, let NN be the largest index. Their union is just (1/N,1)(1/N,1), which misses points of (0,1)(0,1) smaller than or equal to 1/N1/N.

Therefore (0,1)(0,1) is a noncompact subset of the compact space [0,1][0,1]. It is not closed in [0,1][0,1], which is why the closed-subset theorem does not apply.

When compact subsets are closed

The reverse implication needs a separation assumption. If XX is Hausdorff, every compact subset of XX is closed. Consequently, in a compact Hausdorff space, a subset is compact if and only if it is closed.

Without Hausdorffness, a compact subset need not be closed. For example, let X={0,1}X=\{0,1\} have topology {∅,{1},X}\{\varnothing,\{1\},X\}. Every subset is compact because XX is finite, but {1}\{1\} is not closed: its complement {0}\{0\} is not open.

So the precise general statement is: closed subsets of compact spaces are compact, while compact subsets of Hausdorff spaces are closed. Do not treat either direction as unconditional.

Common mistakes

  • Assuming compactness passes to every subspace. It does not; the interval example gives a counterexample.
  • Using “closed” without specifying the ambient space. The relevant condition is that FF is closed in the compact space XX.
  • Assuming compact always means closed. That implication requires the ambient space to be Hausdorff.
  • Confusing a subset with its induced topology. Compactness here is evaluated using the subspace topology, not an independently chosen topology.

References

  1. Topology, James R. Munkres

Spotted an error? Send a correction. Read how we write and check articles in our editorial policy.