9.4 Connectedness and Compactness
The two properties that every continuous image inherits — connectedness (no splitting into two open pieces) and compactness (every open cover has a finite subcover) — with path-connectedness, components, the topologist's sine curve, Tychonoff's theorem, compact Hausdorff spaces, the one-point compactification, and their use to tell spaces apart.
Two theorems of first-year calculus carry most of real analysis: the intermediate value theorem (a continuous function on an interval takes every value between two of its values) and the extreme value theorem (a continuous function on a closed bounded interval attains a maximum). Neither is really about numbers. The first holds because an interval cannot be split into two disjoint nonempty open pieces — it is connected; the second because every open cover of $[a,b]$ has a finite subcover — it is compact. Both properties are defined by open sets alone, both survive continuous maps, and so both make sense in every topological space. In Unit 1 (§7.2 Compactness in Metric Spaces and §7.3 Connectedness) you met them in metric spaces, where compactness can be tested by sequences and Heine–Borel. Here we work in general spaces, where sequences are not enough and where the Hausdorff property of §9.3 decides how compact sets behave.
Connectedness and compactness are also the main topological invariants of point-set topology: if two spaces differ in one of them, they are not homeomorphic. This is how one proves that $[0,1]$, $[0,1)$ and $(0,1)$ are pairwise non-homeomorphic, that a circle is not an interval, that $\mathbb{R}$ is not $\mathbb{R}^2$, and that the letters T and X are different shapes. CSIR NET asks exactly such questions in Part B ("which pair is homeomorphic?") and Part C ("which of the following subsets of $\mathbb{R}^2$ are connected / compact / path-connected?"), and the false options are almost always the classical counterexamples collected in this section: the topologist's sine curve, the box topology, $[0,1)\to S^1$, the cofinite topology, and the line with two origins of §9.3.
Connected Spaces
A separation of a topological space $X$ is a pair $U,V$ of disjoint nonempty open subsets of $X$ with $X=U\cup V$. The space $X$ is a connected space if it has no separation. A subset $Y\subseteq X$ is connected if it is connected in the subspace topology.
Equivalently (Exercise I.7), $Y\subseteq X$ is disconnected iff $Y=A\cup B$ with $A,B$ nonempty and $\overline{A}\cap B=\varnothing=A\cap\overline{B}$ (closures in $X$): neither piece contains a limit point of the other.
Proof. (i)$\Rightarrow$(ii): if $U$ is clopen with $\varnothing\ne U\ne X$, then $U$ and $X\setminus U$ are disjoint nonempty open sets covering $X$ — a separation. (ii)$\Rightarrow$(iii): $f^{-1}(\{0\})$ is clopen (preimage of a clopen set), so it is $\varnothing$ or $X$, i.e. $f$ is constant. (iii)$\Rightarrow$(i): if $U,V$ is a separation, the function equal to $0$ on $U$ and $1$ on $V$ is continuous (the preimage of each of the four subsets of $\{0,1\}$ is $\varnothing$, $U$, $V$ or $X$) and not constant. ∎
Proof. $A\cap U$ and $A\cap V$ are disjoint, open in $A$, and cover $A$. As $A$ is connected one of them is empty, so $A$ lies in the other. ∎
Proof. Regard $f$ as a continuous surjection $X\to f(X)$. If $g:f(X)\to\{0,1\}$ is continuous, then $g\circ f:X\to\{0,1\}$ is continuous, hence constant by Theorem 9.52; since $f$ is onto $f(X)$, $g$ is constant. By Theorem 9.52 again, $f(X)$ is connected. ∎
Proof. If $S$ is not an interval, pick $x\lt z\lt y$ with $x,y\in S$, $z\notin S$; then $S\cap(-\infty,z)$ and $S\cap(z,\infty)$ form a separation of $S$. Conversely let $S$ be an interval and suppose $U,V$ is a separation of $S$ (sets open in $S$). Choose $a\in U$, $b\in V$; by symmetry $a\lt b$. Then $[a,b]\subseteq S$. Let $s=\sup\big(U\cap[a,b]\big)$; $s\in[a,b]\subseteq S$, so $s\in U$ or $s\in V$.
Case $s\in U$. Then $s\ne b$ (as $b\in V$), so $s\lt b$. $U$ is open in $S$, so some $[s,s+\delta)\cap S\subseteq U$ with $s+\delta\le b$; these points lie in $U\cap[a,b]$ and exceed $s$, contradicting $s=\sup$. Case $s\in V$. Then $s\gt a$ (as $a\in U$), and $V$ open in $S$ gives some $(s-\delta,s]\subseteq V$ with $s-\delta\ge a$. Then $U\cap[a,b]\subseteq[a,s-\delta]$, so $\sup\le s-\delta\lt s$, a contradiction. Hence $S$ has no separation. The last statement follows from Theorem 9.54. ∎
(a) If $\{A_\alpha\}$ is a family of connected subsets of $X$ with a point in common, then $\bigcup_\alpha A_\alpha$ is connected. More generally, if connected sets $A_1,A_2,\dots$ satisfy $A_n\cap A_{n+1}\ne\varnothing$ for all $n$, then $\bigcup_n A_n$ is connected.
(b) If $A$ is connected and $A\subseteq B\subseteq\overline{A}$, then $B$ is connected. In particular $\overline{A}$ is connected.
Proof. (a) Let $p$ be a common point and $Y=\bigcup A_\alpha$. If $U,V$ were a separation of $Y$ with $p\in U$, each $A_\alpha$ would lie in $U$ by Theorem 9.53 (it meets $U$ at $p$), so $V=\varnothing$. For the chain, $B_n=A_1\cup\cdots\cup A_n$ is connected by induction ($B_n$ and $A_{n+1}$ share a point), and the $B_n$ all contain $A_1$, so their union is connected by the first part. (b) Let $U,V$ be a separation of $B$. By Theorem 9.53, $A\subseteq U$, say. Then $\overline{A}\cap V=\varnothing$: a point of $V$ has the neighbourhood $V$ (open in $B$, so $V=W\cap B$ with $W$ open in $X$), and $W$ misses $A\subseteq U$. Since $B\subseteq\overline{A}$, $V=\varnothing$ — a contradiction. ∎
Proof. Two factors. Fix $(a,b)\in X\times Y$. For each $x\in X$ the "cross" $T_x=(X\times\{b\})\cup(\{x\}\times Y)$ is connected: both pieces are homeomorphic to $X$, $Y$ and they share the point $(x,b)$ (Theorem 9.56(a)). All $T_x$ contain $(a,b)$, and their union is $X\times Y$, so $X\times Y$ is connected. Induct for finitely many factors.
Arbitrary products. Fix $a=(a_\alpha)$. For each finite set $F$ of indices, the set $P_F$ of points agreeing with $a$ outside $F$ is homeomorphic to $\prod_{\alpha\in F}X_\alpha$, hence connected, and all $P_F$ contain $a$; so $P=\bigcup_F P_F$ is connected. $P$ is dense: a basic open set $\prod U_\alpha$ restricts only finitely many coordinates, say those in $F$, so it contains a point of $P_F$ (choose $u_\alpha\in U_\alpha$ for $\alpha\in F$ and $a_\alpha$ elsewhere). By Theorem 9.56(b), $\overline{P}=\prod X_\alpha$ is connected.
Box topology. Let $A$ be the set of bounded real sequences and $B$ the unbounded ones. If $x\in A$, the box $\prod_n(x_n-1,x_n+1)$ consists of bounded sequences, so $A$ is box-open; if $x\in B$, the same box consists of unbounded sequences, so $B$ is box-open. $A,B$ is a separation. (In the product topology this argument fails: a basic set restricts only finitely many coordinates, and contains both bounded and unbounded sequences.) ∎
Proof. Reflexivity: $\{x\}$ is connected. Symmetry is built in. Transitivity: if $A\ni x,y$ and $B\ni y,z$ are connected, then $A\cup B$ is connected (common point $y$) and contains $x,z$. The class of $x$ is the union of all connected sets containing $x$, which is connected by Theorem 9.56(a) and is therefore the largest one. Its closure is connected (Theorem 9.56(b)) and contains $x$, so $\overline{C(x)}\subseteq C(x)$: components are closed. A nonempty connected set $A$ lies in $C(a)$ for any $a\in A$. Finally a homeomorphism $h$ maps connected sets to connected sets in both directions, so $h(C(x))=C(h(x))$. ∎
Components are always closed but need not be open: in $\mathbb{Q}$ every component is a single point (Example 1), and points are not open in $\mathbb{Q}$. If $X$ has finitely many components, each is open (its complement is a finite union of closed sets).
Path-Connectedness and Cut Points
Proof. Fix $x_0\in X$. For each $x$, the image $\gamma_x([0,1])$ of a path from $x_0$ to $x$ is connected (Theorems 9.54, 9.55) and contains $x_0$; $X$ is the union of these sets, so it is connected by Theorem 9.56(a). If $\gamma$ joins $x,y$ in $X$ and $f$ is continuous, $f\circ\gamma$ joins $f(x),f(y)$. In a product, if $\gamma_\alpha$ joins $x_\alpha$ to $y_\alpha$, then $t\mapsto(\gamma_\alpha(t))_\alpha$ is continuous (each coordinate is, §9.2) and joins $x$ to $y$. Unions with a common point $p$: go from $x$ to $p$ and on to $y$. The last statement: a path component is path-connected, hence connected, hence inside one component. ∎
Proof. Fix $p\in U$ and let $P$ be the set of points of $U$ joined to $p$ by a polygonal path in $U$. $P$ is open: if $q\in P$ and $B(q,r)\subseteq U$, every point of the ball is joined to $q$ by a segment inside the (convex) ball. $U\setminus P$ is open: if $q\notin P$ and $B(q,r)\subseteq U$, no point $z$ of the ball is in $P$, for otherwise appending the segment $[z,q]$ would put $q$ in $P$. Since $p\in P$ and $U$ is connected, $U\setminus P=\varnothing$. ∎
Proof. Connected. $G$ is the image of the connected interval $(0,1]$ under the continuous map $x\mapsto(x,\sin\tfrac1x)$, so it is connected. Every point $(0,y)$ with $|y|\le1$ is a limit of points of $G$: with $\theta=\arcsin y$, the points $x_n=1/(\theta+2\pi n)\to0$ satisfy $\sin(1/x_n)=y$, so $(x_n,y)\to(0,y)$. Conversely, if $(x_n,\sin\frac1{x_n})\to(x,y)$ with $x\gt0$, continuity gives $y=\sin\frac1x$; and if $x=0$ then $|y|\le1$. So $\overline{G}=S$. By Theorem 9.56(b), $S$ is connected. It is closed and bounded, hence compact (Heine–Borel, Unit 1, §7.2).
Not path-connected. Suppose $\gamma:[0,1]\to S$ is a path with $\gamma(0)\in J$ and $\gamma(1)\in G$. The set $\gamma^{-1}(J)$ is closed (as $J$ is closed) and nonempty; let $t_0$ be its largest element. Then $t_0\lt1$, $\gamma(t_0)\in J$ and $\gamma(t)\in G$ for $t\gt t_0$. Write $\gamma(t)=(x(t),y(t))$, so $x(t_0)=0$ and, for $t\gt t_0$, $x(t)\gt0$ and $y(t)=\sin(1/x(t))$. For each $n$, the continuous function $x$ takes every value between $0$ and $x(t_0+\tfrac1n)\gt0$ on $[t_0,t_0+\tfrac1n]$ (when $t_0+\tfrac1n\le1$). Choose $u_n$ in that range with $\sin(1/u_n)=(-1)^n$ (take $1/u_n=\tfrac\pi2+k\pi$ with $k$ large and of the right parity), and $s_n\in(t_0,t_0+\tfrac1n]$ with $x(s_n)=u_n$. Then $s_n\to t_0$ while $y(s_n)=(-1)^n$ does not converge — contradicting the continuity of $y$ at $t_0$. So no path joins $J$ to $G$. Both $G$ (image of an interval) and $J$ (a segment) are path-connected, so they are the path components; $G$ is not closed because its closure is $S$. ∎
Intuition: a path from the segment to the curve would have to perform infinitely many full oscillations between heights $-1$ and $1$ in an arbitrarily short time. The sine curve is the standard reason for the one-way arrow "path-connected $\Rightarrow$ connected".
Connectedness becomes a sharp tool for distinguishing spaces once we remove points. If $h:X\to Y$ is a homeomorphism, then for each $p$ it restricts to a homeomorphism $X\setminus\{p\}\to Y\setminus\{h(p)\}$, so by Theorem 9.58 the two have the same number of components.
Proof. $h$ restricts to a bijection $X\setminus\{p\}\to Y\setminus\{h(p)\}$ which is continuous with continuous inverse (restrictions of continuous maps to subspaces are continuous, §9.2), so it is a homeomorphism; apply Theorem 9.58. Removing $p_1,\dots,p_k$ works the same way. ∎
Compact Spaces
An open cover of $X$ is a family $\mathcal{U}$ of open sets whose union is $X$; a subcover is a subfamily that still covers $X$. $X$ is a compact space if every open cover of $X$ has a finite subcover. A subset $Y\subseteq X$ is compact if it is compact in the subspace topology; equivalently, every cover of $Y$ by open sets of $X$ has a finite subfamily covering $Y$.
A family of sets has the finite intersection property (FIP) if every finite subfamily has nonempty intersection.
Proof. By De Morgan, a family $\{F_\alpha\}$ of closed sets has empty intersection iff the open sets $X\setminus F_\alpha$ cover $X$, and a finite subfamily has empty intersection iff the corresponding complements form a finite subcover. So "every open cover has a finite subcover" is the contrapositive of "every closed family with FIP has nonempty intersection". A decreasing sequence of nonempty sets has FIP (a finite subfamily intersects to its smallest member). ∎
Proof. Let $\mathcal{U}$ be a cover of $F$ by open sets of $X$. Adding the open set $X\setminus F$ gives an open cover of $X$, which has a finite subcover; discarding $X\setminus F$ from it leaves finitely many members of $\mathcal{U}$ covering $F$. ∎
Proof. (a) For each $y\in K$ choose disjoint open $U_y\ni x$, $V_y\ni y$. The $V_y$ cover $K$, so finitely many $V_{y_1},\dots,V_{y_m}$ do. Put $V=V_{y_1}\cup\cdots\cup V_{y_m}\supseteq K$ and $U=U_{y_1}\cap\cdots\cap U_{y_m}\ni x$, open as a finite intersection. A point of $U\cap V$ would lie in some $U_{y_i}\cap V_{y_i}=\varnothing$. (b) By (a) each $x\notin K$ has an open neighbourhood missing $K$, so $X\setminus K$ is open. (c) For each $x\in K$, (a) gives disjoint open $U_x\ni x$, $V_x\supseteq L$; finitely many $U_x$ cover $K$; their union and the intersection of the corresponding $V_x$ work. ∎
(a) If $X$ is compact and $f:X\to Y$ is continuous, then $f(X)$ is compact. In particular (extreme value theorem) a continuous $f:X\to\mathbb{R}$ on a nonempty compact space is bounded and attains its maximum and minimum.
(b) If $X$ is compact, $Y$ is Hausdorff and $f:X\to Y$ is continuous, then $f$ maps closed sets to closed sets. Consequently a continuous bijection from a compact space onto a Hausdorff space is a homeomorphism.
Proof. (a) If $\mathcal{V}$ is an open cover of $f(X)$, the sets $f^{-1}(V)$, $V\in\mathcal{V}$, cover $X$; finitely many do, and the corresponding $V$'s cover $f(X)$. For real $f$, $f(X)$ is a compact subset of $\mathbb{R}$, hence closed and bounded (Heine–Borel), so it contains its supremum and infimum. (b) If $F\subseteq X$ is closed, it is compact (Theorem 9.64), so $f(F)$ is compact (part (a)), hence closed in the Hausdorff space $Y$ (Theorem 9.65). If $f$ is a continuous bijection, $(f^{-1})^{-1}(F)=f(F)$ is closed for every closed $F$, so $f^{-1}$ is continuous. ∎
Part (b) is the workhorse for identifying quotient spaces (§9.2): $t\mapsto(\cos2\pi t,\sin2\pi t)$ induces a continuous bijection from the compact quotient $[0,1]/(0\sim1)$ onto the Hausdorff circle, which is therefore a homeomorphism. Both hypotheses matter: the same formula is a continuous bijection $[0,1)\to S^1$ that is not a homeomorphism ($[0,1)$ is not compact), and the identity from $[0,1]$ with the usual topology onto $[0,1]$ with the indiscrete topology is a continuous bijection onto a compact non-Hausdorff space that is not a homeomorphism.
Proof. Singletons are closed ($T_2\Rightarrow T_1$). Disjoint closed sets $A,B$ are compact (Theorem 9.64), so Theorem 9.65(c) separates them by disjoint open sets. ∎
Proof. (a) For each $y\in Y$ choose a basic open $U_y\times V_y$ with $(x_0,y)\in U_y\times V_y\subseteq N$. The $V_y$ cover the compact $Y$; take $V_{y_1},\dots,V_{y_m}$ and put $W=U_{y_1}\cap\cdots\cap U_{y_m}$. For $(x,y)\in W\times Y$: $y\in V_{y_i}$ for some $i$, and $x\in U_{y_i}$, so $(x,y)\in U_{y_i}\times V_{y_i}\subseteq N$. (b) Let $\mathcal{A}$ be an open cover of $X\times Y$. For each $x\in X$ the slice $\{x\}\times Y\cong Y$ is compact, so finitely many members of $\mathcal{A}$ cover it; their union $N_x$ is open and contains the slice, so by (a) contains a tube $W_x\times Y$. Finitely many $W_{x_1},\dots,W_{x_k}$ cover the compact $X$; the finitely many members of $\mathcal{A}$ used for $N_{x_1},\dots,N_{x_k}$ cover $X\times Y$. Induct for more factors. ∎
Idea of proof. Using Theorem 9.63, take a family $\mathcal{A}$ of subsets with FIP and enlarge it, by Zorn's lemma, to a maximal family $\mathcal{D}$ with FIP. For each $\alpha$ the sets $\overline{\pi_\alpha(D)}$, $D\in\mathcal{D}$, are closed in $X_\alpha$ with FIP, so by compactness of $X_\alpha$ they have a common point $x_\alpha$. Maximality of $\mathcal{D}$ forces every subbasic neighbourhood $\pi_\alpha^{-1}(U_\alpha)$ of $x=(x_\alpha)$, and hence every basic one, to belong to $\mathcal{D}$; so every basic neighbourhood of $x$ meets every $D\in\mathcal{D}$, i.e. $x\in\bigcap_{D\in\mathcal{D}}\overline{D}$. Tychonoff's theorem is equivalent to the axiom of choice (Kelley, 1950). For finitely many factors no choice is needed (Theorem 9.68), and for countably many compact metric factors a diagonal argument with sequences suffices.
In $\mathbb{R}^n$ (Heine–Borel) and in metric spaces you already have practical tests from Unit 1, §7.2: a subset of $\mathbb{R}^n$ is compact iff it is closed and bounded, and a metric space is compact iff it is sequentially compact iff it is complete and totally bounded. In general topological spaces none of these tests is available: "closed and bounded" makes no sense without a metric, and compactness and sequential compactness are different properties (the pitfalls box gives the examples).
Local Compactness, the One-Point Compactification and Invariants
Examples: $\mathbb{R}^n$ (closed balls), every discrete space ($\{x\}$ is compact), every compact Hausdorff space, every open or closed subspace of a locally compact Hausdorff space. Non-examples: $\mathbb{Q}$ (Exercise IV.1: a compact subset of $\mathbb{Q}$ is compact in $\mathbb{R}$, hence closed in $\mathbb{R}$, so it cannot contain a set $\mathbb{Q}\cap(-\varepsilon,\varepsilon)$ whose closure in $\mathbb{R}$ contains irrationals); $\mathbb{R}^{\mathbb{N}}$ with the product topology (a basic open set leaves all but finitely many coordinates free, so its closure contains a closed copy of $\mathbb{R}$, which is not compact); and every infinite-dimensional normed space (Riesz's lemma — a closed ball is never compact).
Proof. (a) Write $\mathcal{T}$ for the topology of $X$ and $\mathcal{C}$ for its compact closed sets. $\varnothing\in\mathcal{T}$, and $X^*=X^*\setminus\varnothing$. Intersections: $U\cap(X^*\setminus K)=U\setminus K\in\mathcal{T}$, and $(X^*\setminus K)\cap(X^*\setminus L)=X^*\setminus(K\cup L)$ with $K\cup L\in\mathcal{C}$. Unions: a union of sets of type (i) is of type (i); a union of sets $U_j$ of type (i) and at least one set $X^*\setminus K_i$ of type (ii) equals $X^*\setminus C$ with $C=\big(\bigcap_i K_i\big)\setminus\bigcup_j U_j$, a closed subset of some compact $K_i$, hence in $\mathcal{C}$ (Theorem 9.64). The trace of each open set on $X$ is in $\mathcal{T}$, so $X$ is a subspace, and it is open (type (i)). Compactness: in an open cover of $X^*$, some member contains $\infty$, say $X^*\setminus K$; the traces on $X$ of the other members are open in $X$ and cover the compact $K$, so finitely many do.
(b) If $X^*$ is Hausdorff, so is its subspace $X$; and for $x\in X$ there are disjoint open $U\ni x$ and $X^*\setminus K\ni\infty$, so $U\subseteq K$: $x$ has a compact neighbourhood. Conversely, two points of $X$ are separated inside $X$; and if $x\in U\subseteq K$ with $U$ open, $K$ compact (closed, as $X$ is Hausdorff), then $U$ and $X^*\setminus K$ separate $x$ and $\infty$. (c) If $X$ is not compact, every open set $X^*\setminus K$ around $\infty$ meets $X$ (as $K\ne X$), so $\infty\in\overline{X}$. (d) Map $X\cong Y\setminus\{p\}$ and $\infty\mapsto p$. One checks this bijection $X^*\to Y$ is continuous at $\infty$ (a neighbourhood $Y\setminus C$ of $p$, $C$ closed in $Y$ hence compact, pulls back to $X^*\setminus C'$) and applies Theorem 9.66(b). ∎
We can now collect the invariants of this chapter. A property is a topological invariant if every space homeomorphic to a space with the property also has it. To prove $X\not\cong Y$, find an invariant that one has and the other lacks.
| invariant | examples it separates |
|---|---|
| compactness | $[0,1]$ vs $[0,1)$, $(0,1)$, $\mathbb{R}$; $S^1$ vs $\mathbb{R}$; $S^2$ vs $\mathbb{R}^2$ |
| connectedness, number of components | $[0,1]\cup[2,3]$ vs $[0,1]$; $\mathbb{Q}$ vs $\mathbb{R}$; $GL_n(\mathbb{R})$ vs $GL_n(\mathbb{C})$ |
| path-connectedness | topologist's sine curve vs $[0,1]$ |
| components after removing $k$ points | $\mathbb{R}$ vs $\mathbb{R}^2$; $S^1$ vs $[0,1]$; T vs X; circle vs θ-curve ($k=2$) |
| separation axioms, countability axioms | $\mathbb{R}_\ell$ vs $\mathbb{R}$ (second countable); cofinite vs usual line ($T_2$) |
| local compactness | $\mathbb{Q}$ vs $\mathbb{Z}$ (also: $\mathbb{Z}$ is discrete, $\mathbb{Q}$ has no isolated points) |
| not invariants | boundedness ($(0,1)\cong\mathbb{R}$), completeness ($(0,1)$ vs $\mathbb{R}$), length, curvature |
- Connected: exhibit it as a continuous image of a connected space (an interval, a product of intervals), a union of connected sets with common points or a chain, or a set squeezed between a connected set and its closure. In $\mathbb{R}^n$, open + connected = path-connected.
- Not connected: find a continuous onto map to $\{0,1\}$ (a sign, $\det$, "bounded or not"), or a clopen proper subset.
- Connected but not path-connected: look for an oscillation accumulating on a set (topologist's sine curve and its variants).
- Compact: in $\mathbb{R}^n$ use closed + bounded; in general use continuous images, closed subsets of compact sets, finite unions, products (Tychonoff — product topology only!).
- Not compact: write down an explicit open cover with no finite subcover (nested sets $(-n,n)$, $(\tfrac1n,1]$, $[0,1-\tfrac1n)$); or find an infinite closed discrete subset; or a continuous real function that is unbounded or does not attain its supremum.
- Homeomorphic? First compare invariants (compactness, components, cut points, countability, separation). If all agree, try to write down a homeomorphism; a continuous bijection from a compact space to a Hausdorff space is automatically one.
- Connected $\not\Rightarrow$ path-connected. Topologist's sine curve; also $G\cup\{(0,0)\}$ with $G$ the graph of $\sin(1/x)$, $x\gt0$.
- Components need not be open; path components need not be closed. In $\mathbb{Q}$ components are points (not open); in the sine curve the path component $G$ is not closed.
- Box topology breaks everything. $\mathbb{R}^{\mathbb{N}}$ (box) is disconnected; $[0,1]^{\mathbb{N}}$ (box) is not compact. Products are connected/compact only in the product topology.
- Compact need not be closed in a non-Hausdorff space: in the cofinite topology every subset is compact.
- Intersection of compact sets need not be compact without Hausdorff: $K_a\cap K_b$ in the line with two origins (Example 5).
- Continuous bijection $\ne$ homeomorphism. $t\mapsto e^{2\pi it}$ from $[0,1)$ onto $S^1$; it works on $[0,1]/(0\sim1)$ because the domain is then compact.
- Closed and bounded $\ne$ compact outside $\mathbb{R}^n$: the closed unit ball of $\ell^2$ (the orthonormal vectors $e_n$ have no convergent subsequence), $\mathbb{R}$ with the bounded metric $\min(|x-y|,1)$.
- Compact vs sequentially compact. They agree for metric spaces, but $[0,1]^{[0,1]}$ (product topology) is compact and not sequentially compact, and the space of countable ordinals is sequentially compact and not compact.
- Finer topologies can lose compactness, coarser ones can lose Hausdorff. $[0,1]$ is not compact in $\mathbb{R}_\ell$; the indiscrete topology makes everything compact and connected.
- Totally disconnected does not mean discrete. $\mathbb{Q}$, $\mathbb{R}\setminus\mathbb{Q}$, $\mathbb{R}_\ell$ and the Cantor set have no isolated points.
- $X^*$ is always compact, not always Hausdorff. $\mathbb{Q}^*$ is compact and not Hausdorff because $\mathbb{Q}$ is not locally compact.
- Unions need overlaps. $\mathbb{Q}=\bigcup_{q}\{q\}$ is a union of connected sets but is totally disconnected; Theorem 9.56(a) needs a common point or a chain.
- Removing a countable set. $\mathbb{R}\setminus\mathbb{Q}$ is totally disconnected, but $\mathbb{R}^2\setminus\mathbb{Q}^2$ (and $\mathbb{R}^2$ minus any countable set) is path-connected.
Exercises
- 1 Show that $\mathbb{R}$ with the cocountable topology is connected, and that $\mathbb{R}$ with the topology $\{\varnothing,\mathbb{R}\}\cup\{(-\infty,a):a\in\mathbb{R}\}$ is connected.
- 2 Prove that a discrete space with at least two points is disconnected, and that a space $X$ is connected iff every continuous map from $X$ to a discrete space is constant.
- 3 Find the number of components of the set of $(x,y)\in\mathbb{R}^2$ with $(x^2+y^2-1)(x^2+y^2-4)\ne0$, and of the hyperbola $\{x^2-y^2=1\}$.
- 4 Let $f:S^1\to\mathbb{R}$ be continuous. Prove that $f(z)=f(-z)$ for some $z\in S^1$.
- 5 Prove that $GL_n(\mathbb{C})$ is path-connected. (Hint: for $A,B$ invertible, $z\mapsto\det((1-z)A+zB)$ is a polynomial.)
- 6 Let $A_1,A_2,\dots$ be connected subsets of $X$ with $A_n\cap A_{n+1}\ne\varnothing$. Show that $\bigcup A_n$ is connected, and give an example where $A_n\cap A_m=\varnothing$ for $|n-m|\ge2$.
- 7 Prove the equivalence in Definition 9.24: $Y\subseteq X$ is disconnected iff $Y=A\cup B$ with $A,B$ nonempty, $\overline{A}\cap B=\varnothing=A\cap\overline{B}$.
- 8 Show that a connected metric space with at least two points is uncountable.
- 9 Let $X$ be connected and $f:X\to\mathbb{R}$ continuous and locally constant (each point has a neighbourhood on which $f$ is constant). Prove that $f$ is constant.
- 1 Show that $S=G\cup\{(0,0)\}$, where $G=\{(x,\sin\tfrac1x):x\gt0\}$, is connected but not path-connected.
- 2 Show that the comb space $C$, the union of the base $[0,1]\times\{0\}$, the segment $\{0\}\times[0,1]$ and the teeth $\{\tfrac1n\}\times[0,1]$ ($n\ge1$), is path-connected, and that it is not locally connected at $(0,1)$ in the sense that small balls around $(0,1)$ meet $C$ in disconnected sets.
- 3 Prove that $[0,1)$ and $(0,1)$ are not homeomorphic, and that $\mathbb{R}$ and $[0,\infty)$ are not homeomorphic.
- 4 Show that the circle and the θ-curve (a circle together with one diameter) are not homeomorphic.
- 5 Show that $S^1$ is not homeomorphic to any subset of $\mathbb{R}$.
- 6 Show that $\mathbb{R}^2\setminus C$ is path-connected for every countable $C\subseteq\mathbb{R}^2$.
- 7 Find the number of path components of the union of the $x$-axis and the branch $\{y=1/x,\ x\gt0\}$ in $\mathbb{R}^2$, and of $GL_1(\mathbb{R})$.
- 1 Show that a finite union of compact subsets of $X$ is compact, and that a space with only finitely many open sets is compact.
- 2 Show that $(0,1]$ is not compact by exhibiting an open cover with no finite subcover, and that $\{0\}\cup\{1/n:n\in\mathbb{N}\}$ is compact directly from the definition.
- 3 Let $X$ be compact, $Y$ Hausdorff and $f:X\to Y$ continuous. Show that $f$ is a closed map, and deduce that $[0,1]/(0\sim1)\cong S^1$.
- 4 Let $X$ be compact Hausdorff and $f:X\to X$ continuous. Show that $\bigcap_{n\ge1}f^n(X)$ is nonempty.
- 5 Prove that every compact metric space is separable, and that every compact subset of a metric space is bounded.
- 6 Let $X$ be compact and $f:X\to\mathbb{R}$ lower semicontinuous ($\{f\gt c\}$ open for all $c$). Show that $f$ attains its minimum.
- 7 Prove that the closed unit ball of $\ell^2$ is closed and bounded but not compact.
- 8 Let $F_1\supseteq F_2\supseteq\cdots$ be nonempty closed subsets of a compact space. Show that $\bigcap F_n\ne\varnothing$, and give nested nonempty closed subsets of $\mathbb{R}$ with empty intersection.
- 9 (Robot arm.) A planar arm has links of lengths $3$ m and $2$ m and two rotating joints, so its configuration space is the torus $S^1\times S^1$ of joint angles $(\theta,\varphi)$; its tip is at $$P(\theta,\varphi)=3e^{i\theta}+2e^{i(\theta+\varphi)}$$ (points of the plane written as complex numbers). Explain why the reachable set $W$ of tip positions is compact and connected, and find it.
- 1 Show that $\mathbb{Q}$ is not locally compact, but $\mathbb{Z}$ is.
- 2 Show that the one-point compactification of $\mathbb{N}$ is homeomorphic to $\{0\}\cup\{1/n:n\in\mathbb{N}\}$, checking continuity at $\infty$ directly.
- 3 Identify the one-point compactification of $\mathbb{R}\setminus\{0\}$ and of $(0,1)\cup(2,3)$.
- 4 Use Tychonoff's theorem to show $\{0,1\}^{\mathbb{N}}$ (product topology) is compact, and prove that $(a_n)\mapsto\sum_n 2a_n3^{-n}$ is a homeomorphism onto the Cantor set.
- 5 (Challenge.) Prove that a connected normal space with at least two points is uncountable.
- 6 (Challenge.) Let $F_1\supseteq F_2\supseteq\cdots$ be nonempty compact connected subsets of a Hausdorff space. Prove that $\bigcap_n F_n$ is connected. Show by an example in $\mathbb{R}^2$ that "compact" cannot be replaced by "closed".
E1. CSIR Part B GATE MA Which of the following subsets of $\mathbb{R}^2$ is connected but not path-connected? (A) $\{(x,y):x^2+y^2=1\}$; (B) $\{(x,\sin\tfrac1x):x\gt0\}\cup\{(0,0)\}$; (C) $\mathbb{R}^2\setminus\mathbb{Q}^2$; (D) $\{(x,y):xy=1\}$.
E2. CSIR Part B Which pair of spaces (usual topologies) is homeomorphic? (A) $[0,1]$ and $S^1$; (B) $(0,1)$ and $[0,1)$; (C) $\mathbb{R}^2\setminus\{(0,0)\}$ and $S^1\times\mathbb{R}$; (D) $\mathbb{R}$ and $\mathbb{R}^2$.
E3. CSIR Part B Let $X=\mathbb{R}$ with the cofinite topology. Then $X$ is (A) compact and connected; (B) compact but not connected; (C) connected but not compact; (D) neither compact nor connected.
E4. CSIR Part C Let $X$ be a compact space, $Y$ a Hausdorff space and $f:X\to Y$ continuous. Which of the following are necessarily true? (A) $f(X)$ is closed in $Y$. (B) If $f$ is a bijection, it is a homeomorphism. (C) $f^{-1}(K)$ is compact for every compact $K\subseteq Y$. (D) $X$ is Hausdorff.
E5. CSIR Part C Which of the following spaces are compact? (A) $[0,1]$ as a subspace of the Sorgenfrey line $\mathbb{R}_\ell$; (B) $[0,1]^{\mathbb{N}}$ with the product topology; (C) the closed unit ball $\{x\in\ell^2:\|x\|\le1\}$; (D) the one-point compactification $\mathbb{Q}^*$ of $\mathbb{Q}$.
E6. CSIR Part C Let $X$ be a connected topological space with at least two points. Which of the following are necessarily true? (A) $X\times X$ is connected. (B) Every continuous $f:X\to\mathbb{Z}$ is constant. (C) $X$ is path-connected. (D) If $X$ is normal, then $X$ is uncountable.
Suggested plan — 3 lectures × 60 min.
- Connectedness. Definition 9.24 and Theorem 9.52 (the $\{0,1\}$-valued test is the one students should use); Theorems 9.54–9.56 with the interval proof done in full on the board; products (the "cross" picture for $X\times Y$, the bounded/unbounded separation for the box topology); components and Example 1 — let the class guess first whether $\mathbb{R}_\ell$ and the cofinite line are connected.
- Paths and invariants. Theorem 9.59, open connected sets in $\mathbb{R}^n$, the topologist's sine curve (draw it; the key step is the oscillation argument), Example 2(c). Then project Interactive 1: segment vs circle, tripod vs cross, and finally circle vs θ-curve — ask the class why equal profiles do not mean homeomorphic. Example 3.
- Compactness. Definitions, FIP, Theorems 9.64–9.67 (the separation lemma 9.65(a) is the heart), Interactive 2 (start with the random cover on $[0,1]$, then the $(0,1]$ and $\mathbb{R}_\ell$ covers), tube lemma, Tychonoff (state), Example 4. Ten minutes on local compactness and $X^*$ with Example 6 — connect $(\mathbb{R}^2)^*=S^2$ to the Riemann sphere of Chapter 1. Close with Exam corner E4, E5.
Discussion questions. (1) Is the closure of a path-connected set path-connected? Is the closure of a connected set connected? Why the difference? (2) Which invariant would you use to show that the surface of a doughnut minus a point is not homeomorphic to a disc? Do the tools of this chapter suffice? (3) Why does Tychonoff's theorem fail for the box topology, and which step of the proof uses "finitely many coordinates"?
Misconceptions to watch for. "Connected $\Rightarrow$ path-connected"; "closed and bounded $\Rightarrow$ compact" in any metric space; "compact $\Rightarrow$ closed" without Hausdorff; "a continuous bijection is a homeomorphism"; "components are open"; "the one-point compactification is Hausdorff"; using the box topology in product theorems.
Suggested homework. I(1, 3, 4, 5, 8), II(1, 3, 4, 6), III(2, 3, 4, 7, 9), IV(1, 3, 5); Exam corner E1, E3, E6.
Research question. A compact metric space is connected exactly when, for every $\varepsilon\gt0$, any two points can be joined by an $\varepsilon$-chain $x=x_0,x_1,\dots,x_m=y$ with $d(x_{i-1},x_i)\lt\varepsilon$. Can this criterion tell how many "pieces" a cloud of data points has, and at what scale?
Why it matters. Topological data analysis (used for example on protein conformations, sensor networks and astronomical surveys) studies how the number of $\varepsilon$-chain classes of a finite sample changes as $\varepsilon$ grows — the "zero-dimensional persistent homology" of the data. The same computation is single-linkage clustering in statistics: clusters that persist over a long range of $\varepsilon$ are real features; short-lived ones are noise.
What to do.
- Prove the criterion: if $X$ is connected, the set of points $\varepsilon$-chain-reachable from $x$ is clopen; conversely, if $X=A\cup B$ is a separation of a compact space, then $d(A,B)\gt0$ (both are compact), so no $\varepsilon$-chain with $\varepsilon\lt d(A,B)$ crosses.
- Show the criterion fails without compactness: $\mathbb{Q}$ is $\varepsilon$-chain connected for every $\varepsilon$, and so is the hyperbola-plus-axis set of Exercise II.7.
- Sample $300$ points from two noisy circles (radius $1$ centred at $(0,0)$ and at $(3,0)$) with a fixed random seed. For $\varepsilon$ from $0.01$ to $3$ compute the number of $\varepsilon$-chain classes (union–find on all pairs at distance $\lt\varepsilon$) and plot it against $\varepsilon$.
- Read off the range of $\varepsilon$ on which the count is $2$, and explain it in terms of the gap between the circles and the sampling density.
Tools: Python with NumPy (or SciPy's single-linkage clustering), and a plotting library.
Hand in: The proof of step 1, the counterexamples of step 2, and the plot of the number of classes against $\varepsilon$ with a short interpretation.
Going further. Read about persistence barcodes and the stability theorem (Cohen-Steiner, Edelsbrunner and Harer, 2007), which says that small perturbations of the data change the barcode only slightly — a quantitative version of "topological features are robust".
🧪 Self-check quiz
Q1. Which of these spaces is connected but not path-connected?
Q2. A continuous bijection $f:X\to Y$ is guaranteed to be a homeomorphism when
Q3. $\mathbb{R}^{\mathbb{N}}$ with the box topology is
Q4. The one-point compactification of $\mathbb{R}^2$ is homeomorphic to
Q5. The simplest proof that $\mathbb{R}$ and $\mathbb{R}^2$ are not homeomorphic uses