7  Topological Spaces

In analysis, the fundamental notion is closeness — approximation, convergence, limits. We have already seen this in the construction of \(\mathbb{R}\): the real numbers exist precisely to make limits available. The right abstract setting for these ideas is topology.

A topology strips away everything except the declaration of which sets are open, and asks: what is the minimal structure needed to make sense of continuity and convergence?

7.1 Topological spaces

Definition 7.1 (Topology) A topology on a set \(X\) is a collection \(\mathscr{T}\) of subsets of \(X\), called open sets, satisfying:

  1. \(\varnothing, X \in \mathscr{T}\),

  2. if \(\{U_\alpha\} \subset \mathscr{T}\), then \(\bigcup_\alpha U_\alpha \in \mathscr{T}\) (arbitrary unions),

  3. if \(U_1,\dots,U_n \in \mathscr{T}\), then \(\bigcap_{i=1}^n U_i \in \mathscr{T}\) (finite intersections).

The pair \((X,\mathscr{T})\) is called a topological space.

The asymmetry between (ii) and (iii) is deliberate. Arbitrary intersections of open sets need not be open: \[ \bigcap_{n=1}^\infty \left(-\frac1n,\frac1n\right)=\{0\}, \] which is not open in \(\mathbb{R}\). By contrast, every finite intersection remains open: \[ \bigcap_{k=1}^N \left(-\frac1k,\frac1k\right) = \left(-\frac1N,\frac1N\right). \] The axioms are designed precisely to permit this phenomenon.

A set \(F\subset X\) is closed if \(X\setminus F\in\mathscr{T}\). Open and closed are not opposites: \(\varnothing\) and \(X\) are both, and a set can be neither. A set that is both open and closed is called clopen. Clopen sets are closely tied to connectedness.

Example 7.1 (Three canonical examples)  

  1. Discrete topology: \(\mathscr{T}=2^X\). Every subset is open, hence every subset is also closed. This is the finest possible topology on \(X\).

  2. Indiscrete topology: \(\mathscr{T}=\{\varnothing,X\}\). No two distinct points can be separated by open sets. This is the coarsest possible topology.

  3. Standard topology on \(\mathbb{R}\): the topology generated by open intervals \((a,b)\). In fact every open subset of \(\mathbb{R}\) is a countable union of open intervals; this follows later from second-countability.

Definition 7.2 (Finer and coarser) Let \(\mathscr{T}\) and \(\mathscr{T}'\) be topologies on the same set \(X\).

If \(\mathscr{T}\subset\mathscr{T}'\), then \(\mathscr{T}'\) is said to be finer than \(\mathscr{T}\), and \(\mathscr{T}\) is coarser than \(\mathscr{T}'\). If the inclusion is proper, the topology is strictly finer.

Two topologies on \(X\) need not be comparable: neither need contain the other.

How well a topology separates distinct points is measured by the separation axioms, developed later.

7.2 Bases

Topologies are rarely specified by listing all open sets explicitly. Instead one usually specifies a smaller collection from which all open sets are generated.

Definition 7.3 (Basis) A basis for a topology on \(X\) is a collection \(\mathscr{B}\) of subsets of \(X\) satisfying:

  1. for every \(x\in X\), there exists \(B\in\mathscr{B}\) such that \(x\in B\),

  2. whenever \(x\in B_1\cap B_2\) for \(B_1,B_2\in\mathscr{B}\), there exists \(B_3\in\mathscr{B}\) such that \[ x\in B_3\subset B_1\cap B_2. \]

The topology generated by \(\mathscr{B}\) is \[ \mathscr{T}_{\mathscr{B}} := \left\{ U\subset X : \forall x\in U,\ \exists B\in\mathscr{B} \text{ such that } x\in B\subset U \right\}. \]

A set is open precisely when every point can be surrounded by a basis element lying entirely inside the set. Condition (ii) is what makes this construction work: intersections of basis elements need not themselves belong to the basis, but they must contain smaller basis elements around each point. Without this condition, \(\mathscr{T}_{\mathscr{B}}\) need not be closed under finite intersections.

Lemma 7.1 (\(\mathscr{T}_{\mathscr{B}}\) consists exactly of unions of basis elements)  

Proof. Suppose \[ U=\bigcup_{\alpha} B_\alpha, \qquad B_\alpha\in\mathscr{B}. \] If \(x\in U\), then \(x\in B_\alpha\) for some \(\alpha\), and \(B_\alpha\subset U\). Hence \(U\in\mathscr{T}_{\mathscr{B}}\).

Conversely, let \(U\in\mathscr{T}_{\mathscr{B}}\). For each \(x\in U\), choose \(B_x\in\mathscr{B}\) such that \[ x\in B_x\subset U. \] Then \[ U=\bigcup_{x\in U} B_x. \] Thus every open set is a union of basis elements. \(\square\)

Lemma 7.2 (Basis criterion) Let \((X,\mathscr{T})\) be a topological space. A collection \(\mathscr{B}\subset\mathscr{T}\) is a basis for \(\mathscr{T}\) if and only if for every open set \(U\in\mathscr{T}\) and every \(x\in U\), there exists \(B\in\mathscr{B}\) such that \[ x\in B\subset U. \]

Proof. \((\Rightarrow)\) Every open set in \(\mathscr{T}\) is a union of basis elements, so every point lies inside some basis element contained in the open set.

\((\Leftarrow)\) The stated condition implies every open set in \(\mathscr{T}\) is a union of elements of \(\mathscr{B}\), hence \[ \mathscr{T}\subset\mathscr{T}_{\mathscr{B}}. \] Conversely, every element of \(\mathscr{B}\) is already open in \(\mathscr{T}\), so every union of basis elements is open in \(\mathscr{T}\). Therefore \[ \mathscr{T}_{\mathscr{B}}\subset\mathscr{T}. \] Hence \[ \mathscr{T}=\mathscr{T}_{\mathscr{B}}. \qquad \square \]

Lemma 7.3 (Comparing topologies via bases) Let \(\mathscr{B}\) and \(\mathscr{B}'\) be bases for topologies \(\mathscr{T}\) and \(\mathscr{T}'\) on \(X\). Then \[ \mathscr{T}\subset\mathscr{T}' \] if and only if for every \(x\in X\) and every \(B\in\mathscr{B}\) containing \(x\), there exists \(B'\in\mathscr{B}'\) such that \[ x\in B'\subset B. \]

Proof. \((\Rightarrow)\) Suppose \(\mathscr{T}\subset\mathscr{T}'\). Every basis element \(B\in\mathscr{B}\) is therefore open in \(\mathscr{T}'\). Since \(\mathscr{B}'\) is a basis for \(\mathscr{T}'\), every point \(x\in B\) lies in some basis element \(B'\in\mathscr{B}'\) satisfying \[ x\in B'\subset B. \]

\((\Leftarrow)\) Let \(U\in\mathscr{T}\). To show \(U\in\mathscr{T}'\), let \(x\in U\). Since \(\mathscr{B}\) is a basis for \(\mathscr{T}\), there exists \(B\in\mathscr{B}\) such that \[ x\in B\subset U. \] By hypothesis, there exists \(B'\in\mathscr{B}'\) such that \[ x\in B'\subset B\subset U. \] Thus every point of \(U\) lies inside a \(\mathscr{B}'\)-basis element contained in \(U\), so \(U\) is open in \(\mathscr{T}'\). Therefore \[ \mathscr{T}\subset\mathscr{T}'. \qquad \square \]

Example 7.2 (Examples of bases)  

  1. Open intervals \((a,b)\) form a basis for the standard topology on \(\mathbb{R}\). Every real number lies in some interval \((-n,n)\), and finite intersections satisfy \[ (a,b)\cap(c,d) = (\max(a,c),\min(b,d)) \] whenever the intersection is nonempty.

Restricting to intervals with rational endpoints gives a countable basis. A space admitting a countable basis is called second-countable; this property of \(\mathbb{R}\) will be used later to simplify arguments about sequences and coverings.

  1. In \(\mathbb{R}^2\), both open discs and open rectangles \[ (a,b)\times(c,d) \] generate the standard topology. Different bases can generate the same topology.

  2. The collection \[ \mathscr{B} = \{[a,b):a<b\} \] forms a basis on \(\mathbb{R}\). Indeed, every point \(x\) lies in \([x,x+1)\), and \[ [a,b)\cap[c,d) = [\max(a,c),\min(b,d)) \] whenever the intersection is nonempty.

The resulting topology is called the Sorgenfrey topology, and the space \(\mathbb{R}_\ell\) is called the Sorgenfrey line. It is strictly finer than the standard topology: every ordinary open interval is Sorgenfrey-open since \[ (a,b)=\bigcup_{n=1}^\infty [a+1/n,b), \] but sets such as \([0,1)\) are Sorgenfrey-open and not open in the standard topology.

7.3 Subbases

Bases themselves are often generated from even smaller collections.

Definition 7.4 (Subbasis) A subbasis for a topology on \(X\) is a collection \(\mathscr{S}\) of subsets of \(X\) such that \[ \bigcup_{S\in\mathscr{S}} S = X. \]

The topology generated by \(\mathscr{S}\) is the topology generated by the basis consisting of all finite intersections of elements of \(\mathscr{S}\).

A subbasis need not itself behave well under intersections. Finite intersections are introduced precisely to repair this and produce a basis.

If \(\mathscr{B}\) denotes the collection of finite intersections of elements of \(\mathscr{S}\), then \(\mathscr{B}\) is indeed a basis: condition (i) follows from \(\bigcup\mathscr{S}=X\), while condition (ii) holds because intersections of finite intersections are again finite intersections.

Subbases become especially important in two fundamental constructions.

Given maps \[ f_\alpha:X\to Y_\alpha, \] the initial topology on \(X\) is the coarsest topology making every \(f_\alpha\) continuous. It is generated by the subbasis \[ \{f_\alpha^{-1}(V):V\text{ open in }Y_\alpha\}. \]

The product topology on \[ \prod_\alpha X_\alpha \] is obtained as the special case corresponding to coordinate projections.

7.4 Continuous maps

The central objects of topology are not spaces themselves but the maps between them that respect their structure.

Definition 7.5 (Continuous map) Let \((X, \mathscr{T}_X)\) and \((Y, \mathscr{T}_Y)\) be topological spaces. A map \(f : X \to Y\) is continuous if the preimage of every open set is open: \[ V \in \mathscr{T}_Y \implies f^{-1}(V) \in \mathscr{T}_X. \]

This is the definition the reader will have already encountered, at least implicitly, in multivariable calculus: a function \(f : \mathbb{R}^m \to \mathbb{R}^n\) is continuous at \(a\) if for every \(\varepsilon > 0\) there exists \(\delta > 0\) such that \(\|x - a\| < \delta\) implies \(\|f(x) - f(a)\| < \varepsilon\). The open-set definition above captures the same idea globally and without reference to distances, making it applicable in any topological space.

A map \(f : X \to Y\) is a homeomorphism if it is a continuous bijection with a continuous inverse. Homeomorphic spaces are topologically indistinguishable.

Note

We record this definition here for completeness. A thorough treatment of continuity — including characterisations via sequences etc, uniform continuity, and the behaviour of continuous maps on compact and connected spaces — is developed in the Continuity part of this text.

7.5 Closure, interior, and limit points

Definition 7.6 (Closure and interior) Let \(A\subset X\).

The closure of \(A\), denoted \(\overline{A}\), is the smallest closed set containing \(A\): \[ \overline{A} = \bigcap \{ F\subset X: F\text{ closed and }A\subset F \}. \]

The interior of \(A\), denoted \(\operatorname{Int}(A)\), is the largest open set contained in \(A\): \[ \operatorname{Int}(A) = \bigcup \{ U\in\mathscr{T}:U\subset A \}. \]

The boundary of \(A\) is \[ \partial A = \overline{A}\setminus\operatorname{Int}(A). \]

These operations are well-defined because arbitrary intersections of closed sets are closed, and arbitrary unions of open sets are open.

Definition 7.7 (Limit point) Let \(A\subset X\). A point \(x\in X\) is called a limit point of \(A\) if every open neighbourhood of \(x\) intersects \(A\setminus\{x\}\): \[ \forall U\in\mathscr{T}, \quad x\in U \Rightarrow U\cap(A\setminus\{x\})\neq\varnothing. \]

The set of all limit points of \(A\) is called the derived set and is denoted \(A'\).

The condition \[ U\cap(A\setminus\{x\})\neq\varnothing \] means that every neighbourhood of \(x\) contains a point of \(A\) other than possibly \(x\) itself. This is the topological analogue of the familiar \(\varepsilon\)-definition in \(\mathbb{R}\): \(x\) is a limit point of \(A\subset\mathbb{R}\) if every punctured interval \[ (x-\varepsilon,x+\varepsilon)\setminus\{x\} \] meets \(A\).

In general topological spaces, limit points behave subtly unless additional separation axioms are assumed. In particular, the identity \[ \overline{A}=A\cup A' \] need not hold in arbitrary spaces. However, it does under an additional separation condition developed in a later chapter.

Example 7.3 (Closure in \(\mathbb{R}\))  

  1. \[ \overline{(a,b)}=[a,b]. \] The endpoints are limit points, and \([a,b]\) is the smallest closed interval containing \((a,b)\).

  2. \[ \overline{\mathbb{Q}}=\mathbb{R}. \] Every real number is a limit of rationals: the density of \(\mathbb{Q}\) expressed topologically.

  3. \[ \overline{\{1/n:n\in\mathbb{N}\}} = \{1/n:n\in\mathbb{N}\}\cup\{0\}. \] The point \(0\) is the unique additional limit point.

  4. \[ \operatorname{Int}(\mathbb{Q})=\varnothing. \] No nonempty open interval is contained entirely inside \(\mathbb{Q}\).

Exercise. Show that \(x\in\overline{A}\) iff every open set containing \(x\) intersects \(A\).

Suppose first that \(x\notin\overline{A}\). Then \[ x\in X\setminus\overline{A}. \] Since \(\overline{A}\) is closed, its complement is open. Hence there exists an open neighbourhood \(U\) of \(x\) satisfying \[ U\cap A=\varnothing. \]

Conversely, if some open neighbourhood \(U\) of \(x\) satisfies \[ U\cap A=\varnothing, \] then \[ U\subset X\setminus\overline{A}, \] so \(x\notin\overline{A}\).

Negating the statement gives the result: \[ x\in\overline{A} \iff \text{every open neighbourhood of }x\text{ meets }A. \qquad\square \]