第 14 章
闭集、开覆盖与紧性
用余集定义闭集并证明「闭集等价于收敛列极限封闭」,把并交法则对偶到闭集,再定义覆盖与紧性,证明紧集必有界且闭、紧集的闭子集仍紧。
Closed Sets, Open Covers and Compactness
Defining closed sets by complements, proving that closed means limits of convergent sequences stay inside, dualising the union/intersection rules, then defining covers and compactness and proving compact sets are bounded and closed and that closed subsets of compact sets are compact.
篇内目录
- The problem: describing "the boundary is included"
- Timeline
- Recap: open sets, balls and set operations
- Union and intersection rules for open sets
- Arbitrary unions
- Finite intersections
- The infinite-intersection counterexample
- Definition of a closed set
- The sequential characterisation of closed sets
- Direction 1: closed ⟹ limits stay inside
- Direction 2: limits stay inside ⟹ closed
- Examples
- Union and intersection rules for closed sets
- Covers and compactness
- Covers
- Compactness
- Why compactness is needed
- Compact sets are bounded and closed
- Boundedness
- Closedness
- The converse fails
- Closed subsets of compact sets are compact
- What this lecture establishes
- Comprehension check
- Relation to neighbouring lectures
问题:怎样描述「边界包含在内」
上一讲定义了开集:集合里每个点都还能往外走一点。但很多常见的集合恰恰相反——它们把边界包了进来,比如闭区间 。直接用「每个点都有小球」来刻画这类集合很别扭,因为边界点本身就没有小球留在集合内。
本讲用两个动作解决这个问题:
- 把闭集定义成余集是开集,绕开直接的边界描述;
- 证明闭集有一个非常好用的等价刻画——收敛数列的极限不逃出去。
然后再往前一步:用开集定义覆盖,用「每个开覆盖都有有限子覆盖」定义紧性。紧性看起来抽象,但它解决的问题很具体:在一般度量空间里,有界数列不一定有收敛子列;而在紧集上,这个结论会恢复。
时间轴
| 时间 | 内容 |
|---|---|
| 0:00 | 回顾开集与球的定义 |
| 3:13 | 集合的并、交、补 |
| 5:51 | 开集的任意并是开集(证明) |
| 8:20 | 有限个开集的交是开集(证明) |
| 12:36 | 无限交的反例: |
| 15:10 | 引理: 是开集(证明) |
| 23:37 | 闭集的定义 |
| 25:14 | 定理:闭集 ⟺ 收敛列极限封闭(两个方向) |
| 38:21 | 闭集的例子 |
| 40:23 | 任意交、有限并仍闭 |
| 44:05 | 覆盖、子覆盖、开覆盖、有限子覆盖 |
| 51:34 | 紧性的定义 |
| 56:53 | 定理:紧集有界(证明) |
| 1:04:28 | 定理:紧集是闭集(证明) |
| 1:14:30 | 中闭且有界 ⟹ 紧(陈述) |
| 1:16:10 | 紧集的闭子集仍紧(证明) |
回顾:开集、球与集合运算
开,指对每个 ,存在 使 ,其中
集合运算三件套:并 (存在某个 属于)、交 (对所有 属于)、补 (不属于 )。
这些运算之所以重要,是因为开集与闭集的性质完全由它们翻译。并、交、补之间的换算律(De Morgan)会在后面反复使用。
开集的并交法则
任意并
命题。 若 是一族开集,则 开。
证明。 取 ,则存在 使 。因 开,存在 使 。
指标集多大都无所谓——可以是不可数族。
有限交
命题。 若 开,则 开。
证明。 取 。对每个 选 使 ,令 。有限个正数的最小值仍为正。于是 对每个 成立,故 。
无限交的反例
在 中取 。每个 开,但
不是开集。原因就一条:,取不到正的下界,min 那一步没有无限版本。
这个反例后面还会用到——它同时说明「开集的无限交」和「闭集的有限并」两处都必须限制在有限个。
闭集的定义
定义。 是闭集,指其余集 是开集。
两个立刻得到的事实: 与 都闭(它们互为余集,而两者都开),所以它们既开又闭。
引理(球的余集是开集)。 固定 、,集合
是开集。
证明。 取 ,即 。令
对任意 ,用三角不等式的反向形式:
于是 ,即 。所以 开。
这里和证明「球是开集」几乎一样,唯一区别是三角不等式用在了另一侧:要证距离大于某数,就得把待估的量放到不等式右边。这个技巧在后面证明紧集是闭集时还要再用一次。
由此立刻得到:闭球 是闭集,因为它的余集正是上面的 。
闭集的序列刻画
定理。 设 。则 是闭集,当且仅当:对任何满足 的收敛数列 ,都有 。
这个定理的实用价值在于:要证一个集合闭,不必去验证余集开,只要证明极限不逃出去。前者在具体例子里往往很繁琐,后者通常只有几行。
方向一:闭 ⟹ 极限封闭
设 闭,,。反设 ,即 属于开集 。于是存在 使
但 意味着充分靠后的 都落在这个球里;而球整个在 的余集中,所以这些 ,与 矛盾。故 。
方向二:极限封闭 ⟹ 闭
设 满足「收敛列的极限仍在 中」,要证 开。
取 。反设不存在半径为 的球含于余集,即对每个 ,球 都不能整个落在余集中。于是可以选出
由 得 。按假设,极限 应属于 ——但 本来取在余集里,矛盾。所以余集开, 闭。
这两个方向都用到了同一个想法:把「不属于开集」翻译成「存在一个球,球里全在集合内」。
例子
- 闭:余集 开。
- 既不闭也不开:余集 不包含 附近的左侧点,不是开集。
- 闭。
- 单点集 闭:余集 ,正是引理中 的极限情形,也可以直接验证。
注意最后一条的推论:任何有限集都是闭集(有限个单点集的并)。
闭集的并交法则
定理。
- 任意多个闭集的交是闭集:若 闭,则 闭。
- 有限多个闭集的并是闭集:若 闭,则 闭。
结论与开集完全对偶:开集是「任意并、有限交」,闭集是「任意交、有限并」。
证明。 只需用 De Morgan 律把并交互换。
每个 开,任意多个开集的并开,所以左边是开集,即 闭。
每个 开,有限个开集的交开,所以 闭。
对应地,无限多个闭集的并可能不是闭集。例如
而 不闭。这和「开集无限交失效」是同一个现象的两种说法。
覆盖与紧性
覆盖
设 , 是一族子集。若
称 是 的一个覆盖。
- 子覆盖:从原族中取一部分,仍然覆盖 。
- 开覆盖:每个 都是开集。
- 有限子覆盖:子覆盖只含有限个集合。
覆盖本身没有任何要求——集合可以是开的、闭的、什么都不是。
例子。 在 中取 ,。这族集合覆盖整个 ,且每个都开,所以是开覆盖。但它没有有限子覆盖:任取有限个,最大的那个是 ,盖不住 。
紧性
定义。 是紧集,指 的每个开覆盖都有有限子覆盖。
量词结构值得慢慢读一遍:
注意「有限」出现在结论里:无论别人给出多么庞大、多么刁钻的开覆盖,你总能从中挑出有限个完成任务。这正是紧性强大的地方——它把无限问题压缩成有限问题。
为什么需要紧性
回顾主线:在 中,柯西收敛定理靠 Bolzano–Weierstrass 定理证明,而 BW 说的是「有界数列有收敛子列」。
在一般度量空间里,BW 不成立(上一讲的 、 就是反例)。于是柯西收敛定理也随之失效。
紧性正是修复这件事的条件:在紧集上,任何数列都有收敛子列。这就是下一讲要证的「度量空间版 BW 定理」,也是引入紧性的主要动机。
紧集必有界且闭
定理。 若 紧,则 有界且闭。
有界性
对每个 取半径 的开球 。这族球显然覆盖 (每个点被自己为心的球包含),且都是开集。
由紧性,存在有限个 使
令
对任意 ,存在某个 使 ,即 。三角不等式给出
所以 ,有界。
闭性
用闭集的序列刻画:取 、,要证 。
反设 。对每个 定义
前面已证每个 是开集。并且 :若 ,取 即可。因为 ,所以
是一个开覆盖。
由 紧,存在有限子覆盖。注意 随 增大而增大( 变小,条件变松),所以有限个 中最大指标那个 包含其余所有,从而
但 且 ,充分靠后时 ,矛盾。所以 , 闭。
这个证明的结构值得记住:为了证明一个点不在闭包里,就用「距离大于 」造一族递增的开集把它隔离出去。下一讲证明「闭子集仍紧」时会再次出现类似的构造。
反向不成立
在 中(配欧氏距离),闭且有界 ⟹ 紧。这是下一讲会讨论的定理,也是 特别好用的原因。
但在一般度量空间里这条不成立。上一讲的例子 :作为自身子集它既闭又有界,却不紧——开覆盖 没有有限子覆盖。
紧集的闭子集仍紧
定理。 设 紧, 且 在 中闭。则 紧。
证明。 设 是 的任意开覆盖。因为 闭, 开。于是
是 的开覆盖: 中不属于 的点被 盖住,属于 的点被某个 盖住。
由 紧,取有限子覆盖。若其中有 ,把它去掉——它对覆盖 毫无贡献( 与 不相交)。剩下的有限个 仍然覆盖 。所以 的任意开覆盖都有有限子覆盖, 紧。
这个证明很短,但用了两个关键事实: 闭(所以余集开,可以加进覆盖)与 紧(所以有限子覆盖存在)。少了任何一个都不行。
本节结论
- 闭集 = 余集开; 与 既开又闭。
- 闭集 ⟺ 收敛列的极限留在集合内;这个刻画是证明闭性的主力工具。
- 开集:任意并、有限交;闭集:任意交、有限并。无限情形两边都会失效。
- 覆盖不要求开;开覆盖 + 紧性才产生有限子覆盖。
- 紧集必有界且闭; 中反向成立,一般度量空间不成立。
- 紧集的闭子集仍紧。
理解检验
1. 为什么不能把闭集直接定义成「每个点都有一个球不完全在集合外」?
参考答案:这种说法是开集定义的否定,刻画的是「不是开集」,而不是「闭」。例如 不是开集,但它也不是闭集;而 中 的余集 不是开集,说明 不闭。「闭」的正确含义是余集开,它表达的是「补集里的点都有回旋余地」,与「集合内每个点都有球」是两件不同的事。
2. 证明:闭球的余集 是开集。
参考答案:取 ,令 。对任意 ,由反向三角不等式
故 ,即 。由于 任意, 开。关键在于要用「距离的差」而不是「距离的和」。
3. 证明:若 闭且 、,则 。
参考答案:反设 ,则 在开集 中,存在 使 。由 ,存在 使 时 ,于是 ,与 矛盾。所以 。
4. 举出一族闭集,其并不是闭集,并说明它与「开集无限交失效」的关系。
参考答案:取 ,每个闭,但 ,不闭( 是极限点却不在集合中)。它的余集是 ,不包含 附近的点,不是开集。取余集后,这族闭集的并就变成一族开集 的交,交集为 不闭——两件事通过 De Morgan 律完全对应。
5. 用紧性证明:紧集有界。(写出半径 的取法)
参考答案:对每个 ,取开球 ,这族球覆盖 。紧性给出有限子覆盖 。令 。任取 ,有某个 使 ,于是
所以 。
6. 为什么「紧集的闭子集仍紧」的证明里,必须把 加进覆盖?
参考答案:因为 的开覆盖 只覆盖 ,未必覆盖 中位于 之外的点。要给 造一个开覆盖,必须补上 ;而 闭保证 开,可以合法地加入开覆盖。取到有限子覆盖后, 对覆盖 没有贡献,可以删去,剩下的有限个 就覆盖了 。
7. 在 中, 紧而 不紧。给出后者的一个没有有限子覆盖的开覆盖。
参考答案:取 ,。每个 是 中的开集(相对于 )。对任意 ,取 ,则 ,故 ;所以这族覆盖 。任取有限个 ,令 ,则这些集合的并是 ,而 不在其中。所以没有有限子覆盖。
与前后课的关系
上一讲建立了开集与并交法则;这一讲把它们对偶到闭集,并引入覆盖与紧性。紧性的意义暂时只是「一个定义加两个性质」,下一讲才会兑现:用嵌套闭集引理证明紧集上的 Bolzano–Weierstrass 定理,从而说明紧性正是让「有界 ⟹ 有收敛子列」重新成立的条件。这一讲末尾的「闭子集仍紧」会在那里作为关键工具出现。
The problem: describing "the boundary is included"
The previous lecture defined open sets: every point can move a little without leaving. Many familiar sets do the opposite — they contain their boundary, such as the closed interval . Describing such sets by "every point has a small ball" is awkward, because boundary points have no ball that stays inside.
This lecture solves the problem in two moves:
- Define a closed set as one whose complement is open, bypassing any direct description of the boundary.
- Prove a much more usable characterisation: limits of convergent sequences do not escape.
Then one step further: use open sets to define covers, and "every open cover has a finite subcover" to define compactness. Compactness looks abstract, but it solves something concrete: in a general metric space a bounded sequence need not have a convergent subsequence; on a compact set it does.
Timeline
| Time | Topic |
|---|---|
| 0:00 | Recap: open sets and balls |
| 3:13 | Union, intersection, complement |
| 5:51 | Arbitrary unions of open sets are open (proof) |
| 8:20 | Finite intersections of open sets are open (proof) |
| 12:36 | The infinite-intersection counterexample |
| 15:10 | Lemma: is open (proof) |
| 23:37 | Definition of a closed set |
| 25:14 | Theorem: closed iff limits of convergent sequences stay inside (both directions) |
| 38:21 | Examples of closed sets |
| 40:23 | Arbitrary intersections and finite unions stay closed |
| 44:05 | Covers, subcovers, open covers, finite subcovers |
| 51:34 | Definition of compactness |
| 56:53 | Theorem: compact implies bounded (proof) |
| 1:04:28 | Theorem: compact implies closed (proof) |
| 1:14:30 | In , closed and bounded implies compact (stated) |
| 1:16:10 | A closed subset of a compact set is compact (proof) |
Recap: open sets, balls and set operations
is open if for every there is with , where
The three set operations: union (in at least one), intersection (in all), complement (not in ).
They matter because the properties of open and closed sets are stated entirely through them. The conversion rules between union, intersection and complement (De Morgan) will be used repeatedly.
Union and intersection rules for open sets
Arbitrary unions
Proposition. If is a family of open sets, then is open.
Proof. Take ; then for some . Since is open, some has .
The index set may be arbitrarily large — even uncountable.
Finite intersections
Proposition. If are open, then is open.
Proof. Take . For each choose with and set . The minimum of finitely many positive numbers is positive. Then for every , so .
The infinite-intersection counterexample
In take . Each is open, yet
is not open. The reason is sharp: , there is no positive lower bound, and the min step has no infinite analogue.
The counterexample returns later — it also shows why "infinite intersection of open sets" and "finite union of closed sets" both need the finiteness restriction.
Definition of a closed set
Definition. is closed if its complement is open.
Two immediate facts: and are both closed (they are each other's complements and both are open), so they are both open and closed.
Lemma (the complement of a ball is open). Fix and . The set
is open.
Proof. Take , so . Put
For any , the reverse triangle inequality gives
Hence , i.e. , and is open.
This is almost the proof that a ball is open, with the triangle inequality used on the other side: to prove a distance is greater than something, the quantity being estimated must sit on the right of the inequality. The same trick returns when proving compact implies closed.
It follows at once that the closed ball is closed, since its complement is exactly .
The sequential characterisation of closed sets
Theorem. Let . Then is closed if and only if: whenever and , the limit satisfies .
The practical value: to show a set is closed you need not check that its complement is open; it suffices to show limits do not escape. The former is often tedious in examples; the latter is usually a few lines.
Direction 1: closed ⟹ limits stay inside
Let be closed, , . Suppose , so lies in the open set . Then some satisfies
But means all sufficiently late terms lie in this ball, which sits entirely in the complement of — so those , contradicting . Hence .
Direction 2: limits stay inside ⟹ closed
Assume has the property that limits of convergent sequences in stay in ; show is open.
Take . Suppose no ball around lies in the complement, i.e. for every the ball fails to be contained in the complement. Then we may choose
Since , we get . By hypothesis the limit belongs to — but was chosen in the complement, a contradiction. So the complement is open and is closed.
Both directions rest on one translation: "not in the open set" becomes "there is a ball entirely inside the set".
Examples
- is closed: its complement is open.
- is neither open nor closed: its complement omits points just left of , so it is not open.
- is closed.
- A singleton is closed: its complement is the limiting case of the lemma, or can be checked directly.
A consequence of the last point: every finite set is closed (a finite union of singletons).
Union and intersection rules for closed sets
Theorem.
- The intersection of arbitrarily many closed sets is closed: if is closed, so is .
- The union of finitely many closed sets is closed: if are closed, so is .
The statements are exactly dual to those for open sets: open sets allow arbitrary unions and finite intersections; closed sets allow arbitrary intersections and finite unions.
Proof. Apply De Morgan to exchange union and intersection.
Each is open, and arbitrary unions of open sets are open, so the left side is open; hence is closed.
Each is open, and finite intersections of open sets are open, so is closed.
Correspondingly, the union of infinitely many closed sets need not be closed, e.g.
which is not closed. This is the same phenomenon as the failure of infinite intersections of open sets, read through De Morgan.
Covers and compactness
Covers
Let and let be a family of subsets. If
the family is a cover of .
- A subcover is a subfamily that still covers .
- An open cover is a cover whose members are all open.
- A finite subcover is a subcover consisting of finitely many sets.
A cover imposes no condition on the sets themselves — they may be open, closed, or neither.
Example. In take , . The family covers and every member is open, so it is an open cover. It has no finite subcover: among finitely many, the largest is some , which misses .
Compactness
Definition. is compact if every open cover of has a finite subcover.
Read the quantifiers slowly:
"Finite" appears in the conclusion: however large or awkward the open cover someone hands you, you can always extract finitely many sets that finish the job. That is the power of compactness — it compresses an infinite problem into a finite one.
Why compactness is needed
Recall the main line: in , the Cauchy convergence theorem is proved via Bolzano–Weierstrass, which says every bounded sequence has a convergent subsequence.
In a general metric space BW fails (the previous lecture's , ). The Cauchy convergence theorem then fails too.
Compactness is exactly the hypothesis that repairs this: on a compact set every sequence has a convergent subsequence. That is the metric-space BW theorem proved next lecture, and the main motivation for the definition.
Compact sets are bounded and closed
Theorem. If is compact, then is bounded and closed.
Boundedness
For each take the open ball . These balls cover (each point lies in its own ball) and are open.
By compactness there are finitely many with
Let
For any , some satisfies , i.e. . The triangle inequality gives
So and is bounded.
Closedness
Use the sequential characterisation: take with and show .
Suppose . For each define
Each is open by the lemma above, and : if , choose . Since ,
is an open cover.
By compactness there is a finite subcover. The sets increase with (as shrinks the condition loosens), so among finitely many the one with the largest index, say , contains all the others. Hence
But and , so eventually — a contradiction. Therefore and is closed.
The structure is worth remembering: to prove a point lies outside a closed hull, construct an increasing family of open sets "distance greater than " that isolates it. A similar construction appears next lecture when proving that closed subsets of compact sets are compact.
The converse fails
In with the Euclidean metric, closed and bounded implies compact. That is the theorem discussed next lecture, and the reason is so convenient.
In a general metric space it fails. The previous lecture's : as a subset of itself it is closed and bounded, yet not compact — the open cover has no finite subcover.
Closed subsets of compact sets are compact
Theorem. Let be compact and let be closed in . Then is compact.
Proof. Let be an arbitrary open cover of . Since is closed, is open. Hence
is an open cover of : points of outside are covered by , points of by some .
By compactness of , extract a finite subcover. If is among the chosen sets, discard it — it contributes nothing to covering (it is disjoint from ). The remaining finitely many still cover . Hence every open cover of has a finite subcover, so is compact.
Short, but it uses two essential facts: closed (so the complement is open and may join the cover) and compact (so a finite subcover exists). Neither can be dropped.
What this lecture establishes
- A closed set is one whose complement is open; and are both open and closed.
- Closed ⟺ limits of convergent sequences stay inside; this is the main tool for proving closedness.
- Open sets: arbitrary unions, finite intersections. Closed sets: arbitrary intersections, finite unions. Infinite cases fail on both sides.
- A cover need not be open; only an open cover plus compactness yields a finite subcover.
- Compact sets are bounded and closed; in the converse holds, in general metric spaces it does not.
- Closed subsets of compact sets are compact.
Comprehension check
1. Why can a closed set not simply be defined as "every point has a ball that is not entirely outside the set"?
Reference answer: That phrasing is the negation of the open-set condition and characterises "not open", not "closed". For instance is not open, but it is not closed either; and in the complement of is , which is not open, so is not closed. The correct meaning of "closed" is the complement is open, which says points in the complement have room to move — a different statement from "every point of the set has a ball inside".
2. Prove that the complement of a closed ball, , is open.
Reference answer: Take and set . For any , the reverse triangle inequality gives
so and . Since was arbitrary, is open. The key is to use a difference of distances, not a sum.
3. Prove: if is closed, and , then .
Reference answer: Suppose . Then lies in the open set , so some has . Since , there is with for , hence , contradicting . Therefore .
4. Give a family of closed sets whose union is not closed, and relate it to the failure of infinite intersections of open sets.
Reference answer: Take ; each is closed, but , which is not closed ( is a limit point outside the set). Its complement omits points near , so it is not open. Taking complements turns this union into the intersection of the open sets , whose intersection is and is not open — the two facts correspond exactly through De Morgan.
5. Use compactness to prove that a compact set is bounded (show how is chosen).
Reference answer: For each , the open balls cover . Compactness gives a finite subcover . Let . For any some satisfies , so
hence .
6. In the proof that a closed subset of a compact set is compact, why must be added to the cover?
Reference answer: The open cover covers only and need not cover points of outside . To construct an open cover of , those points must be added; closedness of guarantees is open, so it may legally join the cover. After extracting a finite subcover, contributes nothing to covering and can be discarded, leaving finitely many that still cover .
7. In , is compact but is not. Give an open cover of with no finite subcover.
Reference answer: Take for . Each is open in (relative to that space). For any , choose ; then , so , and the family covers . Given finitely many , let ; their union is , and lies outside it. So no finite subcover exists.
Relation to neighbouring lectures
The previous lecture built open sets and their union/intersection rules; this one dualises them to closed sets and introduces covers and compactness. For now compactness is "a definition plus two properties"; the next lecture cashes it in by proving Bolzano–Weierstrass on compact sets, showing that compactness is exactly the condition that restores "bounded implies a convergent subsequence". The closing result here, that closed subsets of compact sets are compact, appears there as a key tool.