Tutorials › Real Analysis › Heine-Borel Theorem

Compactness · Tutorial 279 of 1000

Heine-Borel Theorem

Use the Heine–Borel criterion to test compactness in \(\mathbb{R}\) and derive two useful consequences of compactness.

Intermediate 9 min read

What You'll Learn

  • State the Heine–Borel criterion for subsets of the real line
  • Check compactness by verifying closedness and boundedness
  • Identify why omitting either condition can invalidate the criterion
  • Prove the Lebesgue Number Lemma for compact subsets of \(\mathbb{R}\)
  • Deduce that every bounded infinite subset of \(\mathbb{R}\) has an accumulation point

A Practical Test for Compactness

In “Closed Intervals,” we proved compactness directly from the open-cover definition. The Heine–Borel Theorem gives a broader test: for subsets of the real line, compactness is equivalent to being both closed and bounded. It can often replace an open-cover argument with two simpler checks. The criterion is special to the real line; one should not assume that closedness and boundedness characterize compactness in every setting.

Theorem (Heine–Borel): A subset \(K\subseteq\mathbb{R}\) is compact if and only if it is closed in \(\mathbb{R}\) and bounded.

This is the theorem established in “Compactness in the Real Line.” We use it here as a criterion rather than re-proving it. Recall that compactness means every open cover has a finite subcover. In one direction, compact subsets of \(\mathbb{R}\) are closed and bounded; in the other, closed bounded subsets are compact. The empty set is included: it is closed and bounded, and it is compact because the empty subfamily covers it.

The theorem gives a quick method. To prove a set compact, establish both that it contains all its limit points (or equivalently is closed) and that it lies within some bounded interval. To prove it is not compact, it is enough to show that it fails either condition. The theorem does not say that every closed set or every bounded set is compact by itself.

Using the Criterion Carefully

Closedness and boundedness are independent requirements. Closedness prevents a set from omitting limit points that its own points approach. Boundedness prevents it from extending without limit in either direction. Neither property alone controls both possible failures of compactness.

Worked Example: A Closed Bounded Set

Consider \(K=[-3,5/2]\). The closed-interval result from the previous tutorial shows that this set is closed. Every \(x\in K\) satisfies \(-3\leq x\leq 5/2\), so in particular \(|x|\leq 3\); hence \(K\) is bounded. By the Heine–Borel Theorem, \(K\) is compact.

This conclusion concerns every open cover of \(K\), even though we have not examined any particular cover: each such cover has a finite subcover. The theorem is useful precisely because the closedness and boundedness checks suffice to establish that open-cover conclusion.

Worked Example: A Bounded Set That Is Not Compact

Let \(E=(0,4]\). It is bounded because \(0<x\leq4\) for every \(x\in E\). It is not closed: the sequence \(x_n=1/n\) lies in \(E\) for every positive integer \(n\), and \(x_n\to0\), but \(0\notin E\). By the sequential criterion for closedness, \(E\) is not closed. Therefore the Heine–Borel Theorem implies that \(E\) is not compact.

This example shows why boundedness alone does not suffice. Points of \(E\) can approach the omitted endpoint \(0\), and the set does not contain that limit. In “Examples of Noncompact Sets,” an open-cover argument exhibited the same obstruction directly.

Worked Example: A Closed Set That Is Not Compact

The set \(\mathbb{Z}\) of integers is closed in \(\mathbb{R}\). Indeed, if \(x\notin\mathbb{Z}\), choose an integer \(m\) with \(m<x<m+1\). The positive number \(r=\min\{x-m,m+1-x\}/2\) gives a neighborhood \((x-r,x+r)\) containing no integer. Thus every point outside \(\mathbb{Z}\) has a neighborhood in its complement, so that complement is open and \(\mathbb{Z}\) is closed.

But \(\mathbb{Z}\) is unbounded: for every \(M>0\), an integer \(n>M\) exists by the Archimedean property. Consequently \(\mathbb{Z}\) is not compact by Heine–Borel. This example shows why closedness alone is also insufficient.

A Uniform Scale for Open Covers

Compactness gives more than the existence of a finite subcover. For any open cover of a compact set, there is one positive radius that works uniformly at every point: around each point, a ball of that radius, restricted to the compact set, lies inside one member of the cover. This is the Lebesgue Number Lemma. The radius need not work for the entire ball in \(\mathbb{R}\), only for its intersection with the set being covered.

Theorem (Lebesgue Number Lemma): Let \(K\subseteq\mathbb{R}\) be compact, and let \(\mathcal{U}\) be an open cover of \(K\). There exists \(\delta>0\) such that for every \(y\in K\), there is a \(U\in\mathcal{U}\) for which \(B_\delta(y)\cap K\subseteq U\).

Proof. If \(K=\varnothing\), take \(\delta=1\); the assertion about every \(y\in K\) is then vacuously true. Suppose \(K\ne\varnothing\). For each \(x\in K\), choose \(U_x\in\mathcal{U}\) with \(x\in U_x\). Because \(U_x\) is open, there is \(r_x>0\) such that \(B_{2r_x}(x)\subseteq U_x\).

The balls \(B_{r_x}(x)\), for \(x\in K\), form an open cover of \(K\). Compactness gives a finite subcover \(B_{r_{x_1}}(x_1),\ldots,B_{r_{x_m}}(x_m)\). Define \(\delta=\min\{r_{x_1},\ldots,r_{x_m}\}\), which is positive because it is the minimum of finitely many positive numbers.

Take any \(y\in K\). Choose an index \(i\) such that \(y\in B_{r_{x_i}}(x_i)\). If \(z\in B_\delta(y)\cap K\), then \(|z-y|<\delta\leq r_{x_i}\) and \(|y-x_i|<r_{x_i}\). The triangle inequality gives \(|z-x_i|\leq|z-y|+|y-x_i|<\delta+r_{x_i}\leq2r_{x_i}\). Thus \(z\in B_{2r_{x_i}}(x_i)\subseteq U_{x_i}\). This holds for every such \(z\), so \(B_\delta(y)\cap K\subseteq U_{x_i}\). The same \(\delta\) works for every \(y\in K\), proving the lemma. \(\square\)

The finite subcover is what makes a uniform radius possible. Each individual point has some suitable radius, but those radii might vary and might become arbitrarily small across an unbounded or noncompact set. Compactness reduces the covering to finitely many balls, after which the minimum of finitely many positive radii is still positive.

Worked Example: A Uniform Radius for a Two-Set Cover

Let \(K=[0,2]\), \(U=(-1,5/4)\), and \(V=(3/4,3)\). The sets \(U,V\) cover \(K\): points \(x\in[0,5/4)\) lie in \(U\), and points \(x\in[5/4,2]\) lie in \(V\). We can exhibit a uniform radius directly. Take \(\delta=1/8\).

If \(y\in[0,1]\) and \(z\in B_\delta(y)\cap K\), then \(z>y-1/8\geq-1/8>-1\), and \(z<y+1/8\leq9/8<5/4\). Hence \(z\in U\). If \(y\in[1,2]\) and \(z\in B_\delta(y)\cap K\), then \(z>y-1/8\geq7/8>3/4\), and \(z<y+1/8\leq17/8<3\). Hence \(z\in V\). These two cases cover every \(y\in K\), so the chosen radius has the required property.

The point of the lemma is not that \(1/8\) is the largest possible radius. It is that one positive radius can be chosen to work uniformly, even though the member of the cover that contains the neighborhood may depend on the point.

Bounded Infinite Sets Have Accumulation Points

Another consequence combines Heine–Borel with the open-cover definition. A bounded infinite set cannot have all its points isolated from the rest of the set: at least one point of the real line must be an accumulation point. This is the Bolzano–Weierstrass Theorem for subsets of \(\mathbb{R}\).

Theorem (Bolzano–Weierstrass): Every bounded infinite subset \(E\subseteq\mathbb{R}\) has an accumulation point in \(\mathbb{R}\).

Proof. Let \(E\) be bounded and infinite, and let \(K=\overline{E}\), its closure. Since \(E\) is bounded, it is contained in some closed bounded interval \([-M,M]\). That interval is closed and contains \(E\), so the closure-as-smallest-closed-superset theorem gives \(K\subseteq[-M,M]\). The closure \(K\) is closed, and it is bounded by this inclusion. The Heine–Borel Theorem therefore shows that \(K\) is compact.

Suppose, for a contradiction, that no point of \(K\) is an accumulation point of \(E\). For each \(x\in K\), the definition of accumulation point then gives some \(r_x>0\) such that \(B_{r_x}(x)\cap(E\setminus\{x\})=\varnothing\). Thus \(B_{r_x}(x)\cap E\subseteq\{x\}\), so each such ball contains at most one point of \(E\). The balls \(B_{r_x}(x)\), \(x\in K\), form an open cover of \(K\). Since \(K\) is compact, finitely many of them cover \(K\). Their union can contain only finitely many points of \(E\), because each ball contains at most one. But \(E\subseteq K\), so these balls must cover the infinite set \(E\), a contradiction. Therefore some point of \(K\) is an accumulation point of \(E\), as required. \(\square\)

Worked Example: Two Accumulation Points from One Bounded Set

For each positive integer \(n\), let \(a_n=(-1)^n+1/(n+1)\), and let \(E=\{a_n:n\geq1\}\). If \(n\) is odd, then \(a_n=-1+1/(n+1)\). Since \(n+1\geq2\), we have \(0<1/(n+1)\leq1/2\), so \(-1<a_n\leq-1/2\). If \(n\) is even, then \(n\geq2\), and \(a_n=1+1/(n+1)\); hence \(1<a_n\leq4/3\). Therefore \(E\subseteq[-1,4/3]\).

Within each parity, the values are distinct because \(1/(n+1)\) strictly decreases as \(n\) increases. Odd-indexed values lie at or below \(-1/2\), while even-indexed values are greater than \(1\); thus values from different parities are distinct as well. In particular, \(E\) is infinite. The Bolzano–Weierstrass Theorem guarantees at least one accumulation point.

In fact, the even-indexed terms satisfy \(a_{2k}=1+1/(2k+1)\to1\), and the odd-indexed terms satisfy \(a_{2k-1}=-1+1/(2k)\to-1\) as \(k\to\infty\). Each subsequence has distinct terms, so every neighborhood of its limit contains points of \(E\) other than the limit itself. Thus both \(1\) and \(-1\) are accumulation points of \(E\).

When the Theorem Is Useful

Heine–Borel is a decision tool and a source of compactness in proofs. If a set is visibly a closed bounded interval, the result from “Closed Intervals” gives compactness directly; for a more general subset of \(\mathbb{R}\), Heine–Borel often gives a shorter route. Once compactness is known, results such as the Lebesgue Number Lemma and Bolzano–Weierstrass can supply uniform control or accumulation points.

A common pitfall is to check only one of the two hypotheses. The interval \((0,4]\) is bounded but not closed, and \(\mathbb{Z}\) is closed but not bounded. Neither is compact. Another pitfall is to treat the criterion as universal across mathematics: the equivalence stated here concerns subsets of \(\mathbb{R}\). Always check the setting and the hypotheses before applying a compactness criterion.

1
Check the setting.
The Heine–Borel criterion here applies to subsets of the real line.
2
Verify both properties.
For compactness, establish that the set is closed and bounded; failure of either one rules compactness out.
3
Use compactness as a tool.
Once compactness is established, it can provide a finite subcover, a uniform covering radius, or an accumulation point for an infinite bounded set.

Check Your Understanding

Use the Heine–Borel criterion and the consequences proved above to answer these questions.

  1. Which two properties must a subset of \(\mathbb{R}\) have to be compact?
  2. Why does the Heine–Borel Theorem show that \((0,4]\) is not compact?
  3. In the proof of the Lebesgue Number Lemma, where is compactness used to obtain one radius that works throughout \(K\)?
  4. Why does each ball in the Bolzano–Weierstrass proof contain at most one point of \(E\) under the contradiction hypothesis?
  5. For the set \(E=\{(-1)^n+1/(n+1):n\geq1\}\), what are the limits of the even- and odd-indexed subsequences?