4.4 Compact Sets and the Heine–Borel Theorem 101
K. Suppose that A and B are closed subsets of R.
(a) Show that the product set A × B = {(x, y) ∈ R
2
: x ∈ A and y ∈ B} is closed.
(b) Likewise show that if both A and B are open, then A × B is open.
L. A set A is dense in B if B is contained in
A.
(a) Show that the set of irrational numbers is dense in R.
(b) Hence show that Q has empty interior.
M. Suppose that A is a dense subset of R
n
.
(a) Show that if U is open in R
n
, then A ∩ U is dense in U .
(b) Show by example that this may fail for sets that are not open.
N. A point x is a cluster point of a subset A of R
n
if there is a sequence (a
n
)
∞
n=1
with
a
n
∈ A\{x} such that x = lim
n→∞
a
n
. Thus, every cluster point is a limit point but not
conversely.
(a) Show that if x is a limit point of A, then either x is a cluster point of A or x ∈ A.
(b) Hence show that a set is closed if it contains all of its cluster points.
(c) Find all cluster points of (i) Q, (ii) Z, (iii) (0, 1).
O. Starting with a subset A of R
n
, form all the possible sets that may be obtained by
repeated use of the operations of closure and complement. Up to 14 different sets can
be obtained in this way. Find such a subset of R.
4.4. Compact Sets and the Heine–Borel Theorem
Now we turn to the notion of compactness. At this stage, compactness seems
like a convenience and may not appear to be much more useful than completeness.
However, when we study continuous functions, compactness will be very useful
and then its full power will become apparent.
4.4.1. DEFINITION. A subset A of R
n
is compact if every sequence (a
k
)
∞
k=1
of points in A has a convergent subsequence (a
k
i
)
∞
i=1
with limit a = lim
i→∞
a
k
i
in A.
Recall that the Bolzano–Weierstrass Theorem (Theorem 2.6.4) states that every
bounded sequence has a convergent subsequence. Using this new language, we
may deduce that every subset of R that is both closed and bounded is compact.
This rephrasing naturally suggests the question, Which subsets of R
n
are compact?
Before answering this question, we consider a few examples.
4.4.2. EXAMPLES. Consider the set (0, 1]. The sequence 1, 1/2, 1/3, . . . is in
this set but converges to 0, which is not in the set. Since any subsequence will
also converge to zero, there is no subsequence of 1, 1/2, 1/3, . . . that converges to
a number in (0, 1]. So this set is not compact.
Next, consider the set N. The sequence 1, 2, 3, . . . is in N. However, no subse-
quence converges (because each subsequence is unbounded and being bounded is
a necessary condition for convergence by Proposition 2.4.2). So N is not compact.