Skip to content
The site is in test mode. All features are free for now.
MathAgora

University Mathematics · Real analysis

Topology of the real line

The Cantor set, open and closed sets, limit points and closure, compact sets, perfect and connected sets, Baire's theorem.

90 min 8 questions

01The Cantor set

Start with C0=[0,1]C_0 = [0,1] and remove the open middle third (13,23)\left(\frac13, \frac23\right): C1=[0,13]∪[23,1]C_1 = \left[0, \frac13\right] \cup \left[\frac23, 1\right]. Then remove the middle third of each remaining interval, and so on. CnC_n consists of 2n2^n intervals of length 3−n3^{-n}, with total length (23)n\left(\frac23\right)^n. The Cantor set is C=⋂n=0∞CnC = \bigcap_{n=0}^\infty C_n.

The removed intervals have total length 13+29+427+⋯=1\frac13 + \frac29 + \frac{4}{27} + \dots = 1, so CC has "length" zero. Yet CC is uncountable: its points are exactly the numbers with a base-3 expansion using only the digits 0 and 2, and these expansions are in bijection with binary sequences. CC is closed, compact and perfect, and contains no interval.

02Open and closed sets

The $\varepsilon$-neighborhood of aa is Vε(a)=(a−ε,a+ε)V_\varepsilon(a) = (a - \varepsilon, a + \varepsilon). O⊆RO \subseteq \mathbb R is open if every a∈Oa \in O has a neighborhood Vε(a)⊆OV_\varepsilon(a) \subseteq O. E.g. (a,b)(a,b) and R\mathbb R are open; [0,1)[0,1) is not (no neighborhood of 0 fits).

Any union of open sets is open, and a finite intersection of open sets is open. An infinite intersection need not be open: ⋂n(−1n,1n)={0}\bigcap_n\left(-\frac1n, \frac1n\right) = \{0\}.

xx is a limit point of AA if every neighborhood of xx contains a point of AA other than xx. Equivalently, there are an∈Aa_n \in A, an≠xa_n \ne x, with an→xa_n \to x. A point of AA that is not a limit point is isolated.

FF is closed if it contains all its limit points. The closure A‾=A∪L\overline A = A \cup L (LL the limit points) is the smallest closed set containing AA. E.g. Q‾=R\overline{\mathbb Q} = \mathbb R.

Key link: FF is closed   ⟺  \iff FcF^c is open. Careful: a set can be both (∅\varnothing, R\mathbb R) or neither ([0,1)[0,1), Q\mathbb Q).

03Compact sets

KK is compact if every sequence in KK has a subsequence converging to a point of KK.

Heine–Borel Theorem: for K⊆RK \subseteq \mathbb R the following are equivalent: 1) KK is compact; 2) KK is closed and bounded; 3) every open cover of KK has a finite subcover.

Examples: [a,b][a,b], any finite set, {0}∪{1n}\{0\} \cup \left\{\frac1n\right\} and the Cantor set are compact. (0,1](0,1] is not (not closed: 1n→0∉(0,1]\frac1n \to 0 \notin (0,1]), [0,∞)[0,\infty) is not (not bounded).

Why compactness matters: it lets us pass from an infinite situation to a finite one. For example, a nested sequence of nonempty compact sets has nonempty intersection.

04Perfect and connected sets

A closed set is perfect if it has no isolated points (e.g. [a,b][a,b], the Cantor set). Theorem: a nonempty perfect set is uncountable.

AA and BB are separated if A‾∩B=A∩B‾=∅\overline A \cap B = A \cap \overline B = \varnothing. A set is connected if it cannot be written as the union of two nonempty separated sets. Theorem: E⊆RE \subseteq \mathbb R is connected exactly when it is an interval: a,b∈Ea, b \in E and a<c<ba < c < b imply c∈Ec \in E.

For example Q\mathbb Q is not connected: Q=(Q∩(−∞,2))∪(Q∩(2,∞))\mathbb Q = \left(\mathbb Q \cap (-\infty, \sqrt2)\right) \cup \left(\mathbb Q \cap (\sqrt2, \infty)\right). Connectedness is what lies behind the Intermediate Value Theorem.

05Baire's theorem

EE is nowhere dense if the interior of its closure is empty, i.e. E‾\overline E contains no open interval (e.g. Z\mathbb Z, {1n}\left\{\frac1n\right\}, the Cantor set).

Baire's Theorem: R\mathbb R cannot be written as a countable union of nowhere-dense sets. Equivalent form: a countable intersection of dense open sets is dense.

Consequences: Q\mathbb Q is a countable union of singletons (nowhere dense), while R\mathbb R and R∖Q\mathbb R \setminus \mathbb Q are not. Baire's theorem gives a topological notion of size: a countable union of nowhere-dense sets is "small", its complement "large".

Key formulas

  • ε\varepsilon-neighborhood

    Vε(a)=(a−ε, a+ε)V_\varepsilon(a)=(a-\varepsilon,\,a+\varepsilon)
  • De Morgan: FF is closed   ⟺  \iff FcF^c is open

    (⋃λOλ)c=⋂λOλc\Big(\bigcup_\lambda O_\lambda\Big)^c=\bigcap_\lambda O_\lambda^c
  • Closure

    A‾=A∪L\overline A=A\cup L
  • Length removed in the Cantor construction

    ∑n=0∞2n3n+1=1\sum_{n=0}^{\infty}\frac{2^n}{3^{n+1}}=1
  • Heine–Borel: compact   ⟺  \iff closed and bounded

    K=K‾,K⊆[−M,M]K=\overline K,\quad K\subseteq[-M,M]

Worked examples

Example 1

Find the limit points of A={1n+1m:n,m∈N}A = \left\{\frac1n + \frac1m : n, m \in \mathbb N\right\}.

Example 2

Show that the cover {(1n,1):n≥2}\left\{\left(\frac1n, 1\right) : n \ge 2\right\} of (0,1)(0,1) has no finite subcover. What does this mean?