Skip to main content

11 - Compact sets

Where we left off last time

What have we been doing thus far in real analysis and what is some of the motivation for compact sets?

  • The infinite: In dealing with our analysis of the real numbers, we are, in some sense, wrestling with the infinite. In what way are we wrestling with the infinite? What are some examples? The real numbers form an infinite set. Yes, and that was a little problematic at first because we had first of all infinitely many integers and when dealing with the construction of Q\Q we had to deal with infinitely many pairs of numbers or numerators and denominators for fractions. And then we had this idea that there gaps still. And we wanted to fill them in somehow. That's really wrestling with the infinite. What are some other ways in which we wrestled with the infinite? Well, we had this idea that somehow there are bigger sets, that somehow the real numbers are larger than the rationals. Countable and uncountable infinite sets. Later on we are going to start talking about functions. Functions, in particular, we are often dealing with continuous functions, but what does it mean for a function to be continuous? That's really wrestling with the infinite because if we had a continuous function on a finite set then that would be rather boring.

  • Finite sets are nice: Why are finite sets nice? Well, they are small sets (i.e., bounded). There are only finitely many things. No better way to say it. Of course, the associated idea here is boundedness. What's another reason finite sets are nice? Well, they're closed sets in a rather trivial way since closed sets are those sets that contain all of their limit points. And finite sets have no limit points so they clearly contain all of their limit points. This will become apparent why we care about this soon. In the metric space that's the real numbers, finite sets actually contain their supremum and infimum. And if they contain their supremum\slash infimum, then we can rightfully talk about a maximum or minimum. That is, in R\R, finite sets contain their sup\sup and their inf\inf. (Thus, we can think about maximums and minimums.) You give me a set of finite numbers then I can say there's a maximum and a minimum — what I mean is there's a supremum\slash infimum and it's in the set. Finally, another reason we like finite sets is that when doing things with finite sets, the process ends! It terminates. Okay but we're wrestling with the infinite in this course.

  • Compactness: The idea of compactness is really about finiteness. In particular, if you have a set that is compact, then it is the next best thing to being finite. So compact sets are "the next best thing to being finite." That's a good way of thinking about compact sets. Now, when I make this definition of what it means for a set to be compact, it will not be apparent at first why any of these things are true about compact sets, but they are. Each of the things mentioned above for finite sets are also things that are true about compact sets. As the name suggests, "compact sets" are compact. That's sort of a way of saying they are small in some sense.

Definitions and compactness

What are some definitions and why is compactness an important concept?

  • Cover (definition): The first thing we need to do is to talk about what it means to cover a set. We are going to make a definition for an open cover of a set, and as the name suggests, what do you think one might mean by the words "open cover"? An open cover is just going to be a collection of open sets that cover a particular set. By an open cover of a set EE in a metric space XX we mean a collection {Gα}\{G_\alpha\} of open subsets of XX such that EαGαE\subset\bigcup_\alpha G_\alpha. Said less formally, an open cover of EE in XX is a collection of open sets {Gα}\{G_\alpha\} whose union contains EE. As a note for these lectures, whenever the notation XX is used, it is understood that XX is a metric space (i.e., a set in XX is endowed with some metric). When drawing open sets, it is typical to draw them in a dashed fashion (i.e., you dot the boundaries of the open sets), but sometimes this is difficult to do and are thus drawn in sort of a curly or wavy way. Does the picture

    represent a cover of EE? No! I've missed some points of EE clearly. So maybe we will throw in another open set to modify the picture like so:

    There is an open cover of EE now. Sometimes we just say the word cover because we are never going to talk about any other kind of cover. While we're at it, it makes sense to discuss the concept of a subcover. What is a subcover? A subcover would be a subcollection of {Gα}\{G_\alpha\} that is still a cover. So a subcover of {Gα}\{G_\alpha\}, where we should note that when talking about a subcover you are always referencing the open cover of which it is a subcover, is a subcollection {Gαγ}\{G_{\alpha_\gamma}\}, where this way of denoting the subcollection is chosen in such a way to make it clear that we are picking specific α\alpha since {Gα}\{G_\alpha\} may be possibly uncountable. So we might look at specific α\alpha and label them with its own subscript γ\gamma, hence the notation {Gαγ}\{G_{\alpha_\gamma}\}. Later on, usually γ\gamma will just be a finite set, but this is one way to write it. To concisely recap, a subcover of {Gα}\{G_\alpha\} is a subcollection {Gαγ}\{G_{\alpha_\gamma}\} that still covers EE. Now, consider the picture

    again. If I take a cover and I take the subcollection that is all the open sets, is that a subcover? Yes, it's still a subcover — it's still a cover. I haven't removed any sets. Let's thrown in another open set to modify the picture to look as follows:

    Would you agree that the set just thrown in, namely the bottom right circular one, is kind of extraneous? So all of the sets do indeed form a cover, but I don't need all of them. I could throw this circular set away, and the rest would be a subcover. Let's look at some examples now.

Examples of covers, subcovers, etc.

What are some examples of covers, subcovers, and the like?

  • Example 1: In R\R, let's look at the set [12,1)[\frac{1}{2},1), the half-open interval. We claim this set has the cover {Vn}\{V_n\}, where Vn=(1n,11n)V_n=(\frac{1}{n},1-\frac{1}{n}). Maybe we start with n=3n=3 and keep on going. So the claim, then, is that {Vn}n=3\{V_n\}_{n=3}^\infty covers the set [12,1)[\frac{1}{2},1). So what does this cover look like? The first few sets are set is (13,23)(\frac{1}{3},\frac{2}{3}). The second set is then (14,34)(\frac{1}{4},\frac{3}{4}) and then

    V3=(13,23),V4=(14,34),V5=(15,45),V6=(16,56),V_3=(\tfrac{1}{3},\tfrac{2}{3}),\quad V_4=(\tfrac{1}{4},\tfrac{3}{4}),\quad V_5=(\tfrac{1}{5},\tfrac{4}{5}),\quad V_6=(\tfrac{1}{6},\tfrac{5}{6}),

    and so on. You get ever increasing intervals. Are these open sets? Is this an open cover of the set [12,1)[\frac{1}{2},1)? Yes. Why? We'll just say why. Is it clear that 12\frac{1}{2} is covered? Yes, by all the sets. Is it clear that 34\frac{3}{4} is covered? Yes, not by V4V_4 but by V5V_5. And would you agree that any point just to the left of 1 eventually gets covered by one of the sets? Yes. But there are lots of covers for this set. This set also has the cover {(0,2)}\{(0,2)\}, where we note the importance of enclosing (0,2)(0,2) with braces to indicate that we have a collection even though this collection has only one element, namely the interval (0,2)(0,2). Is this an open cover? An aside question: Do we ever need an uncountable index set? And the answer is yes for some metric spaces, although it turns out for most of the metric spaces that we care about you could have a countable subcollection. For example, here's a cover of the real numbers. Let's take all balls centered at any possible point. That's an uncountable collection of open sets. Returning to our example involving the set [12,1)[\frac{1}{2},1), this set also has the cover {Wx}x[12,1)\{W_x\}_{x\in[\frac{1}{2},1)}, where Wx=N110(x)W_x=N_{\frac{1}{10}}(x). So we have the cover {Wx}x[12,1)\{W_x\}_{x\in[\frac{1}{2},1)} here, where for every point xx in the set [12,1)[\frac{1}{2},1) I have an open ball around that point. Basically, around every point I'm taking a ball of a particular radius. So this cover just consists of a bunch of balls around points. And how many of them are there? Uncountably many, one for every one between 12\frac{1}{2} and 1. These are all covers, yes? So one of the questions to ask is whether or not you need everything in the cover? Above we have three different covers for the same set. Do we need all these sets? So, given a cover, do we need all the sets to still cover the set? Let's consider our coverings separately.

    1. For {Vn}n=3\{V_n\}_{n=3}^\infty, do we need all of the sets? No. We could throw some of the open sets away. So {Vn}n=3\{V_n\}_{n=3}^\infty has a subcover (many subcovers actually). How about {Vn}n=122\{V_n\}_{n=122}^\infty? Does this still cover the set?
    2. What about the cover {(1,2)}\{(1,2)\}? We can't throw away the only element. So the only subcover for {(1,2)}\{(1,2)\} is the open cover itself.
    3. What about the cover {Wx}x[12,1)\{W_x\}_{x\in[\frac{1}{2},1)}? Can I throw away some of these sets? How many can we throw away? So {Wx}\{W_x\} has a subcover {W5/10,W6/10,W7/10,W8/10,W9/10}\{W_{5/10},W_{6/10},W_{7/10},W_{8/10},W_{9/10}\}. Would you agree this is a subcover? Not only is it a subcover but there are only finitely many elements so it is a finite subcover.

    So why do we care so much about open covers? That will become apparent shortly.

  • Example 2: How about the set [0,1][0,1] in R\R (note that by mentioning R\R we are declaring the metric space from which to choose our open sets)? Would you agree it has a cover {Vn}{W0,W1}\{V_n\}\cup\{W_0,W_1\}, where W0W_0 and W1W_1 basically cover the endpoints (W0W_0 goes from 1/10-1/10 to 1/101/10 while W1W_1 goes from 9/109/10 to 11/1011/10. And all the other sets look like before. Would you agree {Vn}{W0,W1}\{V_n\}\cup\{W_0,W_1\} is a cover for [0,1][0,1]? Yes. Do we need all the sets to make the cover? No. Does it have a subcover that's proper? Which ones can we throw away? To clarify, does the cover {Vn}n=3\{V_n\}_{n=3}^\infty have a finite subcover? No, because no matter how far you go you won't, with only finitely many sets, you will not cover everything. If you had only finitely many sets, then there's a largest index, where the largest index might be, say, 22 million. Then V22 millionV_{\text{22 million}} wouldn't cover everything. It covers all the other sets so you can throw them away, but it won't cover the endpoint. So the cover {Vn}n=3\{V_n\}_{n=3}^\infty does not have a finite subcover whereas the cover {Vn}{W0,W1}\{V_n\}\cup\{W_0,W_1\} does. What is one? How about {W0,W1,V11}\{W_0,W_1,V_{11}\}? We are ready now to make our definition for what it means for a set to be compact. With this definition, you should ask yourself why it is saying, in some sense, that such a set is "small."

Compactness

How do we define compactness and what is its significance?

  • Compactness (definition): Say a set KK is compact in XX if every open cover of KK contains a finite subcover. So what is this saying? It's saying that, to show that a set is compact, you want to show that every open cover has a smaller subcover that is, in fact, finite. Or, said another way, to show a set is not compact, means there exists an open cover without no finite subcover. What are some examples? Before going through an example or two, note that the definition of a compact set is not saying that there is a finite cover. Many people think the definition is saying that a set is compact if there is a finite cover. This is clearly not what we are saying because every set has a finite cover. Just take the whole metric space. Isn't that an open set?

  • Examples: Is [12,1)[\frac{1}{2},1) compact? No. Because there is an open cover with no finite subcover, namely {Vn}\{V_n\}. What else is not compact? How about Z\Z in R\R? I claim it is not compact which means you should show me an open cover for Z\Z in R\R that has no finite subcover. Can we think of an open cover of Z\Z with open sets (open intervals) that clearly has no finite subcover? How about covering every integer with a little interval around it? Can you argue why this has no finite subcover? If you take any one away, you can't even remove one, without destroying its covering property (taking one away would necessarily mean an integer was not covered). So Z\Z in R\R is not compact. How about [0,1][0,1]? Does it have a finite subcover? Yes, we saw above that {Vn}{W0,W1}\{V_n\}\cup\{W_0,W_1\} covers [0,1][0,1] and that {W0,W1,V11}\{W_0,W_1,V_{11}\} was a finite subcover of {Vn}{W0,W1}\{V_n\}\cup\{W_0,W_1\}. Does this mean [0,1][0,1] is compact? Not necessarily! Because we need to show that every open cover has a finite subcover. So [0,1][0,1] may be compact, but I'd need to check every open cover. (Or prove a theorem, which is what we will do later.) It's worth mentioning that [12,1)[\frac{1}{2},1) is not compact because there is an open cover with no finite subcover, namely {Vn}\{V_n\}, but that doesn't mean that there couldn't be some open cover with a finite subcover like {W5/10,W6/10,W7/10,W8/10,W9/10}\{W_{5/10},W_{6/10},W_{7/10},W_{8/10},W_{9/10}\}. So to show a set is not compact, it is generally a lot easier because you just have to exhibit an open covering with no finite subcover.

  • Finite sets are compact: So here's a uestion. We said something about compact sets being somehow the next best thing to being finite. It sure would be nice if finite sets were compact. Are finite sets compact? Yes. So here's a theorem: Finite sets are compact. This is actually an example where you can show every open cover has a finite subcover. Consider some open cover {Gα}\{G_\alpha\}. Consider the following picture that has several open sets that cover the finite set:

    Can someone give me an argument why an open cover for a finite set has a finite subcover? Every point could be in lots of sets, but just pick one. And you can pick one for each point. The set would then be covered, and such a covering is both a subcover and finite. So how would we write that? Consider an open cover {Gα}\{G_\alpha\} covering x1,,xNx_1,\ldots,x_N. For all xix_i, choose GαiG_{\alpha_i} (that is, choose one GαG_\alpha) that contains xix_i, where ii is the same index. Then {Gαi}i=1N\{G_{\alpha_i}\}_{i=1}^N covers the set. What else is compact? If we can prove some things, it might give us some intuition as to what compact sets look like. We really have no intuition yet.

  • Compact sets are bounded: To show that compact sets are bounded, we first have to say what we mean by bounded. So remember we are in some metric space. Let's say a set KK is bounded in XX if there is some ball that contains the entire set; that is, KK is bounded if KNr(x)K\subset N_r(x) for some xXx\in X. (The book's definition says that EE is bounded if there is a real number MM and a point qXq\in X such that d(p,q)<Md(p,q)<M for all pEp\in E.) Consider the picture

    where we have a set KK and the ball doesn't have to be centered around any particular point in KK — it could just be in XX. This is a bounded set because it's in a big enough ball. Now let's show, in fact, that compact sets can't be too big. They're small. They're bounded. And this is somehow related to being finite, the next best thing to being finite. Okay so why is it that a compact set is bounded? Well, what do we have? What is the hypothesis now? Let's give the set a name. So here's a proof. Let KK be compact. Then every open cover has a finite subcover. So we can pick any open cover we want and use the fact that it will have a finite subcover. So let's pick a good open cover that will help us show that KK is bounded. What can we do to show that KK is bounded? Can we think of some open balls that cover KK that might be helpful? In some sense, I want to show that the distance between two points in KK can't be too big. So it might be helpful to cover the set KK with a bunch of balls of what radius? Pick one. What if we had balls of radius 1? So let's draw another picture:

    If I had a bunch of balls of radius 1, then that's a lot of them, and I could use the trick we used with {Wx}x[12,1)\{W_x\}_{x\in[\frac{1}{2},1)}. What's compactness going to give you? A cover by finitely many balls of radius 1! Now why would that help you show KK is bounded if there are just finitely many balls of radius 1? Suppose there were now just 17 balls of radius 1 that covered KK. We now claim a ball of radius 17+1=1817+1=18 would cover everything or something like that. So finiteness is now playing a big role here. Because this cover has a finite number of balls that form a subcover, nothing can be more than 17 balls away. And these are all radius 1. So let's write this down.

    Let KK be compact. Let B(x)=N1(x)B(x)=N_1(x), the ball of radius 1. Then {B(x)}xK\{B(x)\}_{x\in K} is an open cover of KK, which is just like the example with Wx=N110W_x=N_{\frac{1}{10}} earlier, where we just had a ball around every single point with a particular radius, namely 110\frac{1}{10}. By compactness of KK, there exists a finite subcover {B(xi)}i=1N\{B(x_i)\}_{i=1}^N. What should I say now? If there were 17 sets now that covered this thing, then what's the bound? What's the center of the ball that we would use? Well, how about any point? How far apart will the other points be from one of the centers if there were 17 balls? Well, at most 17. Another way — would you agree that the set of all pairwise distances is finite? Before moving on, there is a fairly significant objection to the picture we have been working off of thus far: What if KK is disconnected and we had 17 balls that covered KK? That's one of the problems with the crude picture we've been working with thus far:

    We can represent the case when KK is disconnected as follows:

    As indicated above, if there were 17 balls, then you might not have any relationship between some of them (namely the ones that are disconnected in some sense). So that is why we will work out another strategy for this proof because if you try to work out a proof where you do not take account of the fact that KK may be disconnected then your proof will fail for that exact reason or issue. So another way to do this is to look at all possible pairwise distances — how many such distances are there? Finitely many! So I can take the maximum (that number is achieved because we are dealing with a finite set). That maximum is the maximum distance between centers so then how much farther can any other two points be (imagine points on opposite ends of their balls)? The true maximum distance between any two points would be the maximum distance between centers in addition to two radii length, in this case 2 since we are dealing with unit balls. Let's formalize this.

    Let R=max1i,jN{d(xi,xj)}R=\max_{1\leq i,j\leq N}\{d(x_i,x_j)\}, where this maximum exists because the set x1,,xNx_1,\ldots,x_N is finite. Then NR+2(x1)N_{R+2}(x_1) contains all of KK. To actually show that NR+2(x1)N_{R+2}(x_1) contains all of KK, you would use what? What property of metrics is going to come in handy here? The triangle inequality!

  • Recap: So what have we done? We've defined compactness in a very curious way. We have shown that compact sets are somewhat like finite sets. Finite sets are, in fact, compact. Compact sets behave in the same way finite sets do, namely that they are bounded. The concept of compactness is an intrinsic notion of the set and it doesn't matter what metric space you are in.

Compactness as an intrinsic part of a set

How is compactness an intrinsic notion of a set?

  • Motivation: We have this property of a set that we call compactness, and of course we've learned lots of other properties of sets. A set could be open. A set could be closed. One set could be dense in another set. These are all definitions that we've learned for sets in Rn\R^n. But the notion of compactness is actually an intrinsic property to the set, and it doesn't matter what metric space you are in. That's different from some of the other notions.

  • Open sets depending on what set you are in: In R1\R^1, the set (0,1)(0,1) is open. But if we view this set as being embedded in R2\R^2, this set is no longer open. Not every point is an interior point. What's wrong? In R1\R^1, a neighborhood looks like an open interval, but in R2\R^2 a neighborhood looks like a whole disc doesn't it? So the particular set (0,1)(0,1) as a subset of R2\R^2 is no longer open. So we're looking at (0,1)(0,1) as a subset of R2\R^2, namely the subset {(a,0)a(0,1)}\{(a,0)\mid a\in(0,1)\}. So openness actually depends on what set you are in. Compactness does not. Before we see that, we need to see how we relate the notions of openness in one set when it's embedded in a bigger set.

  • Relative open sets: Let's be very careful about what we mean by "open" now. We previously defined what it means for a set to be open, but now let's think a bit about the metric space that we're in. If we have a subset YY of a metric space XX, then would it not be reasonable to think that YY is also a metric space? Yes, whatever the metric is that is being applied in XX can and will be applied to a subset of XX. So we say that YY inherits a metric from XX. So if YXY\subset X, where XX is a metric space, then YY inherits the metric from XX. So if we are going to define what we mean for a set to be open in YY or in XX, then we need to come back to the definition. A set is open if every point is an interior point. That was the definition we had earlier. But what does it mean to be interior? A point is interior if it has an open ball around it that's contained in that metric space. But now we have to worry about which metric space we are talking about. So let's talk about what it means to be an open ball.

    Can you see a situation where YY is a subset of XX where the notion of an open ball in YY and an open ball in XX might be different? How about the following picture:

    The picture above is what an open ball in XX looks like, but what will an open ball in YY look like? Above we have Nr(x)N_r(x) in XX, but what will Nr(x)N_r(x) in YY look like? Will the open ball be smaller? Will it have a smaller radius? No, it will not have a smaller radius, but it's going to be just the stuff inside of YY:

    So the modified picture above with the dashing is Nr(x)N_r(x) in YY. The difference between the pictures should be clear. So now the question remains: What's the connection between general sets that are open, not just open balls, but general sets that are open in YY as opposed to general sets that are open in XX? So now we want to know when a set in YY will be open. Can we give a criterion that would help me decide when a set is open? So here's an example. Suppose we take the following set:

    Is this dashed set open, where the boundary for YY is included? Is this set open in YY? What does it mean to be open in YY? It means that every point is an interior point. Consider the following picture:

    Is the illustrated point an interior point? Yes, because it has a ball around it in YY that's still open. This is the open ball around xx that is in YY. That point is an interior point. What's a point that might not be interior? A point on the edge? Consider the following picture:

    This added point has an open ball around it that's contained — in YY! Are we now convinced that the originally drawn set

    is open in YY? Do you agree that it has neighborhoods, it's just that you forget everything outside, and what remains are all the points in YY a distance rr from xx. So the pictured set is, in fact, open in YY. Is it open in XX? No. But is there a relationship between sets that are open in YY and sets that are open in XX? Yes, the claim is that there is, a very nice criterion in fact. And the criterion is that a set is open in YY if and only if there exists a set in XX

    that is open whose intersection with YY is this given set. We'll give this set a name. We'll call it EE. Before stating the theorem, let's just make an important definition: A set UU is open in YY ("relative to YY") if every point of UU is an interior point of UU. Of course, the key difference here is that the notion of interior means using neighborhoods in YY, using those kinds of funny, possibly half cut off discs. This is no different from the definition we had before; we're just paying particularly close attention to what set we are living in. So the metric space matters for the concept of openness. So here's a theorem:

    Theorem. Suppose EYXE\subset Y\subset X. Then EE is open in YY if and only if E=YGE=Y\cap G for some GG open in XX. (See the picture below.)

    This is a very nice criterion because it allows us to pass between open sets in one space and open sets in a bigger space. Does this seem believable? It's an if and only if so here's a proof idea. One direction should be fairly clear. Would you agree that if you have a set GG then its intersection with YY has got to be open in YY? Why? What does it mean to be open in GG? Well, it means every point has a neighborhood around it in XX that's also in GG. So in YY, what's the neighborhood you're going to use? The same one, but just restricted to YY!

    To say something's an interior point you're referring to a particular set. So the claim is that if xx is interior to GG, then it's interior to EE using possibly cut-off neighborhoods. That's basically using this correspondence between neighborhoods in XX and neighborhoods in YY. So the proof idea in the backwards direction uses the fact that if Nr(x)GN_r(x)\in G then Nr(x)YN_r(x)\cap Y is the neighborhood of xEYx\in E\subset Y.

    What about the forward direction? If a set is open, then that means around every point there's a neighborhood, but possibly a cut-off neighborhood, that's in EE. Can you think of a set GG that would also then be open? Suppose you have a bunch of cut-off neighborhoods. What could you do with those neighborhoods? Include the stuff that it suggests! And then what will the set GG be? Define GG. Union all these neighborhoods! So if I missed a part, then include it:

    So then why is the union of a bunch of open balls open? Well, by definition, because every point now has a neighborhood that shows it's interior. So if EE is open in YY then every point xx has a neighborhood Nrx(x)YEN_{r_x}(x)\subset Y\cap E. Then xENrx(x)\bigcup_{x\in E} N_{r_x}(x) in XX is open. Call it GG. Then we are done.

    The upshot of all of this is that I can tell when a set is open in a smaller space just by seeing if it's the intersection of something from the bigger space that's also open. What we want to do next time is show that if a set KK is compact in YY, then it's equivalent to saying that KK is compact in XX. So compactness really doesn't depend on the metric space that you're in (as opposed to openness which clearly does). To say that a set is small really does not depend on the metric space that you're in. And then when want to show some other analogies with finite sets.