§13 ★ Some Topological Concepts in Metric Spaces
So far we have used the order of heavily, for instance in and . But most of our analysis could have been based on distance alone, which makes it easy to work more generally. Analysis on -dimensional space is important, and has no useful natural order when .
Metric spaces
Section titled “Metric spaces”Let be a set and a function defined for all pairs of elements of satisfying
- D1. for all , and for distinct .
- D2. for all .
- D3. for all .
Such a is a distance function or metric on . A metric space is a set together with a metric; properly speaking it is the pair , since one set can carry several metrics (Exercise 13.1).
My notes(saved)
is a metric on ; Corollary 3.6 gives D3. For any metric, D3 is called the triangle inequality.
The set of all -tuples of reals is -dimensional Euclidean space . Its most familiar metric gives ordinary distance in the plane or in 3-space:
D1 and D2 are obvious; the triangle inequality D3 is not (it follows from the Cauchy–Schwarz inequality).
Try it: balls in three metrics
Section titled “Try it: balls in three metrics”Drag the centre and the pink point. The disc, square and diamond are the balls of radius for , and of Exercise 13.1.
A sequence in a metric space converges to if . It is a Cauchy sequence if for each there is such that implies . is complete if every Cauchy sequence in converges to some element of .
Used in §10
My notes(saved)
“Complete” now seems to have two meanings, but both express that the space has no gaps. Theorem 10.11 says is a complete metric space, and its proof used the Completeness Axiom 4.4. We could instead have taken metric completeness as the axiom and proved the least upper bound property. We did not, because least upper bounds seem more fundamental than Cauchy sequences.
When subscripts are needed for coordinates, we write for a sequence in , with . The metric on is always that of Example 2 unless stated otherwise.
A sequence in converges if and only if each coordinate sequence converges in , for . It is Cauchy in if and only if each is Cauchy in .
Used in Theorem 13.4, Theorem 13.5, Exercise 13.2
My notes(saved)
Proof
The first assertion is Exercise 13.2(b). For the second, note that for and each ,
If is Cauchy, the first inequality in (1) shows each is Cauchy. Conversely, if each is Cauchy and , choose with for . With , the second inequality in (1) gives for .
∎Euclidean -space is complete.
Used in Exercise 13.1
My notes(saved)
Proof
If is Cauchy in , each is Cauchy in by Lemma 13.3, so converges to some by Theorem 10.11. By Lemma 13.3 again, converges to .
∎A set is bounded if there is with for all .
Every bounded sequence in has a convergent subsequence.
Used in §11
My notes(saved)
Proof
Each is bounded in . By Theorem 11.5 we may pass to a subsequence along which converges; then to a further subsequence along which converges, while still converges by Theorem 11.3. After steps every coordinate converges, and the resulting subsequence converges in by Lemma 13.3.
∎Open and closed sets
Section titled “Open and closed sets”Let be a metric space and . A point is interior to if for some , . denotes the set of interior points of . is open in if every point of is interior to , i.e. .
My notes(saved)
One can show (Exercise 13.4):
- is open in (trivial).
- The empty set is open in (trivial).
- The union of any collection of open sets is open.
- The intersection of finitely many open sets is open.
Sometimes a useful notion of convergence comes from no metric at all. The right setting is then a topology: a set in which certain subsets are decreed open, subject only to (i)–(iv). The open sets of a metric form a topology. Concepts defined in terms of open sets, such as those in 13.8, 13.11 and 22.1, are therefore called topological, which explains this section’s title.
A subset of a metric space is closed if its complement is open. Because of 13.7(iii), any intersection of closed sets is closed (Exercise 13.5). The closure of is the intersection of all closed sets containing . The boundary of is ; its points are boundary points of .
My notes(saved)
Let be a subset of a metric space .
- is closed if and only if .
- is closed if and only if it contains the limit of every convergent sequence of points in .
- A point is in if and only if it is the limit of some sequence of points in .
- A point is in the boundary of if and only if it belongs to the closure of both and its complement.
Used in Theorem 13.10, Exercise 13.6, Exercise 13.11, Exercise 13.13, Exercise 13.15
My notes(saved)
Intuitionopen and closed
A set is open when every point in it has some room to move: a small ball around the point stays inside the set. A set is closed when you cannot escape it by taking limits (Proposition 13.9(b)). These are not opposites. is neither open nor closed, while and are both. “Not open” does not mean “closed”.
In , open intervals are open and closed intervals are closed. The interior of is , and the boundary of both is . Every open set in is a union of a disjoint sequence of open intervals (Exercise 13.7). A closed set need not be a disjoint union of closed intervals and points; see Example 5. No interval or with is a disjoint union of two or more closed intervals with more than one point each (Theorem 21.11).
In , open balls are open and closed balls are closed; the boundary of each is the sphere . In , and are open; with they become closed. Many sets are neither: in , or in .
Let be a decreasing sequence of closed, bounded, nonempty sets in . Then is also closed, bounded and nonempty.
Used in §4, Proposition 13.13
My notes(saved)
Proof
Closed and bounded are clear; nonemptiness needs proof. Choose for each . By Bolzano–Weierstrass 13.5, a subsequence converges to some . To show for a fixed : if then , so . Thus lies in and converges to , so by Proposition 13.9(b).
∎The Cantor set is a famous nonempty closed subset of : , where and each is obtained from by removing the open middle third of each of its intervals. The total length of is . Yet is so large that it cannot be listed as a sequence: it is uncountable. Its interior is empty, so equals its boundary.
Intuitionhow much is left of the Cantor set?
The removed intervals have total length , the whole length of , and yet uncountably many points survive. One way to see the survivors: they are exactly the numbers in with a base- expansion that uses only the digits and . Length and number of points measure very different things.
Compactness
Section titled “Compactness”A family of open sets is an open cover of if every point of lies in at least one set of , i.e. . A subcover is a subfamily that still covers . A cover or subcover is finite if it has finitely many sets (the sets themselves may be infinite). is compact if every open cover of has a finite subcover of .
My notes(saved)
This abstract definition is very important in advanced analysis. In , compact sets have a simple description.
Intuitioncompactness turns local into global
Compactness lets you pass from “near each point, something good happens” to “finitely many such neighbourhoods cover everything”, and finitely many things can be handled one at a time (take a or a ). Example 6 below is a typical use. In there is an equivalent form in terms of sequences: is compact exactly when every sequence in has a subsequence converging to a point of . For a closed, bounded set this follows from Bolzano–Weierstrass 13.5 and Proposition 13.9(b). If is unbounded, a sequence running off to infinity has no convergent subsequence. If is not closed, a sequence converging to a point outside has no subsequence with limit in .
A subset of is compact if and only if it is closed and bounded.
My notes(saved)
Proof
Suppose is compact. Let . The family covers , hence , so finitely many cover . If is the largest of them, , so is bounded.
To show is closed, take and let . Each is open and . Finitely many cover , so for some . Then , so is interior to the complement. Hence is open and is closed.
Conversely, suppose is closed and bounded. Then for some . By Exercise 13.12 it suffices to prove compact, which is Proposition 13.13.
∎Common pitfallHeine–Borel is special to ℝᵏ
“Closed and bounded” is not the definition of compact, and in other metric spaces it is not enough. In with the usual distance, is closed and bounded but not compact. The sets are open in and together cover , because is not rational. But any finite collection of them is contained in a single , which misses the rationals in within of . The proof of Theorem 13.12 relies on the completeness of , through Theorem 13.10.
The set above is a -cell: , a -dimensional box. A 2-cell is a closed rectangle. Its diameter is
Cutting each at its midpoint splits into -cells, each of diameter .
Every -cell in is compact.
Used in §11, Theorem 13.12
My notes(saved)
Proof
Suppose an open cover of has no finite subcover, and let be the diameter of . At least one of the half-size cells, call it , cannot be covered by finitely many sets of . Repeating, we get -cells with
By Theorem 13.10, contains a point , which lies in some . Since is open, for some . Then as soon as , contradicting (3) dramatically.
∎Since , all of this applies to .
Let be a nonempty subset of a metric space and define . Then . We show: if is compact and with open, then for some ,
For each there is with
The balls cover , so finitely many do: there are with , writing . Let . If , pick with , and with . Then
so by (2). This proves (1).
Reading alongside Abbott
Abbott’s Chapter 3 covers this material on the real line only: the Cantor set opens the chapter (Section 3.1), then open and closed sets (Section 3.2) and compact sets (Section 3.3). Abbott defines compactness by the sequence property above and proves the open-cover version as part of the Heine–Borel theorem, the reverse of Ross’s order. General metric spaces appear in Abbott only in Section 8.2.
Check your understanding
Section titled “Check your understanding”Take the quiz (3 questions)
Which formula defines a metric on ?
The second gives distance to distinct points with the same first coordinate, and the third can be negative. Both break D1 of Definition 13.1.
Which subset of is compact?
By the Heine–Borel Theorem 13.12, compact means closed and bounded. is not closed, and is not bounded.
Which subset of is closed but not bounded?
The last two miss a limit of their own points, namely , so they are not closed (Proposition 13.9).
Exercises
Section titled “Exercises”For let and .
- Show and are metrics for .
- Show and are complete metrics on .
Hint
(b) , so all three metrics have the same Cauchy sequences and the same convergent sequences.
Solution
- Write , , so . D1 and D2: both and are , vanish exactly when every , i.e. , and are symmetric in . D3: for each , , and taking the maximum over gives . Summing the coordinate inequalities over gives .
- Let be the Euclidean metric. For we have (the middle step because ). Hence So a sequence converges to (or is Cauchy) for one of if and only if it does for the others, since each distance is bounded by a constant multiple of any other. Now is complete for (Theorem 13.4): a - or -Cauchy sequence is -Cauchy, so it converges for to some , and therefore converges to for and as well.
Used in Definition 13.1
My attempt(saved)
- Prove (1) in Lemma 13.3.
- Prove the first assertion in Lemma 13.3.
Solution
- Fix . Since is one term of the sum defining , we get . Also each term satisfies where , so , i.e. .
- Suppose in . By (1), , so each coordinate sequence converges (to ). Conversely, suppose each converges, say to , and let . Given choose with for , and let . For , (1) gives . So .
Used in Lemma 13.3
My attempt(saved)
Let be the set of all bounded sequences and define .
- Show is a metric for .
- Does define a metric for ?
Solution
(b) No: for and the sum is .
Used in Exercise 13.15
My attempt(saved)
Prove (iii) and (iv) in Discussion 13.7.
Hint
(iv): if lies in with balls of radii inside each, use . Explain why this fails for infinitely many sets, e.g. .
Solution
Let be open sets.
(iii) If , then for some , and some ball about lies in . So the union is open.
(iv) Let with open. For each there is with . Let . Then for every , so the intersection is open. For infinitely many sets the minimum of the radii can be : each is open, but is not.
Used in Remark 13.7
My attempt(saved)
- Verify one of De Morgan’s laws: .
- Show that the intersection of any collection of closed sets is closed.
Solution
- For : iff for every iff iff .
- Let be closed subsets of and put , which is open. By (a), . The union is open by 13.7(iii), so the intersection is closed.
Used in Definition 13.8, Exercise 13.6
My attempt(saved)
Prove Proposition 13.9.
Solution
First, an open ball is open: if and , then implies by D3, so .
A characterization. iff every ball meets . Indeed, if some ball misses , then is a closed set containing but not , so . Conversely, if , then is open (the closure is an intersection of closed sets, hence closed by Exercise 13.5), so a ball about lies in and misses .
- If is closed, it is one of the closed sets whose intersection defines , and it is contained in each of them, so . Conversely, if then is an intersection of closed sets, hence closed.
- Suppose is closed, and . If , then is open and contains a ball , but for large , contradicting . So . Conversely, suppose contains the limits of all its convergent sequences, and let . If were not interior to , each ball would contain some ; then and so , a contradiction. Hence is open.
- If , every ball meets by the characterization, so choose in it; then . Conversely, if and , every ball about contains some , so by the characterization.
- By the characterization, iff every ball about contains a point not in iff . Hence iff and .
Used in Exercise 13.8
My attempt(saved)
Show that every open set in is the disjoint union of a finite or infinite sequence of open intervals.
Hint
For in the open set , take the largest open interval in containing . Distinct such intervals are disjoint, and each contains a rational, so there are at most countably many.
Solution
Let be open. For let be the union of all open intervals with . Such exist since is open, and is an open interval (a union of intervals sharing the point is an interval, and it is open as a union of open sets). It contains , lies in , and by construction contains every open interval with these two properties.
If , then is an interval (the two share a point), open, contained in , and contains ; so , and likewise . Therefore . So any two of the intervals are equal or disjoint, and their union is (each lies in ).
Each distinct contains a rational number, and disjoint intervals contain different rationals. Choosing one rational per interval gives a one-to-one map from the family of distinct intervals into , which is countable. So the family is finite or countably infinite, and is the disjoint union of a finite or infinite sequence of open intervals.
My attempt(saved)
- Verify the assertions in the first paragraph of Example 3.
- Verify the assertions in Example 4.
Solution
- is open: if , then and . is closed: its complement is a union of open intervals of the same kind, hence open. Interior: every point of is interior to ; but is not, since every interval about contains points less than (similarly for ). So the interior of is . Boundary: is closed, so its closure is itself and its boundary is . For the interior is and the closure is (it is closed, and are limits of points , of ), so the boundary is again .
- Balls. The open ball is open (shown in the solution of Exercise 13.6 using D3). The closed ball is closed: if , put ; for we get , so the complement is open. Boundary: a point with is the limit of , which lie in the open ball, so the closure of the open ball is the closed ball; and is not interior to the closed ball, since has distance from and tends to . So the interior of the closed ball is the open ball and both sets have boundary . Quadrants. If and , then gives , so is open; the same with radius shows is open. With , the complements and are open by the same argument, so these sets are closed. Neither: is not open ( is not interior) and not closed (). The set is not open ( has nearby points outside it) and not closed ( lies in it but tends to , which does not).
My attempt(saved)
Find the closures of the following sets:
Solution
(a) (b) (c)
My attempt(saved)
Show that the interior of each of the following sets is empty:
- The Cantor set in Example 5
Hint
(b) Every interval contains an irrational (Exercise 4.12). (c) Any interval in lies in for all , so its length is at most for all .
Solution
In each case suppose an interval with lay in the set.
- Every interval contains an irrational number (Exercise 4.12), but every element of is rational. So no interval lies in the set.
- Same: every interval contains an irrational, which is not in .
- If an interval lies in the Cantor set , then for every . The set is a union of closed intervals of length separated by removed open gaps. An interval cannot contain points from two different pieces without containing the gap between them, so lies inside one piece and its length is at most . This holds for every , so the length of is , a contradiction.
My attempt(saved)
Let . Show that is compact if and only if every sequence in has a subsequence converging to a point in .
Solution
By the Heine–Borel Theorem, is compact iff it is closed and bounded.
() Let be compact and a sequence in . It is bounded, so by Bolzano–Weierstrass it has a subsequence converging to some . Since is closed, by Proposition 13.9(b).
() Assume every sequence in has a subsequence converging to a point of . Bounded: if not, pick with ; every subsequence is unbounded, hence not convergent, contradicting the hypothesis. Closed: let converge to . By hypothesis some subsequence converges to a point of ; but every subsequence converges to , so . By Proposition 13.9(b), is closed. Hence is compact.
Used in Exercise 13.14
My attempt(saved)
Let be any metric space.
- Show that if is a closed subset of a compact set , then is compact.
- Show that a finite union of compact sets in is compact.
Hint
(a) Given an open cover of , add the open set to get an open cover of .
Solution
- Let be an open cover of . Since is closed, is open, and covers (points of in are covered by , the others lie in ). By compactness of a finite subfamily covers . Discarding , which contains no point of , leaves a finite subfamily of that covers .
- Let be compact and an open cover of . Then covers each , so some finite covers . The finite family covers the union.
Used in Theorem 13.12
My attempt(saved)
Let be a compact nonempty subset of . Show and belong to .
Solution
A compact subset of is closed and bounded (Heine–Borel), so is a real number. By Exercise 11.11 there is a sequence in converging to (take if ). Since is closed, Proposition 13.9(b) gives . For the infimum, apply the same argument to the compact set , or argue symmetrically.
My attempt(saved)
Let be a compact nonempty subset of and . Show contains points with .
Solution
is bounded, so . For each choose with . By compactness (Exercise 13.11), a subsequence converges to some , and then a further subsequence of converges to some ; relabel so that and along one subsequence. By the triangle inequality , so . But , so these distances also tend to . Hence .
My attempt(saved)
Let be as in Exercise 13.3, and let consist of all with .
- Show is closed and bounded. (A set in a metric space is bounded if for some and .)
- Show is not compact.
Hint
(b) For let , and consider the cover of by all . Let have and for . Distinct are at distance , so no contains two of them.
Solution
- Bounded: with the zero sequence, for . Closed: let and in . For each , , and letting gives . So , and is closed by Proposition 13.9(b).
- The open balls , , cover since . Define by and for . For , . If some contained two of them, say and , then , a contradiction. So each contains at most one , and no finite subfamily can cover the infinitely many distinct points . Thus is closed and bounded but not compact.