Topology Space
BasisPrerequisites
Every notion of “closeness” you have met so far — convergence, limits, continuity — was defined in terms of a distance function. That works beautifully in , but many spaces that arise naturally in mathematics and computer science have no sensible notion of distance at all. Topological spaces let you keep all of that theory while throwing out the distance function entirely.
The key insight from metric spaces
In a metric space , a set is called open when every point in has an open ball around it that fits entirely inside :
Once you have this collection of open sets, you can re-express every major concept — convergence, continuity, connectedness — using only membership in open sets. The metric itself disappears from the statements.
This is the insight: the open sets are doing all the work. The distance function is just one way to generate them.
The axioms of a topology
Pause and ask: what properties does the collection of open sets in a metric space actually have? You can verify three facts for any metric space:
- The empty set and the whole space are both open.
- Any union of open sets (even an infinite one) is open.
- Any finite intersection of open sets is open.
Note that infinite intersections are not required to be open: in , the intersection is a single point, which is closed, not open.
These three facts are now taken as axioms. A topology throws away everything except what these three properties need.
Definition. A topology on a set is a collection of subsets of satisfying:
The pair is called a topological space. The elements of are called the open sets of the topology.
Every metric space is automatically a topological space: take to be the collection of all sets that are open in the metric sense — the three axioms hold, as you verified above.
Three fundamental examples
The discrete topology
Let be any set, and let — every subset of is declared open. This is the discrete topology. You can check T1–T3 immediately: unions and finite intersections of subsets are subsets.
The discrete topology is the “finest” possible topology on : it has the most open sets. It corresponds to the discrete metric ( for ), where every singleton is an open ball.
The indiscrete topology
At the other extreme, let — only the empty set and the whole space are open. This is the indiscrete topology (also called the trivial topology). T1 is satisfied by definition; T2 and T3 reduce to easy cases with only two sets.
The indiscrete topology is the “coarsest” possible topology: it has the fewest open sets. It is not generated by any metric on more than one point.
The metric topology
Given a metric space , the collection
is a topology on , called the metric topology induced by . This is the bridge between metric spaces and topology spaces: every metric space “is” a topological space via this construction, but not every topological space comes from a metric.
Open and closed sets
A subset is closed if its complement is open.
Note carefully: “closed” is not the opposite of “open” in common parlance. Sets can be:
- Open but not closed: in with the standard metric topology.
- Closed but not open: in the same topology.
- Both open and closed (clopen): and are always clopen. In a disconnected space, other clopen sets exist too.
- Neither open nor closed: in .
The axioms T1–T3, translated to closed sets via De Morgan’s laws, say:
- and are closed.
- Any finite union of closed sets is closed.
- Any intersection of closed sets (even infinite) is closed.
This is a useful dual picture that you will see repeatedly.
Comparing topologies on the same set
Two different topologies can live on the same set . If — every open set of is also open in — then is said to be finer than (and is coarser than ). Finer means more open sets; more open sets means a more refined notion of “closeness.”
The discrete topology is finer than every other topology on . The indiscrete topology is coarser than every other topology on .
In general, two topologies on the same set need not be comparable: neither may be a subset of the other.
Why abandon the metric?
The payoff is generality. Here are two spaces that have natural topologies but no obvious metric:
- The Zariski topology on an algebraic variety, where open sets are complements of the zero-sets of polynomials. This is central to algebraic geometry and, via algebraic -theory, eventually touches type systems and programming language semantics.
- The Scott topology on a partially ordered set, where open sets capture “upward-closed sets closed under directed joins.” This topology is the mathematical foundation for denotational semantics — the very framework used to give a precise meaning to recursive programs.
By working in the generality of topological spaces you can talk about continuity, convergence, and compactness in all of these settings with a single set of definitions.
Summary
- A topological space is a set together with a collection of open sets satisfying three axioms: and are open (T1); arbitrary unions of open sets are open (T2); finite intersections of open sets are open (T3).
- Every metric space gives rise to a topological space by taking all metrically-open sets as .
- The discrete topology () is the finest; the indiscrete topology () is the coarsest.
- A set is closed when its complement is open; sets can be open, closed, both (clopen), or neither.
- One topology is finer than another when it contains more open sets.
- The abstraction strips distance away, leaving only the open-set structure — which is enough to define continuity, convergence, and connectedness in far more general settings.