Skip to content

§13 ★ Some Topological Concepts in Metric Spaces

So far we have used the order of R\mathbb{R} heavily, for instance in lim sup⁡\limsup and lim inf⁡\liminf. But most of our analysis could have been based on distance alone, which makes it easy to work more generally. Analysis on kk-dimensional space Rk\mathbb{R}^k is important, and Rk\mathbb{R}^k has no useful natural order when k>1k > 1.

13.1 Definition.

Let SS be a set and dd a function defined for all pairs (x,y)(x, y) of elements of SS satisfying

  • D1. d(x,x)=0d(x, x) = 0 for all x∈Sx \in S, and d(x,y)>0d(x, y) > 0 for distinct x,y∈Sx, y \in S.
  • D2. d(x,y)=d(y,x)d(x, y) = d(y, x) for all x,y∈Sx, y \in S.
  • D3. d(x,z)≤d(x,y)+d(y,z)d(x, z) \le d(x, y) + d(y, z) for all x,y,z∈Sx, y, z \in S.

Such a dd is a distance function or metric on SS. A metric space is a set SS together with a metric; properly speaking it is the pair (S,d)(S, d), since one set can carry several metrics (Exercise 13.1).

Example 1.

dist⁡(a,b)=∣a−b∣\operatorname{dist}(a, b) = |a - b| is a metric on R\mathbb{R}; Corollary 3.6 gives D3. For any metric, D3 is called the triangle inequality.

Example 2.

The set of all kk-tuples x=(x1,x2,…,xk)x = (x_1, x_2, \dots, x_k) of reals is kk-dimensional Euclidean space Rk\mathbb{R}^k. Its most familiar metric gives ordinary distance in the plane or in 3-space:

d(x,y)=[∑j=1k(xj−yj)2]1/2for x,y∈Rk.d(x, y) = \left[ \sum_{j=1}^k (x_j - y_j)^2 \right]^{1/2} \qquad\text{for } x, y \in \mathbb{R}^k.

D1 and D2 are obvious; the triangle inequality D3 is not (it follows from the Cauchy–Schwarz inequality).

Drag the centre x0x_0 and the pink point. The disc, square and diamond are the balls of radius rr for dd, d1d_1 and d2d_2 of Exercise 13.1.

Keyboard: Tab to the center or the probe, then use the arrow keys to move it.

Euclidean d (disc)d₁ = max |xⱼ − yⱼ| (square)d₂ = Σ |xⱼ − yⱼ| (diamond)

Distance from the black centre x₀ to the pink point:d = 1.253 < r (inside)d₁ = 1.100 < r (inside)d₂ = 1.700 ≥ r (outside)

Always d₁ ≤ d ≤ d₂ ≤ 2·d₁ in the plane, so each ball contains a smaller ball of each other type. That is why all three metrics give the same open sets and the same convergent sequences.

13.2 Definition.

A sequence (sn)(s_n) in a metric space (S,d)(S, d) converges to s∈Ss \in S if lim⁡n→∞d(sn,s)=0\lim_{n\to\infty} d(s_n, s) = 0. It is a Cauchy sequence if for each ε>0\varepsilon > 0 there is NN such that m,n>Nm, n > N implies d(sm,sn)<εd(s_m, s_n) < \varepsilon. (S,d)(S, d) is complete if every Cauchy sequence in SS converges to some element of SS.

Used in §10

“Complete” now seems to have two meanings, but both express that the space has no gaps. Theorem 10.11 says (R,dist⁡)(\mathbb{R}, \operatorname{dist}) 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 (x(n))(x^{(n)}) for a sequence in Rk\mathbb{R}^k, with x(n)=(x1(n),x2(n),…,xk(n))x^{(n)} = (x_1^{(n)}, x_2^{(n)}, \dots, x_k^{(n)}). The metric on Rk\mathbb{R}^k is always that of Example 2 unless stated otherwise.

13.3 Lemma.

A sequence (x(n))(x^{(n)}) in Rk\mathbb{R}^k converges if and only if each coordinate sequence (xj(n))(x_j^{(n)}) converges in R\mathbb{R}, for j=1,…,kj = 1, \dots, k. It is Cauchy in Rk\mathbb{R}^k if and only if each (xj(n))(x_j^{(n)}) is Cauchy in R\mathbb{R}.

Used in Theorem 13.4, Theorem 13.5, Exercise 13.2

Proof

The first assertion is Exercise 13.2(b). For the second, note that for x,y∈Rkx, y \in \mathbb{R}^k and each jj,

∣xj−yj∣≤d(x,y)≤k max⁡{∣xj−yj∣:j=1,…,k}.(1)|x_j - y_j| \le d(x, y) \le \sqrt{k}\, \max\{|x_j - y_j| : j = 1, \dots, k\}. \tag{1}

If (x(n))(x^{(n)}) is Cauchy, the first inequality in (1) shows each (xj(n))(x_j^{(n)}) is Cauchy. Conversely, if each (xj(n))(x_j^{(n)}) is Cauchy and ε>0\varepsilon > 0, choose NjN_j with ∣xj(m)−xj(n)∣<εk|x_j^{(m)} - x_j^{(n)}| < \frac{\varepsilon}{\sqrt k} for m,n>Njm, n > N_j. With N=max⁡{N1,…,Nk}N = \max\{N_1, \dots, N_k\}, the second inequality in (1) gives d(x(m),x(n))<εd(x^{(m)}, x^{(n)}) < \varepsilon for m,n>Nm, n > N.

∎
13.4 Theorem.

Euclidean kk-space Rk\mathbb{R}^k is complete.

Used in Exercise 13.1

Proof

If (x(n))(x^{(n)}) is Cauchy in Rk\mathbb{R}^k, each (xj(n))(x_j^{(n)}) is Cauchy in R\mathbb{R} by Lemma 13.3, so converges to some xjx_j by Theorem 10.11. By Lemma 13.3 again, (x(n))(x^{(n)}) converges to x=(x1,…,xk)x = (x_1, \dots, x_k).

∎

A set S⊆RkS \subseteq \mathbb{R}^k is bounded if there is M>0M > 0 with max⁡{∣xj∣:j=1,…,k}≤M\max\{|x_j| : j = 1, \dots, k\} \le M for all x∈Sx \in S.

13.5 Bolzano–Weierstrass Theorem.

Every bounded sequence in Rk\mathbb{R}^k has a convergent subsequence.

Used in §11

Proof

Each (xj(n))(x_j^{(n)}) is bounded in R\mathbb{R}. By Theorem 11.5 we may pass to a subsequence along which (x1(n))(x_1^{(n)}) converges; then to a further subsequence along which (x2(n))(x_2^{(n)}) converges, while (x1(n))(x_1^{(n)}) still converges by Theorem 11.3. After kk steps every coordinate converges, and the resulting subsequence converges in Rk\mathbb{R}^k by Lemma 13.3.

∎
13.6 Definition.

Let (S,d)(S, d) be a metric space and E⊆SE \subseteq S. A point s0∈Es_0 \in E is interior to EE if for some r>0r > 0, {s∈S:d(s,s0)<r}⊆E\{s \in S : d(s, s_0) < r\} \subseteq E. E∘E^\circ denotes the set of interior points of EE. EE is open in SS if every point of EE is interior to EE, i.e. E=E∘E = E^\circ.

13.7 Discussion.

One can show (Exercise 13.4):

  1. SS is open in SS (trivial).
  2. The empty set ∅\varnothing is open in SS (trivial).
  3. The union of any collection of open sets is open.
  4. 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.

13.8 Definition.

A subset EE of a metric space (S,d)(S, d) is closed if its complement S∖ES \setminus E is open. Because of 13.7(iii), any intersection of closed sets is closed (Exercise 13.5). The closure E−E^- of EE is the intersection of all closed sets containing EE. The boundary of EE is E−∖E∘E^- \setminus E^\circ; its points are boundary points of EE.

13.9 Proposition.

Let EE be a subset of a metric space (S,d)(S, d).

  1. EE is closed if and only if E=E−E = E^-.
  2. EE is closed if and only if it contains the limit of every convergent sequence of points in EE.
  3. A point is in E−E^- if and only if it is the limit of some sequence of points in EE.
  4. A point is in the boundary of EE if and only if it belongs to the closure of both EE and its complement.

Used in Theorem 13.10, Exercise 13.6, Exercise 13.11, Exercise 13.13, Exercise 13.15

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. [0,1)[0, 1) is neither open nor closed, while R\mathbb{R} and ∅\varnothing are both. “Not open” does not mean “closed”.

Example 3.

In R\mathbb{R}, open intervals (a,b)(a, b) are open and closed intervals [a,b][a, b] are closed. The interior of [a,b][a, b] is (a,b)(a, b), and the boundary of both is {a,b}\{a, b\}. Every open set in R\mathbb{R} 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 (a,b)(a, b) or [a,b][a, b] with a<ba < b is a disjoint union of two or more closed intervals with more than one point each (Theorem 21.11).

Example 4.

In Rk\mathbb{R}^k, open balls {x:d(x,x0)<r}\{x : d(x, x_0) < r\} are open and closed balls {x:d(x,x0)≤r}\{x : d(x, x_0) \le r\} are closed; the boundary of each is the sphere {x:d(x,x0)=r}\{x : d(x, x_0) = r\}. In R2\mathbb{R}^2, {(x1,x2):x1>0}\{(x_1, x_2) : x_1 > 0\} and {(x1,x2):x1>0, x2>0}\{(x_1, x_2) : x_1 > 0,\ x_2 > 0\} are open; with ≥\ge they become closed. Many sets are neither: [0,1)[0, 1) in R\mathbb{R}, or {(x1,x2):x1>0, x2≥0}\{(x_1, x_2) : x_1 > 0,\ x_2 \ge 0\} in R2\mathbb{R}^2.

13.10 Theorem.

Let (Fn)(F_n) be a decreasing sequence F1⊇F2⊇⋯F_1 \supseteq F_2 \supseteq \cdots of closed, bounded, nonempty sets in Rk\mathbb{R}^k. Then F=⋂n=1∞FnF = \bigcap_{n=1}^\infty F_n is also closed, bounded and nonempty.

Used in §4, Proposition 13.13

Proof

Closed and bounded are clear; nonemptiness needs proof. Choose xn∈Fnx_n \in F_n for each nn. By Bolzano–Weierstrass 13.5, a subsequence (xnm)(x_{n_m}) converges to some x0∈Rkx_0 \in \mathbb{R}^k. To show x0∈Fn0x_0 \in F_{n_0} for a fixed n0n_0: if m≥n0m \ge n_0 then nm≥n0n_m \ge n_0, so xnm∈Fnm⊆Fn0x_{n_m} \in F_{n_m} \subseteq F_{n_0}. Thus (xnm)m≥n0(x_{n_m})_{m \ge n_0} lies in Fn0F_{n_0} and converges to x0x_0, so x0∈Fn0x_0 \in F_{n_0} by Proposition 13.9(b).

∎
Example 5.

The Cantor set is a famous nonempty closed subset of R\mathbb{R}: F=⋂n=1∞FnF = \bigcap_{n=1}^\infty F_n, where F1=[0,1]F_1 = [0, 1] and each Fn+1F_{n+1} is obtained from FnF_n by removing the open middle third of each of its intervals. The total length of FnF_n is (23)n−1→0\left(\frac23\right)^{n-1} \to 0. Yet FF is so large that it cannot be listed as a sequence: it is uncountable. Its interior is empty, so FF equals its boundary.

F1F2F3F4

F4 is 8 closed intervals of length 3−3, total length (2/3)3 ≈ 0.2963. The total length tends to 0, yet the intersection is uncountable.

Intuitionhow much is left of the Cantor set?

The removed intervals have total length 13+29+427+⋯=1\frac13 + \frac29 + \frac4{27} + \cdots = 1, the whole length of [0,1][0, 1], and yet uncountably many points survive. One way to see the survivors: they are exactly the numbers in [0,1][0, 1] with a base-33 expansion that uses only the digits 00 and 22. Length and number of points measure very different things.

13.11 Definition.

A family U\mathcal{U} of open sets is an open cover of EE if every point of EE lies in at least one set of U\mathcal{U}, i.e. E⊆⋃{U:U∈U}E \subseteq \bigcup\{U : U \in \mathcal{U}\}. A subcover is a subfamily that still covers EE. A cover or subcover is finite if it has finitely many sets (the sets themselves may be infinite). EE is compact if every open cover of EE has a finite subcover of EE.

This abstract definition is very important in advanced analysis. In Rk\mathbb{R}^k, 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 max⁡\max or a min⁡\min). Example 6 below is a typical use. In Rk\mathbb{R}^k there is an equivalent form in terms of sequences: EE is compact exactly when every sequence in EE has a subsequence converging to a point of EE. For a closed, bounded set this follows from Bolzano–Weierstrass 13.5 and Proposition 13.9(b). If EE is unbounded, a sequence running off to infinity has no convergent subsequence. If EE is not closed, a sequence converging to a point outside EE has no subsequence with limit in EE.

13.12 Heine–Borel Theorem.

A subset EE of Rk\mathbb{R}^k is compact if and only if it is closed and bounded.

Proof

Suppose EE is compact. Let Um={x∈Rk:max⁡j∣xj∣<m}U_m = \{x \in \mathbb{R}^k : \max_j |x_j| < m\}. The family {Um}\{U_m\} covers Rk\mathbb{R}^k, hence EE, so finitely many UmU_m cover EE. If Um0U_{m_0} is the largest of them, E⊆Um0E \subseteq U_{m_0}, so EE is bounded.

To show EE is closed, take x0∈Rk∖Ex_0 \in \mathbb{R}^k \setminus E and let Vm={x:d(x,x0)>1m}V_m = \{x : d(x, x_0) > \frac1m\}. Each VmV_m is open and ⋃mVm=Rk∖{x0}⊇E\bigcup_m V_m = \mathbb{R}^k \setminus \{x_0\} \supseteq E. Finitely many VmV_m cover EE, so E⊆Vm0E \subseteq V_{m_0} for some m0m_0. Then {x:d(x,x0)<1m0}⊆Rk∖E\{x : d(x, x_0) < \frac1{m_0}\} \subseteq \mathbb{R}^k \setminus E, so x0x_0 is interior to the complement. Hence Rk∖E\mathbb{R}^k \setminus E is open and EE is closed.

Conversely, suppose EE is closed and bounded. Then E⊆F={x:∣xj∣≤m for all j}E \subseteq F = \{x : |x_j| \le m \text{ for all } j\} for some mm. By Exercise 13.12 it suffices to prove FF 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 Q\mathbb{Q} with the usual distance, E={r∈Q:0≤r≤2}E = \{r \in \mathbb{Q} : 0 \le r \le 2\} is closed and bounded but not compact. The sets Un={r∈Q:∣r−2∣>1n}U_n = \{r \in \mathbb{Q} : |r - \sqrt2| > \frac1n\} are open in Q\mathbb{Q} and together cover EE, because 2\sqrt2 is not rational. But any finite collection of them is contained in a single UNU_N, which misses the rationals in EE within 1N\frac1N of 2\sqrt2. The proof of Theorem 13.12 relies on the completeness of Rk\mathbb{R}^k, through Theorem 13.10.

The set FF above is a kk-cell: F=[a1,b1]×[a2,b2]×⋯×[ak,bk]F = [a_1, b_1] \times [a_2, b_2] \times \cdots \times [a_k, b_k], a kk-dimensional box. A 2-cell is a closed rectangle. Its diameter is

δ=[∑j=1k(bj−aj)2]1/2=sup⁡{d(x,y):x,y∈F}.\delta = \left[\sum_{j=1}^k (b_j - a_j)^2\right]^{1/2} = \sup\{d(x, y) : x, y \in F\}.

Cutting each [aj,bj][a_j, b_j] at its midpoint splits FF into 2k2^k kk-cells, each of diameter δ2\frac\delta2.

13.13 Proposition.

Every kk-cell FF in Rk\mathbb{R}^k is compact.

Used in §11, Theorem 13.12

Proof

Suppose an open cover U\mathcal{U} of FF has no finite subcover, and let δ\delta be the diameter of FF. At least one of the 2k2^k half-size cells, call it F1F_1, cannot be covered by finitely many sets of U\mathcal{U}. Repeating, we get kk-cells with

F1⊇F2⊇F3⊇⋯ ;(1)F_1 \supseteq F_2 \supseteq F_3 \supseteq \cdots; \tag{1}Fn has diameter δ⋅2−n;(2)F_n \text{ has diameter } \delta \cdot 2^{-n}; \tag{2}Fn cannot be covered by finitely many sets from U.(3)F_n \text{ cannot be covered by finitely many sets from } \mathcal{U}. \tag{3}

By Theorem 13.10, ⋂Fn\bigcap F_n contains a point x0x_0, which lies in some U0∈UU_0 \in \mathcal{U}. Since U0U_0 is open, {x:d(x,x0)<r}⊆U0\{x : d(x, x_0) < r\} \subseteq U_0 for some r>0r > 0. Then Fn⊆U0F_n \subseteq U_0 as soon as δ⋅2−n<r\delta \cdot 2^{-n} < r, contradicting (3) dramatically.

∎

Since R=R1\mathbb{R} = \mathbb{R}^1, all of this applies to R\mathbb{R}.

Example 6.

Let EE be a nonempty subset of a metric space (S,d)(S, d) and define d(E,x)=inf⁡{d(y,x):y∈E}d(E, x) = \inf\{d(y, x) : y \in E\}. Then ∣d(E,x1)−d(E,x2)∣≤d(x1,x2)|d(E, x_1) - d(E, x_2)| \le d(x_1, x_2). We show: if EE is compact and E⊆UE \subseteq U with UU open, then for some δ>0\delta > 0,

{x∈S:d(E,x)<δ}⊆U.(1)\{x \in S : d(E, x) < \delta\} \subseteq U. \tag{1}

For each x∈Ex \in E there is rx>0r_x > 0 with

{y∈S:d(y,x)<rx}⊆U.(2)\{y \in S : d(y, x) < r_x\} \subseteq U. \tag{2}

The balls {y:d(y,x)<rx/2}\{y : d(y, x) < r_x/2\} cover EE, so finitely many do: there are x1,…,xn∈Ex_1, \dots, x_n \in E with E⊆⋃k=1n{y:d(y,xk)<rk2}E \subseteq \bigcup_{k=1}^n \{y : d(y, x_k) < \frac{r_k}{2}\}, writing rk=rxkr_k = r_{x_k}. Let δ=12min⁡{r1,…,rn}\delta = \frac12\min\{r_1, \dots, r_n\}. If d(E,x)<δd(E, x) < \delta, pick y∈Ey \in E with d(y,x)<δd(y, x) < \delta, and kk with d(y,xk)<rk2d(y, x_k) < \frac{r_k}{2}. Then

d(x,xk)≤d(x,y)+d(y,xk)<δ+rk2≤rk2+rk2=rk,d(x, x_k) \le d(x, y) + d(y, x_k) < \delta + \frac{r_k}2 \le \frac{r_k}2 + \frac{r_k}2 = r_k,

so x∈Ux \in U 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.

Take the quiz (3 questions)

Which formula defines a metric on R2\mathbb{R}^2?

Which subset of R\mathbb{R} is compact?

Which subset of R\mathbb{R} is closed but not bounded?

Exercise 13.1

For x,y∈Rkx, y \in \mathbb{R}^k let d1(x,y)=max⁡{∣xj−yj∣:j=1,…,k}d_1(x, y) = \max\{|x_j - y_j| : j = 1, \dots, k\} and d2(x,y)=∑j=1k∣xj−yj∣d_2(x, y) = \sum_{j=1}^k |x_j - y_j|.

  1. Show d1d_1 and d2d_2 are metrics for Rk\mathbb{R}^k.
  2. Show d1d_1 and d2d_2 are complete metrics on Rk\mathbb{R}^k.
Hint

(b) d1(x,y)≤d(x,y)≤d2(x,y)≤k d1(x,y)d_1(x, y) \le d(x, y) \le d_2(x, y) \le k\, d_1(x, y), so all three metrics have the same Cauchy sequences and the same convergent sequences.

Solution
  1. Write aj=xj−yja_j = x_j - y_j, bj=yj−zjb_j = y_j - z_j, so xj−zj=aj+bjx_j - z_j = a_j + b_j. D1 and D2: both d1d_1 and d2d_2 are ≥0\ge 0, vanish exactly when every ∣xj−yj∣=0|x_j - y_j| = 0, i.e. x=yx = y, and are symmetric in x,yx, y. D3: for each jj, ∣xj−zj∣≤∣xj−yj∣+∣yj−zj∣≤d1(x,y)+d1(y,z)|x_j - z_j| \le |x_j - y_j| + |y_j - z_j| \le d_1(x,y) + d_1(y,z), and taking the maximum over jj gives d1(x,z)≤d1(x,y)+d1(y,z)d_1(x,z) \le d_1(x,y) + d_1(y,z). Summing the coordinate inequalities over jj gives d2(x,z)≤d2(x,y)+d2(y,z)d_2(x,z) \le d_2(x,y) + d_2(y,z).
  2. Let dd be the Euclidean metric. For a∈Rka \in \mathbb{R}^k we have max⁡∣aj∣≤(∑aj2)1/2≤∑∣aj∣≤kmax⁡∣aj∣\max|a_j| \le \bigl(\sum a_j^2\bigr)^{1/2} \le \sum|a_j| \le k\max|a_j| (the middle step because ∑aj2≤(∑∣aj∣)2\sum a_j^2 \le (\sum|a_j|)^2). Hence d1≤d≤d2≤k d1.d_1 \le d \le d_2 \le k\,d_1 . So a sequence converges to xx (or is Cauchy) for one of d1,d,d2d_1, d, d_2 if and only if it does for the others, since each distance is bounded by a constant multiple of any other. Now Rk\mathbb{R}^k is complete for dd (Theorem 13.4): a d1d_1- or d2d_2-Cauchy sequence is dd-Cauchy, so it converges for dd to some xx, and therefore converges to xx for d1d_1 and d2d_2 as well.

Tags: StandardOpen, closed, compact

Used in Definition 13.1

Exercise 13.2
  1. Prove (1) in Lemma 13.3.
  2. Prove the first assertion in Lemma 13.3.
Solution
  1. Fix jj. Since (xj−yj)2(x_j - y_j)^2 is one term of the sum defining d(x,y)2d(x,y)^2, we get ∣xj−yj∣≤d(x,y)|x_j - y_j| \le d(x,y). Also each term satisfies (xi−yi)2≤m2(x_i - y_i)^2 \le m^2 where m=max⁡i∣xi−yi∣m = \max_i|x_i - y_i|, so d(x,y)2≤km2d(x,y)^2 \le km^2, i.e. d(x,y)≤k md(x,y) \le \sqrt k\, m.
  2. Suppose x(n)→xx^{(n)} \to x in Rk\mathbb{R}^k. By (1), ∣xj(n)−xj∣≤d(x(n),x)→0|x_j^{(n)} - x_j| \le d(x^{(n)}, x) \to 0, so each coordinate sequence converges (to xjx_j). Conversely, suppose each (xj(n))(x_j^{(n)}) converges, say to xjx_j, and let x=(x1,…,xk)x = (x_1, \dots, x_k). Given ε>0\varepsilon > 0 choose NjN_j with ∣xj(n)−xj∣<ε/k|x_j^{(n)} - x_j| < \varepsilon/\sqrt k for n>Njn > N_j, and let N=max⁡jNjN = \max_j N_j. For n>Nn > N, (1) gives d(x(n),x)≤kmax⁡j∣xj(n)−xj∣<εd(x^{(n)}, x) \le \sqrt k \max_j|x_j^{(n)} - x_j| < \varepsilon. So x(n)→xx^{(n)} \to x.

Tags: StandardOpen, closed, compact

Used in Lemma 13.3

Exercise 13.3

Let BB be the set of all bounded sequences x=(x1,x2,… )x = (x_1, x_2, \dots) and define d(x,y)=sup⁡{∣xj−yj∣:j=1,2,… }d(x, y) = \sup\{|x_j - y_j| : j = 1, 2, \dots\}.

  1. Show dd is a metric for BB.
  2. Does d∗(x,y)=∑j=1∞∣xj−yj∣d^*(x, y) = \sum_{j=1}^\infty |x_j - y_j| define a metric for BB?
Solution

(b) No: for x=(1,1,1,… )x = (1, 1, 1, \dots) and y=(0,0,0,… )y = (0, 0, 0, \dots) the sum is +∞+\infty.

Tags: StandardOpen, closed, compact

Used in Exercise 13.15

Exercise 13.4

Prove (iii) and (iv) in Discussion 13.7.

Hint

(iv): if s0s_0 lies in U1∩⋯∩UnU_1 \cap \cdots \cap U_n with balls of radii r1,…,rnr_1, \dots, r_n inside each, use r=min⁡rir = \min r_i. Explain why this fails for infinitely many sets, e.g. ⋂n(−1n,1n)={0}\bigcap_n (-\frac1n, \frac1n) = \{0\}.

Solution

Let {Uα}\{U_\alpha\} be open sets.

(iii) If s0∈⋃αUαs_0 \in \bigcup_\alpha U_\alpha, then s0∈Uαs_0 \in U_\alpha for some α\alpha, and some ball about s0s_0 lies in Uα⊆⋃UαU_\alpha \subseteq \bigcup U_\alpha. So the union is open.

(iv) Let s0∈U1∩⋯∩Uns_0 \in U_1 \cap \cdots \cap U_n with UiU_i open. For each ii there is ri>0r_i > 0 with B(s0,ri)⊆UiB(s_0, r_i) \subseteq U_i. Let r=min⁡{r1,…,rn}>0r = \min\{r_1, \dots, r_n\} > 0. Then B(s0,r)⊆UiB(s_0, r) \subseteq U_i for every ii, so the intersection is open. For infinitely many sets the minimum of the radii can be 00: each (−1n,1n)(-\frac1n, \frac1n) is open, but ⋂n(−1n,1n)={0}\bigcap_n(-\frac1n, \frac1n) = \{0\} is not.

Tags: StandardOpen, closed, compact

Used in Remark 13.7

Exercise 13.5
  1. Verify one of De Morgan’s laws: ⋂{S∖U:U∈U}=S∖⋃{U:U∈U}\bigcap\{S \setminus U : U \in \mathcal{U}\} = S \setminus \bigcup\{U : U \in \mathcal{U}\}.
  2. Show that the intersection of any collection of closed sets is closed.
Solution
  1. For x∈Sx \in S: x∈⋂U(S∖U)x \in \bigcap_{U}(S \setminus U) iff x∉Ux \notin U for every U∈UU \in \mathcal{U} iff x∉⋃UUx \notin \bigcup_{U}U iff x∈S∖⋃UUx \in S \setminus \bigcup_U U.
  2. Let FαF_\alpha be closed subsets of SS and put Uα=S∖FαU_\alpha = S \setminus F_\alpha, which is open. By (a), ⋂αFα=⋂α(S∖Uα)=S∖⋃αUα\bigcap_\alpha F_\alpha = \bigcap_\alpha(S \setminus U_\alpha) = S \setminus \bigcup_\alpha U_\alpha. The union ⋃αUα\bigcup_\alpha U_\alpha is open by 13.7(iii), so the intersection is closed.

Tags: StandardOpen, closed, compact

Used in Definition 13.8, Exercise 13.6

Exercise 13.6

Prove Proposition 13.9.

Solution

First, an open ball B(s,r)={t:d(t,s)<r}B(s,r) = \{t : d(t,s) < r\} is open: if t∈B(s,r)t \in B(s,r) and ρ=r−d(s,t)>0\rho = r - d(s,t) > 0, then d(u,t)<ρd(u,t) < \rho implies d(u,s)<rd(u,s) < r by D3, so B(t,ρ)⊆B(s,r)B(t,\rho) \subseteq B(s,r).

A characterization. s∈E−s \in E^- iff every ball B(s,r)B(s,r) meets EE. Indeed, if some ball B(s,r)B(s,r) misses EE, then S∖B(s,r)S \setminus B(s,r) is a closed set containing EE but not ss, so s∉E−s \notin E^-. Conversely, if s∉E−s \notin E^-, then S∖E−S \setminus E^- is open (the closure is an intersection of closed sets, hence closed by Exercise 13.5), so a ball about ss lies in S∖E−S \setminus E^- and misses EE.

  1. If EE is closed, it is one of the closed sets whose intersection defines E−E^-, and it is contained in each of them, so E−=EE^- = E. Conversely, if E=E−E = E^- then EE is an intersection of closed sets, hence closed.
  2. Suppose EE is closed, sn∈Es_n \in E and sn→ss_n \to s. If s∉Es \notin E, then S∖ES \setminus E is open and contains a ball B(s,r)B(s,r), but sn∈B(s,r)s_n \in B(s,r) for large nn, contradicting sn∈Es_n \in E. So s∈Es \in E. Conversely, suppose EE contains the limits of all its convergent sequences, and let s∈S∖Es \in S \setminus E. If ss were not interior to S∖ES \setminus E, each ball B(s,1n)B(s, \frac1n) would contain some sn∈Es_n \in E; then sn→ss_n \to s and so s∈Es \in E, a contradiction. Hence S∖ES \setminus E is open.
  3. If s∈E−s \in E^-, every ball B(s,1n)B(s, \frac1n) meets EE by the characterization, so choose sn∈Es_n \in E in it; then sn→ss_n \to s. Conversely, if sn∈Es_n \in E and sn→ss_n \to s, every ball about ss contains some sn∈Es_n \in E, so s∈E−s \in E^- by the characterization.
  4. By the characterization, s∉E∘s \notin E^\circ iff every ball about ss contains a point not in EE iff s∈(S∖E)−s \in (S \setminus E)^-. Hence s∈E−∖E∘s \in E^- \setminus E^\circ iff s∈E−s \in E^- and s∈(S∖E)−s \in (S\setminus E)^-.

Tags: StandardOpen, closed, compact

Used in Exercise 13.8

Exercise 13.7

Show that every open set in R\mathbb{R} is the disjoint union of a finite or infinite sequence of open intervals.

Hint

For xx in the open set UU, take the largest open interval in UU containing xx. Distinct such intervals are disjoint, and each contains a rational, so there are at most countably many.

Solution

Let U⊆RU \subseteq \mathbb{R} be open. For x∈Ux \in U let IxI_x be the union of all open intervals JJ with x∈J⊆Ux \in J \subseteq U. Such JJ exist since UU is open, and IxI_x is an open interval (a union of intervals sharing the point xx is an interval, and it is open as a union of open sets). It contains xx, lies in UU, and by construction contains every open interval with these two properties.

If Ix∩Iy≠∅I_x \cap I_y \ne \varnothing, then Ix∪IyI_x \cup I_y is an interval (the two share a point), open, contained in UU, and contains xx; so Ix∪Iy⊆IxI_x \cup I_y \subseteq I_x, and likewise ⊆Iy\subseteq I_y. Therefore Ix=IyI_x = I_y. So any two of the intervals IxI_x are equal or disjoint, and their union is UU (each xx lies in IxI_x).

Each distinct IxI_x 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 Q\mathbb{Q}, which is countable. So the family is finite or countably infinite, and UU is the disjoint union of a finite or infinite sequence of open intervals.

Tags: ChallengeOpen, closed, compact

Exercise 13.8
  1. Verify the assertions in the first paragraph of Example 3.
  2. Verify the assertions in Example 4.
Solution
  1. (a,b)(a,b) is open: if x∈(a,b)x \in (a,b), then r=min⁡{x−a,b−x}>0r = \min\{x - a, b - x\} > 0 and (x−r,x+r)⊆(a,b)(x - r, x + r) \subseteq (a,b). [a,b][a,b] is closed: its complement (−∞,a)∪(b,∞)(-\infty, a) \cup (b, \infty) is a union of open intervals of the same kind, hence open. Interior: every point of (a,b)(a,b) is interior to [a,b][a,b]; but aa is not, since every interval about aa contains points less than aa (similarly for bb). So the interior of [a,b][a,b] is (a,b)(a,b). Boundary: [a,b][a,b] is closed, so its closure is itself and its boundary is [a,b]∖(a,b)={a,b}[a,b] \setminus (a,b) = \{a,b\}. For (a,b)(a,b) the interior is (a,b)(a,b) and the closure is [a,b][a,b] (it is closed, and a,ba, b are limits of points a+b−ana + \frac{b-a}{n}, b−b−anb - \frac{b-a}{n} of (a,b)(a,b)), so the boundary is again {a,b}\{a,b\}.
  2. Balls. The open ball B(x0,r)B(x_0,r) is open (shown in the solution of Exercise 13.6 using D3). The closed ball {d(x,x0)≤r}\{d(x,x_0) \le r\} is closed: if d(x,x0)>rd(x,x_0) > r, put ρ=d(x,x0)−r\rho = d(x,x_0) - r; for d(y,x)<ρd(y,x) < \rho we get d(y,x0)≥d(x,x0)−d(x,y)>rd(y,x_0) \ge d(x,x_0) - d(x,y) > r, so the complement is open. Boundary: a point xx with d(x,x0)=rd(x,x_0) = r is the limit of x0+(1−1n)(x−x0)x_0 + (1 - \frac1n)(x - x_0), which lie in the open ball, so the closure of the open ball is the closed ball; and xx is not interior to the closed ball, since x+1n(x−x0)x + \frac1n(x - x_0) has distance r(1+1n)>rr(1 + \frac1n) > r from x0x_0 and tends to xx. So the interior of the closed ball is the open ball and both sets have boundary {d(x,x0)=r}\{d(x,x_0) = r\}. Quadrants. If x1>0x_1 > 0 and d(x,y)<x1d(x,y) < x_1, then ∣y1−x1∣≤d(x,y)<x1|y_1 - x_1| \le d(x,y) < x_1 gives y1>0y_1 > 0, so {x1>0}\{x_1 > 0\} is open; the same with radius min⁡{x1,x2}\min\{x_1, x_2\} shows {x1>0,x2>0}\{x_1 > 0, x_2 > 0\} is open. With ≥\ge, the complements {x1<0}\{x_1 < 0\} and {x1<0}∪{x2<0}\{x_1 < 0\} \cup \{x_2 < 0\} are open by the same argument, so these sets are closed. Neither: [0,1)[0,1) is not open (00 is not interior) and not closed (1−1n→1∉[0,1)1 - \frac1n \to 1 \notin [0,1)). The set {x1>0,x2≥0}\{x_1 > 0, x_2 \ge 0\} is not open ((1,0)(1,0) has nearby points (1,−ε)(1,-\varepsilon) outside it) and not closed ((1n,0)(\frac1n, 0) lies in it but tends to (0,0)(0,0), which does not).

Tags: Warm-upOpen, closed, compact

Exercise 13.9

Find the closures of the following sets:

  1. {1n:n∈N}\{\frac1n : n \in \mathbb{N}\}
  2. Q\mathbb{Q}
  3. {r∈Q:r2<2}\{r \in \mathbb{Q} : r^2 < 2\}
Solution

(a) {1n:n∈N}∪{0}\{\frac1n : n \in \mathbb{N}\} \cup \{0\} (b) R\mathbb{R} (c) [−2,2][-\sqrt2, \sqrt2]

Tags: Warm-upOpen, closed, compactComputation

Exercise 13.10

Show that the interior of each of the following sets is empty:

  1. {1n:n∈N}\{\frac1n : n \in \mathbb{N}\}
  2. Q\mathbb{Q}
  3. The Cantor set in Example 5
Hint

(b) Every interval contains an irrational (Exercise 4.12). (c) Any interval in FF lies in FnF_n for all nn, so its length is at most 3−(n−1)3^{-(n-1)} for all nn.

Solution

In each case suppose an interval (c−r,c+r)(c - r, c + r) with r>0r > 0 lay in the set.

  1. Every interval contains an irrational number (Exercise 4.12), but every element of {1n}\{\frac1n\} is rational. So no interval lies in the set.
  2. Same: every interval contains an irrational, which is not in Q\mathbb{Q}.
  3. If an interval II lies in the Cantor set FF, then I⊆FnI \subseteq F_n for every nn. The set FnF_n is a union of closed intervals of length 3−(n−1)3^{-(n-1)} separated by removed open gaps. An interval cannot contain points from two different pieces without containing the gap between them, so II lies inside one piece and its length is at most 3−(n−1)3^{-(n-1)}. This holds for every nn, so the length of II is 00, a contradiction.

Tags: Warm-upOpen, closed, compact

Exercise 13.11

Let E⊆RkE \subseteq \mathbb{R}^k. Show that EE is compact if and only if every sequence in EE has a subsequence converging to a point in EE.

Solution

By the Heine–Borel Theorem, EE is compact iff it is closed and bounded.

(⇒\Rightarrow) Let EE be compact and (x(n))(x^{(n)}) a sequence in EE. It is bounded, so by Bolzano–Weierstrass it has a subsequence converging to some x∈Rkx \in \mathbb{R}^k. Since EE is closed, x∈Ex \in E by Proposition 13.9(b).

(⇐\Leftarrow) Assume every sequence in EE has a subsequence converging to a point of EE. Bounded: if not, pick x(n)∈Ex^{(n)} \in E with max⁡j∣xj(n)∣>n\max_j|x^{(n)}_j| > n; every subsequence is unbounded, hence not convergent, contradicting the hypothesis. Closed: let x(n)∈Ex^{(n)} \in E converge to xx. By hypothesis some subsequence converges to a point of EE; but every subsequence converges to xx, so x∈Ex \in E. By Proposition 13.9(b), EE is closed. Hence EE is compact.

Tags: ChallengeOpen, closed, compactSubsequences

Used in Exercise 13.14

Exercise 13.12

Let (S,d)(S, d) be any metric space.

  1. Show that if EE is a closed subset of a compact set FF, then EE is compact.
  2. Show that a finite union of compact sets in SS is compact.
Hint

(a) Given an open cover of EE, add the open set S∖ES \setminus E to get an open cover of FF.

Solution
  1. Let U\mathcal{U} be an open cover of EE. Since EE is closed, S∖ES \setminus E is open, and U∪{S∖E}\mathcal{U} \cup \{S \setminus E\} covers FF (points of FF in EE are covered by U\mathcal{U}, the others lie in S∖ES \setminus E). By compactness of FF a finite subfamily covers FF. Discarding S∖ES \setminus E, which contains no point of EE, leaves a finite subfamily of U\mathcal{U} that covers EE.
  2. Let F1,…,FnF_1, \dots, F_n be compact and U\mathcal{U} an open cover of F1∪⋯∪FnF_1 \cup \cdots \cup F_n. Then U\mathcal{U} covers each FiF_i, so some finite Ui⊆U\mathcal{U}_i \subseteq \mathcal{U} covers FiF_i. The finite family U1∪⋯∪Un\mathcal{U}_1 \cup \cdots \cup \mathcal{U}_n covers the union.

Tags: StandardOpen, closed, compact

Used in Theorem 13.12

Exercise 13.13

Let EE be a compact nonempty subset of R\mathbb{R}. Show sup⁡E\sup E and inf⁡E\inf E belong to EE.

Solution

A compact subset of R\mathbb{R} is closed and bounded (Heine–Borel), so s=sup⁡Es = \sup E is a real number. By Exercise 11.11 there is a sequence in EE converging to ss (take sn=ss_n = s if s∈Es \in E). Since EE is closed, Proposition 13.9(b) gives s∈Es \in E. For the infimum, apply the same argument to the compact set −E={−x:x∈E}-E = \{-x : x \in E\}, or argue symmetrically.

Tags: StandardOpen, closed, compactSup & inf

Exercise 13.14

Let EE be a compact nonempty subset of Rk\mathbb{R}^k and δ=sup⁡{d(x,y):x,y∈E}\delta = \sup\{d(x, y) : x, y \in E\}. Show EE contains points x0,y0x_0, y_0 with d(x0,y0)=δd(x_0, y_0) = \delta.

Solution

EE is bounded, so δ<∞\delta < \infty. For each nn choose xn,yn∈Ex_n, y_n \in E with d(xn,yn)>δ−1nd(x_n, y_n) > \delta - \frac1n. By compactness (Exercise 13.11), a subsequence (xnk)(x_{n_k}) converges to some x0∈Ex_0 \in E, and then a further subsequence of (ynk)(y_{n_k}) converges to some y0∈Ey_0 \in E; relabel so that xnk→x0x_{n_k} \to x_0 and ynk→y0y_{n_k} \to y_0 along one subsequence. By the triangle inequality ∣d(x,y)−d(x′,y′)∣≤d(x,x′)+d(y,y′)|d(x,y) - d(x',y')| \le d(x,x') + d(y,y'), so d(xnk,ynk)→d(x0,y0)d(x_{n_k}, y_{n_k}) \to d(x_0, y_0). But δ−1nk<d(xnk,ynk)≤δ\delta - \frac1{n_k} < d(x_{n_k}, y_{n_k}) \le \delta, so these distances also tend to δ\delta. Hence d(x0,y0)=δd(x_0, y_0) = \delta.

Tags: StandardOpen, closed, compactSubsequences

Exercise 13.15

Let (B,d)(B, d) be as in Exercise 13.3, and let FF consist of all x∈Bx \in B with sup⁡{∣xj∣}≤1\sup\{|x_j|\} \le 1.

  1. Show FF is closed and bounded. (A set FF in a metric space is bounded if F⊆{s:d(s,s0)≤r}F \subseteq \{s : d(s, s_0) \le r\} for some s0∈Ss_0 \in S and r>0r > 0.)
  2. Show FF is not compact.
Hint

(b) For x∈Fx \in F let U(x)={y∈B:d(y,x)<1}U(x) = \{y \in B : d(y, x) < 1\}, and consider the cover of FF by all U(x)U(x). Let x(n)x^{(n)} have xn(n)=−1x_n^{(n)} = -1 and xj(n)=1x_j^{(n)} = 1 for j≠nj \ne n. Distinct x(n)x^{(n)} are at distance 22, so no U(x)U(x) contains two of them.

Solution
  1. Bounded: with 00 the zero sequence, d(x,0)=sup⁡∣xj∣≤1d(x, 0) = \sup|x_j| \le 1 for x∈Fx \in F. Closed: let x(n)∈Fx^{(n)} \in F and x(n)→xx^{(n)} \to x in BB. For each jj, ∣xj∣≤∣xj(n)∣+d(x(n),x)≤1+d(x(n),x)|x_j| \le |x^{(n)}_j| + d(x^{(n)}, x) \le 1 + d(x^{(n)}, x), and letting n→∞n \to \infty gives ∣xj∣≤1|x_j| \le 1. So x∈Fx \in F, and FF is closed by Proposition 13.9(b).
  2. The open balls U(x)U(x), x∈Fx \in F, cover FF since x∈U(x)x \in U(x). Define x(n)∈Fx^{(n)} \in F by xn(n)=−1x^{(n)}_n = -1 and xj(n)=1x^{(n)}_j = 1 for j≠nj \neq n. For m≠nm \ne n, d(x(n),x(m))≥∣xn(n)−xn(m)∣=∣−1−1∣=2d(x^{(n)}, x^{(m)}) \ge |x^{(n)}_n - x^{(m)}_n| = |-1 - 1| = 2. If some U(x)U(x) contained two of them, say x(n)x^{(n)} and x(m)x^{(m)}, then d(x(n),x(m))≤d(x(n),x)+d(x,x(m))<2d(x^{(n)}, x^{(m)}) \le d(x^{(n)},x) + d(x,x^{(m)}) < 2, a contradiction. So each U(x)U(x) contains at most one x(n)x^{(n)}, and no finite subfamily can cover the infinitely many distinct points x(n)x^{(n)}. Thus FF is closed and bounded but not compact.

Tags: ChallengeOpen, closed, compact

Keyboard shortcuts

Single-key shortcuts
KeyAction
nNext section
pPrevious section
jNext exercise
kPrevious exercise
hShow or hide all hints
sShow or hide all solutions
/Search
?Show this list
Ctrl K or ⌘ KSearch (built in)
EscClose a dialog

Shortcuts never fire while you type in a text field or hold Ctrl, Alt or ⌘. Screen reader users in browse mode can press the keys after switching to focus mode, or turn them off here.