Skip to content

Topological Spaces

Definition. A topological space is a pair (X,τ)(X, \tau) where XX is a set and τ\tau is a collection of subsets of XX called open sets, satisfying:

  1. ∅∈τ\emptyset \in \tau and X∈τX \in \tau.
  2. The union of any sub-collection of τ\tau is in τ\tau (arbitrary unions of open sets are open).
  3. The intersection of any finite sub-collection of τ\tau is in τ\tau (finite intersections of open sets are open).

The collection τ\tau is called a topology on XX.

Example 2.1. Let X={a,b,c}X = \{a, b, c\}. The collection

τ={∅,{a},{a,b},{a,b,c}}\tau = \{\emptyset, \{a\}, \{a, b\}, \{a, b, c\}\}

is a topology on XX.

Example 2.2 (Discrete topology). For any set XX, let τd=P(X)\tau_d = \mathcal{P}(X) (all subsets of XX). This is the discrete topology, every subset is open.

Example 2.3 (Indiscrete topology). For any set XX, let τi={∅,X}\tau_i = \{\emptyset, X\}. This is the indiscrete topology (or trivial topology).

Example 2.4 (Cofinite topology). For any infinite set XX, let τc\tau_c consist of ∅\emptyset and all subsets U⊆XU \subseteq X such that X∖UX \setminus U is finite. This is the cofinite topology.

Example 2.5 (Standard topology on R\mathbb{R}). A subset U⊆RU \subseteq \mathbb{R} is open if for every x∈Ux \in U there exists ε>0\varepsilon > 0 such that (x−ε,x+ε)⊆U(x - \varepsilon, x + \varepsilon) \subseteq U. The collection of all such open sets is the standard topology on R\mathbb{R}.

Definition. A basis for a topology τ\tau on XX is a collection B⊆τ\mathcal{B} \subseteq \tau such that every open set is a union of elements of B\mathcal{B}.

Equivalently, B\mathcal{B} is a basis if and only if:

  1. For each x∈Xx \in X, there exists B∈BB \in \mathcal{B} with x∈Bx \in B.
  2. If B1,B2∈BB_1, B_2 \in \mathcal{B} and x∈B1∩B2x \in B_1 \cap B_2, then there exists B3∈BB_3 \in \mathcal{B} with x∈B3⊆B1∩B2x \in B_3 \subseteq B_1 \cap B_2.

Example 2.6. The collection of all open intervals (a,b)(a, b) in R\mathbb{R} forms a basis for the standard topology.

Example 2.7. The collection of all open balls Br(p)={x∈Rn:∥x−p∥<r}B_r(p) = \{x \in \mathbb{R}^n : \|x - p\| < r\} forms a basis for the standard topology on Rn\mathbb{R}^n.

Definition. Let (X,τ)(X, \tau) be a topological space and Y⊆XY \subseteq X. The subspace topology on YY is

τY={U∩Y:U∈τ}.\tau_Y = \{U \cap Y : U \in \tau\}.

Proposition 2.1. If B\mathcal{B} is a basis for τ\tau, then {B∩Y:B∈B}\{B \cap Y : B \in \mathcal{B}\} is a basis for the subspace topology on YY.

Example 2.8. The subspace topology on [0,1]⊆R[0, 1] \subseteq \mathbb{R} (with the standard topology) has [0,1/2)[0, 1/2) as an open set (since [0,1/2)=(−1/2,1/2)∩[0,1][0, 1/2) = (-1/2, 1/2) \cap [0, 1]).

Definition. Let τ1\tau_1 and τ2\tau_2 be topologies on XX. We say τ1\tau_1 is coarser (weaker) than τ2\tau_2 (or τ2\tau_2 is finer (stronger) than τ1\tau_1) if τ1⊆τ2\tau_1 \subseteq \tau_2.

For any set XX: indiscrete ⊆\subseteq cofinite ⊆\subseteq standard (if X=RX = \mathbb{R}) ⊆\subseteq discrete.

The axioms are asymmetric; arbitrary unions, only finite intersections; and that asymmetry is where the subject’s surprising behaviour comes from. The proofs here verify the axioms on the standard and cofinite topologies, exhibit the counterexample that shows the finiteness cannot be relaxed, and prove the basis criterion used everywhere afterwards.

Proposition (the standard topology on R\mathbb{R} is a topology).

Proof. Let {Uα}α∈A\{U_\alpha\}_{\alpha \in A} be any collection of open sets and x∈⋃αUαx \in \bigcup_\alpha U_\alpha. Then x∈Uα0x \in U_{\alpha_0} for some α0\alpha_0, so some ε>0\varepsilon > 0 has (x−ε,x+ε)⊆Uα0⊆⋃αUα(x - \varepsilon, x + \varepsilon) \subseteq U_{\alpha_0} \subseteq \bigcup_\alpha U_\alpha; the union is open. Arbitrariness of the collection was used nowhere: any sub-collection, however large, contributes its ε\varepsilon-ball at each of its points.

For intersections, let U,VU, V be open and x∈U∩Vx \in U \cap V. Openness of UU gives (x−εU,x+εU)⊆U(x - \varepsilon_U, x + \varepsilon_U) \subseteq U; openness of VV gives (x−εV,x+εV)⊆V(x - \varepsilon_V, x + \varepsilon_V) \subseteq V. Take ε=min⁡(εU,εV)>0\varepsilon = \min(\varepsilon_U, \varepsilon_V) > 0: the smaller ball lies in both, hence in U∩VU \cap V; and finitely many more extend the same argument by induction, since a finite set of positive epsilons has a positive minimum. ■\blacksquare

The counterexample that shows finiteness cannot be relaxed. The infinite intersection

⋂n=1∞(−1n,1n)={0}\bigcap_{n=1}^{\infty} \left(-\tfrac{1}{n}, \tfrac{1}{n}\right) = \{0\}

is not open: no ε\varepsilon-ball about 00 fits inside the singleton. The mechanism of the finite proof fails at exactly this point; an infinite set of positive numbers {εn}\{\varepsilon_n\} can have infimum zero, so the “minimum” step has nothing to take. Every equivalent definition of openness inherits the restriction, and the failure is not pathological: singletons being open would make every set open (any set is a union of singletons), collapsing the standard topology to the discrete one and destroying convergence as a topological notion. The axiom is doing the work that makes R\mathbb{R} interesting.

Proposition (the cofinite topology is a topology, on any set XX).

Proof. Let τc={∅}∪{U:X∖U is finite}\tau_c = \{\emptyset\} \cup \{U : X \setminus U \text{ is finite}\}.

Arbitrary unions. Let {Uα}\{U_\alpha\} be cofinite-or-empty and form U=⋃αUαU = \bigcup_\alpha U_\alpha. If every Uα=∅U_\alpha = \emptyset then U=∅∈τcU = \emptyset \in \tau_c. Otherwise some Uα0U_{\alpha_0} is cofinite, so X∖U⊆X∖Uα0X \setminus U \subseteq X \setminus U_{\alpha_0} is finite (a subset of a finite set), and U∈τcU \in \tau_c. Note the union’s complement only shrinks.

Finite intersections. Let U1,…,UmU_1, \dots, U_m be cofinite. By De Morgan,

X∖(U1∩⋯∩Um)=⋃k=1m(X∖Uk),X \setminus (U_1 \cap \cdots \cap U_m) = \bigcup_{k=1}^{m} (X \setminus U_k),

a finite union of finite sets, hence finite; so the intersection is cofinite. ■\blacksquare

The proof shows precisely where infinitude breaks: an arbitrary union of complements would be an arbitrary union of finite sets, which can be infinite: ⋃n(N∖{n})=N\bigcup_n (\mathbb{N} \setminus \{n\}) = \mathbb{N}, and N\mathbb{N} itself is not cofinite-complement. The finite-intersections axiom is what the cofinite topology can satisfy; the arbitrary-union complement behaviour is what it cannot exceed.

Proposition 2.1 (basis of the subspace topology). If B\mathcal{B} is a basis for τ\tau on XX and Y⊆XY \subseteq X, then {B∩Y:B∈B}\{B \cap Y : B \in \mathcal{B}\} is a basis for the subspace topology on YY.

Proof. Two things to show: the restricted family is a basis for some topology (the covering and intersection conditions), and the topology it generates equals τY\tau_Y.

Covering. For each y∈Yy \in Y, y∈X∈τy \in X \in \tau, and the basis covering condition gives B∈BB \in \mathcal{B} with y∈By \in B; then y∈B∩Yy \in B \cap Y.

Intersection condition. If y∈(B1∩Y)∩(B2∩Y)y \in (B_1 \cap Y) \cap (B_2 \cap Y) then y∈B1∩B2y \in B_1 \cap B_2, and the basis condition gives B3∈BB_3 \in \mathcal{B} with y∈B3⊆B1∩B2y \in B_3 \subseteq B_1 \cap B_2; then y∈B3∩Y⊆(B1∩Y)∩(B2∩Y)y \in B_3 \cap Y \subseteq (B_1 \cap Y) \cap (B_2 \cap Y).

Equality with the subspace topology. First, every B∩YB \cap Y is subspace- open by definition, so the topology generated by the restricted family is contained in τY\tau_Y. Conversely, let U∈τYU \in \tau_Y, so U=V∩YU = V \cap Y for some V∈τV \in \tau; write V=⋃BαV = \bigcup B_\alpha over basis elements, and then

U=V∩Y=⋃α(Bα∩Y),U = V \cap Y = \bigcup_\alpha (B_\alpha \cap Y),

a union of restricted basis elements; so UU is in the generated topology. Both containments give equality. ■\blacksquare

The second containment is where subspace intuition comes from: a set open in YY need not be open in XX ([0,1/2)[0, 1/2) in [0,1][0,1]), but it is always the intersection with YY of something open in XX; and the worked example 2.8 exhibits exactly that intersection.

Proposition (basis criterion). A collection B⊆P(X)\mathcal{B} \subseteq \mathcal{P}(X) satisfies the two basis conditions iff the collection of all unions of elements of B\mathcal{B} is a topology on XX for which B\mathcal{B} is a basis.

Proof. (⇐\Leftarrow) Suppose B\mathcal{B} satisfies the two conditions and let τB\tau_{\mathcal{B}} be all unions of elements. ∅\emptyset is the empty union; XX is covered by condition 1. Arbitrary unions of unions are unions. For finite intersections, reduce to two: (⋃iBi)∩(⋃jBj′)=⋃i,j(Bi∩Bj′)(\bigcup_i B_i) \cap (\bigcup_j B'_j) = \bigcup_{i,j} (B_i \cap B'_j), and each Bi∩Bj′B_i \cap B'_j contains each of its points in some B3∈BB_3 \in \mathcal{B} by condition 2; so the intersection is a union of basis elements and lies in τB\tau_{\mathcal{B}}. And B\mathcal{B} is a basis for τB\tau_{\mathcal{B}} by construction.

(⇒\Rightarrow) If τB\tau_{\mathcal{B}} is a topology with B\mathcal{B} a basis, condition 1 holds since X∈τBX \in \tau_{\mathcal{B}} must be a union of basis elements covering each point; condition 2 holds because for x∈B1∩B2x \in B_1 \cap B_2, the intersection B1∩B2B_1 \cap B_2 is open; being a finite intersection of basis elements, each open; and is therefore a union of basis elements, one of which contains xx and lies inside the intersection. ■\blacksquare

The two conditions are exactly what makes “every open set is a union of basis elements” consistent: condition 1 keeps the union covering XX, condition 2 keeps the basis closed enough under overlap that unions of unions stay unions. Open balls in Rn\mathbb{R}^n (Example 2.7) satisfy condition 2 with B3=B(p,min⁡(r1−d,r2−d))B_3 = B(p, \min(r_1 - d, r_2 - d))-style radius-halving; the same triangle-inequality geometry the metric-space chapter uses.

TopologyBasisSeparationProperties
Discrete{{x}:x∈X}\{\{x\} : x \in X\}Completely normalEvery function from XX is continuous
Indiscrete{X}\{X\}Not T0T_0Every function to XX is continuous
Cofinite{X∖F:F finite}\{X \setminus F : F\text{ finite}\}T1T_1 but not T2T_2Compact (any XX)
Standard (R\mathbb{R}){(a,b):a<b}\{(a,b) : a<b\}T4T_4 (normal)Connected, separable, Lindelöf
Subspace{B∩Y:B∈BX}\{B \cap Y : B \in \mathcal{B}_X\}Inherits T0,T1,T2T_0,T_1,T_2Open sets = intersections with YY

These examples span the spectrum from finest (discrete, many open sets) to coarsest (indiscrete, few open sets).

  • Assuming all topologies are metric. The cofinite topology on an infinite set is not Hausdorff (T2T_2) and cannot arise from a metric. Fix: Metric spaces are a proper subclass of topological spaces; many useful topologies are non-metrisable.
  • Thinking arbitrary intersections of open sets are open. Only finite intersections are guaranteed. Fix: Counterexample: in R\mathbb{R}, ⋂n=1∞(−1/n,1/n)={0}\bigcap_{n=1}^\infty (-1/n, 1/n) = \{0\}, which is not open.
  • Confusing open and closed sets. A set can be both (clopen: ∅\emptyset and XX), neither, or one without the other. Fix: Topology defines open sets; closed sets are complements. Check the definition, not intuition from R\mathbb{R}.
  • Assuming the subspace topology is intuitive. A set can be open in Y⊆XY \subseteq X without being open in XX. Fix: [0,1/2)[0, 1/2) is open in [0,1][0,1] with subspace topology because [0,1/2)=(−1/2,1/2)∩[0,1][0,1/2) = (-1/2, 1/2) \cap [0,1].
  • Data analysis (persistent homology): Topological data analysis uses simplicial complexes and persistent homology to study shape in high-dimensional data, with the Vietoris-Rips complex topology.
  • Network theory: Graphs are 1-dimensional CW complexes; topological invariants like the fundamental group detect holes and cycles in communication and social networks.
  • Robot motion planning: The configuration space of a robotic arm is a topological space; its connected components determine reachable configurations and its fundamental group encodes obstacles.
  • Quantum computing: The topology of quantum error-correcting codes (surface codes, toric codes) determines their error thresholds; logical qubits correspond to non-contractible loops on the code manifold.
  • General relativity: Spacetime is a 4-dimensional Lorentzian manifold (a topological space locally modelled on R4\mathbb{R}^4); global topology determines possible causal structures and singularities.

2.9 Worked Example: Comparing Topologies on a Finite Set

Section titled “2.9 Worked Example: Comparing Topologies on a Finite Set”

Problem. Let X={1,2,3}X = \{1,2,3\}. List all possible topologies on XX that are strictly finer than τ1={∅,X}\tau_1 = \{\emptyset, X\} and strictly coarser than τ2=P(X)\tau_2 = \mathcal{P}(X). How many are there?

Solution. τ1\tau_1 is the indiscrete topology (2 open sets). τ2\tau_2 is the discrete topology (8 open sets). Any topology strictly between them must have at least 3 and at most 7 open sets.

We need τ\tau such that τ1⊊τ⊊τ2\tau_1 \subsetneq \tau \subsetneq \tau_2. By checking all collections that satisfy the three axioms, we find three such topologies:

  • τa={∅,{1},X}\tau_a = \{\emptyset, \{1\}, X\} (coarsest refinement)
  • τb={∅,{1,2},X}\tau_b = \{\emptyset, \{1,2\}, X\}
  • τc={∅,{1},{2},{1,2},X}\tau_c = \{\emptyset, \{1\}, \{2\}, \{1,2\}, X\} (contains two singletons)

Each is strictly finer than the indiscrete topology (adds at least one non-trivial open set) and strictly coarser than the discrete topology (omits at least one singleton). There are three distinct intermediate topologies up to relabelling of points.

■\blacksquare

AxiomRequirementWhy finite matters
∅,X∈τ\emptyset, X \in \tauThe empty set and whole space are openProvides base and top elements
Arbitrary unionsAny union of open sets is openEnsures topology is closed under “or”
Finite intersectionsFinite intersections of open sets are openPrevents pathological singleton limits

A topological space is what you get when you strip away all the structure you’re used to, distances, angles, coordinates, and keep only the idea of “closeness.” The only thing you’re allowed to know is which points are near which other points, encoded by the collection of open sets. Think of it like a city where you can’t measure distances but you can ask “is this neighbourhood near that neighbourhood?” The three axioms (empty set and whole space are open, arbitrary unions are open, finite intersections are open) are the minimum rules that make the concept of “nearness” behave consistently. Without them, you can’t even define what it means for a function to be continuous.

The beauty of topology is that it captures the properties of space that survive continuous deformation, stretching, bending, twisting, but not tearing or gluing. A coffee mug and a donut are “the same” topologically because you can smoothly deform one into the other; both have one hole. The discrete topology (every subset is open) is the finest possible, it distinguishes every point from every other point. The indiscrete topology (only the whole space and empty set are open) is the coarsest, it can’t distinguish any points at all. Most interesting topologies live somewhere between these extremes, and the standard topology on the real line is what makes calculus work: a function is continuous exactly when it preserves the open-set structure.

The real power of topological spaces is that they let you define continuity without mentioning numbers or distances. A function is continuous if the preimage of every open set is open, that’s it. This simple definition works in settings far beyond Euclidean space: function spaces, quantum state spaces, the space of shapes in computer vision, the space of probability distributions in machine learning. Whenever you need to talk about convergence, continuity, or “sameness” in an abstract setting, topology provides the language. It’s the most general framework for understanding the structure of mathematical spaces.