2.5. COMPACTNESS AND CONTINUOUS FUNCTIONS 45

2.5 Compactness and Continuous FunctionsAs usual, we are not worrying about empty sets. Fussing over these is usually a waste oftime. Thus if a set is mentioned, the default is that it is nonempty.

Definition 2.5.1 A metric space K is compact if whenever C is an open cover of K,there exists a finite subset of C {U1, · · · ,Un} such that K ⊆ ∪n

k=1Uk. In words, every opencover admits a finite sub-cover.

Directly from this definition is the following proposition.

Proposition 2.5.2 If K is a closed, nonempty subset of a nonempty compact set H, thenK is compact.

Proof: Let C be an open cover for K. Then C ∪{

KC}

is an open cover for H. Thusthere are finitely many sets from this last collection of open sets, U1, · · · ,Um which coversH. Include only those which are in C . These cover K because KC covers no points of K. ■

This is the real definition given above. However, in metric spaces, it is equivalent toanother definition called sequentially compact.

Definition 2.5.3 A metric space K is sequentially compact means that whenever{xn} ⊆ K, there exists a subsequence

{xnk

}such that limk→∞ xnk = x ∈ K for some point x.

In words, every sequence has a subsequence which converges to a point in the set.

There is a fundamental property possessed by a sequentially compact set in a metricspace which is described in the following proposition. The special number described iscalled a Lebesgue number.

Proposition 2.5.4 Let K be a sequentially compact set in a metric space and let C bean open cover of K. Then there exists a number δ > 0 such that whenever x ∈ K, it followsthat B(x,δ ) is contained in some set of C .

Proof: If C is an open cover of K and has no Lebesgue number, then for each n∈N, 1n is

not a Lebesgue number. Hence there exists xn ∈K such that B(xn,

1n

)is not contained in any

set of C . By sequential compactness, there is a subsequence{

xnk

}such that xnk → x ∈ K.

Now there is r > 0 such that B(x,r)⊆U ∈ C . Let k be large enough that 1nk

< r2 and also

large enough that xnk ∈ B(x, r

2

). Then B

(xnk ,

1nk

)⊆ B

(xnk ,

r2

)⊆ B(x,r) contrary to the

requirement that B(

xnk ,1nk

)is not contained in any set of C . ■

In any metric space, these two definitions of compactness are equivalent.

Theorem 2.5.5 Let K be a nonempty subset of a metric space (X ,d). Then it iscompact if and only if it is sequentially compact.

Proof: ⇐ Suppose K is sequentially compact. Let C be an open cover of K. ByProposition 2.5.4 there is a Lebesgue number δ > 0. Let x1 ∈ K. If B(x1,δ ) covers K, thenpick a set of C containing this ball and this set will be a finite subset of C which covers K.If B(x1,δ ) does not cover K, let x2 /∈ B(x1,δ ). Continue this way obtaining xk such thatd (xk,x j)≥ δ whenever k ̸= j. Thus eventually {B(xi,δ )}n

i=1 must cover K because if not,you could get a sequence {xk}which has every pair of points further apart than δ and hence

2.5. COMPACTNESS AND CONTINUOUS FUNCTIONS 452.5 Compactness and Continuous FunctionsAs usual, we are not worrying about empty sets. Fussing over these is usually a waste oftime. Thus if a set is mentioned, the default is that it is nonempty.Definition 2.5.1 4 metric space K is compact if whenever © is an open cover of K,there exists a finite subset of @ {U,--- ,Un} such that K C Up_,U,. In words, every opencover admits a finite sub-cover.Directly from this definition is the following proposition.Proposition 2.5.2 [f K is a closed, nonempty subset of anonempty compact set H, thenK is compact.Proof: Let @ be an open cover for K. Then @ U {Ko} is an open cover for H. Thusthere are finitely many sets from this last collection of open sets, Uj,--- ,Um which coversH. Include only those which are in @. These cover K because K© covers no points of K.This is the real definition given above. However, in metric spaces, it is equivalent toanother definition called sequentially compact.Definition 2.5.3 A metric space K is sequentially compact means that whenever{xn} CK, there exists a subsequence {Xn } such that limy_,..Xn, =x € K for some point x.In words, every sequence has a subsequence which converges to a point in the set.There is a fundamental property possessed by a sequentially compact set in a metricspace which is described in the following proposition. The special number described iscalled a Lebesgue number.Proposition 2.5.4 Let K be a sequentially compact set in a metric space and let @ bean open cover of K. Then there exists a number 6 > 0 such that whenever x € K, it followsthat B(x, 6) is contained in some set of @.Proof: If @ is an open cover of K and has no Lebesgue number, then for eachn € N, i isnot a Lebesgue number. Hence there exists x, € K such that B (Xn, t) is not contained in anyset of @. By sequential compactness, there is a subsequence {xn, } such that xy», +x € K.Now there is r > 0 such that B(x,r) CU € @. Let k be large enough that A < 5 and alsolarge enough that x, € B(x,5). Then B (in: i) C B(Xn,.5) C B(x,r) contrary to theNkrequirement that B (an: i) is not contained in any set of @.In any metric space, these two definitions of compactness are equivalent.Theorem 2.5.5 Let K be a nonempty subset of a metric space (X,d). Then it iscompact if and only if it is sequentially compact.Proof: < Suppose K is sequentially compact. Let @ be an open cover of K. ByProposition 2.5.4 there is a Lebesgue number 6 > 0. Let x; € K. If B(x1, 6) covers K, thenpick a set of @ containing this ball and this set will be a finite subset of @ which covers K.If B(x;,6) does not cover K, let x. ¢ B(x1,5). Continue this way obtaining x; such thatd (xz,x;) > 5 whenever k # j. Thus eventually {B (x;,5) }/_, must cover K because if not,you could get a sequence {x;,} which has every pair of points further apart than 6 and hence