Patrick Stevens bio photo

Patrick Stevens

Former mathematics student at the University of Cambridge; now a software engineer.

Email Twitter Github Stackoverflow

I’m running through my Analysis proofs, trying to work out which ones are genuinely hard and which follow straightforwardly from my general knowledge base. I don’t find the Heine-Borel Theorem ”easy” enough that I can even forget its statement and still prove it (like I can with the Contraction Mapping Theorem), but it turns out to be easy in the sense that it follows simply from all the theorems I already know. Here, then, is my attempt to discover a proof of the theorem, using as a guide all the results I know but can’t necessarily prove without lots of effort.

Statement of the theorem

The Heine-Borel Theorem states that a subset of is compact if and only if it is closed and bounded.

First direction

One direction looks easy - if we assume our set is not closed or not bounded, it should be simple to show that it is not compact, using an argument based on the fact that is not compact and is not compact. Both of those I know how to prove.

Assume not closed

If the set is not closed, the only thing we can do is take a sequence tending to a limit which is not in . From this, we need to create an open cover of which has no finite subcover.

In one dimension, this is easy because we can just take a ball around each , each ball overlapping by a tiny bit with the next. Clearly since any finite cover must include each , it must also include those balls, whence it must include an infinite number of balls (contradiction). However, in more dimensions this is not so obvious, because we don’t have this handy “next ball” concept. What was really key in that 1D example was that the balls around each didn’t overlap to the extent that a ball contained more than one , and that no ball got near the forbidden limit point. (There was always “room to keep going” - in the example, taking the sets and filling in some tiny balls around each , every set is some finite distance away from .)

In more dimensions, if we create an open cover of such that no set gets near the limit point - that is, such that each set in the cover has some neighbourhood of which it doesn’t encroach upon - then any finite cover must also have some neighbourhood of which it doesn’t encroach upon. (A finite collection of things which don’t get close to 0 must also not get close to 0.) Hence, because we have a sequence tending to in , which *does* get close to , one of the can’t be included in our finite cover. That contradicts compactness.

Assume not bounded

Remember our key example here was . Since our set isn’t bounded, we can take a sequence in it getting arbitrarily far out from (that is, for every there is such that ). But then the easiest cover to use is just the set of balls centred on with radius ; this is an infinite cover, but there is no finite subcover because if we ever stop, there’s an we’ve missed.

The other direction

Here’s the bit that looks harder, because we’re taking any closed bounded set and showing a strong property of it. Remember, though, that we have in fact proved this in 1D already: we proved the Bolzano-Weierstrass property of the reals, and it is a fact (although I don’t remember how to prove it) that sequential compactness implies compactness. Let’s see if we can make that proof work. (The proof I know goes along the lines of “fix an infinite sequence in an interval; keep halving the interval; there’s an infinite subsequence in one of the halves; repeat”.)

Firstly, we’re faced with an arbitrary closed bounded set. With the not-closed or not-bounded sets it was easier - we had somewhere to start from. We’re going to need to make the problem simpler, because closed bounded sets can look really quite odd. The simplest possible closed bounded set is the closed ball centred on the origin of radius , but that’s not great for halving. What we can halve is a box - that’s the second-simplest possible closed bounded set (arguably the most simple).

Take an open cover of the box, and assume for contradiction that it has no finite subcover. Divide the box up into smaller boxes by cutting halfway along each side. One of these boxes must have no finite subcover of the original cover (otherwise they’d all have finite subcovers, so we could union them all together to get a finite subcover of the big box), so we can repeat on that box. Inductively we obtain a sequence of nested boxes, none of which has a finite subcover in the original cover, and they are boxes of side length .

What do we know about these nested boxes? In 1D, the proof then went “our infinite sequence therefore has a limit”: there was a point which lay in every box. We’d love that to be true here: an infinite sequence of closed nested boxes must have non-empty intersection. Fortunately, that’s easy to prove: take a sequence such that each lies in the th box but not the th. This sequence tends to a limit, because it’s clearly Cauchy; we’ll show that the limit lies in every box. Indeed, we know that the boxes are closed, so the sequence tells us that lies in box for every , so there is no such that is not in the th box, and hence is in every box.

Now, we have our concentric boxes homing in on , and lies in all of these boxes. Moreover, the boxes get smaller and smaller, quite rapidly, and each of them requires an infinite number of sets from our original cover in order to cover it. But where is ? lies in some set in the original cover; is some finite size, so it must cover one of the boxes completely, because the sizes of the boxes goes to zero. Formally, contains some ball ; for all there is such that the th box lies wholly in ; hence contains the th box, for some .

This contradicts the fact that the th box requires an infinite cover of open sets - we’ve done it in just one!

Hence all boxes are compact.

Dealing with all possible closed bounded sets

We’ve dealt with the easiest kind of closed bounded sets. How can we transform any other closed bounded set into one of these? We can’t do that necessarily - closed sets aren’t necessarily unions of closed boxes - but what we can say is that all closed bounded sets are contained some closed box. (Indeed, all bounded sets are.) It would be great if a closed subset of a compact set were compact.

That’s easy, though - if we have an open cover of , we can make an open cover of by just adding to the cover. (That extra set is open, being the complement of a closed set.) Then this has a finite subcover, by compactness of ; that subcover probably contains , but if it does, just throw it out and we’ve got a finite subcover of . Hence is compact.

Summary

We proved it as follows:

  1. Show the easier direction: assume not closed, make sequence tending to point not in set, define open cover such that no set individually gets close to that point; any finite subcover doesn’t get close to that point, so the sequence can’t be in the finite subcover. Assume not bounded, then use the nested balls centred on the origin.
  2. Do the easiest case of boxes, by taking an open cover with no finite subcover, repeatedly dividing up the box to get a sequence of nested boxes each with no finite subcover; there is a point in every box (by defining a sequence of points, one in each box, which must tend to a limit); that point is in some open set in the original cover, and eventually the boxes get small enough that a box is entirely contained within an open set - contradiction.
  3. Do the harder cases of boxes, by showing that a closed subset of a compact set is compact (by taking an open cover, extending it to a cover of the big set, and compactly taking a finite subcover, which turns back into a finite subcover of the small set).