Canonical: https://knowlpedia.com/topology/relatively-compact-set/

# Relatively compact set

A subset whose closure is compact in the ambient space.

A **relatively compact set** is a subset \(A\subseteq X\) of a [topological space](https://knowlpedia.com/topology/topological-space/) \(X\) such that its [closure](https://knowlpedia.com/topology/closure/) \(\overline{A}\) is [compact](https://knowlpedia.com/topology/compact-set/) in \(X\).

## Ambient space and terminology

Relative compactness depends on the ambient space and topology (it is not purely an intrinsic property of \(A\)). Some authors use “precompact” for relative compactness; in metric and uniform spaces it commonly means [totally bounded](https://knowlpedia.com/topology/totally-bounded-set/), which is equivalent to relative compactness when the ambient metric space is complete. These notions can differ in an incomplete ambient space.

## Examples

- In \(\mathbb{R}\) with the usual topology, \((0,1)\) is relatively compact because its closure is \([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.
