Cellular homology computes the singular homology of a CW-complex from its cells and their attaching maps. Write
for the n-skeleton
and
. For
, the cellular chain group
with integer coefficients is the relative
homology group
. It is a free
Abelian group with one generator for each
-cell, with sign fixed by a choice of
orientation.
For , the cellular boundary
operator
is the composition
where
is the boundary map for the pair
and
is induced by the inclusion
. Set
. For
, the middle two maps in
are consecutive in the long exact sequence
for
, so
. The homology
groups of this chain complex are naturally isomorphic to the singular
homology groups of
(Hatcher 2002, pp. 139-140).
The cellular boundary of an oriented 1-cell is its terminal 0-cell minus its initial 0-cell. For , the coefficient of an
-cell
in
is the degree
of the attaching map
followed by the quotient map that collapses the complement
of
to a point, leaving an (n-1)-sphere.
The degrees are taken using the chosen orientations (Hatcher 2002, pp. 140-141).
For example, the real projective plane has one cell in each of dimensions
0, 1, and 2. Its 2-cell is attached by the map that identifies antipodal
points on its boundary circle, so the attaching map
wraps twice around the 1-skeleton. With compatible
orientations,
is multiplication by 2 and
. Thus
,
, and
for
(Hatcher 2002, pp. 6 and 144).