16.2 Compact Sets

A set of real numbers SS is said to be covered by a collection OO of open sets, when every element of SS is contained in at least one member of OO. (The members of OO can contain numbers outside of SS as well as those in SS.)

SS is said to compact, if, for every covering OO of SS by open sets, SS is covered by some finite set of members of OO. A significant fact about a covering by open intervals is: if a point xx lies in an open set QQ it lies in an open interval in QQ and is a positive distance from the boundary points of that interval.

We will now prove, just for fun, that a bounded closed set of real numbers is compact. The argument does not depend on how distance is defined between real numbers as long as it makes sense as a distance.

Open sets of real numbers are each unions of disjoint open intervals on the real line. We can consider a covering OO of SS by open sets to be a covering by their open intervals. Each open set in the covering containing the number xx has an open interval in it containing xx. Thus a covering of SS by open sets is actually a covering by open intervals as well.

Any interval in the covering of SS by OO that is contained in the union of other intervals in OO, is redundant in OO and can be removed from it and the rest of OO will still be a cover.

Every closed set of real numbers is a collection of disjoint closed intervals. For example, the collection SS of intervals [12n+1,12n][\frac{1}{2n+1}, \frac{1}{2n}] and [12n,12n+1][\frac{-1}{2n}, \frac{-1}{2n+1}] for all positive nn and the number 00, is a closed set. The minimum number in SS is 12-\frac{1}{2} and the maximum is 12\frac{1}{2}. Here the number 00 must be in it because it is a limit point of sequences of other of its numbers.

We can provide an explicit cover for SS by the following infinite collection of open intervals:

{ 12n+1[1(2n+1)2,12n+[1(2n)2}\left\{\ \frac{1}{2n+1} - [\frac{1}{(2n+1)^2}, \frac{1}{2n} + [\frac{1}{(2n)^2} \right\} { 12n[1(2n)2,12n+1+[1(2n+1)2}\left\{\ -\frac{1}{2n} - [\frac{1}{(2n)^2}, \frac{1}{2n+1} + [\frac{1}{(2n+1)^2} \right\} and {a,a} for some (small) a.\text{and} \medspace \{-a,a\} \medspace \text{for some (small)} \medspace a.

To prove this claim we make use of several facts: first, if a sequence of numbers in SS is infinite, it must have at least one limit point ss in SS since SS is closed and bounded. Second, if a number xx is covered by an open set UU, then UU contains numbers both smaller and larger than xx. Finally, an open set containing a limit point of a sequence of distinct numbers must contain an infinite number of those numbers.

We can prove this result by actually constructing a finite set of open intervals that cover SS. To do so we set A0A_0 to be the smallest number in SS, and let Aj+1A_{j+1} be the smallest number in SS greater than AjA_j that is in no member of OO that contains AjA_j.

Aj+1A_{j+1} can be a lower boundary point of SS (as will happen for all but one jj encountered in the example above,) or it can be in the middle of or on the upper boundary of a closed interval of SS.

We will define an open interval OjO_j containing AjA_j inductively starting with the largest value of Aj+1A_{j+1} as follows:

If Aj+1A_{j+1} is the smallest number in its interval in SS then let BjB_{j} be the largest number in SS smaller than Aj+1A_{j+1}, and let OJO_J be any open interval in OO containing both AjA_j and BjB_j.

Otherwise, let BjB_j be any number in Oj+1O_{j+1} that is smaller than (and not equal to) Aj+1A_{j+1}. By definition of Aj+1A_{j+1} there is an open interval in OO containing both AjA_j and BjB_j, and let any such open interval be OjO_j.

By construction, OjO_j contains only one of the AA's, namely AjA_j. Thus it can contain no limit point of AA's by our third fact above. This means that the AA’s, and OO's are finite in number. Also the OO's cover SS. Thus the OO's are a finite sizes covering of SS by open intervals.

In the example above. the AA's are numbers of the form 12n-\frac{1}{2n} from n=1n=1 until a value for nn for which 2n2n is approximately 1a\frac{1}{a}, with a similar number of positive AA's, for a total of roughly 1a\frac{1}{a} AA's all together.

Exercises:
1. Prove the claim above that the OO's defined cover SS.
2. Show that the finite set of open intervals chosen from the members of DD by the construction above contains the fewest open intervals possible in a cover of SS by open intervals.

We provide the example and construction above to give you intuition about what this result means. The usual simple proof involves breaking any closed set SS in half choosing a number in S, and repeating these actions on a half of SS which requires an infinite number of members of OO to be covered. At each stage the size of the new SS is half of that of the old SS, and at least one of the halves must need an infinite number of members of OO to be covered if SS does. The sequence of numbers chosen must, if infinite, have a limit point xx, and with (a,b)(a,b) any open interval covering xx, (a,b)(a,b) will contain all points in our sequence whose interval has length less than the smaller of bxb-x and xax-a; and that will be larger than the length of our interval OjO_j at some stage, and all subsequent members of our sequence will be inside (a,b)(a,b) and covered by it. (This is exactly what happens at 00 in the example.) This means that the later SS's require only one member of OO to be covered. And one is very finite. An advantage of this proof is that it works as well for an nn dimensional space whose elements are nn-tuples of real numbers, exactly as it works for real numbers. (This argument is repeated in detail below.)

We have been discussing these various concepts in the context of real numbers, but they can also be defined in many other contexts. The definition of limit requires a definition of distance, but given such a definition, the concepts of closed, open, sequentially compact, complete and compact are also defined. Sets of points in which a distance between any pair of them is defined is said to be metric.

The concepts open closed and compact mentioned here can also be defined when there is no metric, by specification of which subsets of the whole set are open.

In a metric space SS for any distance d we define the d neighborhood of a point xx to consist of all elements of SS whose distance from xx is strictly less than dd. Any open set OO in SS is a union of neighborhoods of its elements each intersected with OO.

Suppose a closed bounded subset CC of a finite dimensional space S is covered by open sets. Then it is covered by neighborhoods contained in those sets as well. We will argue that it must be covered by a finite collection of those neighborhoods, hence by a finite number of those open sets.

If SS is nn dimensional , we can cut CC into a finite size grid of n-cubes (by which we mean sets of points whose length in any direction is at most some constant, and if OO is necessarily infinite the number of members of OO that are needed to cover least one of the nn-cubes must be infinite as well. We choose a point in any such nn-cube, reduce attention to that nn-cube and repeat these cut and choose steps. The resulting sequence of elements must converge to some point xx, whose cover must still require an infinite number of neighborhoods. But a single point can be covered by one neighborhood, which, by this argument tells us that an infinite number of neighborhoods never were required.

An argument like that proves that a closed and bounded set in SS is compact for any finite dimensional space defined over the real numbers.

When there is no metric strange things can happen. Suppose we have the integers, or rational numbers or real numbers, (with no definition of distance among them) and the closed sets consist of all finite sets. That means the open sets are all sets of elements that lack only a finite number of elements.

In any such space of points and definition of open sets, all sets are compact!

Given any set QQ, and any cover of QQ by open sets, and any open set OO in that cover, OO can miss only a closed set which means a finite set, say dd, of elements of QQ. These can be covered by at most dd open sets in the cover of QQ, which means that there is a cover of QQ by at most d+1d+1 open sets that are in the original cover.

Thus compact sets need not, in general, be closed or bounded with these definitions.

A definition of open sets in a set of points is called a topology.

The subject considered above, called point set topology, was studied extensively in the 19th19^{th} century in an effort to make calculus rigorous. It contains many interesting results of which what is above is a tiny and random sample.