ConceptComplete

Compactness in R

Compactness is one of the most important concepts in analysis. A set is compact if every open cover has a finite subcover. In R\mathbb{R}, the Heine-Borel theorem characterizes compact sets as precisely those that are closed and bounded. Compact sets behave like "finite sets" in many ways — continuous functions attain maxima and minima, sequences have convergent subsequences, and uniform continuity holds.


Definitions

Definition3.1Open cover

An open cover of a set KRK \subseteq \mathbb{R} is a collection {Uα}αI\{U_\alpha\}_{\alpha \in I} of open sets such that

KαIUα.K \subseteq \bigcup_{\alpha \in I} U_\alpha.

Definition3.2Compact set

A set KRK \subseteq \mathbb{R} is compact if every open cover of KK has a finite subcover. That is, for every collection {Uα}αI\{U_\alpha\}_{\alpha \in I} of open sets with KαUαK \subseteq \bigcup_{\alpha} U_\alpha, there exist finitely many indices α1,,αn\alpha_1, \ldots, \alpha_n such that

KUα1Uαn.K \subseteq U_{\alpha_1} \cup \cdots \cup U_{\alpha_n}.

RemarkIntuition

Compactness says that no matter how you cover KK with open sets, you can always extract a finite subcover. This is a finiteness property: compact sets "look finite" from the perspective of covers.

ExampleFinite sets are compact

Every finite set K={x1,,xn}K = \{x_1, \ldots, x_n\} is compact. Given an open cover {Uα}\{U_\alpha\}, for each xix_i, choose UαiU_{\alpha_i} containing xix_i. Then KUα1UαnK \subseteq U_{\alpha_1} \cup \cdots \cup U_{\alpha_n}.

Example[a, b] is compact

The closed bounded interval [a,b][a, b] is compact. This is the content of the Heine-Borel theorem (see Heine-Borel Theorem).

Example(a, b) is not compact

The open interval (0,1)(0, 1) is not compact. Consider the cover {(1/n,1)n2}\{(1/n, 1) \mid n \geq 2\}. Every point x(0,1)x \in (0, 1) lies in some (1/n,1)(1/n, 1) (choose n>1/xn > 1/x), so this is an open cover. But no finite subcover exists: if we take finitely many (1/n1,1),,(1/nk,1)(1/n_1, 1), \ldots, (1/n_k, 1), their union is (1/N,1)(1/N, 1) where N=max(n1,,nk)N = \max(n_1, \ldots, n_k), which does not contain (0,1/N)(0, 1/N).

ExampleUnbounded sets are not compact

R\mathbb{R} is not compact. The cover {(n,n)nN}\{(-n, n) \mid n \in \mathbb{N}\} has no finite subcover (any finite union is bounded).


Heine-Borel Theorem

Theorem3.1Heine-Borel Theorem

A subset KRK \subseteq \mathbb{R} is compact if and only if KK is closed and bounded.

RemarkOnly in finite dimensions

The Heine-Borel theorem is special to Rn\mathbb{R}^n (and finite-dimensional normed spaces). In infinite-dimensional spaces, closed and bounded sets need not be compact. For example, the closed unit ball in \ell^\infty is not compact.


Sequential compactness

Definition3.3Sequential compactness

A set KRK \subseteq \mathbb{R} is sequentially compact if every sequence in KK has a subsequence converging to a point in KK.

Theorem3.2Equivalence of compactness and sequential compactness

For subsets of R\mathbb{R}, the following are equivalent:

  1. KK is compact (every open cover has a finite subcover).
  2. KK is sequentially compact (every sequence has a convergent subsequence in KK).
  3. KK is closed and bounded.
RemarkBolzano-Weierstrass

Sequential compactness is closely related to the Bolzano-Weierstrass theorem: every bounded sequence in R\mathbb{R} has a convergent subsequence. For closed bounded sets, the limit stays in the set (by closedness).

ExampleSequences in [a, b]

Let (xn)(x_n) be any sequence in [a,b][a, b]. By Bolzano-Weierstrass, (xn)(x_n) has a convergent subsequence xnkLx_{n_k} \to L. Since axnkba \leq x_{n_k} \leq b for all kk, taking limits gives aLba \leq L \leq b, so L[a,b]L \in [a, b]. Thus [a,b][a, b] is sequentially compact.


Properties of compact sets

Theorem3.3Closed subsets of compact sets

If KK is compact and FKF \subseteq K is closed (in the subspace topology), then FF is compact.

Theorem3.4Continuous images of compact sets

If KK is compact and f:KRf : K \to \mathbb{R} is continuous, then f(K)f(K) is compact.

RemarkExtreme Value Theorem

Theorem 3.4 immediately implies the Extreme Value Theorem: if f:[a,b]Rf : [a, b] \to \mathbb{R} is continuous, then f(K)f(K) is a compact subset of R\mathbb{R}, hence closed and bounded. Thus ff attains its maximum and minimum on [a,b][a, b].

ExampleContinuous function attains maximum

Let f:[0,1]Rf : [0, 1] \to \mathbb{R} be f(x)=x2f(x) = x^2. Then f([0,1])=[0,1]f([0, 1]) = [0, 1] is compact. The maximum is maxf=1\max f = 1 (attained at x=1x = 1), and the minimum is minf=0\min f = 0 (attained at x=0x = 0).

ExampleFailure on open intervals

Let f:(0,1)Rf : (0, 1) \to \mathbb{R} be f(x)=1/xf(x) = 1/x. Then (0,1)(0, 1) is not compact, and f((0,1))=(1,)f((0, 1)) = (1, \infty) is unbounded (not compact). The function ff does not attain a maximum on (0,1)(0, 1).


Summary

Compactness is a central concept in analysis:

  • Compact sets: every open cover has a finite subcover.
  • In R\mathbb{R}: compact \Leftrightarrow closed and bounded (Heine-Borel).
  • Sequential compactness: every sequence has a convergent subsequence.
  • Continuous images of compact sets are compact (Extreme Value Theorem).

See Heine-Borel Theorem for the proof, and Continuity for applications.