© 2026 NeckPinch · www.neckpinch.com · All rights reserved.
Course 7Book 7A: Topology and the Fundamental GroupChapter 6
CW Complexes and Cellular Approximation
Building spaces from cells, the homotopy extension property, cellular approximation, π₁ from the 2-skeleton, every finitely presented group as π₁ of a 4-manifold, and why dimension three is special.
Read with Hatcher, Algebraic Topology, chapter 0 (cell complexes, operations on spaces, the homotopy extension property), §1.2 (applications to cell complexes, the fundamental group of a CW complex) and §4.1 (cellular approximation and Whitehead's theorem, statements and the main examples), or Lee, Introduction to Topological Manifolds, chapter 5 (cell complexes) and the parts of chapter 10 on CW complexes.
In this chapter · 9 sections
7A.5 Computing π₁ computed fundamental groups by gluing: attaching a 2-dimensional disc along a loop kills that loop, and attaching higher-dimensional discs changes nothing. Spaces built entirely by attaching discs, dimension by dimension, are CW complexes. They are the natural home of algebraic topology: every smooth manifold has a CW structure (by Morse theory, 7A.13 Morse Theory), every simplicial complex is one, and almost every space in this guide is one up to homotopy. This chapter develops them and proves three facts that the rest of the book uses repeatedly.
- The fundamental group is read off from cells: generators from the 1-cells, relations from the attaching maps of the 2-cells. Higher cells do not matter.
- Cellular approximation: every map between CW complexes is homotopic to one that sends the -skeleton into the -skeleton. As a consequence, a sphere cannot be mapped essentially into a sphere of higher dimension: for .
- Every finitely presented group is the fundamental group of a closed 4-manifold. So in dimension four, and above, the fundamental group can be anything a computer can write down, including groups whose triviality no algorithm can decide. Dimension three is different, and that difference is part of why the Poincaré conjecture is a statement about dimension three.
By the end of this chapter you will be able to:
- build CW complexes by attaching cells, and give CW structures for spheres, projective spaces, surfaces and lens spaces;
- prove the homotopy extension property for CW pairs, and use it to collapse contractible subcomplexes, in particular maximal trees in graphs;
- compute of a CW complex from its 2-skeleton, and build a 2-complex with any prescribed fundamental group;
- state and prove cellular approximation (using Sard's theorem), and deduce for and that ;
- construct a closed 4-manifold with any finitely presented fundamental group, and explain why recognising the 3-sphere is algorithmically possible while recognising simply connected 4-manifolds is not;
- state Whitehead's theorem and use it to see what the Poincaré conjecture asks of homotopy theory.
Recognising a sphere
A triangulated 3-manifold can be stored in a computer as a list of tetrahedra with their face gluings. Is it the 3-sphere? Hyam Rubinstein found an algorithm in 1992, and Abigail Thompson gave a simplified proof in 1994, using normal surface theory to search for the spheres that must exist in a 3-sphere. Saul Schleimer later showed that the problem lies in the complexity class NP, and Benjamin Burton's software Regina recognises 3-spheres with tens of thousands of tetrahedra in practice. In higher dimensions the problem is provably impossible: by a theorem of Sergei Novikov, there is no algorithm that recognises the -sphere among triangulated manifolds for any , and by Andrei Markov's 1958 theorem there is no algorithm deciding whether two triangulated 4-manifolds are homeomorphic. The root of both impossibility theorems is group theory: no algorithm decides whether a finitely presented group is trivial, and, as this chapter proves, every finitely presented group is the fundamental group of a closed 4-manifold.
These are statements about algorithms in principle. The 3-sphere recognition algorithm is exponential in the worst case, and Regina's success rests on heuristics that work on the examples people meet, not on a polynomial-time guarantee. Conversely, undecidability in high dimensions does not prevent recognising particular manifolds in practice; it says that no single procedure works for all inputs.
CW complexes
Write for the closed unit ball in , , and for the open ball, an open -cell. Attaching an -cell to a space along a map means forming the quotient (7A.1 Topological Spaces and Quotients).
A CW complex is a space with a filtration , , such that is a discrete set of points, is obtained from by attaching a collection of -cells along maps , and has the weak topology: a set is closed iff its intersection with every is closed. is the -skeleton; the composite is the characteristic map of the cell. is finite if it has finitely many cells, and -dimensional if .
The letters stand for "closure-finite" (each closed cell meets finitely many cells) and "weak topology", the two conditions in J. H. C. Whitehead's original 1949 definition, which the inductive construction guarantees. For finite complexes, which are compact, the weak topology is automatic. A subset that is a union of closed cells and itself a CW complex is a subcomplex, and a CW pair.
- Spheres. , attaching the -cell by the constant map: the boundary of the disc collapsed to a point is a sphere (7A.2 Compactness and Compactification). Alternatively has two cells in each dimension , the upper and lower hemispheres of each ; this structure is invariant under the antipodal map.
- Real projective space. has one cell in each dimension : , attached by the double cover (the upper hemisphere of is a disc whose boundary is identified antipodally).
- Complex projective space. , attached by the Hopf-type quotient : cells only in even dimensions. For the attaching map is constant and .
- Surfaces. A closed surface given by a polygon with paired edges (7A.3 Manifolds and Surfaces) has one 0-cell (when all vertices are identified, as in the standard forms), one 1-cell for each pair of edges, and one 2-cell, the polygon, attached along the edge word. The torus is with the 2-cell attached along .
- Lens spaces. (7A.7 Covering Spaces) has a CW structure with one cell in each dimension : the 2-cell is attached to the circle by a map of degree , and the 3-cell along a map determined by (Exercise 6.13).
- Graphs are 1-dimensional CW complexes.
Two facts about the topology, which we state without proof: a compact subset of a CW complex meets only finitely many open cells; and CW complexes are Hausdorff, and locally contractible, so path-connected components and connected components agree and covering space theory (7A.7 Covering Spaces) applies.
The Euler characteristic of a finite CW complex is , with the number of -cells. For the sphere , for it is or , for the closed orientable surface of genus it is , matching 7A.3 Manifolds and Surfaces. That depends only on the space, not on the cell structure, is a theorem of homology (7A.10 Singular Homology and Mayer–Vietoris).
Homotopy extension and collapsing
Let be a CW pair. Given a map and a homotopy with , there is a homotopy with and .
Proof. The key is a retraction : project radially from the point (Exercise 6.12). Given on , extend over cell by cell: for an -cell not in with characteristic map , is already defined on (by induction) and on , so define it on by composing with . Continuity on follows from the weak topology, performing the extension over in turn if infinitely many dimensions are present.
If is a CW pair and is contractible, the quotient map is a homotopy equivalence.
Proof. Let be a contraction, and constant. By homotopy extension, extend to with and . Since is a point, factors through the quotient as for some . Then , and : since each maps into , there is a homotopy of with , and , .
Graphs. A connected graph contains a maximal tree , a contractible subgraph containing every vertex. Collapsing leaves one vertex with a loop for each edge not in : with . By 7A.5 Computing π₁, is free of rank . Combined with covering spaces (7A.7 Covering Spaces), this proves the Nielsen–Schreier theorem: every subgroup of a free group is free, because it is of a covering space of a graph, which is a graph; and a subgroup of index in a free group of rank has rank , since a -sheeted covering multiplies by (Exercise 6.14).
The fundamental group of a CW complex
Let be a connected CW complex with a maximal tree in its 1-skeleton. Then has a presentation with one generator for each 1-cell not in and one relation for each 2-cell, namely the word read off from its attaching map. In particular , and the inclusion induces a surjection on .
Proof. is free on the 1-cells not in . Each 2-cell's attaching map is a loop in , determined up to conjugacy by a word in the generators; attaching the 2-cell adds that word as a relation (7A.5 Computing π₁, Corollary on attaching cells), and attaching cells of dimension at least changes nothing. For infinitely many cells, a loop or a homotopy has compact image and so lies in a finite subcomplex, where the finite argument applies.
For any presentation of a group , the presentation complex, one 0-cell, a 1-cell for each generator and a 2-cell attached along each relator, is a 2-dimensional CW complex with fundamental group .
Examples: one 2-cell attached to a circle by a degree- map gives (for this is ); the torus is the presentation complex of . The dunce hat, a triangle with its three edges identified by the word , has , and it is in fact contractible, though it has no free face to start a simplicial collapse from: a standard example in combinatorial topology.
Cellular approximation
A map between CW complexes is cellular if it sends into for every .
Every map of CW complexes is homotopic to a cellular map. If is already cellular on a subcomplex , the homotopy can be taken stationary on .
The heart of the proof is a single step.
Let with , where is a space and an open -cell attached to it, and suppose . Then is homotopic, relative to , to a map into .
Proof. Identify with the open ball of radius in , and let , a compact subset of . On a neighbourhood of , is a continuous map into ; approximate it uniformly within by a smooth map (Weierstrass approximation, or mollification), and interpolate between and with a cut-off that is on and near , by straight-line homotopy inside . The new map is smooth on a neighbourhood of the preimage of , and since , by Sard's theorem (7A.8 Smooth Topology) the image of that smooth part has measure zero in ; so the new map misses some point with . Then radial projection from ( the point where the ray from through meets , followed by the attaching map) is a deformation retraction of onto , fixing ; composing with it pushes the map into . All homotopies are stationary near , whose image lies in , at positive distance from .
Proof of the theorem (outline). Induct on skeleta of . The 0-cells map into ; move each to a 0-cell along a path (each point of lies in a closed cell whose characteristic image is path-connected and meets ). Having made cellular on , consider a -cell of . Its image is compact, so meets finitely many cells of . Using the lemma, push it off each cell of dimension greater than that it meets, starting from the highest, keeping the boundary, which already lies in , fixed. Homotopy extension (Proposition 6.3) extends the homotopy from the -skeleton to all of . For infinite-dimensional , perform the -th stage during the time interval .
for : every map with is homotopic to a constant.
Proof. Give and their structures and . A cellular map sends into the -skeleton of , which is the point .
This generalises 7A.4 The Fundamental Group, where for was proved by a direct argument, and it is the input for the homotopy groups of 10A.4 Homotopy Groups, Degree and the Hurewicz Theorem. More generally, for any CW complex , the inclusion induces isomorphisms on for and a surjection for : a sphere in can be made cellular, landing in , and a homotopy can be made cellular, landing in (Exercise 6.15). The case , is Theorem 6.5 again.
Every finitely presented group in dimension four
For every finitely presented group there is a closed orientable smooth 4-manifold with .
Proof. Let . Start with , the connected sum of copies of . Since is simply connected, van Kampen gives and , free on (connected sum along 4-balls, whose boundary is simply connected, gives the free product; 7A.5 Computing π₁). For each relator choose a smooth embedded loop representing it; in dimension four, loops can be made embedded and disjoint by general position (two curves in a 4-manifold generically do not meet). A tubular neighbourhood of is (orientability). Surgery replaces it by , which has the same boundary . Removing does not change , because loops and homotopies can be pushed off a circle in a 4-manifold by general position (Exercise 6.16), and gluing in attaches a 2-disc along (killing ) and then cells of dimension (changing nothing). After all surgeries, .
Combined with a theorem of logic, this has striking consequences. Pyotr Novikov (1955) and William Boone (1958) proved that there are finitely presented groups with unsolvable word problem, and Sergei Adian and Michael Rabin (1955–58) deduced that no algorithm decides, given a finite presentation, whether the group it presents is trivial. Since the construction above is algorithmic, no algorithm decides whether a closed 4-manifold is simply connected, and Markov's theorem that homeomorphism of 4-manifolds is undecidable follows by refining the argument.
Dimension three is different. Fundamental groups of closed 3-manifolds are very special. Not every finitely presented group occurs: does not, for instance, and Peter Scott proved in 1973 that 3-manifold groups are coherent (finitely generated subgroups are finitely presented), a property that most finitely presented groups lack. After Perelman, geometrization implies that 3-manifold groups are residually finite and have solvable word problem. The Poincaré conjecture is the statement that the trivial group occurs in exactly one way: the only closed 3-manifold with trivial fundamental group is . In dimension four the analogous statement, whether smooth homotopy 4-spheres are standard, is open (7A.12 The Poincaré Conjecture, Precisely).
Whitehead's theorem and the shape of the conjecture
A map is a weak homotopy equivalence if it induces isomorphisms for all and all base points (10A.4 Homotopy Groups, Degree and the Hurewicz Theorem defines ).
A weak homotopy equivalence between connected CW complexes is a homotopy equivalence.
So for CW complexes, homotopy groups detect homotopy type. The proof uses cellular approximation and homotopy extension to build a homotopy inverse cell by cell (Hatcher, Theorem 4.5). It gives the homotopy-theoretic half of the Poincaré conjecture cheaply: a closed simply connected 3-manifold has homology by Poincaré duality (7A.11 Cohomology and Poincaré Duality), so by the Hurewicz theorem (10A.4 Homotopy Groups, Degree and the Hurewicz Theorem) and ; a map representing a generator induces isomorphisms on all homology, hence (by a homology version of Whitehead's theorem) is a homotopy equivalence. Every closed simply connected 3-manifold is a homotopy 3-sphere. The whole difficulty of the Poincaré conjecture is to upgrade "homotopy equivalent to " to "homeomorphic to ": a statement that no amount of homotopy theory can prove, since in other dimensions and categories it can fail (Milnor's exotic 7-spheres are homeomorphic but not diffeomorphic to , 7A.12 The Poincaré Conjecture, Precisely).
Covering spaces of CW complexes are CW complexes, with cells lifted (7A.7 Covering Spaces). Cellular homology computes homology from the numbers of cells and the degrees of the attaching maps (7A.10 Singular Homology and Mayer–Vietoris), which proves that the Euler characteristic is a topological invariant. Morse theory produces a CW structure on a manifold from a function, one cell for each critical point (7A.13 Morse Theory); for 3-manifolds, Heegaard splittings come from exactly that (10A.3 Building Three-Manifolds).
History
J. H. C. Whitehead introduced CW complexes in "Combinatorial homotopy I" (1949), together with his theorem on weak homotopy equivalences; cellular approximation is in the same work. Cell structures on projective spaces and lens spaces go back to the combinatorial topology of the 1920s and 1930s (Reidemeister, Seifert and Threlfall). The Nielsen–Schreier theorem dates from 1921–27. The unsolvability of the word problem is due to Novikov (1955) and Boone (1958), the triviality problem to Adian (1955) and Rabin (1958), and Markov's theorem on 4-manifolds to 1958. Scott's coherence theorem appeared in 1973, Rubinstein's 3-sphere recognition algorithm in 1992 and Thompson's proof in 1994.
A CW complex is built by attaching -cells along maps of into the -skeleton; spheres, projective spaces, surfaces, lens spaces and graphs have explicit small structures, and is the alternating count of cells. CW pairs have the homotopy extension property, so contractible subcomplexes can be collapsed: a connected graph is a wedge of circles, its is free, and subgroups of free groups are free. of a CW complex is presented by the 1-cells off a maximal tree and the attaching words of the 2-cells, so every group is the of a 2-complex. Cellular approximation (built from Sard's theorem and homotopy extension) makes every map cellular, so for and is an isomorphism on for . Every finitely presented group is of a closed 4-manifold (surgery on loops in ), so simple connectivity of 4-manifolds is undecidable; 3-manifold groups are special, and can be recognised by algorithm. Whitehead's theorem makes every closed simply connected 3-manifold a homotopy sphere; the conjecture asks for a homeomorphism.
Exercises
Show that radial projection from defines a retraction . Write a formula for in the case .
Solution
For in the cylinder, follow the ray from through until it first meets the bottom or the side . The ray is , . It meets the bottom at if , i.e. if ; otherwise it meets the side at . So if , and otherwise. The two formulas agree on , so is continuous, and it fixes the bottom and side. For , and .
Let with acting on by , . (a) Show that the circle is invariant and its quotient is a circle. (b) Using the -invariant decomposition of into "lens-shaped" 3-cells, explain why has one cell in each dimension and why the 2-cell is attached to the 1-skeleton by a map of degree . (c) Deduce from Theorem 6.5.
Solution
(a) : the circle , is invariant, and the action rotates it by , so the quotient is a circle (with one 0-cell and one 1-cell). (b) Hatcher's Example 2.43 gives a -invariant cell structure on with cells in each dimension , permuted freely by the action, so the quotient has one cell in each dimension. The circle is the union of the 0-cells and 1-cells, and each 2-cell is a disc whose boundary is that whole circle; in the quotient, the circle covers times, so the 2-cell is attached by a map of degree . (c) One generator (the 1-cell), one relation : .
(a) Show that if is a -sheeted covering of finite graphs then . (b) Deduce that an index- subgroup of the free group is free of rank . (c) Find the rank of the kernel of sending both generators to , and draw the covering graph.
Solution
(a) Each vertex and each edge has exactly preimages, so and multiply by . (b) of a wedge of circles, . The subgroup is of the -sheeted cover, a connected graph with , so its is free of rank . (c) , : rank . The cover has two vertices and four edges, each generator lifting to two edges going from one vertex to the other.
Using cellular approximation, show: (a) every map is homotopic to one into ; (b) if two maps with are homotopic in , they are homotopic in ; (c) is an isomorphism for . (d) Why is it only surjective for ? Give an example.
Solution
(a) Make the map cellular for the structure on . (b) The homotopy is cellular on the subcomplex ; make it cellular rel that subcomplex; has dimension , so the homotopy lands in . (c) Surjective by (a) (as ), injective by (b). (d) For the homotopy lands in , where new -cells can kill classes: but in the circle becomes trivial.
Let be a 4-manifold and an embedded loop with neighbourhood . (a) Explain why (general position: loops and homotopies, of dimension and , can be pushed off a circle in a 4-manifold, since and ). (b) The result of surgery is . Show .
Solution
(a) A generic map of a -dimensional complex into a 4-manifold misses a given 1-dimensional submanifold when , so for (loops) and (homotopies): is onto and injective. (b) Using the cell structures and , is obtained from its boundary by attaching the product cells , a 2-cell attached along (which is pushed to the boundary), and , a 4-cell. The 2-cell kills , the 4-cell changes nothing (7A.5 Computing π₁).
The dunce hat is a triangle with its edges identified according to the word (two edges oriented the same way, the third reversed). (a) Give it a CW structure with one 0-cell, one 1-cell and one 2-cell, and compute . (b) Compute . (c) Granting Whitehead's theorem and (the boundary of the 2-cell is , not ), explain why is contractible.
Solution
(a) All three vertices are identified (follow the edge identifications), so one 0-cell; all edges are the same 1-cell ; the triangle is the 2-cell, attached along . . (b) . (c) is simply connected with and no higher cells, so by Hurewicz all homotopy groups vanish, and the map to a point is a weak equivalence, hence a homotopy equivalence by Whitehead.
Free resources for this chapter
Chosen for what this chapter covers, and all free to read. Links checked Oct 16, 2026.
- Book Cell Complexes; the Homotopy Extension PropertyAllen Hatcher, Algebraic Topology (free from the author) · chapter 0CW complexes, attaching cells, homotopy extension and collapsing subcomplexes.
- Book Applications to Cell ComplexesAllen Hatcher, Algebraic Topology (free from the author) · §1.2π₁ of a CW complex from its 2-skeleton, and presentation complexes.
- Book Cellular Approximation and Whitehead's TheoremAllen Hatcher, Algebraic Topology (free from the author) · §4.1Cellular approximation, Whitehead's theorem and their consequences.
© 2026 NeckPinch (www.neckpinch.com). All content in the guidebook (text, mathematics, figures and exercises) is protected by copyright. All rights reserved. No part may be copied, republished or redistributed without written permission.