Chapter 9 · Topology

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

📘 Definition 9.1 — Topology, topological space, open set

A topology on a set $X$ is a collection $\mathcal{T}$ of subsets of $X$ such that

  1. $\varnothing\in\mathcal{T}$ and $X\in\mathcal{T}$;
  2. the union of any subcollection of $\mathcal{T}$ (finite, countable or uncountable) belongs to $\mathcal{T}$;
  3. 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.

📘 Definition 9.2 — The standard examples
Discrete topology$\mathcal{T}=\mathcal{P}(X)$: every subset is open. The largest possible topology.
Indiscrete (trivial) topology$\mathcal{T}=\{\varnothing,X\}$. The smallest possible topology.
Cofinite topology$\mathcal{T}_{\mathrm{cof}}$: the open sets are $\varnothing$ and the sets $U$ with $X\setminus U$ finite.
Cocountable topology$\mathcal{T}_{\mathrm{coc}}$: the open sets are $\varnothing$ and the sets $U$ with $X\setminus U$ countable.
Metric topologyfor a metric space $(X,d)$: $U$ is open iff for each $x\in U$ some ball $B(x,r)\subseteq U$. On $\mathbb{R}^n$ with the Euclidean metric this is the standard (usual) topology.
Particular point topologyfix $p\in X$; $\mathcal{T}_p=\{\varnothing\}\cup\{U: p\in U\}$. For $X=\{0,1\}$, $p=1$ this is the Sierpiński space $\{\varnothing,\{1\},\{0,1\}\}$.

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.)

📘 Definition 9.3 — Closed and clopen sets
A subset $C$ of a space $X$ is closed if its complement $X\setminus C$ is open, and clopen if it is both open and closed. "Closed" is not the opposite of "open": a set may be both, or neither.
📐 Theorem 9.1 — The closed sets of a space
In any topological space $X$: (a) $\varnothing$ and $X$ are closed (so they are clopen); (b) any intersection of closed sets is closed; (c) any finite union of closed sets is closed. Conversely, if a family $\mathcal{C}$ of subsets of $X$ satisfies (a)–(c), then $\{X\setminus C: C\in\mathcal{C}\}$ is a topology whose closed sets are exactly the members of $\mathcal{C}$.

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.

📘 Definition 9.4 — Comparing topologies
If $\mathcal{T}$ and $\mathcal{T}'$ are topologies on the same set $X$ and $\mathcal{T}\subseteq\mathcal{T}'$, we say $\mathcal{T}'$ is finer (larger, stronger) than $\mathcal{T}$, and $\mathcal{T}$ is coarser (smaller, weaker) than $\mathcal{T}'$; "strictly" if $\mathcal{T}\ne\mathcal{T}'$. Two topologies are comparable if one contains the other.
📐 Theorem 9.2 — Intersections of topologies
The intersection $\bigcap_i\mathcal{T}_i$ of any nonempty family of topologies on $X$ is a topology on $X$. Consequently, for every collection $\mathcal{S}$ of subsets of $X$ there is a coarsest topology containing $\mathcal{S}$ (the intersection of all topologies containing $\mathcal{S}$; the discrete topology is one of them). A union of two topologies need not be a topology.

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\}$. ∎

✏️ Example 1 — Which families are topologies?
Let $X=\{a,b,c,d\}$. Decide which of the following are topologies on $X$. For each topology, list its closed sets, find the closure of $\{b\}$ (the smallest closed set containing $b$) and say which subsets are clopen. (a) $\{\varnothing,\{a\},\{a,b\},\{a,c\},X\}$; (b) $\{\varnothing,\{a\},\{b\},\{a,b\},\{a,b,c\},X\}$; (c) $\{\varnothing,\{a,b\},\{c,d\},X\}$; (d) $\{\varnothing,\{a\},\{b,c\},\{a,b,c\},\{b,c,d\},X\}$; (e) $\{\varnothing,\{a,b\},\{b,c\},X\}$.
(a) No $\{a,b\}\cup\{a,c\}=\{a,b,c\}$ is missing. (All intersections are fine — one failure is enough.)
(b) Yes Pairwise unions: $\{a\}\cup\{b\}=\{a,b\}$, and every other union of two members is the larger one; pairwise intersections: $\{a\}\cap\{b\}=\varnothing$, the rest are the smaller one. For a finite family, closure under pairwise unions and intersections is enough. Closed sets: $X,\{b,c,d\},\{a,c,d\},\{c,d\},\{d\},\varnothing$. The smallest closed set containing $b$ is $\{b,c,d\}$. Only $\varnothing,X$ are clopen.
(c) Yes It is the topology whose open sets are the unions of blocks of the partition $\{\{a,b\},\{c,d\}\}$. Every open set is also closed ($\{a,b\}$ and $\{c,d\}$ are each other's complements), so all four sets are clopen, and the closure of $\{b\}$ is $\{a,b\}$.
(d) Yes The non-obvious checks: $\{a\}\cup\{b,c,d\}=X$, $\{a,b,c\}\cap\{b,c,d\}=\{b,c\}$, $\{a\}\cup\{b,c\}=\{a,b,c\}$. Closed sets: $X,\{b,c,d\},\{a,d\},\{d\},\{a\},\varnothing$. So $\{a\}$ and $\{b,c,d\}$ are clopen (as well as $\varnothing$, $X$), and the closure of $\{b\}$ is $\{b,c,d\}$.
(e) No $\{a,b\}\cap\{b,c\}=\{b\}$ is missing.
Check A brute-force count over all $2^{14}$ families of nonempty proper subsets confirms that (b), (c), (d) are topologies and (a), (e) are not; there are $355$ topologies on a four-point set in all.
✏️ Example 2 — Comparing five topologies on $\mathbb{R}$
Let $\mathcal{T}_{\mathrm{std}}$ be the standard topology on $\mathbb{R}$. Show that $\mathcal{T}_{\mathrm{ind}}\subsetneq\mathcal{T}_{\mathrm{cof}}\subsetneq\mathcal{T}_{\mathrm{std}}\subsetneq\mathcal{P}(\mathbb{R})$, that $\mathcal{T}_{\mathrm{cof}}\subsetneq\mathcal{T}_{\mathrm{coc}}$, and that $\mathcal{T}_{\mathrm{coc}}$ and $\mathcal{T}_{\mathrm{std}}$ are not comparable.
cof ⊆ std A nonempty cofinite set is $\mathbb{R}\setminus\{x_1,\dots,x_n\}$ with $x_1\lt\dots\lt x_n$, a union of the $n+1$ open intervals $(-\infty,x_1),(x_1,x_2),\dots,(x_n,\infty)$, hence standard-open. The inclusion is strict: $(0,1)$ is standard-open, but its complement is infinite.
The ends $\{\varnothing,\mathbb{R}\}\subsetneq\mathcal{T}_{\mathrm{cof}}$ because $\mathbb{R}\setminus\{0\}$ is cofinite; $\mathcal{T}_{\mathrm{std}}\subsetneq\mathcal{P}(\mathbb{R})$ because $\{0\}$ is not standard-open.
cof ⊊ coc Finite sets are countable, so every cofinite set is cocountable. $\mathbb{R}\setminus\mathbb{Q}$ is cocountable but not cofinite.
Incomparable $\mathbb{R}\setminus\mathbb{Q}$ is cocountable-open but not standard-open (it contains no interval, since every interval contains a rational). $(0,1)$ is standard-open but not cocountable-open (its complement is uncountable). So neither topology contains the other.
Moral "Finer" means "more open sets", not "smaller open sets". The cocountable topology has many huge open sets and no small ones; the standard topology has small ones.

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.

📘 Definition 9.5 — Basis for a topology

A collection $\mathcal{B}$ of subsets of $X$ is a basis (for some topology on $X$) if

  1. (covering) every $x\in X$ lies in at least one $B\in\mathcal{B}$;
  2. (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.

📐 Theorem 9.3 — The topology generated by a basis
If $\mathcal{B}$ is a basis on $X$, then $\mathcal{T}_{\mathcal{B}}$ is a topology on $X$, it contains $\mathcal{B}$, and it consists exactly of all unions of members of $\mathcal{B}$ (the empty union giving $\varnothing$). It is the coarsest topology containing $\mathcal{B}$.

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}}$. ∎

📐 Theorem 9.4 — Recognising a basis of a given topology
Let $(X,\mathcal{T})$ be a space and $\mathcal{C}\subseteq\mathcal{T}$ a collection of open sets such that for every open $U$ and every $x\in U$ there is $C\in\mathcal{C}$ with $x\in C\subseteq U$. Then $\mathcal{C}$ is a basis and $\mathcal{T}_{\mathcal{C}}=\mathcal{T}$.

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}$. ∎

📐 Theorem 9.5 — Comparing topologies through their bases
Let $\mathcal{B}$, $\mathcal{B}'$ be bases of topologies $\mathcal{T}$, $\mathcal{T}'$ on $X$. Then $\mathcal{T}\subseteq\mathcal{T}'$ ($\mathcal{T}'$ is finer) if and only if for every $x\in X$ and every $B\in\mathcal{B}$ containing $x$ there is $B'\in\mathcal{B}'$ with $x\in B'\subseteq B$.

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).

📘 Definition 9.6 — The lower limit topology (Sorgenfrey line)
The half-open intervals $[a,b)$, $a\lt b$, form a basis on $\mathbb{R}$: they cover $\mathbb{R}$, and $[a,b)\cap[c,d)=[\max(a,c),\min(b,d))$ is either empty or again of this form. The topology they generate is the lower limit topology; $\mathbb{R}$ with this topology is the Sorgenfrey line, written $\mathbb{R}_\ell$.
📐 Theorem 9.6 — First facts about the Sorgenfrey line
(a) The lower limit topology is strictly finer than the standard topology on $\mathbb{R}$. (b) Every interval $[a,b)$, and every ray $[a,\infty)$ and $(-\infty,a)$, is clopen in $\mathbb{R}_\ell$. (c) An interval of the form $(a,b]$ or $[a,b]$ with $a\lt b$ is not open in $\mathbb{R}_\ell$; nor is any singleton.

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.

📘 Definition 9.7 — Subbasis
A subbasis on $X$ is a collection $\mathcal{S}$ of subsets whose union is $X$. The topology generated by $\mathcal{S}$ is the coarsest topology containing $\mathcal{S}$.
📐 Theorem 9.7 — The topology generated by a subbasis
If $\mathcal{S}$ is a subbasis on $X$, the collection $\mathcal{B}$ of all finite intersections $S_1\cap\dots\cap S_n$ ($n\ge1$, $S_k\in\mathcal{S}$) is a basis, and the topology generated by $\mathcal{S}$ is $\mathcal{T}_{\mathcal{B}}$: its open sets are the unions of finite intersections of members of $\mathcal{S}$.

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).

✏️ Example 3 — Computing in the Sorgenfrey line
In $\mathbb{R}_\ell$ find the closures of $(0,1)$, $(0,1]$, $A=\{1/n:n\in\mathbb{N}\}$ and $-A=\{-1/n:n\in\mathbb{N}\}$, and decide whether $\mathbb{Q}$ is dense. (Use: $x$ lies in the closure of $S$ iff every basic neighbourhood $[x,x+\varepsilon)$ meets $S$ — Theorem 9.8 below.)
$(0,1)$ For $x\in[0,1)$, $[x,x+\varepsilon)$ meets $(0,1)$ for every $\varepsilon\gt0$. For $x\lt0$, $[x,x+\varepsilon)$ with $\varepsilon\lt|x|$ misses it; for $x\ge1$, $[x,x+1)$ misses it. So the closure is $[0,1)$ — the point $1$, which is in the standard closure, is not in the Sorgenfrey closure, because its neighbourhoods look only to the right.
$(0,1]$ The same test gives $[0,1]$: $0$ is in the closure ($[0,\varepsilon)$ meets $(0,1]$) and $1$ belongs to the set. So $(0,1]$ is not closed in $\mathbb{R}_\ell$, and it is not open either (Theorem 9.6(c)).
$\pm A$ Every $[0,\varepsilon)$ contains some $1/n$, so the closure of $A$ is $A\cup\{0\}$, as in $\mathbb{R}$. But $[0,\varepsilon)$ contains no $-1/n$, and a point $x\notin -A\cup\{0\}$ has a small $[x,x+\varepsilon)$ missing $-A$; so $-A$ is closed in $\mathbb{R}_\ell$, although it is not closed in $\mathbb{R}$.
$\mathbb{Q}$ Every nonempty open set contains some $[a,b)$, which contains a rational. So $\mathbb{Q}$ is dense in $\mathbb{R}_\ell$ (Theorem 9.11 below), exactly as in $\mathbb{R}$.

Interior, Closure, Boundary and Dense Sets

📘 Definition 9.8 — Neighbourhoods, interior, closure, boundary

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}$.
📐 Theorem 9.8 — Pointwise description of interior and closure
Let $\mathcal{B}$ be a basis of the topology of $X$, $A\subseteq X$ and $x\in X$.
  1. $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$.
  2. $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}$.
  3. $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$. ∎

📘 Definition 9.9 — Limit points, isolated points, convergent sequences
A point $x\in X$ is a limit point (accumulation point) of $A$ if every open neighbourhood of $x$ contains a point of $A$ other than $x$. The set of limit points is the derived set $A'$. A point $a\in A$ that is not a limit point of $A$ is an isolated point of $A$: some open $U$ has $U\cap A=\{a\}$. A sequence $(x_n)$ converges to $x$, written $x_n\to x$, if for every open $U\ni x$ there is $N$ with $x_n\in U$ for all $n\ge N$.
📐 Theorem 9.9 — Closure through limit points
For every $A\subseteq X$: $\overline{A}=A\cup A'$. Hence $A$ is closed iff $A'\subseteq A$, i.e. iff $A$ contains all its limit points. Moreover, if a sequence in $A$ converges to $x$, then $x\in\overline{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$. ∎

📐 Theorem 9.10 — Rules for closure, interior and boundary
For subsets $A,B$ of a space $X$:
Kuratowski's closure rules$\overline{\varnothing}=\varnothing$, $\ A\subseteq\overline{A}$, $\ \overline{\overline{A}}=\overline{A}$, $\ \overline{A\cup B}=\overline{A}\cup\overline{B}$.
Only inclusions$\overline{A\cap B}\subseteq\overline{A}\cap\overline{B}$; $\ \bigcup_i\overline{A_i}\subseteq\overline{\bigcup_i A_i}$ for infinite families.
Interior rules$\operatorname{int}(A\cap B)=\operatorname{int}A\cap\operatorname{int}B$; $\ \operatorname{int}A\cup\operatorname{int}B\subseteq\operatorname{int}(A\cup B)$.
Boundary$\partial A=\overline{A}\setminus\operatorname{int}A$ is closed, $\partial A=\partial(X\setminus A)$, and $X=\operatorname{int}A\sqcup\partial A\sqcup\operatorname{ext}A$.
Tests$A$ open $\iff A\cap\partial A=\varnothing$; $\ A$ closed $\iff\partial A\subseteq A$; $\ A$ clopen $\iff\partial A=\varnothing$.

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}$. ∎

📘 Definition 9.10 — Dense sets and separable spaces
A subset $D\subseteq X$ is dense (in $X$) if $\overline{D}=X$. The space $X$ is separable if it has a countable dense subset.
📐 Theorem 9.11 — Criteria for density
For $D\subseteq X$ and a basis $\mathcal{B}$ of $X$ the following are equivalent: (i) $D$ is dense; (ii) $D$ meets every nonempty open set; (iii) $D$ meets every nonempty basic open set; (iv) $\operatorname{int}(X\setminus D)=\varnothing$. Moreover, if $D$ is dense and $U$ is open, then $U\subseteq\overline{U\cap D}$; consequently the intersection of two (hence finitely many) dense open sets is dense and open.

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).

Interactive 1 — One Set, Six Topologies: Interior, Closure, Boundary and Limit Points

Choose a subset $A$ of $\mathbb{R}$ and a topology. The five rows show $A$, its interior, closure, boundary and derived set $A'$ on the window $[-1.6,3.2]$ (filled dot = point included, hollow = excluded; ℚ-dots stand for "the rationals in this range"). Press Play to cycle through the topologies: watch how the same set is open in one topology, closed in another, dense in a third. Compare especially the standard line with the Sorgenfrey line $\mathbb{R}_\ell$, and the cofinite with the cocountable topology.

interior—
closure—
boundary—
limit points A′—
A is—
✏️ Example 4 — Sequences are not enough
Let $X=\mathbb{R}$ with the cocountable topology. (a) Find the closures of $\mathbb{Z}$, of $(0,1)$ and of $\mathbb{R}\setminus\mathbb{Q}$, and the interior of $\mathbb{R}\setminus\mathbb{Q}$. (b) Show that a sequence converges in $X$ only if it is eventually constant. (c) Deduce that $0\in\overline{\mathbb{R}\setminus\{0\}}$, but no sequence in $\mathbb{R}\setminus\{0\}$ converges to $0$. (d) What changes in the cofinite topology?
(a) The closed sets are $\mathbb{R}$ and the countable sets. $\mathbb{Z}$ is countable, hence closed: $\overline{\mathbb{Z}}=\mathbb{Z}$. $(0,1)$ and $\mathbb{R}\setminus\mathbb{Q}$ are uncountable, so the only closed set containing them is $\mathbb{R}$: both are dense. $\mathbb{R}\setminus\mathbb{Q}$ is open (its complement $\mathbb{Q}$ is countable), so it equals its interior; it is a dense open set with boundary $\overline{\mathbb{R}\setminus\mathbb{Q}}\setminus(\mathbb{R}\setminus\mathbb{Q})=\mathbb{Q}$.
(b) Suppose $x_n\to x$. The set $C=\{x_n: x_n\ne x\}$ is countable, so $U=\mathbb{R}\setminus C$ is an open set containing $x$. Hence $x_n\in U$ for all $n\ge N$, which means $x_n=x$ for $n\ge N$.
(c) $\mathbb{R}\setminus\{0\}$ is uncountable, so its closure is $\mathbb{R}\ni0$. A sequence in $\mathbb{R}\setminus\{0\}$ that converged to $0$ would by (b) be eventually equal to $0$ — impossible. So Theorem 9.9's "if a sequence in $A$ converges to $x$ then $x\in\overline{A}$" has no converse in general; Theorem 9.13 below shows the converse holds in first countable spaces, and so $X$ is not first countable.
(d) In the cofinite topology the closed sets are $\mathbb{R}$ and the finite sets, so $\overline{\mathbb{Z}}=\mathbb{R}$ (and every infinite set is dense), while $\mathbb{R}\setminus\mathbb{Q}$ now has empty interior (its complement is infinite). Sequences behave in the opposite extreme: the sequence $x_n=n$ converges to every point $x$, because an open $U\ni x$ misses only finitely many reals, hence only finitely many terms.
🧭 Problem-solving strategy — closures and interiors in an unfamiliar topology
  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.
  2. 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\}$.
  3. 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.
  4. Do not trust sequences unless the space is first countable (Theorem 9.13): in general use neighbourhoods, not sequences.

Countability Axioms and Separability

📘 Definition 9.11 — Local bases; first and second countable spaces
A local basis (neighbourhood basis) at $x$ is a family $\mathcal{B}_x$ of open sets containing $x$ such that every open $U\ni x$ contains some member of $\mathcal{B}_x$. The space $X$ is first countable if every point has a countable local basis, and second countable if the topology has a countable basis.
📐 Theorem 9.12 — How the countability properties are related
(a) Every second countable space is first countable and separable. (b) Every metric space is first countable. (c) A metric space is second countable if and only if it is separable. In particular $\mathbb{R}^n$ is second countable.

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$. ∎

📐 Theorem 9.13 — Sequences in first countable spaces
Let $X$ be first countable and $A\subseteq X$. (a) Every point $x$ has a nested countable local basis $U_1\supseteq U_2\supseteq\cdots$. (b) $x\in\overline{A}$ if and only if some sequence of points of $A$ converges to $x$. (c) A map $f:X\to Y$ into any space $Y$ is continuous (Definition 9.12 below) if and only if it is sequentially continuous: $x_n\to x$ implies $f(x_n)\to f(x)$.

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. ∎

📐 Theorem 9.14 — The Sorgenfrey line is separable and first countable, but not second countable
$\mathbb{R}_\ell$ is first countable and separable, but it is not second countable. Consequently $\mathbb{R}_\ell$ is not metrizable.

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). ∎

✏️ Example 5 — Classifying seven topologies on $\mathbb{R}$
For each of the following topologies on $\mathbb{R}$ decide whether the space is separable, first countable and second countable: standard; discrete; indiscrete; cofinite; cocountable; lower limit; particular point (open sets: $\varnothing$ and the sets containing $0$).
Easy cases Standard: all three (Theorem 9.12). Indiscrete: all three — $\{\mathbb{R}\}$ is a basis, and any nonempty set is dense. Lower limit: separable and first countable, not second countable (Theorem 9.14).
Discrete $\{\{x\}\}$ is a local basis at $x$, so it is first countable. Every set is closed, so the only dense set is $\mathbb{R}$, which is uncountable: not separable, hence (Theorem 9.12(a)) not second countable.
Cofinite Separable: $\mathbb{N}$ is infinite, so its closure is $\mathbb{R}$. Not first countable: if $U_1,U_2,\dots$ were a local basis at $x$, the set $\bigcup_n(\mathbb{R}\setminus U_n)$ would be a countable union of finite sets, hence countable; pick $y\ne x$ outside it. Then $\mathbb{R}\setminus\{y\}$ is an open neighbourhood of $x$, but every $U_n$ contains $y$, so no $U_n$ lies inside it. Not second countable either.
Cocountable Not separable: a countable set is closed and different from $\mathbb{R}$. Not first countable: the argument for the cofinite topology works verbatim, because $\bigcup_n(\mathbb{R}\setminus U_n)$ is a countable union of countable sets. (Example 4 already showed that sequences fail here.)
Particular point Separable: $\{0\}$ is dense, since every nonempty open set contains $0$. First countable: $\{x,0\}$ is open, and it is contained in every open set containing $x$; so $\{\{x,0\}\}$ is a local basis at $x$. Not second countable: a basis must contain, for each $x\ne0$, a basic set $B$ with $x\in B\subseteq\{x,0\}$; $\{x\}$ is not open, so $B=\{x,0\}$, and these are uncountably many distinct sets.
Summary Separable but not first countable: cofinite. First countable and separable, not second countable: Sorgenfrey, particular point. First countable, not separable: discrete. None of the three: cocountable.

Continuous Maps and Homeomorphisms

📘 Definition 9.12 — Continuity
A map $f:X\to Y$ between topological spaces is continuous if $f^{-1}(V)$ is open in $X$ for every open set $V$ of $Y$. It is continuous at the point $x$ if for every open $V\ni f(x)$ there is an open $U\ni x$ with $f(U)\subseteq V$.

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.

📐 Theorem 9.15 — Equivalent forms of continuity
For a map $f:X\to Y$ the following are equivalent:
  1. $f$ is continuous;
  2. $f^{-1}(C)$ is closed in $X$ for every closed $C\subseteq Y$;
  3. $f(\overline{A})\subseteq\overline{f(A)}$ for every $A\subseteq X$;
  4. $f^{-1}(V)$ is open for every $V$ in a fixed basis, or in a fixed subbasis, of $Y$;
  5. $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. ∎

📐 Theorem 9.16 — Building and comparing continuous maps
(a) Identity maps and constant maps are continuous, and the composite of continuous maps is continuous. (b) Every map out of a discrete space, and every map into an indiscrete space, is continuous. (c) If $f:(X,\mathcal{T}_1)\to(Y,\mathcal{T}_2)$ is continuous, it remains continuous when $\mathcal{T}_1$ is replaced by a finer topology or $\mathcal{T}_2$ by a coarser one. (d) The identity $(X,\mathcal{T}')\to(X,\mathcal{T})$ is continuous if and only if $\mathcal{T}'$ is finer than $\mathcal{T}$.

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}'$. ∎

Interactive 2 — Continuity Is a Statement About Two Topologies

Pick a function $f:\mathbb{R}\to\mathbb{R}$, a topology on the domain and one on the codomain. A basic open set $V$ of the codomain sweeps up the vertical axis (an interval $(c,c+0.75)$, a half-open $[c,c+0.75)$, a point $\{c\}$, or the cofinite set $\mathbb{R}\setminus\{c\}$, depending on the codomain topology); its preimage $f^{-1}(V)$ is drawn under the graph. By Theorem 9.15 $f$ is continuous exactly when every such preimage is open in the domain. Red rings mark points of $f^{-1}(V)$ that have no basic neighbourhood inside it. Try $\lfloor x\rfloor$ from the Sorgenfrey line to the standard line, and $-x$ or $x^2$ from $\mathbb{R}_\ell$ to $\mathbb{R}_\ell$.

basic open V—
f⁻¹(V)—
open in the domain?—
f continuous?—
✏️ Example 6 — Continuous or not?
(a) Prove that every continuous map $f:(\mathbb{R},\mathcal{T}_{\mathrm{cof}})\to(\mathbb{R},\mathcal{T}_{\mathrm{std}})$ is constant. (b) Show that $f:(\mathbb{R},\mathcal{T}_{\mathrm{std}})\to(\mathbb{R},\mathcal{T}_{\mathrm{cof}})$ is continuous if and only if every fibre $f^{-1}(\{y\})$ is closed in $\mathbb{R}$; decide for $f(x)=x^2$, $f(x)=\lfloor x\rfloor$ and $f=\mathbf{1}_{\mathbb{Q}}$. (c) Show that $\lfloor x\rfloor:\mathbb{R}_\ell\to\mathbb{R}$ is continuous, while $x\mapsto -x$ is not continuous from $\mathbb{R}_\ell$ to $\mathbb{R}_\ell$.
(a) Suppose $f(x_1)=y_1\ne y_2=f(x_2)$. Put $r=|y_1-y_2|/2$; the intervals $V_1=(y_1-r,y_1+r)$ and $V_2=(y_2-r,y_2+r)$ are disjoint and open. Then $f^{-1}(V_1)$, $f^{-1}(V_2)$ are disjoint, open in the cofinite topology, and nonempty (they contain $x_1$, $x_2$). But two nonempty cofinite subsets of the infinite set $\mathbb{R}$ always meet: $\mathbb{R}\setminus(U_1\cap U_2)=(\mathbb{R}\setminus U_1)\cup(\mathbb{R}\setminus U_2)$ is finite, so $U_1\cap U_2$ is infinite. Contradiction. (Only the fact that distinct points of the codomain have disjoint neighbourhoods was used — the Hausdorff property of §9.3.)
(b) The closed sets of the cofinite codomain are $\mathbb{R}$ and the finite sets $F=\{y_1,\dots,y_n\}$, with $f^{-1}(F)=\bigcup_k f^{-1}(\{y_k\})$. By Theorem 9.15(2), $f$ is continuous iff all these preimages are closed, iff each fibre is closed (finite unions of closed sets are closed). $x^2$: fibres $\varnothing$, $\{0\}$, $\{\pm\sqrt y\}$ — closed, so continuous. $\lfloor x\rfloor$: the fibre over $0$ is $[0,1)$, not closed — not continuous. $\mathbf{1}_{\mathbb{Q}}$: the fibre over $1$ is $\mathbb{Q}$, not closed — not continuous.
(c) By Theorem 9.15(4) it suffices to check basic open intervals $(c,d)$ of the codomain. The preimage of $(c,d)$ under $\lfloor x\rfloor$ is the union of the intervals $[n,n+1)$ over the integers $n\in(c,d)$, a union of basic sets of $\mathbb{R}_\ell$, hence open. For $g(x)=-x$, the basic set $[0,1)$ has $g^{-1}([0,1))=(-1,0]$, which is not open in $\mathbb{R}_\ell$ (Theorem 9.6(c)). So $g$ is not continuous although it is a bijection of $\mathbb{R}$ onto itself — the Sorgenfrey line is not symmetric under reflection. Interactive 2 shows both computations.
📘 Definition 9.13 — Open maps, closed maps, homeomorphisms, topological properties
A map $f:X\to Y$ is open (closed) if $f(U)$ is open (closed) in $Y$ for every open (closed) $U\subseteq X$. A homeomorphism is a bijection $f$ such that both $f$ and $f^{-1}$ are continuous; if one exists, $X$ and $Y$ are homeomorphic, $X\cong Y$. A property of spaces is a topological property (topological invariant) if every space homeomorphic to a space with the property also has it.
📐 Theorem 9.17 — Recognising homeomorphisms
For a continuous bijection $f:X\to Y$ the following are equivalent: (i) $f$ is a homeomorphism; (ii) $f$ is open; (iii) $f$ is closed; (iv) $f(\overline{A})=\overline{f(A)}$ for every $A\subseteq X$. A homeomorphism $f$ induces a bijection $U\mapsto f(U)$ from the open sets of $X$ onto the open sets of $Y$.

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)$).

📐 Theorem 9.18 — Invariants from this section
(a) Separability, first countability, second countability, metrizability and discreteness are topological properties, as are the cardinality of the space and the number of clopen subsets. (b) If $f:X\to Y$ is a continuous surjection and $X$ is separable, then $Y$ is separable. (c) If $f:X\to Y$ is a continuous open surjection and $X$ is first (second) countable, so is $Y$. Without openness, (c) fails: $\mathrm{id}:(\mathbb{R},\mathcal{T}_{\mathrm{std}})\to(\mathbb{R},\mathcal{T}_{\mathrm{cof}})$ is a continuous bijection from a second countable space onto a space that is not even first countable.

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). ∎

✏️ Example 7 — Homeomorphic or not?
(a) Show that $h(x)=\dfrac{x}{1-|x|}$ is a homeomorphism $(-1,1)\to\mathbb{R}$ (usual topologies). (b) Show that $p(t)=(\cos t,\sin t)$ is a continuous bijection $[0,2\pi)\to S^1=\{(x,y):x^2+y^2=1\}$ that is not a homeomorphism. (c) Show that $\mathbb{R}_\ell$ is not homeomorphic to $\mathbb{R}$, and that $(\mathbb{R},\mathcal{T}_{\mathrm{cof}})$ is not homeomorphic to $(\mathbb{R},\mathcal{T}_{\mathrm{coc}})$. (d) Are $\mathbb{Z}$ and $\mathbb{Q}$ (with the topologies given by the usual distance) homeomorphic?
(a) $h$ is continuous, odd, and on $[0,1)$ equals $x/(1-x)$, which increases strictly from $0$ to $+\infty$. So $h$ is a strictly increasing bijection, and its inverse $k(y)=\dfrac{y}{1+|y|}$ (solve $y=x/(1-|x|)$, using that $x$ and $y$ have the same sign) is continuous. Hence $h$ is a homeomorphism: a bounded open interval and the whole line are topologically the same, although one is bounded and the other is not — boundedness is not a topological property.
(b) $p$ is continuous with continuous coordinates, and injective on $[0,2\pi)$ because $\cos$ and $\sin$ together determine $t$ modulo $2\pi$; it is onto $S^1$. The set $U=[0,\pi)$ is open in $[0,2\pi)$ (it is $[0,2\pi)\cap(-1,\pi)$), but $p(U)$ is the upper half-circle including $(1,0)$ and excluding $(-1,0)$; every neighbourhood of $(1,0)$ in $S^1$ contains points $p(t)$ with $t$ close to $2\pi$, which are not in $p(U)$. So $p$ is not open, and by Theorem 9.17 it is not a homeomorphism. Concretely, $p^{-1}$ is discontinuous at $(1,0)$: the points $p(2\pi-\tfrac1n)\to(1,0)$, but $p^{-1}$ of them tends to $2\pi\ne0$.
(c) $\mathbb{R}_\ell$ is not second countable (Theorem 9.14) while $\mathbb{R}$ is; second countability is a topological property. (Alternatively: $\mathbb{R}_\ell$ has the proper nonempty clopen set $[0,\infty)$, the standard line has none.) The cofinite line is separable, the cocountable line is not (Example 5).
(d) No. Every point of $\mathbb{Z}$ is isolated ($(n-\tfrac12,n+\tfrac12)\cap\mathbb{Z}=\{n\}$), so $\mathbb{Z}$ is discrete; no point of $\mathbb{Q}$ is isolated, since every interval around a rational contains other rationals. A homeomorphism maps isolated points to isolated points (an open singleton to an open singleton). So $\mathbb{Z}\not\cong\mathbb{Q}$, although both are countable metric spaces.
🧭 Problem-solving strategy — proving two spaces are (not) homeomorphic
  1. 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.
  2. 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.
  3. 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$.
⚠️ Counterexamples and pitfalls
  1. 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.
  2. Unions of topologies. $\{\varnothing,\{a\},X\}\cup\{\varnothing,\{b\},X\}$ on $\{a,b,c\}$ is not a topology; intersections of topologies always are.
  3. "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.
  4. 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$.
  5. 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}$.
  6. 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.
  7. 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.
  8. 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.
  9. 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.
  10. 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})$.
  11. 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.
  12. 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.
  13. Metric facts that are not topological. Boundedness and completeness are not preserved by homeomorphisms: $(-1,1)\cong\mathbb{R}$.

Exercises

I
Topologies, bases and subbases.
  • 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 Four: $\{\varnothing,X\}$, $\{\varnothing,\{a\},X\}$, $\{\varnothing,\{b\},X\}$, $\mathcal{P}(X)$. The two Sierpiński topologies are homeomorphic via the swap $a\leftrightarrow b$; the indiscrete and discrete ones are not homeomorphic to anything else (they have $2$ and $4$ open sets). So there are three spaces up to homeomorphism.
2 Nine. Up to renaming they are of two kinds: the chains $\{\varnothing,\{a\},\{a,b\},X\}$ (six, one for each ordering of the points) and $\{\varnothing,\{a\},\{b,c\},X\}$ (three, one for each choice of the singleton). A family $\{\varnothing,\{a\},\{b\},X\}$ is not a topology since $\{a,b\}$ is missing, and $\{\varnothing,\{a,b\},\{a,c\},X\}$ fails because $\{a\}$ is missing.
3 $U_1=\mathbb{N}$; a union of $U_n$'s is $U_m$ with $m$ the least index; $U_m\cap U_n=U_{\max(m,n)}$. Closed sets: $\varnothing$, $\mathbb{N}$ and $\{1,\dots,n-1\}$. The smallest closed set containing $5$ is $\{1,2,3,4,5\}$. $D$ is dense iff it meets every $U_n$ iff $D$ is infinite.
4 (a) Yes: by Theorem 9.4, for $x\in(c,d)$ choose rationals $a\in(c,x)$, $b\in(x,d)$. (b) Yes, with irrationals in place of rationals (both are dense). (c) No — it is not even a basis for any topology: $[0,1]\cap[1,2]=\{1\}$ contains no $[c,d]$ with $c\lt d$, so the intersection condition fails at the point $1$. (Its members are not open in $\mathbb{R}$ anyway.)
5 $[a,b)\cap[c,d)=[\max(a,c),\min(b,d))$ has rational ends, and the sets cover $\mathbb{R}$, so $\mathcal{B}_{\mathbb{Q}}$ is a basis. For $x\in(c,d)$ choose rationals $a\in(c,x)$, $b\in(x,d)$: $x\in[a,b)\subseteq(c,d)$, so $\mathcal{T}_{\mathrm{std}}\subseteq\mathcal{T}_{\mathbb{Q}}$; strict because $[0,1)\in\mathcal{T}_{\mathbb{Q}}$. Every $[a,b)$ with rational ends is lower-limit open, so $\mathcal{T}_{\mathbb{Q}}\subseteq\mathcal{T}_\ell$; strict because $[\sqrt2,2)$ is not in $\mathcal{T}_{\mathbb{Q}}$: a basic set $[a,b)$ containing $\sqrt2$ has rational $a\lt\sqrt2$, so it is not inside $[\sqrt2,2)$. ($\mathcal{T}_{\mathbb{Q}}$ is second countable, so it could not equal $\mathcal{T}_\ell$ anyway.)
6 Use Theorem 9.5 in both directions: if $p$ lies in the open disc $D(c,r)$, put $s=r-|p-c|\gt0$; the square of half-side $s/\sqrt2$ centred at $p$ lies in $D(p,s)\subseteq D(c,r)$. If $p$ lies in an open square $Q$, let $s$ be the distance from $p$ to the boundary of $Q$; then $D(p,s)\subseteq Q$.
7 Finite intersections of rays $(a,\infty)$ are rays, and unions of rays are rays $(a,\infty)$ or $\mathbb{R}$. So $\mathcal{T}=\{\varnothing,\mathbb{R}\}\cup\{(a,\infty):a\in\mathbb{R}\}$. $[0,\infty)$ is not open: it is not of that form. $(-\infty,0]$ is closed, since its complement $(0,\infty)$ is open.
8 In the cofinite topology finite sets are closed, so singletons are closed. If $\mathcal{T}$ is any topology in which singletons are closed, then every finite set is closed (Theorem 9.1(c)), so every cofinite set is open: $\mathcal{T}_{\mathrm{cof}}\subseteq\mathcal{T}$. If $U,V$ are nonempty cofinite subsets of an infinite $X$, $X\setminus(U\cap V)$ is finite, so $U\cap V$ is infinite, in particular nonempty.
II
Interior, closure, boundary and density.
  • 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 $A\subseteq(0,2]$, and every $\tfrac1k=\tfrac1{2k}+\tfrac1{2k}$ lies in $A$. Limit points: $\tfrac1m+\tfrac1n\to\tfrac1m$ as $n\to\infty$, and $\to0$ as both grow; conversely a limit of infinitely many distinct terms needs $m\to\infty$ or $n\to\infty$ along a subsequence with the other index eventually constant (limit $\tfrac1k$) or also tending to infinity (limit $0$). So $A'=\{0\}\cup\{\tfrac1k:k\in\mathbb{N}\}$, $\overline{A}=A\cup\{0\}$, $\operatorname{int}A=\varnothing$ ($A$ is countable), $\partial A=A\cup\{0\}$.
2 $\mathbb{R}_\ell$: $(0,1)$ is open and $\{2\}$ is not, so $\operatorname{int}A=(0,1)$; $\overline{A}=[0,1)\cup\{2\}$ (Example 3, and $\{2\}$ is closed); $\partial A=\{0,2\}$. Cofinite: $A$ is infinite, so $\overline{A}=\mathbb{R}$; its complement is infinite, so $\operatorname{int}A=\varnothing$; $\partial A=\mathbb{R}$. Cocountable: the same answers, since $A$ and its complement are both uncountable.
3 $x\notin\overline{A}\cup\overline{B}$ iff there are open $U\ni x$ missing $A$ and $V\ni x$ missing $B$; then $U\cap V$ is an open neighbourhood of $x$ missing $A\cup B$, so $x\notin\overline{A\cup B}$. Conversely an open set missing $A\cup B$ misses $A$ and $B$. Infinite unions: $A_n=\{1/n\}$; or $A_n=\{q_n\}$ for an enumeration of $\mathbb{Q}$, where $\bigcup\overline{A_n}=\mathbb{Q}$ but $\overline{\bigcup A_n}=\mathbb{R}$.
4 $A=[0,1]$, $B=[1,2]$: $\operatorname{int}A\cup\operatorname{int}B=(0,1)\cup(1,2)$, while $\operatorname{int}(A\cup B)=(0,2)$ contains $1$.
5 $\partial\overline{A}=\overline{A}\setminus\operatorname{int}\overline{A}\subseteq\overline{A}\setminus\operatorname{int}A=\partial A$, since $\operatorname{int}A\subseteq\operatorname{int}\overline{A}$. Similarly $\partial(\operatorname{int}A)=\overline{\operatorname{int}A}\setminus\operatorname{int}A\subseteq\overline{A}\setminus\operatorname{int}A$. Strict: $A=\mathbb{Q}$ gives $\partial\overline{A}=\partial\mathbb{R}=\varnothing$ and $\partial(\operatorname{int}A)=\partial\varnothing=\varnothing$, while $\partial\mathbb{Q}=\mathbb{R}$.
6 Put $B=\overline{\operatorname{int}A}$. Since $\operatorname{int}A$ is open and contained in $B$, $\operatorname{int}A\subseteq\operatorname{int}B$, so $B=\overline{\operatorname{int}A}\subseteq\overline{\operatorname{int}B}$. Conversely $\operatorname{int}B\subseteq B$ and $B$ is closed, so $\overline{\operatorname{int}B}\subseteq B$. Hence $\overline{\operatorname{int}B}=B$, which is the claim.
7 $\mathbb{R}_\ell$: exactly the sets dense in $\mathbb{R}$ (every $[a,b)$ contains $(a,b)$, and every $(a,b)$ contains some $[a',b)$, so meeting all nonempty open sets means the same in both). Cofinite: the infinite sets. Cocountable: the uncountable sets. Particular point: the sets containing $0$ (every nonempty open set contains $0$, and $\{x,0\}$ is open for each $x$).
8 Theorem 9.11 gives $U\subseteq\overline{U\cap D}$: for $x\in U$ and open $V\ni x$, the nonempty open set $U\cap V$ meets $D$. $\mathbb{Q}$ and $\mathbb{R}\setminus\mathbb{Q}$ are dense and disjoint; the theorem needs one of the two dense sets to be open.
III
Countability and separability.
  • 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 The family is countable (indexed by $\mathbb{Q}^n\times\mathbb{Q}^+$). If $x\in U$ open, $B(x,r)\subseteq U$; choose rational $s$ with $0\lt s\lt r/2$ and $q\in\mathbb{Q}^n$ with $|q-x|\lt s$. Then $x\in B(q,s)\subseteq B(x,2s)\subseteq U$. Apply Theorem 9.4.
2 Let $D$ be countable and dense, and $\{U_i\}$ pairwise disjoint, nonempty and open. Each $U_i$ meets $D$ (Theorem 9.11); choose $d_i\in U_i\cap D$. Disjointness makes $i\mapsto d_i$ injective, so the family is countable. In an uncountable discrete space the singletons form an uncountable disjoint family of nonempty open sets.
3 $\mathcal{B}_{\mathbb{Q}}$ is indexed by pairs of rationals, so it is countable. $\mathcal{T}_{\mathbb{Q}}\subseteq\mathcal{T}_\ell$ (Exercise I.5), so the identity $\mathbb{R}_\ell\to(\mathbb{R},\mathcal{T}_{\mathbb{Q}})$ is continuous (Theorem 9.16(d)). Its inverse is not: $[\sqrt2,2)$ is open in $\mathbb{R}_\ell$ but not in $\mathcal{T}_{\mathbb{Q}}$.
4 If $U_1,U_2,\dots$ were a local basis at $x$, $\bigcup(X\setminus U_n)$ would be countable; choose $y\ne x$ outside it. $X\setminus\{y\}$ is an open neighbourhood of $x$ containing no $U_n$. If $X$ is countable, the cofinite sets are complements of finite subsets of a countable set, and there are countably many finite subsets (Unit 1, §1.1), so the whole topology is countable — in particular it has a countable basis.
5 If $\{B_n\}$ is a countable basis of $X$, the sets $B_n\cap A$ form a countable basis of $A$: an open subset of $A$ is $U\cap A$, and for $x\in U\cap A$ some $B_n$ satisfies $x\in B_n\subseteq U$, so $x\in B_n\cap A\subseteq U\cap A$. There is no contradiction because separability is weaker than second countability: the particular point line and the Sorgenfrey plane (§9.2) are separable without being second countable, and they do contain non-separable subsets.
6 If $x\in A'$, then $x\in\overline{A\setminus\{x\}}$; apply Theorem 9.13(b) to $A\setminus\{x\}$. The converse holds in every space. In the cocountable line, $0$ is a limit point of $\mathbb{R}\setminus\{0\}$ (every cocountable neighbourhood of $0$ meets it), but sequences there that converge are eventually constant (Example 4).
7 The topology itself, $\{\varnothing\}\cup\{U_n\}$, is countable, so it is its own countable basis. If $x_n\to\infty$ and $m\in\mathbb{N}$, the open neighbourhoods of $m$ are the $U_k$ with $k\le m$, and each contains all $x_n$ with $x_n\ge k$, i.e. all but finitely many terms. So $x_n\to m$ for every $m$.
IV
Continuity and homeomorphisms.
  • 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.
1 ($\Rightarrow$) For $x\in\overline{A}$ and an open $V\ni f(x)$, the open set $f^{-1}(V)$ contains $x$, so it meets $A$ at some $a$; then $f(a)\in V\cap f(A)$, proving $f(x)\in\overline{f(A)}$. ($\Leftarrow$) For closed $C$ and $A=f^{-1}(C)$: $f(\overline{A})\subseteq\overline{C}=C$, so $\overline{A}\subseteq A$. Strict: $f=\arctan$, $A=\mathbb{R}$: $f(\overline{A})=(-\tfrac\pi2,\tfrac\pi2)$, $\overline{f(A)}=[-\tfrac\pi2,\tfrac\pi2]$.
2 $x$: yes. $-x$: no (Example 6(c)). $x^2$: no — $(x^2)^{-1}([1,2))=(-\sqrt2,-1]\cup[1,\sqrt2)$ contains $-1$ but no $[-1,-1+\varepsilon)$. $\lfloor x\rfloor$: yes — the preimage of $[c,d)$ is $\bigcup\{[n,n+1):n\in\mathbb{Z}\cap[c,d)\}$. $\mathbf{1}_{[0,\infty)}$: yes — every preimage is one of $\varnothing$, $(-\infty,0)$, $[0,\infty)$, $\mathbb{R}$, all open in $\mathbb{R}_\ell$. (Interactive 2, codomain "lower limit".)
3 Only constants. As in Example 6(a): two distinct values would give two disjoint nonempty open sets, but any two nonempty cocountable subsets of $\mathbb{R}$ meet, since their complements are countable and $\mathbb{R}$ is not.
4 $(a,b)\cong(0,1)$ by an affine map; $(0,1)\cong(-1,1)\cong\mathbb{R}$ by Example 7(a); $(a,\infty)\cong\mathbb{R}$ by $x\mapsto\log(x-a)$, and $(-\infty,b)\cong(-b,\infty)$ by $x\mapsto-x$. Homeomorphism is an equivalence relation, so all are homeomorphic. $x\mapsto1-x$ maps $[0,1)$ onto $(0,1]$ and is its own inverse.
5 ($\Rightarrow$) is Theorem 9.17(iv). ($\Leftarrow$) By Exercise IV.1, $f$ is continuous; and $f$ is closed since $f(C)=f(\overline{C})=\overline{f(C)}$ for closed $C$. A closed continuous bijection is a homeomorphism (Theorem 9.17).
6 If $X$ is discrete every preimage is open. Conversely, $\mathrm{id}:X\to(X,\text{discrete})$ continuous means every subset is open in $X$. If $Y$ is indiscrete, every map into it is continuous (Theorem 9.16(b)). Conversely, if $V\ne\varnothing,Y$ were open in $Y$, then $\mathrm{id}:(Y,\text{indiscrete})\to Y$ would not be continuous.
7 In the cofinite line any two nonempty open sets meet; in $\mathbb{R}$, $(0,1)$ and $(2,3)$ do not, and this property is preserved by homeomorphisms. (Or: the cofinite line is not first countable.) A bijection $f$ maps finite sets to finite sets and so does $f^{-1}$; hence both are closed maps for the cofinite topology, i.e. preimages of closed sets are closed, and both are continuous.
8 $f(X)=f(\overline{D})\subseteq\overline{f(D)}$ by Theorem 9.15(3). Example: $\mathrm{id}:(\mathbb{R},\text{discrete})\to(\mathbb{R},\text{standard})$; the domain is not separable, the image is.
9 The sets cover $\mathbb{Z}$. Two basic sets meet only in an odd number $2k+1$, and $\{2k+1\}$ is basic, so the intersection condition holds. The smallest open set containing an even $2k$ is $\{2k-1,2k,2k+1\}$, and containing an odd $m$ is $\{m\}$. $x\in\overline{\{0\}}$ iff the smallest neighbourhood of $x$ contains $0$: only $x=0$. So $\{0\}$ is closed (edges are closed points). $\overline{\{1\}}=\{0,1,2\}$ (pixels are open points whose closure adds the two adjacent edges). The shift $n\mapsto n+1$ is not continuous: the preimage of the open set $\{1\}$ is $\{0\}$, not open. $n\mapsto n+2$ and $n\mapsto-n$ preserve parity and map basic sets onto basic sets (for instance $n\mapsto-n$ maps the triple around $2k$ onto the triple around $-2k$), and so do their inverses $n\mapsto n-2$ and $n\mapsto-n$; hence they are continuous and open bijections, i.e. homeomorphisms.
🎯 Exam corner CSIR Part BCSIR Part CGATE MA

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]$.

Idea $x\in\overline{A}$ iff every $[x,x+\varepsilon)$ meets $A$: only right-hand neighbourhoods count.
Check $[0,\varepsilon)$ meets $(0,1)$, so $0$ is in the closure; $[1,2)$ misses $(0,1)$, so $1$ is not; points outside $[0,1]$ are clearly not.
Answer (B). Option (D) is the closure in the standard topology.

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$.

Forced sets Such a topology contains $\varnothing,\{a\},\{b\},\{a,b\},X$ — and this family is already a topology.
Optional sets The only other subsets are $\{c\},\{a,c\},\{b,c\}$. Adding $\{a,c\}$ alone or $\{b,c\}$ alone gives a topology (check: $\{a,c\}\cap\{b\}=\varnothing$, $\{a,c\}\cap\{a,b\}=\{a\}$, $\{a,c\}\cup\{b\}=X$). Adding both forces $\{a,c\}\cap\{b,c\}=\{c\}$, and adding $\{c\}$ forces $\{a,c\}$ and $\{b,c\}$: either way we get the discrete topology.
Answer (C): the four topologies with $5$, $6$, $6$ and $8$ open sets. (A brute-force check over all $29$ topologies on three points agrees.)

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}\}$.

Options (A) No (Theorem 9.14). (B) No: it is not separable. (C) No: it is not even first countable (Example 5). (D) The given family is countable and generates the standard topology (Exercise I.4).
Answer (D).

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.

(A) False Every countable set is closed and is not all of $\mathbb{R}$, so no countable set is dense.
(B) True Its complement $\mathbb{R}\setminus\mathbb{Q}$ has countable complement, so it is open.
(C) True If $x_n\to x$, $\mathbb{R}\setminus\{x_n:x_n\ne x\}$ is an open neighbourhood of $x$ (Example 4).
(D) False A countable local basis $\{U_n\}$ at $x$ would leave out only countably many points in total; removing one more point $y$ gives a neighbourhood containing no $U_n$ (Example 5).
Answer (B) and (C).

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.

(A) False $[0,1)$ is open in $\mathbb{R}_\ell$, and its preimage $[0,1)$ is not open in $\mathbb{R}$.
(B) True The preimage of $(c,d)$ is a union of intervals $[n,n+1)$, which are open in $\mathbb{R}_\ell$.
(C) False The preimage of $[0,1)$ is $(-1,0]$, not open in $\mathbb{R}_\ell$.
(D) True Two values would give two disjoint nonempty cofinite open sets (Example 6(a)).
Answer (B) and (D).

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$.

(A) True $\partial A=\overline{A}\cap\overline{X\setminus A}$ is symmetric in $A$ and $X\setminus A$.
(B) False $A=\mathbb{Q}\subseteq\mathbb{R}$: $\overline{\operatorname{int}\mathbb{Q}}=\varnothing$, $\overline{\mathbb{Q}}=\mathbb{R}$.
(C) True For open $A$, $\partial A=\overline{A}\setminus A$. If a nonempty open $U$ lay inside it, then $U\subseteq\overline{A}$ would force $U$ to meet $A$ (Theorem 9.8(2)), while $U\subseteq X\setminus A$. (Without openness it fails: $\partial\mathbb{Q}=\mathbb{R}$.)
(D) True If $x\in\partial(A\cup B)$, then $x\in\overline{A}\cup\overline{B}$, say $x\in\overline{A}$, and $x\notin\operatorname{int}(A\cup B)\supseteq\operatorname{int}A$; hence $x\in\overline{A}\setminus\operatorname{int}A=\partial A$.
Answer (A), (C) and (D).
🧑‍🏫 For the teacher

Suggested plan — 3 lectures × 60 min.

  1. 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.
  2. 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?"
  3. 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–Teaching NexusResearch-tutored · optional, about 60 minutes

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.

  1. 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.
  2. 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$.
  3. 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).
  4. 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.

Instructor note: the counts of topologies on $n=1,\dots,5$ points are $1,4,29,355,6942$, and of $T_0$ topologies (partial orders) $1,3,19,219,4231$; a brute-force check over all relations confirms these. Up to homeomorphism there are $3$, $9$ and $33$ topologies on $2$, $3$ and $4$ points. In the Khalimsky plane a pixel is an open point, an edge's minimal open set contains it and its two adjacent pixels, and a vertex's minimal open set is the $3\times3$ block around it.

🧪 Self-check quiz

0/5 correct

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