Metamath Proof Explorer


Theorem bcth

Description: Baire's Category Theorem. If a nonempty metric space is complete, it is nonmeager in itself. In other words, no open set in the metric space can be the countable union of rare closed subsets (where rare means having a closure with empty interior), so some subset Mk must have a nonempty interior. Theorem 4.7-2 of Kreyszig p. 247. (The terminology "meager" and "nonmeager" is used by Kreyszig to replace Baire's "of the first category" and "of the second category." The latter terms are going out of favor to avoid confusion with category theory.) See bcthlem5 for an overview of the proof. (Contributed by NM, 28-Oct-2007) (Proof shortened by Mario Carneiro, 6-Jan-2014)

Ref Expression
Hypothesis bcth.2 J = MetOpen D
Assertion bcth D CMet X M : Clsd J int J ran M k int J M k

Proof

Step Hyp Ref Expression
1 bcth.2 J = MetOpen D
2 simpll D CMet X M : Clsd J k int J M k = D CMet X
3 eleq1w x = y x X y X
4 eleq1w r = m r + m +
5 3 4 bi2anan9 x = y r = m x X r + y X m +
6 simpr x = y r = m r = m
7 6 breq1d x = y r = m r < 1 k m < 1 k
8 oveq12 x = y r = m x ball D r = y ball D m
9 8 fveq2d x = y r = m cls J x ball D r = cls J y ball D m
10 9 sseq1d x = y r = m cls J x ball D r ball D z M k cls J y ball D m ball D z M k
11 7 10 anbi12d x = y r = m r < 1 k cls J x ball D r ball D z M k m < 1 k cls J y ball D m ball D z M k
12 5 11 anbi12d x = y r = m x X r + r < 1 k cls J x ball D r ball D z M k y X m + m < 1 k cls J y ball D m ball D z M k
13 12 cbvopabv x r | x X r + r < 1 k cls J x ball D r ball D z M k = y m | y X m + m < 1 k cls J y ball D m ball D z M k
14 oveq2 k = n 1 k = 1 n
15 14 breq2d k = n m < 1 k m < 1 n
16 fveq2 k = n M k = M n
17 16 difeq2d k = n ball D z M k = ball D z M n
18 17 sseq2d k = n cls J y ball D m ball D z M k cls J y ball D m ball D z M n
19 15 18 anbi12d k = n m < 1 k cls J y ball D m ball D z M k m < 1 n cls J y ball D m ball D z M n
20 19 anbi2d k = n y X m + m < 1 k cls J y ball D m ball D z M k y X m + m < 1 n cls J y ball D m ball D z M n
21 20 opabbidv k = n y m | y X m + m < 1 k cls J y ball D m ball D z M k = y m | y X m + m < 1 n cls J y ball D m ball D z M n
22 13 21 eqtrid k = n x r | x X r + r < 1 k cls J x ball D r ball D z M k = y m | y X m + m < 1 n cls J y ball D m ball D z M n
23 fveq2 z = g ball D z = ball D g
24 23 difeq1d z = g ball D z M n = ball D g M n
25 24 sseq2d z = g cls J y ball D m ball D z M n cls J y ball D m ball D g M n
26 25 anbi2d z = g m < 1 n cls J y ball D m ball D z M n m < 1 n cls J y ball D m ball D g M n
27 26 anbi2d z = g y X m + m < 1 n cls J y ball D m ball D z M n y X m + m < 1 n cls J y ball D m ball D g M n
28 27 opabbidv z = g y m | y X m + m < 1 n cls J y ball D m ball D z M n = y m | y X m + m < 1 n cls J y ball D m ball D g M n
29 22 28 cbvmpov k , z X × + x r | x X r + r < 1 k cls J x ball D r ball D z M k = n , g X × + y m | y X m + m < 1 n cls J y ball D m ball D g M n
30 simplr D CMet X M : Clsd J k int J M k = M : Clsd J
31 simpr D CMet X M : Clsd J k int J M k = k int J M k =
32 16 fveqeq2d k = n int J M k = int J M n =
33 32 cbvralvw k int J M k = n int J M n =
34 31 33 sylib D CMet X M : Clsd J k int J M k = n int J M n =
35 1 2 29 30 34 bcthlem5 D CMet X M : Clsd J k int J M k = int J ran M =
36 35 ex D CMet X M : Clsd J k int J M k = int J ran M =
37 36 necon3ad D CMet X M : Clsd J int J ran M ¬ k int J M k =
38 37 3impia D CMet X M : Clsd J int J ran M ¬ k int J M k =
39 df-ne int J M k ¬ int J M k =
40 39 rexbii k int J M k k ¬ int J M k =
41 rexnal k ¬ int J M k = ¬ k int J M k =
42 40 41 bitri k int J M k ¬ k int J M k =
43 38 42 sylibr D CMet X M : Clsd J int J ran M k int J M k