Reading guide · Proof index

Completeness and compactness

Jiří Lebl, Basic Analysis I–II, version 6.3. Free author edition of this section. Selection and attribution · Notation.

L7.4.2: A convergent metric sequence is Cauchy

Proof.

Suppose {xn}n=1∞\{ x_n \}_{n=1}^\infty converges to p.p\text{.} Given ϵ>0,\epsilon > 0\text{,} there is an MM such that for all n≥M,n \geq M\text{,} we have d(p,xn)<ϵ ⁣/ ⁣2.d(p,x_n) < \nicefrac{\epsilon}{2}\text{.} Hence, for all n,k≥M,n,k \geq M\text{,} we have d(xn,xk)≤d(xn,p)+d(p,xk)<ϵ ⁣/ ⁣2+ϵ ⁣/ ⁣2=ϵ.d(x_n,x_k) \leq d(x_n,p) + d(p,x_k) < \nicefrac{\epsilon}{2} + \nicefrac{\epsilon}{2} = \epsilon\text{.}

L7.4.4: Euclidean completeness by coordinatewise real completeness

Proof.

Let {xm}m=1∞\{ x_m \}_{m=1}^\infty be a Cauchy sequence in Rn,\R^n\text{,} where xm=(xm,1,xm,2,…,xm,n)∈Rn.x_m = \bigl(x_{m,1},x_{m,2},\ldots,x_{m,n}\bigr) \in \R^n\text{.} As the sequence is Cauchy, given ϵ>0,\epsilon > 0\text{,} there exists an MM such that for all i,j≥M,i,j \geq M\text{,}
d(xi,xj)<ϵ.\begin{equation*} d(x_i,x_j) < \epsilon. \end{equation*}
Fix some k=1,2,…,n.k=1,2,\ldots,n\text{.} For i,j≥M,i,j \geq M\text{,}
∣xi,k−xj,k∣=(xi,k−xj,k)2≤∑ℓ=1n(xi,ℓ−xj,ℓ)2=d(xi,xj)<ϵ.\begin{equation*} \bigl\lvert x_{i,k} - x_{j,k} \bigr\rvert = \sqrt{{\bigl(x_{i,k} - x_{j,k}\bigr)}^2} \leq \sqrt{\sum_{\ell=1}^n {\bigl(x_{i,\ell}-x_{j,\ell}\bigr)}^2} = d(x_i,x_j) < \epsilon . \end{equation*}
Hence, the sequence {xm,k}m=1∞\{ x_{m,k} \}_{m=1}^\infty is Cauchy. As R\R is complete, the sequence converges; there exists a yk∈Ry_k \in \R such that yk=lim⁡m→∞xm,k.y_k = \lim_{m\to\infty} x_{m,k}\text{.} Write y=(y1,y2,…,yn)∈Rn.y = (y_1,y_2,\ldots,y_n) \in \R^n\text{.} By Proposition 7.3.9, {xm}m=1∞\{ x_m \}_{m=1}^\infty converges to y∈Rn,y \in \R^n\text{,} and hence Rn\R^n is complete.

L7.4.9: Compact sets are closed and bounded, with the empty-set case explicit locally

Proof.

First, we prove that a compact set is bounded. Fix p∈X.p \in X\text{.} We have the open cover
K⊂⋃n=1∞B(p,n)=X.\begin{equation*} K \subset \bigcup_{n=1}^\infty B(p,n) = X . \end{equation*}
If KK is compact, then there exists some set of indices n1<n2<…<nmn_1 < n_2 < \ldots < n_m such that
K⊂⋃j=1mB(p,nj)=B(p,nm).\begin{equation*} K \subset \bigcup_{j=1}^m B(p,n_j) = B(p,n_m) . \end{equation*}
As KK is contained in a ball, KK is bounded. See the left-hand side of Figure 7.11.
Next, we show that a set that is not closed is not compact. Suppose K‾≠K,\widebar{K} \neq K\text{,} that is, there is a point x∈K‾∖K.x \in \widebar{K} \setminus K\text{.} If y≠x,y \neq x\text{,} then y∉C(x,1 ⁣/ ⁣n)y \notin C(x,\nicefrac{1}{n}) for n∈Nn \in \N such that 1 ⁣/ ⁣n<d(x,y).\nicefrac{1}{n} < d(x,y)\text{.} Furthermore, x∉K,x \notin K\text{,} so
K⊂⋃n=1∞C(x,1 ⁣/ ⁣n)c.\begin{equation*} K \subset \bigcup_{n=1}^\infty {C(x,\nicefrac{1}{n})}^c . \end{equation*}
A closed ball is closed, so its complement C(x,1 ⁣/ ⁣n)c{C(x,\nicefrac{1}{n})}^c is open, and we have an open cover. If we take any finite collection of indices n1<n2<…<nm,n_1 < n_2 < \ldots < n_m\text{,} then
⋃j=1mC(x,1 ⁣/ ⁣nj)c=C(x,1 ⁣/ ⁣nm)c\begin{equation*} \bigcup_{j=1}^m {C(x,\nicefrac{1}{n_j})}^c = {C(x,\nicefrac{1}{n_m})}^c \end{equation*}
As xx is in the closure of K,K\text{,} then C(x,1 ⁣/ ⁣nm)∩K≠∅.C(x,\nicefrac{1}{n_m}) \cap K \neq \emptyset\text{.} So there is no finite subcover and KK is not compact. See the right-hand side of Figure 7.11.

L7.4.10: Lebesgue covering lemma proved directly from sequential compactness

Proof.

We prove the lemma by contrapositive. If the conclusion is not true, then there is an open cover {Uλ}λ∈I\{ U_\lambda \}_{\lambda \in I} of KK with the following property. For every n∈N,n \in \N\text{,} there exists an xn∈Kx_n \in K such that B(xn,1 ⁣/ ⁣n)B(x_n,\nicefrac{1}{n}) is not a subset of any Uλ.U_\lambda\text{.} Take any x∈K.x \in K\text{.} There is a λ∈I\lambda \in I such that x∈Uλ.x \in U_\lambda\text{.} As UλU_\lambda is open, there is an ϵ>0\epsilon > 0 such that B(x,ϵ)⊂Uλ.B(x,\epsilon) \subset U_\lambda\text{.} Take MM such that 1 ⁣/ ⁣M<ϵ ⁣/ ⁣2.\nicefrac{1}{M} < \nicefrac{\epsilon}{2}\text{.} If y∈B(x,ϵ ⁣/ ⁣2)y \in B(x,\nicefrac{\epsilon}{2}) and n≥M,n \geq M\text{,} then
B(y,1 ⁣/ ⁣n)⊂B(y,1 ⁣/ ⁣M)⊂B(y,ϵ ⁣/ ⁣2)⊂B(x,ϵ)⊂Uλ,\begin{equation*} B(y,\nicefrac{1}{n}) \subset B(y,\nicefrac{1}{M}) \subset B(y,\nicefrac{\epsilon}{2}) \subset B(x,\epsilon) \subset U_\lambda , \end{equation*}
where B(y,ϵ ⁣/ ⁣2)⊂B(x,ϵ)B(y,\nicefrac{\epsilon}{2}) \subset B(x,\epsilon) follows by triangle inequality. See Figure 7.12. Thus y≠xn.y \neq x_n\text{.} In other words, for all n≥M,n \geq M\text{,} xn∉B(x,ϵ ⁣/ ⁣2).x_n \notin B(x,\nicefrac{\epsilon}{2})\text{.} The sequence cannot have a subsequence converging to x.x\text{.} As x∈Kx \in K was arbitrary, we are done.

L7.4.11: Sequential compactness and the finite-subcover definition are equivalent

Proof.

Claim: Let K⊂XK \subset X be a subset of XX and {xn}n=1∞\{ x_n \}_{n=1}^\infty a sequence in K.K\text{.} Suppose that for each x∈K,x \in K\text{,} there is a ball B(x,αx)B(x,\alpha_x) for some αx>0\alpha_x > 0 such that xn∈B(x,αx)x_n \in B(x,\alpha_x) for only finitely many n∈N.n \in \N\text{.} Then KK is not compact.
Proof of the claim: Notice
K⊂⋃x∈KB(x,αx).\begin{equation*} K \subset \bigcup_{x \in K} B(x,\alpha_x) . \end{equation*}
Any finite collection of these balls contains at most finitely many elements of {xn}n=1∞,\{ x_n \}_{n=1}^\infty\text{,} and so there must be an xn∈Kx_n \in K not in their union. Hence, KK is not compact and the claim is proved.
So suppose that KK is compact and {xn}n=1∞\{ x_n \}_{n=1}^\infty is a sequence in K.K\text{.} Then there exists an x∈Kx \in K such that for all δ>0,\delta > 0\text{,} B(x,δ)B(x,\delta) contains xnx_n for infinitely many n∈N.n \in \N\text{.} We define the subsequence inductively. The ball B(x,1)B(x,1) contains some xk,x_k\text{,} so let n1≔k.n_1 \coloneqq k\text{.} Suppose nj−1n_{j-1} is defined. There must exist a k>nj−1k > n_{j-1} such that xk∈B(x,1 ⁣/ ⁣j).x_k \in B(x,\nicefrac{1}{j})\text{.} Define nj≔k.n_j \coloneqq k\text{.} We now possess a subsequence {xnj}j=1∞.\{ x_{n_j} \}_{j=1}^\infty\text{.} Since d(x,xnj)<1 ⁣/ ⁣j,d(x,x_{n_j}) < \nicefrac{1}{j}\text{,} Proposition 7.3.5 says lim⁡j→∞xnj=x.\lim_{j\to\infty} x_{n_j} = x\text{.}
For the other direction, suppose every sequence in KK has a subsequence converging in K.K\text{.} Take an open cover {Uλ}λ∈I\{ U_\lambda \}_{\lambda \in I} of K.K\text{.} Using the Lebesgue covering lemma above, find a δ>0\delta > 0 such that for every x∈K,x \in K\text{,} there is a λ∈I\lambda \in I with B(x,δ)⊂Uλ.B(x,\delta) \subset U_\lambda\text{.}
Pick x1∈Kx_1 \in K and find λ1∈I\lambda_1 \in I such that B(x1,δ)⊂Uλ1.B(x_1,\delta) \subset U_{\lambda_1}\text{.} If K⊂Uλ1,K \subset U_{\lambda_1}\text{,} we stop as we have found a finite subcover. Otherwise, there must be a point x2∈K∖Uλ1.x_2 \in K \setminus U_{\lambda_1}\text{.} Note that d(x2,x1)≥δ.d(x_2,x_1) \geq \delta\text{.} There must exist some λ2∈I\lambda_2 \in I such that B(x2,δ)⊂Uλ2.B(x_2,\delta) \subset U_{\lambda_2}\text{.} We work inductively. Suppose λn−1\lambda_{n-1} is defined. Either Uλ1∪Uλ2∪⋯∪Uλn−1U_{\lambda_1} \cup U_{\lambda_2} \cup \cdots \cup U_{\lambda_{n-1}} is a finite cover of K,K\text{,} in which case we stop, or there must be a point xn∈K∖(Uλ1∪Uλ2∪⋯∪Uλn−1).x_n \in K \setminus \bigl( U_{\lambda_1} \cup U_{\lambda_2} \cup \cdots \cup U_{\lambda_{n-1}}\bigr)\text{.} Note that d(xn,xj)≥δd(x_n,x_j) \geq \delta for all j=1,2,…,n−1.j = 1,2,\ldots,n-1\text{.} Next, there must be some λn∈I\lambda_n \in I such that B(xn,δ)⊂Uλn.B(x_n,\delta) \subset U_{\lambda_n}\text{.} See Figure 7.13.

A shaded region with a solid boundary is marked K. Four points in K are marked x sub 1, x sub 2, x sub 3, and x sub 4. Circles of radius delta are drawn centered at x sub 1, x sub 2, and x sub 3. Around each of these circles there are three regions outlined in dotted line marked U sub lambda sub 1, U sub lambda sub 2, and U sub lambda sub 3. The discs, and therefore the surrounding regions, seem to be slowly covering the set K entirely on the left-hand side of the picture.
Figure 7.13. Covering KK by Uλ.U_{\lambda}\text{.} The points x1,x2,x3,x4,x_1,x_2,x_3,x_4\text{,} the three sets Uλ1,U_{\lambda_1}\text{,} Uλ2,U_{\lambda_2}\text{,} Uλ3,U_{\lambda_3}\text{,} and the first three balls of radius δ\delta are drawn.

Either at some point we obtain a finite subcover of K,K\text{,} or we obtain an infinite sequence {xn}n=1∞\{ x_n \}_{n=1}^\infty as above. For contradiction, suppose that there is no finite subcover and we have the sequence {xn}n=1∞.\{ x_n \}_{n=1}^\infty\text{.} For all nn and k,k\text{,} n≠k,n \neq k\text{,} we have d(xn,xk)≥δ.d(x_n,x_k) \geq \delta\text{.} So no subsequence of {xn}n=1∞\{ x_n \}_{n=1}^\infty is Cauchy. Hence, no subsequence of {xn}n=1∞\{ x_n \}_{n=1}^\infty is convergent, which is a contradiction.
Two diagrams. A set K is given as a shaded region with solid boundary. In the left diagram, a point p is highlighted together with 3 nested open balls (circles in this case) of radius 1, 2, and 3 all centered at p with dotted boundary. The set K lies in the largest one. In the right diagram, the background of the diagram is shaded. A point x that is on the boundary of K is shown, and 4 closed balls are drawn as circles with the inside shaded in lighter and lighter gray, indicating that we are looking at the complements. The outer ball is of radius 1, then there is a ball of radius one half, then a ball of radius one third, then a ball of radius one fourth. We note that as x sits on the boundary, the complements of the balls cover more and more of K. On the other hand we also note that K has nonempty intersection with all the closed balls.
Figure 7.11. Proving compact set is bounded (left) and closed (right).
A diagram of a shaded open set U sub lambda. A point x in U sub lambda is marked and a ball of radius epsilon centered at x is drawn and this ball sits within U sub lambda. A ball of radius epsilon over 2 centered at x is also drawn which sits within the larger ball. A point y in the smaller ball is marked and a ball of radius epsilon over 2 centered at y is shown. We note that this ball centered at y sits entirely within the ball of radius epsilon centered at x, the largest ball, and hence also within U sub lambda. One last small ball of radius 1 over n centered at y is shown that sits within the epsilon over 2 ball centered at y.
Figure 7.12. Proof of Lebesgue covering lemma. Note that B(y,ϵ ⁣/ ⁣2)⊂B(x,ϵ)B(y,\nicefrac{\epsilon}{2}) \subset B(x,\epsilon) by triangle inequality.