Topological Spaces
What You’ll Learn
Section titled “What You’ll Learn”In this lesson you’ll meet the definition of a topological space, learn why unions are unrestricted while intersections are only finite, work through the standard topologies, and see how they compare in fineness.
The Concept
Section titled “The Concept”The definition
Section titled “The definition”A topology on a set is a collection of subsets of such that
- and
- is closed under arbitrary unions
- is closed under finite intersections
The pair is a topological space, and the members of are the open sets.
That is the whole definition. No distance, no coordinates, no algebra. You simply declare which subsets are open, and the three rules are the only constraints on that declaration.
The figure tests three candidate families on a three-element set by brute force over all unions and intersections. Two pass. The third contains and but not their union , so it fails axiom 2 - and the figure names the offending union rather than just reporting failure.
Why the asymmetry
Section titled “Why the asymmetry”The most-asked question about the definition: why arbitrary unions but only finite intersections?
Because with metric spaces as the model, that is exactly what is true. In consider
Every set in the intersection is open, and the result is a single point, which is not open. So requiring arbitrary intersections would exclude itself from being a topological space.
Arbitrary unions cause no such trouble: a union of open balls always has a ball around each of its points, since each point came from one of the balls.
The asymmetry is not a stylistic choice; it is forced by the intended examples.
Closed sets
Section titled “Closed sets”A set is closed if its complement is open.
By De Morgan, the axioms dualize: closed sets are closed under arbitrary intersections and finite unions. Note the reversal.
Three warnings that cause most early confusion:
- Open and closed are not opposites. A set can be both, neither, or one.
- and are always both open and closed.
- “Not open” does not mean closed. In , the interval is neither.
A set that is both open and closed is called clopen, and how many clopen sets a space has turns out to measure its connectedness - that is lesson 8.
The standard topologies
Section titled “The standard topologies”Worth knowing cold, because they are the test cases for everything.
The discrete topology. all subsets. Every set is open, and also closed. It comes from the discrete metric. This is the finest possible topology.
The trivial (indiscrete) topology. and nothing else. The coarsest possible topology.
The standard topology on . Open sets are the unions of open intervals. This is the one implied whenever no topology is named.
The cofinite topology. Open sets are together with every set whose complement is finite. It is a topology on any set, and on an infinite set it is genuinely strange: any two nonempty open sets intersect, so no two points can be separated.
The Zariski topology. In algebraic geometry, closed sets are the zero sets of polynomials. On a line over a field this is essentially the cofinite topology, and it is central to the subject even though it is far from being metric.
The lower limit topology on . Generated by half-open intervals . Strictly finer than the standard topology, and a reliable source of counterexamples.
Any metric space. As in the previous lesson, open sets are those containing a ball around each of their points. A topology arising this way is called metrizable, and not all topologies are.
Comparing topologies
Section titled “Comparing topologies”If on the same set, then is finer and is coarser.
Finer means more open sets, which means more distinctions between points, which means it is easier for a set to be open and harder for a function into the space to be continuous.
Every topology on sits between the trivial and the discrete:
Not all pairs are comparable, though. Two topologies can each contain sets the other lacks.
The number of distinct topologies grows explosively: 1 on a one-point set, 4 on a two-point set, 29 on a three-point set, 355 on four points, 6942 on five. There is no known formula.
Neighbourhoods
Section titled “Neighbourhoods”A neighbourhood of is any set containing an open set that contains .
Some books insist a neighbourhood be open itself; the difference rarely matters. The useful reformulation:
is open if and only if is a neighbourhood of each of its points.
That is the statement that most closely echoes the metric definition, and it is how the two pictures line up.
Worked Examples
Section titled “Worked Examples”Example 1: Is a topology on ?
Solution. Check the axioms.
Axiom 1: contains and ✓
Axiom 3, intersections: ✓, and all others are fine ✓
Axiom 2, unions: , which is not in the collection ✗
Answer: not a topology. ∎
Example 2: Is a topology?
Solution. This family is a chain, each set contained in the next. Any union of members is the largest of them, and any intersection is the smallest, so both are in the family.
Answer: a topology. ∎
Nested chains are automatically topologies, which is a handy shortcut when checking examples.
Example 3: Verify the cofinite topology on is a topology.
Solution. is open by decree and is open since its complement is empty, hence finite ✓
Unions: a union of cofinite sets has complement equal to the intersection of finite sets, which is finite ✓
Intersections: a finite intersection of cofinite sets has complement the union of finitely many finite sets, again finite ✓
Note the finiteness in axiom 3 is genuinely needed: an infinite intersection of cofinite sets, such as all sets missing one particular integer, can have infinite complement. ∎
Example 4: Show is not open in despite being an intersection of open sets.
Solution. We have , since any nonzero is excluded once .
Every set in the intersection is open, but contains no interval, so it is not open.
This is precisely why axiom 3 says finite. ∎
Example 5: In the cofinite topology on an infinite set, can two nonempty open sets be disjoint?
Solution. No. If and are nonempty and open, their complements are finite, so
is finite. Since is infinite, must be nonempty.
Every two nonempty open sets meet. ∎
This is the failure of the Hausdorff condition, and it is why the cofinite topology on an infinite set is not metrizable - a fact we prove in lesson 13.
Example 6: Which sets are clopen in with the standard topology?
Solution. Only and .
Suppose is nonempty, clopen, and not all of . Then and its complement are both open, nonempty, and partition - which contradicts connectedness of , proved in lesson 8.
∎
Contrast the discrete topology, where every set is clopen. The count of clopen sets is a direct measure of how disconnected a space is.
Example 7: Compare the standard and lower limit topologies on .
Solution. Every open interval is a union of half-open intervals:
so every standard-open set is lower-limit-open, giving .
The containment is strict, because is lower-limit-open and not standard-open.
∎
Real-World Applications
Section titled “Real-World Applications”Type systems and program semantics. Domain theory, used to give meaning to recursive programs, is built on the Scott topology, where open sets encode “observable in finite time.” Non-Hausdorff topologies are the norm there and the metric picture is useless.
Databases and logic. The Stone topology on the set of models of a theory turns logical compactness into topological compactness, which is where the name came from.
Algebraic geometry. The Zariski topology is the working topology of the field, and it is far from metric: it is not Hausdorff, and its open sets are enormous.
Digital images. Digital topology treats a pixel grid as a topological space in order to define connectedness of regions consistently, which matters for segmentation and boundary tracing.
Concurrency. Directed topological spaces model the possible execution paths of concurrent programs, and deadlock detection becomes a question about holes.
Sensor networks. Coverage without coordinates is a topological question, answered from connectivity data alone, which is exactly the setting where distance is unavailable.
Retrying will remove your ✅ checkmark until you pass again.