Topological Spaces
The foundational structure of analysis: open sets, closed sets, and the topology axioms. Includes the discrete, trivial, and Euclidean topologies.
Real analysis, at its core, is the study of "closeness" — what it means for points to be near each other, for sequences to converge, and for functions to be continuous. In a first calculus course, closeness is measured by the absolute value on ; in , by the Euclidean norm . But these notions of distance are, in a sense, extra structure. The deeper structure underneath convergence and continuity is simply a choice of which subsets of the space count as "open."
That choice is called a topology. A topological space is the most general setting in which limits, continuity, and neighbourhood make sense. Before diving into metric spaces (where a distance function generates a topology automatically), we take the abstract viewpoint so that we understand which results require distance and which are purely topological.
Preliminaries: Power Sets and Set Notation
Let be a set. The power set of , denoted (or sometimes ), is the set of all subsets of :
Intuition: If has elements then has elements — one for each binary choice of "in/out" for each element of . This is why the notation is standard. For an infinite set , is strictly "larger" than (Cantor's theorem), which foreshadows the distinction between countable and uncountable sets.
Throughout this chapter we use and interchangeably to mean "is a subset of" (allowing equality). For a subset , the complement of in is
Two identities we use constantly are de Morgan's laws: for any family of subsets of ,
Aside on sigma-algebras. A related but different structure on a set is a -algebra: a collection closed under complements, countable unions, and containing and . Sigma-algebras are the foundation for measure theory. Topologies and -algebras share some flavour (closure under certain set operations) but differ in crucial ways: topologies allow arbitrary unions but only finite intersections; -algebras allow countable unions and countable intersections and require closure under complements. Do not conflate them.
Definition of a Topology
Let be a nonempty set. A collection is called a topology on if and only if:
- and .
- For every , we have (closure under finite intersections).
- For every family with for all , we have (closure under arbitrary unions).
The pair is called a topological space. Elements of are called open sets. A subset is called a closed set if and only if .
Intuition: A topology is a choice of which subsets we declare to be "open." The three axioms encode what we expect open sets to do: both the ambient space and nothing at all are open; intersecting two open sets leaves an open set; taking the union of any (even uncountably many) open sets keeps us open. Note the asymmetry — intersections are only guaranteed to stay open when finitely many sets are involved. We will see examples where an infinite intersection of open sets fails to be open.
Why these axioms? The axioms are the minimal conditions needed so that the following familiar notions — limit of a sequence, continuity of a function, closure of a set — can be defined without any reference to distance. Everything in the first third of this course flows from these three bullet points.
Closed Sets from the Topology
Closed sets are not a separate structure; they are entirely determined by the topology. The behavior of closed sets is dual to that of open sets, as the next proposition shows.
Let be a topological space and let be the family of all closed sets. Then:
- and .
- For every , we have .
- For every family with for all , we have .
Intuition: The closed-set axioms mirror the open-set axioms with roles of union/intersection swapped. In particular, arbitrary intersections of closed sets are closed, but only finite unions of closed sets are guaranteed to be closed.
Clopen Sets
In every topological space , the sets and are both open (by axiom 1) and closed (by the proposition above). Sets that are simultaneously open and closed are called clopen. Depending on the topology, there can be many clopen sets or only the trivial ones and .
Examples of Topologies
The following four examples are the central ones to have in mind.
For any nonempty set , the collection is a topology on . All three axioms are trivially satisfied. This is the trivial (or indiscrete) topology — the fewest possible open sets.
In this topology, the only open sets are and , and the only closed sets are likewise and . Every pair of points is "topologically indistinguishable" in a sense we will make precise shortly (they cannot be separated by open sets).
For any nonempty set , the collection of all subsets of is a topology on . The three axioms hold because every subset is declared open. This is the discrete topology — the most possible open sets.
In the discrete topology, every subset is both open and closed (every subset is clopen). In particular, every singleton is open.
Let denote the set of -tuples of real numbers, equipped with the Euclidean norm For and , define the open ball of radius centered at : Then define The collection is the Euclidean topology on . This is exactly the usual definition of "open" from calculus: is open if around every point in there is some open ball entirely inside . When , we have and .
The collection defined above is a topology on .
Intuition: The Euclidean topology is what you were implicitly using in first-year calculus whenever you said "open interval" or "continuous function." The topological axioms above are the abstract distillation of exactly what makes proofs in calculus work.
Consider with the Euclidean topology .
- For , the interval is open. Given , set . Then .
- For every , the rays and are open (similar argument).
- For , the interval is closed. Its complement is a union of two open sets, hence open.
- The rays and are closed (by similar complement arguments).
- The half-open interval with is neither open nor closed. It is not open because and for every , . It is not closed because its complement is not open: but for any .
Let be any nonempty set. Define One can verify that this is a topology: the empty set is in by definition; is finite so is in; if have finite complements, then is a union of two finite sets, hence finite; and an arbitrary union of sets with finite complements has a complement equal to the intersection of finite sets, which is finite. In the cofinite topology, the closed sets are exactly and the finite subsets of .
On , define This is a topology (the subscript "lsc" hints at its connection to lower-semicontinuous functions):
- by definition.
- Intersections: , and intersections involving or remain in the family.
- Unions: a union of sets of the form is either , , or another ray where .
This topology has far fewer open sets than the Euclidean topology. We will see that it is not Hausdorff — distinct points cannot be separated by disjoint open sets.
Closure Under Intersections: Finite vs. Arbitrary
The axioms of a topology allow finite intersections of open sets, but an infinite intersection of open sets may fail to be open. The following example in illustrates this.
For each , the set is open in . Their intersection is which is a single point. In , the singleton is not open — there is no with . So the intersection of infinitely many open sets need not be open.
Similarly, an infinite union of closed sets need not be closed. Each closed ball is closed, but which is the open ball of radius 1 — not closed.
Neighbourhoods
Let be a topological space and let . A subset is called a neighbourhood of (in the topology ) if and only if there exists such that Given , we denote by the family of all neighbourhoods of in the topology .
Intuition: A neighbourhood of is any set "fat enough around " to contain an open set through . Neighbourhoods need not themselves be open — for instance, in , the closed interval is a neighbourhood of 0 because it contains the open interval .
The family has four basic properties:
- .
- If and , then .
- .
- For every , there exists such that for every .
Properties (1)–(3) are immediate from the definition. Property (4) says: every neighbourhood of is a neighbourhood of all points in some smaller neighbourhood. To see this, let ; by definition there exists with . Then , and for every , is an open set containing with , so .
Let be a topological space and let . Then In words: a set is open if and only if it is a neighbourhood of each of its points.
Hausdorff's viewpoint. Specifying, for each , a family of subsets satisfying properties (1)–(4), determines a unique topology on such that is the system of neighbourhoods of in the topology . This was the approach Felix Hausdorff (1868–1942) took to define topological spaces in 1914. Modern treatments favour the open-set axioms, but the two approaches are equivalent.
Hausdorff Spaces
A topological space is called a Hausdorff space (or -space) if and only if for every with , there exist and such that .
Intuition: In a Hausdorff space, distinct points can be "separated" by disjoint neighbourhoods. This is the minimum amount of separation we generally want to do analysis: without it, limits of sequences might fail to be unique, and points might be topologically indistinguishable. Almost every space arising in practice (every metric space, in particular) is Hausdorff.
Consider from earlier. This is not Hausdorff: let with . Every nonempty proper open set in is of the form . Every neighbourhood of must contain some with , and therefore contains all of , which in turn contains . So every neighbourhood of and every neighbourhood of both contain the interval and cannot be disjoint.
The key intuition behind the failure: the topology has many fewer open sets than the Euclidean topology. This implies fewer neighbourhoods at our disposal when attempting to separate points; the separation attempt fails.
Similarly, if has at least two elements, the trivial topology is not Hausdorff, since the only neighbourhood of any point is itself — so two distinct points can never be placed in disjoint neighbourhoods.
Accumulation Points (Cluster Points) and the Derived Set
Before turning to limits and continuity, we introduce a key notion — points that are "approached" by a set, which formalizes the idea of a set piling up near a point.
Let be a topological space, let , and let . We say is an accumulation point (or cluster point, or limit point) of if and only if The set of all accumulation points of is called the derived set of and is denoted .
This notion is due to Georg Cantor (1872).
Intuition: is an accumulation point of if every neighbourhood of meets in some point other than itself. So "piles up" near . Note carefully: this differs from saying "every neighbourhood meets ." We forbid the meeting from being only at — there must be another point of nearby.
In a metric space , equipped with the metric topology, the definition can be rewritten in terms of open balls:
Alternative characterization in Hausdorff spaces. Another common definition of "accumulation point" (often seen first in ) is: This equivalence holds when is Hausdorff (and so, in particular, in every metric space). It need not hold in general non-Hausdorff spaces.
Limits of Functions Between Topological Spaces
With accumulation points in hand, we can state the topological definition of limit.
Let and be topological spaces. Let and be a function. Let (an accumulation point of ) and . We say that is a limit of as tends to , and write , if and only if To stress the dependence on the topologies and , we may write as .
Intuition: The statement says: however tight a neighbourhood of we pick in the target, we can find a neighbourhood of in the source so small that maps every point of different from and inside into . Requiring ensures that such "points near but not equal to " actually exist in .
In a non-Hausdorff space, limits can fail to be unique. Consider and suppose in this topology. We claim that for every .
Indeed, let in . By definition there is with . Since , we have , so is also a neighbourhood of . Hence by convergence to there exists with for every . This is the condition for convergence to . So the same function simultaneously converges to and to every .
Let and be topological spaces with Hausdorff. Let , , and . If and , then .
Consequence for metric spaces. Since every metric space is Hausdorff, limits of functions taking values in a metric space (with the metric topology) are unique whenever they exist. In particular, limits of sequences in metric spaces are unique.
The Extended Real Line
The topological framework is broad enough to handle limits like , , and — all within the same neighbourhood-based definition of limit. To do this, we extend with two new points and define a topology that makes the familiar notion of "convergence at infinity" a special case of the topological definition.
Set . For , define These play the role of "balls centered at ." Then define where for the ball is the ordinary Euclidean open ball . The collection is a topology (exercise); the topological space is called the extended real line.
Intuition: A neighbourhood of is a set containing some tail ; smaller corresponds to larger , i.e., more restrictive tails. This is exactly the "arbitrarily large" condition we use when saying .
On the extended real line, is an accumulation point of a set if and only if ; similarly iff . For a function with and , treating domain and codomain as subsets of gives A special case with and recovers the familiar definition of the limit of a sequence. Similarly, and analogous statements for all other combinations of finite or infinite and .
Intuition: Adding as genuine points and choosing their neighbourhoods to be "tails" makes the ordinary topological definition of limit coincide with every flavour of limit seen in first-year calculus — limits at infinity, limits equal to infinity, and limits of sequences. Everything becomes the same definition.
Bases for a Topology
Sometimes it is inconvenient to describe a topology by listing every open set; instead, we describe a smaller collection from which all open sets can be built by unions.
Let be a nonempty set. A collection is a basis for a topology on if:
- For every , there exists with (the basis covers ).
- For every and every , there exists with .
The topology generated by is Equivalently, if and only if is a union of elements of .
Intuition: A basis is a "generating set" for a topology. The Euclidean topology on is generated by the collection of all open balls — every open set is a union of open balls, and this is often an easier way to describe the topology than specifying every open set directly. The axioms on guarantee that the generated is genuinely a topology.
The collection is a basis, and the topology it generates is the Euclidean topology .
The Subspace (Relative) Topology
Given a topological space, any subset inherits a natural topology.
Let be a topological space and let . The subspace topology (or relative topology, or induced topology) on is Sets in are called open relative to (or open in ).
is a topology on .
Intuition: The subspace topology is exactly the "restriction" of the topology on to : a set is open in iff it is the intersection of with an open set from . Concretely, is open in the subspace of (it's the intersection of with the open set ), even though it's not open in . The closed sets in are exactly the sets of the form where is closed in .
Continuity Between Topological Spaces
We close the chapter with one of the central definitions of topology — continuity — formulated purely in terms of open sets.
Let and be topological spaces, let , let , and let be a function. We say is continuous at if and only if We say is continuous if it is continuous at every .
Intuition: The definition says: given any target neighbourhood of the value , we can find a source neighbourhood of so small that maps entirely inside . This is the topological rendering of the - definition — the -ball around becomes "any neighbourhood " and the -ball around becomes "some neighbourhood ."
Isolated points. If is isolated (i.e., is open in the subspace topology ), then is automatically continuous at : take to be the open set witnessing that is open in ; then , so for every . So every function is continuous at every isolated point of its domain.
Let and be topological spaces, let , and let . Then is continuous if and only if for every there exists such that In words: is continuous if and only if the preimage of every open set in is relatively open in .
Intuition: The preimage characterization is usually the most convenient definition to work with. Observe that the condition is " is relatively open in ," not " is open in " — this is because the domain of is , not all of . When , the condition simplifies to " for every ."
Let , , be topological spaces and let and be continuous. Then is continuous.
Looking Ahead
We have developed the abstract framework of topology. The next step is to specialize: most topological spaces encountered in analysis come equipped with a distance function (a metric), which automatically generates a topology through open balls. Metric spaces are the subject of the next chapter, and they form the arena for most of the rest of real analysis — sequences, completeness, compactness, and the basic theorems of calculus all live most naturally there.