Topology — The Mathematics of Continuity
Topology studies properties that remain unchanged under continuous deformations — stretching, bending, twisting, but not tearing or gluing. It asks what it means for two shapes to be "the same" without measuring distances. To a topologist, a coffee cup and a donut are the same shape (both have one hole). Topology provides the language for continuity across all of mathematics — from analysis to geometry to data science — and its deepest question, the Poincaré conjecture, was only solved in 2003.
🧭 Open Sets, Topologies, and the Shape of Space
Metric Spaces — The First Topology
The most intuitive way to get a topology is from a metric — a distance function d(x,y) satisfying positivity, symmetry, and the triangle inequality. The open balls B(x,r) = { y : d(x,y) < r } generate the metric topology. Euclidean space ℝⁿ with the usual distance is the canonical example, but metrics also appear on function spaces, graphs, and even the space of DNA sequences (edit distance). Every metric space is a topological space, but not every topological space comes from a metric — those that do are called metrizable.
Key observation: In this topology, (0,1) is open, but [0,1] is not (because the endpoints don't have any open ball fully inside the set). The set (0,1) ∪ (2,3) is open — it's a union of open intervals. The set (0,1] is neither open nor closed — it's a half-open interval.
A set can be open, closed, both (clopen), or neither. In the discrete topology, every set is clopen. In a connected space like ℝ, the only clopen sets are the empty set and the whole space.
Bases and Subbases
A basis for a topology is a collection of open sets such that every open set is a union of basis elements. The open intervals (a,b) form a basis for the standard topology on ℝ. The open balls form a basis for any metric topology. A subbasis is an even smaller generating set — finite intersections of subbasis elements give a basis. This machinery lets us define topologies efficiently without listing every open set.
🌉 Connectedness and Compactness — The Two Pillars
Connected vs Path-Connected
A space is connected if it's not the disjoint union of two nonempty open subsets. It's path-connected if any two points can be joined by a continuous path. Path-connected implies connected, but not vice versa (as the topologist's sine curve shows). Path components are equivalence classes under "there exists a path between them." For most nice spaces (manifolds, CW complexes), the two notions coincide.
Compactness — The Heine-Borel Theorem
In ℝⁿ, a set is compact iff it's closed and bounded. But in general topology, compactness is more subtle. The Heine-Borel theorem fails in infinite-dimensional spaces — the closed unit ball in an infinite-dimensional Hilbert space is not compact (it's not "finite enough"). A continuous function on a compact set achieves its maximum and minimum (extreme value theorem). The Bolzano-Weierstrass property (every sequence has a convergent subsequence) is equivalent to compactness in metric spaces, but not in general topological spaces, where sequential compactness and compactness diverge.
Example: The set { fₙ(x) = sin(nx) } on [0,2π] is uniformly bounded but not equicontinuous — the functions oscillate too rapidly. No subsequence converges uniformly. But { fₙ(x) = xⁿ } on [0,1] is also not equicontinuous at x=1, and indeed the limit function is discontinuous.
This theorem is the foundation of the existence of solutions to differential equations (Picard–Lindelöf) and the calculus of variations.
🔄 Continuous Functions and When Spaces Are "the Same"
Topological Invariants
A topological invariant is a property preserved under homeomorphisms. Connectedness, compactness, and the number of holes (genus) are invariants. The Euler characteristic V − E + F is an invariant for surfaces. If two spaces differ on an invariant, they cannot be homeomorphic. The search for invariants is the central activity of topology — from the fundamental group to homology to characteristic classes. The invariance of dimension theorem states that ℝᵐ and ℝⁿ are not homeomorphic for m ≠ n — a result that seems obvious but was notoriously difficult to prove.
Embeddings and Quotients
An embedding is a homeomorphism onto its image — it places one space inside another. The circle embeds in ℝ² (naturally) and in ℝ³ (as a knot, which is a whole subfield). The Möbius strip embeds in ℝ³ but not in ℝ². A quotient space identifies points of a space to create a new one — gluing the ends of [0,1] gives a circle; gluing the top and bottom edges of a square gives a cylinder; gluing both pairs of opposite edges gives a torus. Quotients are how we build all surfaces from simple pieces.
🌌 Deep Topology — Manifolds, the Poincaré Conjecture, and Beyond
Manifolds — Local Is Not Global
An n-dimensional manifold is a topological space that locally looks like ℝⁿ: every point has a neighborhood homeomorphic to an open ball in ℝⁿ. The surface of the Earth is a 2-manifold (it locally looks flat — that's why maps work). The universe may be a 3-manifold. The sphere Sⁿ is the set of points at distance 1 from the origin in ℝⁿ⁺¹. The torus Tⁿ is the product of n circles. Manifolds are the primary objects of study in geometry and topology, and they appear everywhere from general relativity (spacetime is a 4-manifold) to robotics (the configuration space of a robot arm is a manifold).
The Fundamental Group — Detecting Holes Algebraically
The fundamental group π₁(X) is a group whose elements are loops in X (starting and ending at a base point), considered up to continuous deformation (homotopy). The group operation is concatenation of loops. For the circle S¹, π₁(S¹) ≅ ℤ — each loop wraps around some integer number of times. For the sphere S², π₁(S²) = 0 (every loop shrinks to a point). For the torus, π₁(T²) ≅ ℤ×ℤ (loops can wind around either hole independently). The fundamental group is the first homotopy group, and it's one of the most powerful invariants. The Poincaré conjecture asks whether a simply connected (π₁ = 0) closed 3-manifold must be S³ — a question entirely about the fundamental group.
Example: A tree is contractible (π₁ = 0). A graph with one cycle (like a circle) has π₁ ≅ ℤ. The figure-8 graph (two cycles sharing a point) has π₁ ≅ F₂ — the free group on two generators. The generators are loops around each lobe, and words like ab⁻¹a²b represent paths that wind around both lobes in sequence.
Unlike the torus's ℤ×ℤ (which is abelian), free groups are non-abelian — winding around one lobe then the other is different from the reverse order. This non-commutativity captures the essential complexity of the space.
Homology and the Euler Characteristic
While homotopy groups capture the full structure of loops and higher-dimensional spheres, homology groups are easier to compute and give Abelian invariants. The nth homology group Hₙ(X) counts n-dimensional holes: H₀ counts connected components, H₁ counts 1-dimensional holes (loops), H₂ counts 2-dimensional holes (voids), and so on. The Euler characteristic χ(X) = Σ (−1)ⁿ rank(Hₙ) generalizes the formula V − E + F for polyhedra. For a surface of genus g, χ = 2 − 2g. This single number encodes the topology of the entire surface.
Applied Topology — TDA and Beyond
In the 21st century, topology has become a practical tool. Topological Data Analysis (TDA) uses persistent homology to study the shape of data — clustering, connectivity, and holes in point clouds at multiple scales. The mapper algorithm creates graph summaries of high-dimensional data. Topology also appears in robotics (configuration spaces), sensor networks (coverage holes), neuroscience (neural activity patterns), and materials science (the topology of atomic structures). The same invariants that classify surfaces now classify patterns in data.
🎯 Practice — Check Your Topology Intuition
These puzzles build topological intuition — no heavy math needed.