03.12.10 · modern-geometry / homotopy

CW complex

shipped3 tiersLean: none

Anchor (Master): Whitehead 1949 — *Combinatorial homotopy I* (originator paper, Bull. AMS 55); Hatcher §0 and §4.1; tom Dieck *Algebraic Topology* §8

Intuition [Beginner]

A CW complex is a space built up one dimension at a time by gluing solid balls onto what is already there. Start with a discrete set of points (the 0-cells). Glue line segments (1-cells) to those points by their endpoints. Glue solid disks (2-cells) onto the 1-skeleton along their boundary circles. Glue solid 3-balls along their boundary 2-spheres. Keep going. Whatever space the gluing produces is a CW complex.

The picture is exactly how children build models from dots, sticks, and patches: every interior of every cell is unconstrained, and all the topology lives in how the boundaries get attached. A circle is one point with one arc glued by both endpoints to that point. A sphere is one point with one disk glued by collapsing its whole boundary to that point. A torus is one point, two arcs, and one square whose boundary spells .

The reason this construction matters: nearly every space studied in algebraic topology can be given a CW structure, and many computations (homotopy groups, homology, cohomology) reduce to bookkeeping over the cells. The cells are the combinatorial data; the attaching maps are the geometry.

Visual [Beginner]

A schematic showing the inductive build-up: a row of dots (the 0-skeleton), arcs joining them (the 1-skeleton), disks pasted onto the resulting graph (the 2-skeleton), and an arrow indicating the process continues into higher dimensions.

A schematic placeholder diagram showing the cell-by-cell construction of a CW complex.

Every disk's boundary circle is mapped into the previous skeleton; the interior of the disk becomes a new open cell.

Worked example [Beginner]

Build the 2-sphere as a CW complex with two cells: one 0-cell and one 2-cell.

Step 1. The 0-skeleton is one point, call it . Step 2. There are no 1-cells, so the 1-skeleton is still . Step 3. Take a single 2-disk . Its boundary is the circle . Glue this boundary to the 0-skeleton via the only available map: send every point of the boundary circle to . Step 4. The result is a single point with a disk attached so that its whole boundary collapses to that point. That quotient is exactly — the disk's interior becomes the 2-sphere minus the north pole, and is the north pole.

What this tells us: is captured by the data "one 0-cell, one 2-cell, with the 2-cell's boundary collapsed to a point." Two cells, four lines of description, the entire sphere. Higher spheres have the same minimal CW structure: one 0-cell and one -cell.

Check your understanding [Beginner]

Formal definition [Intermediate+]

A CW complex is a topological space together with a filtration

by closed subspaces, called the skeleta, such that:

  1. The -skeleton is a discrete topological space.
  2. For each , is obtained from by attaching -cells. That is, there is an indexing set and a continuous attaching map such that the pushout in along .
  3. as a set.
  4. carries the weak topology: a subset is closed iff is closed in for every . Equivalently, in .

Each component of that comes from one disk is an open -cell . The composite is the characteristic map of the cell ; its restriction to the boundary is the attaching map .

The defining cellular pushout square for each is

The two letters in the name "CW" record the original axioms of Whitehead 1949: C for closure-finiteness (the closure of every cell meets only finitely many cells) and W for weak topology (the colimit topology on the skeleton filtration). For finite-dimensional CW complexes both conditions are automatic; for infinite-dimensional ones they are the definitions that make the inductive limit well-behaved.

A CW pair is a CW complex together with a subcomplex , meaning is closed in and is a union of cells of .

Counterexamples to common slips

  • The Hawaiian earring (the union in of circles of radius all tangent at the origin) is not a CW complex: any CW structure would force the wedge point to have a neighbourhood meeting only finitely many circles.
  • A subset that is closed and union-of-cells as a set still requires the CW structure on to restrict cleanly to (closure-finiteness for 's own cells, weak topology) — the term "subcomplex" packages all of these.
  • The weak topology on may differ from any metric topology even when each is metrisable; infinite CW complexes are not in general metrisable.

Key theorem with proof [Intermediate+]

Theorem (homotopy extension property for CW pairs). Let be a CW pair. Then the inclusion has the homotopy extension property: for every space , every continuous map , and every homotopy with , there is a homotopy extending both (at time ) and (on ).

Proof. Equivalently, we show that is a retract of ; once we have a retraction , the desired extension is .

Step 1 (one cell). For a single cell attachment, , the pair admits an explicit retraction of onto : project radially from the point above the disk's centre. The point is sent along the line through to its first intersection with the target subset. This retraction is continuous and fixes the target pointwise.

Step 2 (pass to the pushout). The retraction on each disk descends to the pushout because the radial-projection retraction restricted to is the identity, so it agrees with the identity on on the gluing locus. By the universal property of the pushout this defines a retraction .

Step 3 (pass to the union). Iterate. The retractions assemble into a retraction on the colimit because the weak topology guarantees that a function out of is continuous iff its restriction to each skeleton is.

Bridge. This builds toward the cellular approximation theorem and Whitehead's theorem stated in the next section: the HEP is the technical lemma that lets every homotopy of cellular maps be assembled cell by cell over the skeleton filtration, and the same skeleton-by-skeleton argument appears again in 03.12.05 (Eilenberg-MacLane spaces), where the inductive killing of higher homotopy is built one cell-attachment at a time. The foundational reason the whole CW machinery works is exactly this pushout-plus-colimit topology: a continuous map out of is exactly a coherent system of maps out of each cell, which generalises the analogous local-to-global passage of Seifert-van Kampen 03.12.09. Putting these together, the bridge is the recognition that a CW complex is defined as a colimit precisely so that homotopy-theoretic constructions extend across the colimit cell by cell.

Exercises [Intermediate+]

Lean formalization [Intermediate+]

Mathlib does not yet ship a dedicated CW-complex API. The closest existing structure is RelativeCWComplex in the homotopy-theory development and the abstract pushout / colimit infrastructure in Mathlib.CategoryTheory.Limits. The intended skeleton-and-attaching-map definition would read schematically:

[object Promise]

This statement compiles only as a sketch; making it a usable Mathlib citizen requires the coercions, the attaching-map / characteristic-map / cell-indexing API, and the cellular-pushout naturality lemmas. See lean_mathlib_gap in the frontmatter for the concrete formalisation roadmap.

Advanced results [Master]

Theorem (cellular approximation). Let be a continuous map of CW complexes. Then is homotopic, via a homotopy preserving any subcomplex on which is already cellular, to a cellular map — that is, a map sending into for every .

The proof proceeds by induction on the skeleta of , using the homotopy extension property to extend each successive deformation. The technical core is that any map whose image meets a cell of dimension can be deformed off that cell, because has dimension less than the cell. Iterating gives a homotopy of to a cellular map. A full account is its own future unit; the statement is recorded here because it underlies almost every cell-counting argument in algebraic topology.

Theorem (Whitehead 1949). Let be a continuous map of CW complexes inducing an isomorphism $f_: \pi_n(X, x_0) \to \pi_n(Y, f(x_0))n \geq 0f$ is a homotopy equivalence.*

The hypothesis "isomorphism on all " is called a weak homotopy equivalence. Whitehead's theorem says that for CW complexes the weak and the strong notion coincide. The proof builds the homotopy inverse cell by cell: an inductive construction of a map using the homotopy lifting along the skeleta of , with the obstruction to extending each step lying in , which by hypothesis is matched isomorphically with and so vanishes.

Theorem (HEP for CW pairs is a cofibration). The inclusion of any CW subcomplex is a Hurewicz cofibration. This is the Master-tier rephrasing of the HEP from the Intermediate-tier theorem: stating it in the language of model categories, every CW pair is a cofibrant pair, and the inclusion is what model-categorically witnesses the HEP. The Quillen model structure on takes weak equivalences = weak homotopy equivalences and cofibrations generated by the disk-sphere inclusions ; CW complexes are exactly the cell complexes of this model structure.

Examples and applications.

  • Spheres. has CW structure with one 0-cell and one -cell (); the attaching map is the constant map collapsing to the basepoint. Alternative structure: regard as the equator with two -cells attached (two hemispheres).
  • Real projective space. has one cell in each dimension , with attaching maps the antipodal quotient .
  • Complex projective space. has one cell in each even dimension , with attaching maps the Hopf-type quotient .
  • Lie groups. Every compact Lie group admits a CW structure (by Bott's analysis using Morse theory on the loop space, or directly via a cell decomposition adapted to a maximal torus and the Schubert decomposition of the flag variety ). The classifying space is most naturally constructed as a CW complex.
  • Classifying spaces. has a CW structure with one cell for each Schubert symbol; its cohomology ring is the polynomial ring in the universal Chern classes.

Synthesis. Cellular structures generalise the polyhedral / simplicial-complex picture from combinatorial topology while keeping the attaching-map flexibility needed to realise spaces that are not triangulable in any natural way. The central insight is that the cellular pushout is exactly what makes a CW complex a colimit-type object: a map out of is a coherent system of maps out of each disk, and a homotopy out of is a coherent system of homotopies. This is dual to the cellular cochain complex, where a cocycle is a coherent system of values on each cell. The foundational reason the cellular machinery — chain complex, approximation theorem, Whitehead's theorem — operates so cleanly is that the colimit structure of pushes through every homotopy-theoretic functor that respects pushouts. Putting these together, the bridge is the identification of the CW category with the cell-complex category of the Quillen model structure on : the CW complexes are cofibrant; weak equivalences between them are homotopy equivalences (Whitehead); every space is weakly equivalent to one (CW approximation). The same colimit-cell pattern appears again in simplicial sets, where the cells are non-degenerate simplices and the attaching maps are the face / degeneracy operators, and identifies the homotopy theory of CW complexes with that of Kan complexes — one of the structural facts organising modern algebraic topology.

Full proof set [Master]

Theorem (cellular approximation), proof sketch. Let be continuous between CW complexes. Inductively assume has been homotoped to land in . Each cell has characteristic map . The image is compact, hence by Exercise 7 meets only finitely many open cells of . If any of those cells has dimension , the standard transversality / piecewise-linear approximation theorem (or the explicit smooth-approximation argument when is smooth) deforms off the higher-dimensional cell by a homotopy supported on a small ball: a compact -dimensional image cannot fill a cell of dimension , so a generic position avoids the cell entirely. Iterate over the finitely many higher-dimensional cells. Use HEP to extend the resulting homotopy from the cell back to . Iterate over then over . The colimit structure of ensures the inductive homotopies assemble.

Theorem (Whitehead), proof sketch. Suppose is a weak equivalence of CW complexes. Construct a homotopy inverse skeleton by skeleton.

Step 0. Define on by sending each 0-cell to any point in the homotopy class corresponding to under , then choose a path in from to to record the homotopy from to on .

Step n, inductive step. Suppose is defined on together with a homotopy on . For each -cell of with attaching map , the composite represents an element of . Its image under is via , which extends over (the cell itself), so . Since is an isomorphism, in , which means extends to a map . This extension is the value of on the new -cell. Use HEP on to extend the homotopy across this cell.

Pass to the colimit. The result is with . By a symmetric argument is also a weak equivalence, and the same construction gives for some , whence is a homotopy equivalence.

Theorem (HEP for CW pairs), full proof. Done in the Intermediate-tier theorem above, using the radial-projection retraction of onto combined with the colimit topology.

Stated without proof — see Hatcher §4.1 [Hatcher §4.1] and tom Dieck §8 [tom Dieck §8]. The CW approximation theorem (every space is weakly equivalent to a CW complex), the simplicial approximation theorem in the special case of finite simplicial complexes, and the dual / cellular cochain identification of cellular cohomology with singular cohomology.

Connections [Master]

  • Eilenberg-MacLane spaces 03.12.05. The standard construction of proceeds by attaching cells dimension by dimension to kill all homotopy groups except . The construction is cellular by design and uses Whitehead's theorem to identify any two such spaces as homotopy equivalent.

  • Whitehead tower 03.12.07. The successive killing of low homotopy groups is performed by attaching cells to fix the homotopy type one degree at a time; the resulting tower is a tower of CW complexes connected by cellular fibrations.

  • Seifert-van Kampen theorem 03.12.09. Computing of a CW complex reduces to reading off the 2-skeleton: 1-cells give generators, 2-cells give relations via their attaching words. Higher cells (dimension ) leave unchanged because their attaching spheres are simply connected for .

  • Covering space 03.12.02. Every covering of a CW complex inherits a canonical CW structure with one cell of for each pair (cell of , sheet of the covering); cellular cohomology with local coefficients makes this lift functorial.

  • Cellular approximation theorem (planned future unit). The formal companion to the statement quoted in this unit: every continuous map between CW complexes is homotopic to a cellular one; this is the bridge between the topological category and the combinatorial cell-counting category.

  • Homotopy and homotopy group 03.12.01. Whitehead's theorem identifies weak homotopy equivalences with homotopy equivalences in the CW world, which is exactly what makes CW complexes the natural objects of study for .

Historical & philosophical context [Master]

J. H. C. Whitehead introduced CW complexes in his 1949 paper Combinatorial homotopy I (Bull. AMS 55, 213-245) [Whitehead 1949]. The construction was Whitehead's response to the rigidity of simplicial complexes: a sphere requires at least vertices to be triangulated as a simplicial complex, but only two cells (one 0-cell and one -cell) to be presented as a CW complex. The economy and the flexibility of attaching by arbitrary maps rather than by face / degeneracy operators made CW complexes the dominant model of "well-behaved space" in algebraic topology. Whitehead also proved the theorem now bearing his name in the same paper.

The companion paper Combinatorial homotopy II (1949) developed the algebraic apparatus (crossed complexes, the formalism that later flowered in Brown-Higgins) needed to track the homotopy type of CW complexes algebraically. Whitehead's larger programme was to make the homotopy category accessible to combinatorial methods; CW complexes were the carrier objects, weak equivalences the morphisms, and what is now called the Whitehead theorem the structural fact connecting the two.

The model-category-theoretic incarnation came with Quillen's Homotopical Algebra (Lecture Notes in Mathematics 43, 1967), where CW complexes are the cofibrant objects of the standard model structure on , weak homotopy equivalences are the weak equivalences, and Hurewicz fibrations are the fibrations. Quillen's framework retroactively justified Whitehead's choice: the cellular pushout is the small-object argument's basic input, and the inductive cell-attachment construction is exactly the transfinite composition of pushouts of generating cofibrations.

Bibliography [Master]

[object Promise]