A relatively compact set is a subset AXA\subseteq X of a XX such that its A\overline{A} is in XX.

Ambient space and terminology

Relative compactness depends on the ambient space and topology (it is not purely an intrinsic property of AA). Some authors use “precompact” for relative compactness; in metric and uniform spaces it commonly means , which is equivalent to relative compactness when the ambient metric space is complete. These notions can differ in an incomplete ambient space.

Examples
  • In R\mathbb{R} with the usual topology, (0,1)(0,1) is relatively compact because its closure is [0,1][0,1], which is compact.
  • In an infinite discrete space, an infinite subset is not relatively compact since its closure is itself and it is not compact.