9.1 Topological Spaces, Bases and Continuity
Nearness without distance: topologies and their bases, the discrete, cofinite, cocountable and lower limit topologies, closure, interior, boundary and density, the countability axioms, and continuous maps and homeomorphisms.
In a metric space (Unit 1, §7.1 Metric Spaces and Completeness) almost every notion — open set, closure, convergence, continuity — is defined through the distance $d$, and yet the distance itself is soon forgotten. Two metrics such as $|x-y|$ and $\min(1,|x-y|)$ on $\mathbb{R}$ have exactly the same open sets, the same convergent sequences and the same continuous functions; what matters is only which sets are open. Topology takes this seriously: it keeps the open sets and throws the distance away. The result is a theory that covers metric spaces, but also spaces in which "nearness" has no numerical meaning: the Zariski topology of algebraic geometry, whose closed sets are the zero sets of polynomials and which behaves like the cofinite topology below; spaces of functions with pointwise convergence, which no metric describes when the domain is uncountable; finite spaces that model digital images; and the quotient spaces of §9.2.
The price of generality is that intuition from $\mathbb{R}$ fails in instructive ways. In the cocountable topology on $\mathbb{R}$ the point $0$ lies in the closure of $\mathbb{R}\setminus\{0\}$, yet no sequence of nonzero numbers converges to it; in the lower limit topology the function $x\mapsto -x$ is not continuous; in the cofinite topology every continuous real-valued function is constant. CSIR NET examines exactly these phenomena: almost every paper has a Part B or Part C question asking for the closure or interior of a set in a stated topology, for a comparison of topologies, for which of several spaces is separable or second countable, or for which maps are continuous or homeomorphisms. This section builds the vocabulary and the stock of examples needed for all of them.
Topologies and Open Sets
A topology on a set $X$ is a collection $\mathcal{T}$ of subsets of $X$ such that
- $\varnothing\in\mathcal{T}$ and $X\in\mathcal{T}$;
- the union of any subcollection of $\mathcal{T}$ (finite, countable or uncountable) belongs to $\mathcal{T}$;
- the intersection of any finitely many members of $\mathcal{T}$ belongs to $\mathcal{T}$ (equivalently, $U,V\in\mathcal{T}\Rightarrow U\cap V\in\mathcal{T}$).
The pair $(X,\mathcal{T})$ is a topological space; the members of $\mathcal{T}$ are its open sets. An open set containing a point $x$ is an open neighbourhood of $x$. When the topology is clear we simply say "the space $X$".
Condition 3 cannot be extended to infinite intersections: in $\mathbb{R}$ the open intervals $(-\tfrac1n,\tfrac1n)$ have intersection $\{0\}$, which is not open. This asymmetry between unions and intersections is the whole content of the axioms.
A space is metrizable if its topology is the metric topology of some metric on $X$. On a finite set the cofinite topology is discrete, and on a countable set the cocountable topology is discrete; both are interesting only on infinite (respectively uncountable) sets such as $\mathbb{R}$.
Let us check the axioms for the cofinite topology. $\varnothing$ is included by decree and $X\setminus X=\varnothing$ is finite. If $\{U_i\}$ are nonempty cofinite sets, then $X\setminus\bigcup U_i=\bigcap(X\setminus U_i)$ is contained in the finite set $X\setminus U_{i_0}$, hence finite (if some $U_i$ are empty, simply discard them). If $U,V$ are nonempty cofinite, $X\setminus(U\cap V)=(X\setminus U)\cup(X\setminus V)$ is finite; if one of them is empty so is $U\cap V$. The same argument, with "countable" in place of "finite", works for the cocountable topology, because subsets and finite unions of countable sets are countable. (Countable unions would also be fine — which is why the cocountable topology is even closed under countable intersections.)
Proof. Apply De Morgan's laws (Unit 1, §1.1): $X\setminus\bigcap_i C_i=\bigcup_i(X\setminus C_i)$ is a union of open sets, hence open, and $X\setminus(C_1\cup\dots\cup C_n)=\bigcap_{k=1}^n(X\setminus C_k)$ is a finite intersection of open sets. Part (a) is the first axiom read through complements. The converse is the same computation in reverse. ∎
Thus a topology can be specified equally well by its closed sets. The cofinite topology is the one whose closed sets are $X$ and the finite sets; the cocountable topology has closed sets $X$ and the countable sets. For the Sierpiński space $\{\varnothing,\{1\},\{0,1\}\}$ the closed sets are $\{0,1\},\{0\},\varnothing$, so $\{1\}$ is open but not closed and $\{0\}$ is closed but not open.
Proof. Each $\mathcal{T}_i$ contains $\varnothing$ and $X$. If every $U_j$ lies in every $\mathcal{T}_i$, then $\bigcup_j U_j$ lies in every $\mathcal{T}_i$ (each is closed under unions), and the same holds for finite intersections. For the last claim take $X=\{a,b,c\}$, $\mathcal{T}_1=\{\varnothing,\{a\},X\}$, $\mathcal{T}_2=\{\varnothing,\{b\},X\}$: the union contains $\{a\}$ and $\{b\}$ but not $\{a,b\}$. ∎
Bases and Subbases
Most topologies are too large to list. Instead we describe a manageable family of "basic" open sets — the open intervals in $\mathbb{R}$, the open discs in $\mathbb{R}^2$ — and declare a set open when it is a union of basic ones.
A collection $\mathcal{B}$ of subsets of $X$ is a basis (for some topology on $X$) if
- (covering) every $x\in X$ lies in at least one $B\in\mathcal{B}$;
- (intersection) if $x\in B_1\cap B_2$ with $B_1,B_2\in\mathcal{B}$, there is $B_3\in\mathcal{B}$ with $x\in B_3\subseteq B_1\cap B_2$.
The topology generated by $\mathcal{B}$, written $\mathcal{T}_{\mathcal{B}}$, consists of the sets $U\subseteq X$ such that for every $x\in U$ there is some $B\in\mathcal{B}$ with $x\in B\subseteq U$. If $\mathcal{T}=\mathcal{T}_{\mathcal{B}}$ we call $\mathcal{B}$ a basis of $\mathcal{T}$ and its members basic open sets.
Proof. Topology. $\varnothing$ satisfies the condition vacuously and $X$ does by the covering property. If $U=\bigcup U_i$ with each $U_i\in\mathcal{T}_{\mathcal{B}}$ and $x\in U$, then $x\in U_{i_0}$ for some $i_0$, so there is $B$ with $x\in B\subseteq U_{i_0}\subseteq U$. If $U,V\in\mathcal{T}_{\mathcal{B}}$ and $x\in U\cap V$, choose $B_1,B_2\in\mathcal{B}$ with $x\in B_1\subseteq U$, $x\in B_2\subseteq V$; the intersection property gives $B_3$ with $x\in B_3\subseteq B_1\cap B_2\subseteq U\cap V$. Finite intersections follow by induction.
Unions of basic sets. Each $B\in\mathcal{B}$ is in $\mathcal{T}_{\mathcal{B}}$ (take $B$ itself for every $x\in B$), so unions of basic sets are open. Conversely, if $U\in\mathcal{T}_{\mathcal{B}}$, choose for each $x\in U$ a basic $B_x$ with $x\in B_x\subseteq U$; then $U=\bigcup_{x\in U}B_x$. Finally, any topology containing $\mathcal{B}$ contains all unions of members of $\mathcal{B}$, hence contains $\mathcal{T}_{\mathcal{B}}$. ∎
Proof. Covering: apply the hypothesis with $U=X$. Intersection: if $x\in C_1\cap C_2$, then $C_1\cap C_2$ is open (both are open), so some $C_3\in\mathcal{C}$ satisfies $x\in C_3\subseteq C_1\cap C_2$. By the hypothesis every $U\in\mathcal{T}$ satisfies the defining condition of $\mathcal{T}_{\mathcal{C}}$, so $\mathcal{T}\subseteq\mathcal{T}_{\mathcal{C}}$; conversely every member of $\mathcal{T}_{\mathcal{C}}$ is a union of members of $\mathcal{C}\subseteq\mathcal{T}$ (Theorem 9.3), hence lies in $\mathcal{T}$. ∎
Proof. ($\Leftarrow$) Let $U\in\mathcal{T}$ and $x\in U$. There is $B\in\mathcal{B}$ with $x\in B\subseteq U$, and then $B'\in\mathcal{B}'$ with $x\in B'\subseteq B\subseteq U$; so $U\in\mathcal{T}'$. ($\Rightarrow$) If $x\in B\in\mathcal{B}$, then $B\in\mathcal{T}\subseteq\mathcal{T}'$, and since $\mathcal{B}'$ generates $\mathcal{T}'$ there is $B'\in\mathcal{B}'$ with $x\in B'\subseteq B$. ∎
For example, every open disc in $\mathbb{R}^2$ contains an open square with the same centre, and every open square contains an open disc with the same centre; by Theorem 9.5 the discs and the squares generate the same topology — the standard one. A basis is a description of a topology, and one topology has many bases: the open intervals with rational end points, a countable family, already form a basis of the standard topology on $\mathbb{R}$ (Theorem 9.4: between $x$ and the ends of any interval around it there are rationals).
Proof. (a) Given $x\in(a,b)$, the basic set $[x,b)$ satisfies $x\in[x,b)\subseteq(a,b)$, so by Theorem 9.5 every standard-open set is open in $\mathbb{R}_\ell$. The set $[0,1)$ is open in $\mathbb{R}_\ell$ but not standard-open (no interval $(-\varepsilon,\varepsilon)$ around $0$ fits inside it). (b) $[a,b)$ is open by definition. Its complement $(-\infty,a)\cup[b,\infty)$ is open, being the union of the intervals $[a-n,a)$ and $[b,b+n)$, $n\in\mathbb{N}$. So $[a,b)$ is closed too. The rays are handled in the same way: $[a,\infty)=\bigcup_n[a,a+n)$ and $(-\infty,a)=\bigcup_n[a-n,a)$ are open, and they are each other's complements. (c) A basic set containing $b$ has the form $[c,d)$ with $c\le b\lt d$, and contains points greater than $b$; so no basic set containing $b$ lies inside $(a,b]$ or $[a,b]$. A singleton $\{x\}$ contains no $[x,x+\varepsilon)$. ∎
Part (b) is striking: in $\mathbb{R}_\ell$ the line splits into the two disjoint open pieces $(-\infty,0)$ and $[0,\infty)$, something that never happens in the standard line (Unit 1, §7.3 Connectedness). Section 9.4 calls such a space disconnected.
Proof. $\mathcal{B}\supseteq\mathcal{S}$ covers $X$, and the intersection of two finite intersections is again a finite intersection, so $\mathcal{B}$ is a basis (with $B_3=B_1\cap B_2$). $\mathcal{T}_{\mathcal{B}}$ contains $\mathcal{S}$. Any topology containing $\mathcal{S}$ contains all finite intersections of its members, hence $\mathcal{B}$, hence (Theorem 9.3) $\mathcal{T}_{\mathcal{B}}$. ∎
The open rays $(a,\infty)$ and $(-\infty,b)$ form a subbasis of the standard topology on $\mathbb{R}$, since $(a,b)=(a,\infty)\cap(-\infty,b)$. Subbases matter most for products: in §9.2 the product topology is defined by the subbasis of "open cylinders" $\pi_\alpha^{-1}(U)$, and continuity is then checked on a subbasis alone (Theorem 9.15 below).
Interior, Closure, Boundary and Dense Sets
Let $A\subseteq X$. A neighbourhood of $x$ is any set $N$ containing an open set $U$ with $x\in U\subseteq N$.
- The interior $A^\circ=\operatorname{int}A$ is the union of all open sets contained in $A$ — the largest open subset of $A$.
- The closure $\overline{A}=\operatorname{cl}A$ is the intersection of all closed sets containing $A$ — the smallest closed superset of $A$.
- The exterior is $\operatorname{ext}A=\operatorname{int}(X\setminus A)$ and the boundary (frontier) is $\partial A=\overline{A}\cap\overline{X\setminus A}$.
- $x\in\operatorname{int}A$ iff some open $U$ (equivalently, some basic $B$) satisfies $x\in U\subseteq A$. $A$ is open iff $A=\operatorname{int}A$.
- $x\in\overline{A}$ iff every open neighbourhood of $x$ (equivalently, every basic $B\ni x$) meets $A$. $A$ is closed iff $A=\overline{A}$.
- $X\setminus\overline{A}=\operatorname{int}(X\setminus A)$ and $X\setminus\operatorname{int}A=\overline{X\setminus A}$.
Proof. (1) If $x\in U\subseteq A$ with $U$ open, $U$ is one of the sets whose union is $\operatorname{int}A$. Conversely $\operatorname{int}A$ is itself open and contained in $A$. Since every open $U\ni x$ contains a basic $B\ni x$, "open" may be replaced by "basic". The interior of an open set is the set itself, and $\operatorname{int}A$ is open, which gives the last sentence.
(3) Complements turn "closed sets containing $A$" into "open sets contained in $X\setminus A$", and turn intersections into unions. So the complement of $\overline{A}$ (the intersection of all closed $C\supseteq A$) is the union of all open $U\subseteq X\setminus A$, i.e. $X\setminus\overline{A}=\operatorname{int}(X\setminus A)$. Applying this to $X\setminus A$ and complementing gives the second identity.
(2) By (3), $x\notin\overline{A}$ iff $x\in\operatorname{int}(X\setminus A)$ iff (by (1)) some open (or basic) $U\ni x$ lies in $X\setminus A$, i.e. misses $A$. Negating gives (2). Finally, $\overline{A}$ is closed (an intersection of closed sets, Theorem 9.1), so $A=\overline{A}$ forces $A$ closed, and a closed $A$ is one of the sets in the intersection, so $\overline{A}\subseteq A$. ∎
Proof. If $x\in A'$, every open neighbourhood of $x$ meets $A$, so $x\in\overline{A}$ by Theorem 9.8(2); and $A\subseteq\overline{A}$. Conversely let $x\in\overline{A}\setminus A$. Every open $U\ni x$ meets $A$, and since $x\notin A$ the point found is different from $x$; so $x\in A'$. The criterion for closedness follows from $A=\overline{A}\iff A\cup A'=A\iff A'\subseteq A$. If $a_n\in A$ and $a_n\to x$, every open $U\ni x$ contains $a_N$ for large $N$, hence meets $A$. ∎
Proof. $\varnothing$ is closed, $\overline{A}$ is closed and contains $A$, and the closure of a closed set is itself; this gives the first three rules. If $A\subseteq B$ then $\overline{B}$ is a closed set containing $A$, so $\overline{A}\subseteq\overline{B}$ (monotonicity). Hence $\overline{A}\cup\overline{B}\subseteq\overline{A\cup B}$; conversely $\overline{A}\cup\overline{B}$ is closed (Theorem 9.1(c)) and contains $A\cup B$, so it contains $\overline{A\cup B}$. Monotonicity also gives the two inclusions in the second card. The interior rules follow from the closure rules by complementing (Theorem 9.8(3)); for instance $X\setminus\operatorname{int}(A\cap B)=\overline{(X\setminus A)\cup(X\setminus B)}$, and this equals $\overline{X\setminus A}\cup\overline{X\setminus B}=X\setminus(\operatorname{int}A\cap\operatorname{int}B)$.
For the boundary: $\overline{X\setminus A}=X\setminus\operatorname{int}A$ by Theorem 9.8(3), so $\partial A=\overline{A}\cap(X\setminus\operatorname{int}A)=\overline{A}\setminus\operatorname{int}A$; it is closed as an intersection of two closed sets, and the definition is symmetric in $A$ and $X\setminus A$. Every point lies in exactly one of $\operatorname{int}A$, $\partial A$, $X\setminus\overline{A}=\operatorname{ext}A$. Finally, $A\cap\partial A=A\setminus\operatorname{int}A$ is empty iff $A$ is open; $\partial A\subseteq A$ iff $\overline{A}\subseteq A$ iff $A$ is closed; and $\partial A=\varnothing$ iff $\overline{A}=\operatorname{int}A$, which forces $\operatorname{int}A=A=\overline{A}$. ∎
Proof. (i)$\Leftrightarrow$(ii)$\Leftrightarrow$(iii): by Theorem 9.8(2), $\overline{D}=X$ means that every point's open (equivalently basic) neighbourhoods all meet $D$, i.e. every nonempty open (basic) set meets $D$. (i)$\Leftrightarrow$(iv): $\operatorname{int}(X\setminus D)=X\setminus\overline{D}$. For the second statement let $x\in U$ and let $V\ni x$ be open; then $V\cap U$ is a nonempty open set, so it meets $D$, i.e. $V$ meets $U\cap D$; thus $x\in\overline{U\cap D}$. If $U_1,U_2$ are dense and open, $U_1\cap U_2$ is open, and $\overline{U_1\cap U_2}\supseteq\overline{U_1}$ by the previous statement applied to $U=U_1$ and $D=U_2$ (monotonicity of closure), and $\overline{U_1}=X$. ∎
Density of a countable set is the best way to "capture" a big space with a small set: $\mathbb{Q}$ in $\mathbb{R}$, $\mathbb{Q}^n$ in $\mathbb{R}^n$, polynomials with rational coefficients in $C[0,1]$ (Unit 1, §7.4). The dense open sets of Theorem 9.11 are the raw material of the Baire category theorem (Unit 1, §7.1).
- Find the smallest neighbourhoods. Write down a basis and, for a point $x$, the "smallest" basic sets containing it: $(x-\varepsilon,x+\varepsilon)$ in $\mathbb{R}$, $[x,x+\varepsilon)$ in $\mathbb{R}_\ell$, $\{x,p\}$ in the particular point topology, the cofinite sets $\mathbb{R}\setminus F$ in the cofinite topology.
- Test points one at a time. $x\in\overline{A}$ iff every such neighbourhood meets $A$; $x\in\operatorname{int}A$ iff one of them lies inside $A$; $x\in A'$ iff every one meets $A\setminus\{x\}$.
- For "co-" topologies, think in closed sets. If the closed sets are "$X$ and the small sets" (finite, countable), then a small set is its own closure and every big set is dense; a set has nonempty interior only if its complement is small.
- Do not trust sequences unless the space is first countable (Theorem 9.13): in general use neighbourhoods, not sequences.
Countability Axioms and Separability
Proof. (a) Let $\mathcal{B}=\{B_1,B_2,\dots\}$ be a countable basis. For each $x$, the $B_n$ containing $x$ form a countable local basis at $x$ (any open $U\ni x$ contains a basic $B_n\ni x$). Choose a point $d_n\in B_n$ for each nonempty $B_n$; the countable set $D=\{d_n\}$ meets every nonempty basic set, so it is dense by Theorem 9.11(iii).
(b) The balls $B(x,1/n)$, $n\in\mathbb{N}$, form a local basis at $x$: an open $U\ni x$ contains some $B(x,r)$, and then $B(x,1/n)\subseteq U$ when $1/n\lt r$.
(c) One direction is (a). Conversely let $D=\{d_1,d_2,\dots\}$ be dense and put $\mathcal{B}=\{B(d_k,1/n):k,n\in\mathbb{N}\}$, a countable family of open sets. Let $U$ be open and $x\in U$, with $B(x,r)\subseteq U$. Choose $n$ with $2/n\lt r$ and then $d_k\in B(x,1/n)$ (density). If $y\in B(d_k,1/n)$, then $d(x,y)\le d(x,d_k)+d(d_k,y)\lt2/n\lt r$, so $x\in B(d_k,1/n)\subseteq B(x,r)\subseteq U$. By Theorem 9.4, $\mathcal{B}$ is a basis. For $\mathbb{R}^n$ take $D=\mathbb{Q}^n$. ∎
Proof. (a) If $V_1,V_2,\dots$ is a countable local basis at $x$, put $U_n=V_1\cap\dots\cap V_n$: these are open, nested, contain $x$, and $U_n\subseteq V_n$, so they still form a local basis.
(b) "If" is Theorem 9.9. Conversely, if $x\in\overline{A}$, each $U_n$ meets $A$; choose $a_n\in U_n\cap A$. Given an open $U\ni x$, some $U_N\subseteq U$, and then $a_n\in U_n\subseteq U_N\subseteq U$ for all $n\ge N$. So $a_n\to x$.
(c) A continuous map preserves convergence in any space: if $V\ni f(x)$ is open, $f^{-1}(V)$ is an open neighbourhood of $x$, so it contains $x_n$ for large $n$, i.e. $f(x_n)\in V$. Conversely, suppose $f$ is sequentially continuous but not continuous. By Theorem 9.15(iii) below there is $A\subseteq X$ and $x\in\overline{A}$ with $f(x)\notin\overline{f(A)}$. By (b) some $a_n\in A$ converges to $x$; then $f(a_n)\to f(x)$, so $f(x)\in\overline{f(A)}$ by Theorem 9.9 — a contradiction. ∎
Proof. The sets $[x,x+1/n)$, $n\in\mathbb{N}$, form a countable local basis at $x$: an open $U\ni x$ contains some $[x,b)$, and then $[x,x+1/n)\subseteq[x,b)$ for large $n$. $\mathbb{Q}$ is dense (Example 3).
Now let $\mathcal{B}$ be any basis of $\mathbb{R}_\ell$. For each $x\in\mathbb{R}$ the set $[x,x+1)$ is open and contains $x$, so we may choose $B_x\in\mathcal{B}$ with $x\in B_x\subseteq[x,x+1)$. Then $x$ is the least element of $B_x$: it belongs to $B_x$, and $B_x$ contains nothing smaller than $x$. Hence $x\ne y$ implies $B_x\ne B_y$, so $x\mapsto B_x$ is an injection $\mathbb{R}\to\mathcal{B}$ and $\mathcal{B}$ is uncountable. Finally, a metrizable separable space would be second countable by Theorem 9.12(c). ∎
Continuous Maps and Homeomorphisms
For metric spaces this agrees with the $\varepsilon$–$\delta$ definition (Unit 1, §7.1, the four descriptions of continuity). Notice that continuity depends on both topologies: the same formula $f(x)=x$ is continuous from $(\mathbb{R},\text{discrete})$ to $(\mathbb{R},\text{standard})$ but not in the opposite direction.
- $f$ is continuous;
- $f^{-1}(C)$ is closed in $X$ for every closed $C\subseteq Y$;
- $f(\overline{A})\subseteq\overline{f(A)}$ for every $A\subseteq X$;
- $f^{-1}(V)$ is open for every $V$ in a fixed basis, or in a fixed subbasis, of $Y$;
- $f$ is continuous at every point of $X$.
Proof. (1)$\Leftrightarrow$(2): $f^{-1}(Y\setminus C)=X\setminus f^{-1}(C)$, so preimages of open sets are open iff preimages of closed sets are closed.
(2)$\Rightarrow$(3): $f^{-1}(\overline{f(A)})$ is closed and contains $A$, so it contains $\overline{A}$; that is, $f(\overline{A})\subseteq\overline{f(A)}$. (3)$\Rightarrow$(2): let $C$ be closed and $A=f^{-1}(C)$. Then $f(\overline{A})\subseteq\overline{f(A)}\subseteq\overline{C}=C$, so $\overline{A}\subseteq f^{-1}(C)=A$ and $A$ is closed.
(1)$\Leftrightarrow$(4): basic and subbasic sets are open, so (1) implies (4). Conversely every open $V$ is a union of finite intersections of subbasic sets $S$ (Theorem 9.7), and preimages commute with unions and intersections: $f^{-1}\big(\bigcup_i\bigcap_{k}S_{ik}\big)=\bigcup_i\bigcap_k f^{-1}(S_{ik})$, a union of finite intersections of open sets. The basis case is the special case in which no intersections are needed.
(1)$\Leftrightarrow$(5): if $f$ is continuous, $U=f^{-1}(V)$ works at every point. Conversely, let $V$ be open and $x\in f^{-1}(V)$; continuity at $x$ gives an open $U_x\ni x$ with $f(U_x)\subseteq V$, i.e. $U_x\subseteq f^{-1}(V)$. So $f^{-1}(V)=\bigcup_x U_x$ is open. ∎
Proof. (a) $\mathrm{id}^{-1}(V)=V$; a constant map $x\mapsto y_0$ has $f^{-1}(V)\in\{\varnothing,X\}$; and $(g\circ f)^{-1}(W)=f^{-1}(g^{-1}(W))$. (b) In a discrete space every preimage is open; an indiscrete $Y$ has only the open sets $\varnothing,Y$, with preimages $\varnothing,X$. (c) Fewer open sets in $Y$ means fewer preimages to check; more open sets in $X$ means more sets count as open. (d) $\mathrm{id}^{-1}(U)=U$ is $\mathcal{T}'$-open for every $U\in\mathcal{T}$ iff $\mathcal{T}\subseteq\mathcal{T}'$. ∎
Proof. Let $g=f^{-1}$. For any $U\subseteq X$, $g^{-1}(U)=f(U)$. Hence $g$ is continuous iff $f$ maps open sets to open sets (i)$\Leftrightarrow$(ii), iff $f$ maps closed sets to closed sets (i)$\Leftrightarrow$(iii) (Theorem 9.15(2) applied to $g$). (i)$\Rightarrow$(iv): Theorem 9.15(3) for $f$ gives $f(\overline{A})\subseteq\overline{f(A)}$, and for $g$ applied to $f(A)$ gives $g(\overline{f(A)})\subseteq\overline{A}$, i.e. $\overline{f(A)}\subseteq f(\overline{A})$. (iv)$\Rightarrow$(iii): if $C$ is closed, $f(C)=f(\overline{C})=\overline{f(C)}$ is closed. The last sentence is (ii) together with continuity. ∎
A continuous bijection need not be a homeomorphism: $\mathrm{id}:(\mathbb{R},\text{discrete})\to(\mathbb{R},\text{standard})$ is one example, and Example 7(b) gives a geometric one. Open and closed are also independent of each other for maps that are not bijective: $e^x:\mathbb{R}\to\mathbb{R}$ is open but not closed (the closed set $\mathbb{R}$ goes to $(0,\infty)$), and $x\mapsto x^2$ is closed but not open (the open set $(-1,1)$ goes to $[0,1)$).
Proof. (a) A homeomorphism carries open sets to open sets bijectively (Theorem 9.17), and hence carries bases to bases, local bases to local bases, dense sets to dense sets (by $f(\overline{D})=\overline{f(D)}$), clopen sets to clopen sets, and a compatible metric $d$ on $X$ to the metric $d(f^{-1}(\cdot),f^{-1}(\cdot))$ on $Y$. (b) If $D$ is countable and dense, $f(D)$ is countable and $Y=f(X)=f(\overline{D})\subseteq\overline{f(D)}$ by Theorem 9.15(3). (c) Let $\mathcal{B}$ be a countable basis of $X$; the sets $f(B)$ are open since $f$ is open. If $V\subseteq Y$ is open and $y\in V$, write $y=f(x)$; $f^{-1}(V)$ is an open neighbourhood of $x$, so some $B\in\mathcal{B}$ has $x\in B\subseteq f^{-1}(V)$, and then $y\in f(B)\subseteq V$. By Theorem 9.4, $\{f(B):B\in\mathcal{B}\}$ is a countable basis of $Y$. The first countable case is the same argument with local bases. The counterexample: $\mathcal{T}_{\mathrm{cof}}\subseteq\mathcal{T}_{\mathrm{std}}$ (Example 2), so the identity is continuous (Theorem 9.16(d)), and $(\mathbb{R},\mathcal{T}_{\mathrm{cof}})$ is not first countable (Example 5). ∎
- To prove $X\cong Y$, write down a bijection and check that it and its inverse are continuous; or check that a continuous bijection is open or closed (Theorem 9.17). Monotone bijections between intervals, $x/(1-|x|)$, $\tan$, $\log$ and affine maps do most of the work on the line.
- To prove $X\not\cong Y$, find a topological property that one has and the other lacks: cardinality, separability, the countability axioms, the number of isolated points or of clopen sets — and, from §§9.3–9.4, the separation axioms, connectedness, compactness, and the number of components left after removing a point.
- Never use length, boundedness, completeness or "shape" in the metric sense: $(-1,1)\cong\mathbb{R}$, and $(0,1)$ is homeomorphic to the incomplete-looking $(1,\infty)$ by $x\mapsto1/x$.
- Infinite intersections of open sets. $\bigcap_n(-\tfrac1n,\tfrac1n)=\{0\}$ is not open in $\mathbb{R}$; dually, $\bigcup_n[\tfrac1n,1]=(0,1]$ is a countable union of closed sets that is not closed.
- Unions of topologies. $\{\varnothing,\{a\},X\}\cup\{\varnothing,\{b\},X\}$ on $\{a,b,c\}$ is not a topology; intersections of topologies always are.
- "Not open" does not mean "closed". $[0,1)$ is neither in $\mathbb{R}$, but clopen in $\mathbb{R}_\ell$; $\varnothing$ and $X$ are always clopen.
- Closure does not commute with intersection, nor interior with union: $\overline{\mathbb{Q}\cap(\mathbb{R}\setminus\mathbb{Q})}=\varnothing\ne\mathbb{R}=\overline{\mathbb{Q}}\cap\overline{\mathbb{R}\setminus\mathbb{Q}}$, and $\operatorname{int}\mathbb{Q}\cup\operatorname{int}(\mathbb{R}\setminus\mathbb{Q})=\varnothing\ne\mathbb{R}$. Infinite unions: $\overline{\bigcup_n\{1/n\}}\ni0$ although no $\overline{\{1/n\}}$ contains $0$.
- The closure of an open set need not have the same interior. $\operatorname{int}\overline{\mathbb{Q}}=\mathbb{R}$ but $\operatorname{int}\mathbb{Q}=\varnothing$; and $\overline{\operatorname{int}A}\ne\overline{A}$ for $A=\mathbb{Q}$.
- Sequences can fail. In the cocountable topology on $\mathbb{R}$ only eventually constant sequences converge, yet $0\in\overline{\mathbb{R}\setminus\{0\}}$. In the cofinite (or indiscrete) topology a sequence can converge to many points at once.
- Countability axioms are independent. Separable but not first countable: $(\mathbb{R},\mathcal{T}_{\mathrm{cof}})$. First countable and separable but not second countable: $\mathbb{R}_\ell$ and the particular point topology on $\mathbb{R}$. First countable but not separable: uncountable discrete spaces.
- Finer is not "more continuous" on both sides. Refining the domain topology keeps maps continuous; refining the codomain can destroy continuity: $\mathrm{id}:\mathbb{R}\to\mathbb{R}_\ell$ is not continuous.
- The Sorgenfrey line is not symmetric. $x\mapsto-x$ and $x\mapsto x^2$ are not continuous $\mathbb{R}_\ell\to\mathbb{R}_\ell$, while $\lfloor x\rfloor$ and $\mathbf{1}_{[0,\infty)}$ are.
- Continuous bijections are not always homeomorphisms. $[0,2\pi)\to S^1$, $t\mapsto e^{it}$; $\mathrm{id}:(X,\text{discrete})\to(X,\text{anything})$.
- Open, closed and continuous are three different things. $e^x$ is open, not closed; $x^2$ is closed, not open; a constant map into $\mathbb{R}$ is continuous and closed but not open.
- Continuous maps out of the cofinite line. Every continuous $f:(\mathbb{R},\mathcal{T}_{\mathrm{cof}})\to\mathbb{R}$ is constant — so "continuous" is not a weak condition when the domain has few open sets.
- Metric facts that are not topological. Boundedness and completeness are not preserved by homeomorphisms: $(-1,1)\cong\mathbb{R}$.
Exercises
- 1 List all topologies on $\{a,b\}$ and decide which of them are homeomorphic to each other.
- 2 How many topologies on $\{a,b,c\}$ have exactly four open sets? Describe them up to renaming the points. (The teaser of the chapter introduction lists all $29$ topologies.)
- 3 On $\mathbb{N}$ let $\mathcal{T}=\{\varnothing\}\cup\{U_n:n\in\mathbb{N}\}$ with $U_n=\{n,n+1,n+2,\dots\}$. Show that $\mathcal{T}$ is a topology, find the closure of $\{5\}$, and determine which subsets are dense.
- 4 Decide whether each family is a basis for the standard topology of $\mathbb{R}$: (a) $\{(a,b):a\lt b,\ a,b\in\mathbb{Q}\}$; (b) $\{(a,b):a\lt b,\ a,b\notin\mathbb{Q}\}$; (c) $\{[a,b]:a\lt b\}$.
- 5 Show that $\mathcal{B}_{\mathbb{Q}}=\{[a,b):a\lt b,\ a,b\in\mathbb{Q}\}$ is a basis for a topology $\mathcal{T}_{\mathbb{Q}}$ on $\mathbb{R}$ with $\mathcal{T}_{\mathrm{std}}\subsetneq\mathcal{T}_{\mathbb{Q}}\subsetneq$ the lower limit topology.
- 6 Prove that the open discs and the open squares (sides parallel to the axes) in $\mathbb{R}^2$ generate the same topology.
- 7 Describe the topology on $\mathbb{R}$ generated by the subbasis $\{(a,\infty):a\in\mathbb{R}\}$. Is $[0,\infty)$ open in it? Is $(-\infty,0]$ closed?
- 8 Prove that the cofinite topology on a set $X$ is the coarsest topology on $X$ in which every singleton is closed, and that in it any two nonempty open sets meet when $X$ is infinite.
- 1 In $\mathbb{R}$ with the standard topology, find the interior, closure, boundary and derived set of $A=\{\tfrac1m+\tfrac1n: m,n\in\mathbb{N}\}$.
- 2 For $A=(0,1)\cup\{2\}$ find $\operatorname{int}A$, $\overline{A}$ and $\partial A$ in $\mathbb{R}_\ell$, in the cofinite topology and in the cocountable topology.
- 3 Prove that $\overline{A\cup B}=\overline{A}\cup\overline{B}$ directly from Theorem 9.8(2), and give a sequence of sets $A_n\subseteq\mathbb{R}$ with $\overline{\bigcup A_n}\ne\bigcup\overline{A_n}$.
- 4 Give an example in $\mathbb{R}$ of sets with $\operatorname{int}(A\cup B)\ne\operatorname{int}A\cup\operatorname{int}B$ in which $A$ and $B$ are both intervals.
- 5 Prove that $\partial(\overline{A})\subseteq\partial A$ and $\partial(\operatorname{int}A)\subseteq\partial A$, and show by an example that both inclusions can be strict.
- 6 Prove that $\overline{\operatorname{int}\overline{\operatorname{int}A}}=\overline{\operatorname{int}A}$ for every $A$.
- 7 Characterise the dense subsets of $\mathbb{R}_\ell$, of $(\mathbb{R},\mathcal{T}_{\mathrm{cof}})$, of $(\mathbb{R},\mathcal{T}_{\mathrm{coc}})$ and of $\mathbb{R}$ with the particular point topology at $0$.
- 8 Prove that if $D$ is dense in $X$ and $U$ is a nonempty open set, then $D\cap U$ is dense in $U$ in the sense that $U\subseteq\overline{D\cap U}$, and give an example of two dense subsets of $\mathbb{R}$ whose intersection is empty.
- 1 Prove that the balls with rational centres and rational radii form a countable basis of $\mathbb{R}^n$.
- 2 Prove that a separable space has no uncountable family of pairwise disjoint nonempty open sets. Deduce again that an uncountable discrete space is not separable.
- 3 Prove that the topology $\mathcal{T}_{\mathbb{Q}}$ of Exercise I.5 is second countable and that the identity $\mathbb{R}_\ell\to(\mathbb{R},\mathcal{T}_{\mathbb{Q}})$ is continuous. Is its inverse continuous?
- 4 Let $X$ be an uncountable set with the cofinite topology. Show that no point has a countable local basis. Show also that if $X$ is countably infinite, the cofinite topology on $X$ is second countable.
- 5 Prove that every subset of a second countable space, with the open sets $U\cap A$ (the subspace topology of §9.2), is second countable. Why does this not contradict the fact that a separable space may contain a non-separable subset?
- 6 Show that in a first countable space a point $x$ is a limit point of $A$ iff there is a sequence of points of $A\setminus\{x\}$ converging to $x$; and that this fails in $(\mathbb{R},\mathcal{T}_{\mathrm{coc}})$.
- 7 Show that the topology of Exercise I.3 on $\mathbb{N}$ is second countable and that every sequence $x_n$ with $x_n\to\infty$ converges to every point.
- 1 Prove directly (without Theorem 9.15) that $f$ is continuous iff $f(\overline{A})\subseteq\overline{f(A)}$ for every $A$, and give an example where the inclusion is strict.
- 2 Which of $x$, $-x$, $x^2$, $\lfloor x\rfloor$ and $\mathbf{1}_{[0,\infty)}$ are continuous as maps $\mathbb{R}_\ell\to\mathbb{R}_\ell$?
- 3 Find all continuous maps $(\mathbb{R},\mathcal{T}_{\mathrm{coc}})\to(\mathbb{R},\mathcal{T}_{\mathrm{std}})$.
- 4 Prove that any two nonempty open intervals of $\mathbb{R}$ (bounded or not) are homeomorphic, and that $[0,1)$ and $(0,1]$ are homeomorphic.
- 5 Show that a bijection $f:X\to Y$ is a homeomorphism iff $f(\overline{A})=\overline{f(A)}$ for every $A\subseteq X$.
- 6 Show that $X$ is discrete iff every map from $X$ into every topological space is continuous, and that $Y$ is indiscrete iff every map from every space into $Y$ is continuous.
- 7 Prove that the cofinite line $(\mathbb{R},\mathcal{T}_{\mathrm{cof}})$ is not homeomorphic to $\mathbb{R}$, and that every bijection $\mathbb{R}\to\mathbb{R}$ is a homeomorphism of the cofinite line.
- 8 Let $f:X\to Y$ be continuous and let $D\subseteq X$ be dense. Prove that $f(D)$ is dense in $f(X)$ (that is, $f(X)\subseteq\overline{f(D)}$). Give a continuous surjection from a non-separable space onto a separable one.
- 9 Modelling: the digital line. To model a row of pixels separated by edges, put on $\mathbb{Z}$ the topology whose basis consists of the singletons $\{2k+1\}$ and the triples $\{2k-1,2k,2k+1\}$, $k\in\mathbb{Z}$ (odd integers are "pixels", even integers "edges"). Check that this is a basis, find the closures of $\{0\}$ and $\{1\}$, and decide whether $n\mapsto n+1$, $n\mapsto n+2$ and $n\mapsto-n$ are homeomorphisms.
E1. CSIR Part B GATE MA Let $\mathbb{R}_\ell$ be the real line with the topology generated by the intervals $[a,b)$, $a\lt b$. The closure of $(0,1)$ in $\mathbb{R}_\ell$ is (A) $(0,1)$; (B) $[0,1)$; (C) $(0,1]$; (D) $[0,1]$.
E2. CSIR Part B The number of topologies on $X=\{a,b,c\}$ in which both $\{a\}$ and $\{b\}$ are open is (A) $2$; (B) $3$; (C) $4$; (D) $5$.
E3. CSIR Part B Which of the following spaces is second countable? (A) $\mathbb{R}$ with the lower limit topology; (B) $\mathbb{R}$ with the discrete topology; (C) $\mathbb{R}$ with the cofinite topology; (D) $\mathbb{R}$ with the topology generated by $\{(a,b):a\lt b,\ a,b\in\mathbb{Q}\}$.
E4. CSIR Part C Let $X$ be $\mathbb{R}$ with the cocountable topology. Which of the following statements are true? (One or more options may be correct.) (A) $X$ is separable. (B) $\mathbb{Q}$ is a closed subset of $X$. (C) Every convergent sequence in $X$ is eventually constant. (D) $X$ is first countable.
E5. CSIR Part C GATE MA Let $\mathbb{R}$ denote the real line with its standard topology and $\mathbb{R}_\ell$ the Sorgenfrey line. Which of the following statements are true? (One or more options may be correct.) (A) $\mathrm{id}:\mathbb{R}\to\mathbb{R}_\ell$ is continuous. (B) $x\mapsto\lfloor x\rfloor$ is continuous from $\mathbb{R}_\ell$ to $\mathbb{R}$. (C) $x\mapsto-x$ is continuous from $\mathbb{R}_\ell$ to $\mathbb{R}_\ell$. (D) Every continuous map from $\mathbb{R}$ with the cofinite topology to $\mathbb{R}$ is constant.
E6. CSIR Part C Let $X$ be any topological space and $A,B\subseteq X$. Which of the following are always true? (A) $\partial A=\partial(X\setminus A)$. (B) $\overline{\operatorname{int}A}=\overline{A}$. (C) If $A$ is open, then $\operatorname{int}(\partial A)=\varnothing$. (D) $\partial(A\cup B)\subseteq\partial A\cup\partial B$.
Suggested plan — 3 lectures × 60 min.
- Open sets and bases. Motivate with two metrics on $\mathbb{R}$ that give the same open sets. Definition 9.1, the zoo of Definition 9.2, Example 1 on the board (let the class find the failing union in (a)), Example 2. Bases: Theorems 9.3–9.5 with the discs-versus-squares picture, then the Sorgenfrey line (Theorem 9.6). Project the chapter-intro teaser for five minutes to show how many topologies even three points carry.
- Closure and density. Theorems 9.8–9.11. Run Interactive 1 on $[0,1)\cup\{2\}$ in all six topologies, asking the class to predict each row before it appears; then Examples 3 and 4. End with the cocountable sequence paradox and the question "what property of $\mathbb{R}$ made sequences enough?"
- Countability and continuity. Definition 9.11, Theorems 9.12–9.14 (prove the Sorgenfrey non-second-countability in full — it is the model for many CSIR proofs), Example 5 as a filled-in table. Continuity: Theorems 9.15–9.17, Interactive 2 with $\lfloor x\rfloor$ and $-x$ on $\mathbb{R}_\ell$, Examples 6–7. Finish with E5 done live.
Discussion questions. (1) Why is the definition of a topology asymmetric (arbitrary unions, finite intersections)? What would go wrong in $\mathbb{R}$ with arbitrary intersections? (2) Is "having a countable dense subset" a strong or a weak condition? Compare the cofinite line, which is separable, with $\mathbb{R}_\ell$, which is separable but far more complicated. (3) Which properties in this section can be detected by sequences alone, and in which spaces?
Misconceptions to watch for. "Closed means not open"; "finer topology = smaller open sets"; computing closures in $\mathbb{R}_\ell$ with two-sided neighbourhoods; assuming that sequences determine closure in every space; believing that a continuous bijection is automatically a homeomorphism; treating boundedness or length as topological; forgetting that continuity depends on the codomain topology too.
Suggested homework. I(2, 3, 5, 7), II(1, 2, 5, 7), III(2, 4, 6), IV(2, 3, 7, 9); Exam corner E2, E4, E6.
Research question. How many topologies does a finite set carry, why do the $T_0$ topologies on $n$ points correspond exactly to the partial orders on $n$ points, and how do finite spaces of this kind help computers reason about digital images?
Why it matters. A digital image is a finite grid of pixels, yet image-processing software constantly asks topological questions — is this region connected, does this curve enclose a hole, where is the boundary of this tumour in a CT scan? Ordinary Euclidean topology says nothing about finite sets (every finite metric space is discrete), so the Khalimsky and Kovalevsky "digital topologies" were introduced in the 1980s–90s to give finite grids a genuine topology in which a digital Jordan curve theorem holds. Finite spaces are also an active research topic in algebraic topology, where every finite simplicial complex can be modelled up to weak homotopy by a finite topological space.
What to do.
- Prove that a topology on a finite set $X$ is determined by the minimal open sets $U_x$ (the intersection of all open sets containing $x$), and that $x\preceq y\iff x\in U_y$ is a preorder (reflexive and transitive). Show that every preorder arises in this way, and that the topology is $T_0$ (distinct points lie in different sets $U_x$) iff the preorder is a partial order.
- Write a program that counts preorders and partial orders on $n$ points for $n\le5$ by brute force over relations, and compare with a direct count of topologies for $n\le4$.
- Count the topologies on four points up to homeomorphism (renaming points) and compare with the number for three points ($9$; see the chapter-intro teaser).
- On the digital line of Exercise IV.9 and on the "digital plane" $\mathbb{Z}\times\mathbb{Z}$ with the product of two digital lines (§9.2), draw the minimal open set of a pixel, an edge and a vertex, and test which 4- or 8-neighbour "digital circles" separate the grid into two pieces.
Tools: Python (itertools); squared paper for the digital plane.
Hand in: A two-page note with the proof of step 1, a table of counts for $n=1,\dots,5$, and one picture of a digital Jordan curve and its inside and outside.
Going further. Look up the open problem of finding a closed formula for the number of topologies on $n$ points (none is known); read about Khalimsky's digital Jordan curve theorem and about McCord's theorem relating finite spaces to simplicial complexes.
🧪 Self-check quiz
Q1. In $\mathbb{R}$ with the cofinite topology, the closure of $\mathbb{N}$ is
Q2. Which family is a basis for the lower limit topology on $\mathbb{R}$?
Q3. The Sorgenfrey line $\mathbb{R}_\ell$ is
Q4. A map $f:X\to Y$ is continuous if and only if, for every $A\subseteq X$,
Q5. In $\mathbb{R}$ with the cocountable topology, a subset $D$ is dense if and only if