• Any
finite topological space, including the
empty set, is compact. More generally, any space with a
finite topology (only finitely many open sets) is compact; this includes in particular the
trivial topology. • Any space carrying the
cofinite topology is compact. • Any
locally compact Hausdorff space can be turned into a compact space by adding a single point to it, by means of
Alexandroff one-point compactification. The one-point compactification of \mathbb{R} is homeomorphic to the circle ; the one-point compactification of \mathbb{R}^2 is homeomorphic to the sphere . Using the one-point compactification, one can also easily construct compact spaces which are not Hausdorff, by starting with a non-Hausdorff space. • The
right order topology or
left order topology on any bounded
totally ordered set is compact. In particular,
Sierpiński space is compact. • No
discrete space with an infinite number of points is compact. The collection of all
singletons of the space is an open cover which admits no finite subcover. Finite discrete spaces are compact. • In \mathbb{R} carrying the
lower limit topology, no uncountable set is compact. • In the
cocountable topology on an uncountable set, no infinite set is compact. Like the previous example, the space as a whole is not
locally compact but is still
Lindelöf. • The closed
unit interval is compact. This follows from the
Heine–Borel theorem. The open interval is not compact: the
open cover \left( \frac{1}{n}, 1 - \frac{1}{n} \right) for does not have a finite subcover. Similarly, the set of
rational numbers in the closed interval is not compact: the sets of rational numbers in the intervals \left[0, \frac{1}{\pi} - \frac{1}{n}\right]\text{ and }\left[\frac{1}{\pi} + \frac{1}{n}, 1\right] cover all the rationals in [0, 1] for but this cover does not have a finite subcover. Here, the sets are open in the subspace topology even though they are not open as subsets of \mathbb{R}. • The set \mathbb{R} of all real numbers is not compact as there is a cover of open intervals that does not have a finite subcover. For example, intervals , where takes all integer values in , cover \mathbb{R} but there is no finite subcover. • On the other hand, the
extended real number line carrying the analogous topology
is compact; note that the cover described above would never reach the points at infinity and thus would
not cover the extended real line. In fact, the set has the
homeomorphism to [−1, 1] of mapping each infinity to its corresponding unit and every real number to its sign multiplied by the unique number in the positive part of interval that results in its absolute value when divided by one minus itself, and since homeomorphisms preserve covers, the Heine-Borel property can be inferred. • For every
natural number , the
-sphere is compact. Again from the Heine–Borel theorem, the closed unit ball of any finite-dimensional
normed vector space is compact. This is not true for infinite dimensions; in fact, a normed vector space is finite-dimensional if and only if its
closed unit ball is compact. • On the other hand, the closed unit ball of the dual of a normed space is compact for the weak-* topology. (
Alaoglu's theorem) • The
Cantor set is compact. In fact, every non-empty compact metric space is a continuous image of the Cantor set. • Consider the set of all functions from the real number line to the closed unit interval, and define a topology on so that a sequence \{f_n\} in converges towards if and only if \{f_n(x)\} converges towards for all real numbers . The coarsest such topology, sometimes called the topology of
pointwise convergence, is the
product topology. With this topology, is a compact topological space; this follows from the
Tychonoff theorem. • A subset of the Banach space of real-valued continuous functions on a compact Hausdorff space is relatively compact if and only if it is equicontinuous and pointwise bounded (
Arzelà–Ascoli theorem). • Consider the set of all functions satisfying the
Lipschitz condition for all . Consider on the metric induced by the
uniform distance d(f, g) = \sup_{x \in [0, 1]} |f(x) - g(x)|. Then by the Arzelà–Ascoli theorem the space is compact. • The
spectrum of any
bounded linear operator on a
Banach space is a nonempty compact subset of the
complex numbers \mathbb{C}. Conversely, any compact subset of \mathbb{C} arises in this manner, as the spectrum of some bounded linear operator. For instance, a diagonal operator on the Hilbert space
\ell^2 may have any compact nonempty subset of \mathbb{C} as spectrum. • The space of Borel
probability measures on a compact Hausdorff space is compact for the
vague topology, by the Alaoglu theorem. • A collection of probability measures on the Borel sets of Euclidean space is called
tight if, for any positive epsilon, there exists a compact subset containing all but at most epsilon of the mass of each of the measures.
Prokhorov's theorem then asserts that a collection of probability measures is relatively compact for the vague topology if and only if it is tight.
Algebraic examples • Every
semisimple Lie group has a
compact real form, which is a compact
topological group; an example is the
orthogonal group of a positive-definite quadratic form. They also have non-compact real forms, such as the
special linear group or the
Lorentz group. • Since the
-adic integers are
homeomorphic to the Cantor set, they form a compact set. • Any
global field K is a discrete additive subgroup of its
adele ring, and the quotient space is compact. This was used in
John Tate's
thesis to allow
harmonic analysis to be used in
number theory. • The
spectrum of any
commutative ring with the
Zariski topology (that is, the set of all prime ideals) is compact, but never
Hausdorff (except in trivial cases). In algebraic geometry, such topological spaces are examples of quasi-compact
schemes, "quasi" referring to the non-Hausdorff nature of the topology. • The spectrum of a
Boolean algebra is compact, a fact which is part of the
Stone representation theorem.
Stone spaces, compact
totally disconnected Hausdorff spaces, form the abstract framework in which these spectra are studied. Such spaces are also useful in the study of
profinite groups. • The
structure space of a commutative unital
Banach algebra is a compact Hausdorff space. • The
Hilbert cube is compact, again a consequence of Tychonoff's theorem. • A
profinite group (e.g.
Galois group) is compact. == See also ==