Baire Category Theorem

A complete metric space cannot be a countable union of nowhere dense sets — that is the Baire Category Theorem. Dodging the rationals of [0,1][0, 1] one by one with nested closed intervals IkI_k leaves a single irrational point in the intersection, whose lengths shrink to 00.

X=⋃n=1∞En, int⁡(En‾)=∅ impossible if X completeX = \bigcup_{n=1}^{\infty} E_n,\ \operatorname{int}(\overline{E_n}) = \varnothing \ \text{impossible if } X \text{ complete}
B‾(xk+1,rk+1)⊆B(xk,rk)∖Ek+1‾, rk+1<rk/2 ⟹ x∈⋂kB‾(xk,rk), x∉Ek ∀k\overline{B}(x_{k+1}, r_{k+1}) \subseteq B(x_k, r_k) \setminus \overline{E_{k+1}},\ r_{k+1} < r_k/2 \ \Longrightarrow\ x \in \bigcap_k \overline{B}(x_k, r_k),\ x \notin E_k\ \forall k

Part of these learning paths

Examples & Exercises

Prove the Baire Category Theorem: a complete metric space XX cannot be written as a countable union X=⋃n=1∞EnX = \bigcup_{n=1}^{\infty} E_n of nowhere dense sets. In other words, a complete metric space is not meagre (first-category) in itself.

X=⋃n=1∞En,int⁡(En‾)=∅  ∀nX = \bigcup_{n=1}^{\infty} E_n, \qquad \operatorname{int}(\overline{E_n}) = \varnothing \ \ \forall n
B‾(xk+1,rk+1)⊆B(xk,rk)∖Ek+1‾,0<rk+1<rk/2\overline{B}(x_{k+1}, r_{k+1}) \subseteq B(x_k, r_k) \setminus \overline{E_{k+1}}, \qquad 0 < r_{k+1} < r_k/2
stage 6: I6=[0.75, 0.8125]I_6 = [0.75,\, 0.8125], survivor x≈0.78125x \approx 0.78125 — dodged q1=0q_1 = 0, q2=1q_2 = 1 inside the interval; the rest already lay outside. These nested closed intervals are the proof's nested closed balls B‾(xk,rk)\overline{B}(x_k, r_k).
Show proof
  1. Since E1E_1 is nowhere dense, int⁡(E1‾)=∅\operatorname{int}(\overline{E_1}) = \varnothing, so U1=X∖E1‾U_1 = X \setminus \overline{E_1} is a nonempty open set. Pick x1∈U1x_1 \in U_1; some ρ>0\rho > 0 has B(x1,ρ)⊆U1B(x_1, \rho) \subseteq U_1, and with r1=min⁡(ρ/2,1/2)r_1 = \min(\rho/2, 1/2) the closed ball B‾(x1,r1)⊆U1\overline{B}(x_1, r_1) \subseteq U_1 with r1<1r_1 < 1.
  2. Inductively, suppose B‾(xk,rk)\overline{B}(x_k, r_k) is chosen. Then V=B(xk,rk)∖Ek+1‾V = B(x_k, r_k) \setminus \overline{E_{k+1}} is a nonempty open set: B(xk,rk)B(x_k, r_k) is nonempty open, and B(xk,rk)⊆Ek+1‾B(x_k, r_k) \subseteq \overline{E_{k+1}} would give B(xk,rk)⊆int⁡(Ek+1‾)=∅B(x_k, r_k) \subseteq \operatorname{int}(\overline{E_{k+1}}) = \varnothing, a contradiction. Pick xk+1∈Vx_{k+1} \in V and shrink the radius below rk/2r_k/2 so the closed ball fits in VV: B‾(xk+1,rk+1)⊆B(xk,rk)∖Ek+1‾\overline{B}(x_{k+1}, r_{k+1}) \subseteq B(x_k, r_k) \setminus \overline{E_{k+1}} with 0<rk+1<rk/20 < r_{k+1} < r_k/2.
  3. The sequence (xk)(x_k) is Cauchy: for m>km > k, xm∈B‾(xk+1,rk+1)⊆B(xk,rk)x_m \in \overline{B}(x_{k+1}, r_{k+1}) \subseteq B(x_k, r_k), so d(xk,xm)<rkd(x_k, x_m) < r_k, and rk<2−(k−1)r1→0r_k < 2^{-(k-1)} r_1 \to 0. Completeness of XX gives a limit xk→x∈Xx_k \to x \in X.
  4. For fixed kk, the tail (xm)m≥k(x_m)_{m \ge k} lies in the closed set B‾(xk,rk)\overline{B}(x_k, r_k), so the limit x∈B‾(xk,rk)x \in \overline{B}(x_k, r_k). Hence x∈⋂kB‾(xk,rk)x \in \bigcap_k \overline{B}(x_k, r_k) for all kk; with x∈B‾(x1,r1)⊆X∖E1‾x \in \overline{B}(x_1, r_1) \subseteq X \setminus \overline{E_1} and, for j≥2j \ge 2, x∈B‾(xj,rj)⊆B(xj−1,rj−1)∖Ej‾x \in \overline{B}(x_j, r_j) \subseteq B(x_{j-1}, r_{j-1}) \setminus \overline{E_j}, we get x∉Ejx \notin E_j for every jj.
  5. But x∈X=⋃jEjx \in X = \bigcup_j E_j, so x∈Ejx \in E_j for some jj — a contradiction. Hence a complete metric space cannot be a countable union of nowhere dense sets. The intuition: each nowhere dense set leaves a "hole", and completeness traps the limit point obtained by descending through those holes inside the space.

Use the model's nested intervals to prove an irrational exists in [0,1][0, 1]: enumerate the rationals of [0,1][0, 1] as q1,q2,…q_1, q_2, \dots and at each stage take a closed interval IkI_k dodging qkq_k whenever it lands inside. Show the lengths ℓk=bk−ak→0\ell_k = b_k - a_k \to 0 (using density of the rationals), and that the point xx with ⋂kIk={x}\bigcap_k I_k = \{x\} differs from every qkq_k.

qk∈Ik−1 ⟹ ℓk=ℓk−1/4,qk∉Ikq_k \in I_{k-1} \ \Longrightarrow \ \ell_k = \ell_{k-1}/4, \quad q_k \notin I_k
ℓk→0,⋂k=1∞Ik={x},x≠qk ∀k\ell_k \to 0, \qquad \bigcap_{k=1}^{\infty} I_k = \{x\}, \qquad x \ne q_k \ \forall k
stage 14: I14=[0.80859375, 0.8125]I_{14} = [0.80859375,\, 0.8125] (length 1/2561/256), survivor x≈0.810546875x \approx 0.810546875 — dodged q1=0q_1 = 0, q2=1q_2 = 1, q7=3/4q_7 = 3/4, q11=4/5q_{11} = 4/5 inside the interval; xx differs from all 14 rationals listed.
Show proof
  1. By construction each IkI_k is a closed interval with Ik+1⊆IkI_{k+1} \subseteq I_k; when qkq_k lands in Ik−1I_{k-1} we take IkI_k of one-quarter the length with qk∉Ikq_k \notin I_k (if qkq_k already lies outside, Ik=Ik−1I_k = I_{k-1}).
  2. The lengths tend to 00. Suppose no more "hits" occur after stage KK; then In=IKI_n = I_K for all n≥Kn \ge K and the length stays positive. But IKI_K has positive length, so it contains infinitely many rationals, each appearing exactly once in the enumeration — hence some qm∈IKq_m \in I_K has index m>Km > K. Then Im−1=IK∋qmI_{m-1} = I_K \ni q_m, so stage mm is a hit — a contradiction. Hits therefore occur infinitely often, and each one quarters the length, so ℓk→0\ell_k \to 0.
  3. By completeness of R\mathbb{R} (the nested interval theorem), nested closed intervals whose lengths tend to 00 intersect in exactly one point: ⋂kIk={x}\bigcap_k I_k = \{x\}. And since x∈Ikx \in I_k while qk∉Ikq_k \notin I_k, we have x≠qkx \ne q_k for every kk.
  4. Since {qk}\{q_k\} enumerates every rational of [0,1][0, 1], xx is an irrational in [0,1][0, 1]. Hence [0,1]=⋃k{qk}[0, 1] = \bigcup_k \{q_k\} — a countable union of points — is impossible, and [0,1][0, 1] is uncountable. This is the point-set version of Baire's theorem: a singleton is nowhere dense in R\mathbb{R}, so [0,1][0, 1], being complete, cannot be a countable union of points without contradicting Baire.

[Idea-level sketch — not a complete proof] C[0,1]C[0, 1] with the sup norm ∥f∥∞\|f\|_\infty is a complete metric space. For m≥1m \ge 1 let Fm={f:∃x ∀y ∣f(x)−f(y)∣≤m∣x−y∣}F_m = \{f : \exists x\ \forall y\ |f(x) - f(y)| \le m|x-y|\}. Using that each FmF_m is closed nowhere dense (sketch), explain the idea that "nowhere-differentiable functions are typical" — i.e. comeager. The closed/nowhere-dense verifications below are sketched, not fully proved here.

Fm={f∈C[0,1]:∃x ∀y ∣f(x)−f(y)∣≤m∣x−y∣}F_m = \{f \in C[0,1] : \exists x\ \forall y\ |f(x) - f(y)| \le m|x-y|\}
differentiable somewhere⊆⋃m=1∞Fm(meagre)\text{differentiable somewhere} \subseteq \bigcup_{m=1}^{\infty} F_m \quad \text{(meagre)}
stage 10: I10=[0.796875, 0.8125]I_{10} = [0.796875,\, 0.8125], survivor x≈0.8046875x \approx 0.8046875 — three shrinkings dodged q1q_1, q2q_2, q7q_7 inside. The same nested-ball idea, applied in C[0,1]C[0,1], makes nowhere-differentiable functions typical.
Show proof
  1. [Sketch] FmF_m is closed. If fj∈Fmf_j \in F_m with fj→ff_j \to f uniformly, witnessed by xjx_j — i.e. ∣fj(xj)−fj(y)∣≤m∣xj−y∣|f_j(x_j) - f_j(y)| \le m|x_j - y| — pass to a convergent subsequence xj′→xx_{j'} \to x (Bolzano–Weierstrass); the estimate survives the limit as ∣f(x)−f(y)∣≤m∣x−y∣|f(x) - f(y)| \le m|x - y|, so f∈Fmf \in F_m.
  2. [Sketch] FmF_m is nowhere dense. Given f∈Fmf \in F_m and ε>0\varepsilon > 0, first approximate ff within ε/2\varepsilon/2 by a piecewise-linear pp (uniform continuity), then superimpose a fine zigzag of amplitude <ε/2<\varepsilon/2 whose slopes exceed those of pp by more than mm. At every candidate point xx, a nearby tooth of the zigzag breaks the mm-Lipschitz bound, so the perturbed g∉Fmg \notin F_m while ∥g−f∥∞<ε\|g - f\|_\infty < \varepsilon. Being closed, FmF_m has empty interior.
  3. A function differentiable at even one point lies in ⋃mFm\bigcup_m F_m. If f′(x0)f'(x_0) exists, then ∣f(y)−f(x0)∣≤m1∣y−x0∣|f(y) - f(x_0)| \le m_1|y - x_0| for ∣y−x0∣<δ|y - x_0| < \delta (take m1≥∣f′(x0)∣+1m_1 \ge |f'(x_0)| + 1), while for far points ∣y−x0∣≥δ|y - x_0| \ge \delta boundedness gives ∣f(y)−f(x0)∣≤2∥f∥∞≤2∥f∥∞δ∣y−x0∣|f(y) - f(x_0)| \le 2\|f\|_\infty \le \frac{2\|f\|_\infty}{\delta}|y - x_0|. With an integer m≥max⁡(m1,2∥f∥∞/δ)m \ge \max(m_1, 2\|f\|_\infty/\delta) we get ∣f(y)−f(x0)∣≤m∣y−x0∣|f(y) - f(x_0)| \le m|y - x_0| for all yy — i.e. f∈Fmf \in F_m.
  4. Hence "functions differentiable somewhere" ⊆⋃m=1∞Fm\subseteq \bigcup_{m=1}^{\infty} F_m is a countable union of nowhere dense sets — meagre. Its complement, the nowhere-differentiable functions, is comeager, and by Baire (problem 1) it is not just nonempty but dense. To stress again: the closed/nowhere-dense verifications above are idea-level sketches, not complete proofs.

4. Topology