01.06.01 · foundations / homological-algebra

Homological algebra — chain complexes, exact sequences, and derived functors

shipped3 tiersLean: none

Anchor (Master): Weibel Ch. 1–2, §10; Gelfand-Manin Methods of Homological Algebra Ch. III–IV; Cartan-Eilenberg Homological Algebra

Intuition Beginner

Imagine a shape built from points, line segments, and triangles glued along their edges. A boundary operator records, for each piece, the pieces on its rim: the boundary of a segment is its two endpoints, and the boundary of a triangle is its three edges. Going around a triangle and adding up its three edges, each inner edge cancels against a neighbour pointing the other way. So the boundary of a boundary is zero.

The reverse can fail. A closed loop of segments has no boundary — it returns to its start — yet no triangle may be present to fill it in. That gap, a closed loop with no filling, is a hole. Homology counts these holes. Exactness is the ideal situation where every closed loop does have a filling; homology measures exactly how far a chain falls short of being exact.

The same pattern — boundary of a boundary is zero, and we measure the leftover — reappears across all of higher algebra. In the algebraic setting it becomes the toolkit called homological algebra, and the holes become obstructions to solving equations that no amount of clever rearrangement can remove.

Visual Beginner

A chain complex is a row of modules connected by boundary operators, each one handing the next what it could not kill.

The shaded overlap — what the incoming operator reaches but the outgoing operator does not catch — is the homology. Vanishing homology means the row is exact; non-vanishing homology is the obstruction the algebra must remember.

Piece Boundary operator sends it to
triangle (face) its three edges, with orientation signs
segment (edge) the difference of its two endpoints
point (vertex) zero

Worked example Beginner

Take a triangle with vertices , edges , and a single face . The boundary operator sends the face to its three oriented edges, and each edge to the difference of its endpoints.

Step 1. The boundary of the face is .

Step 2. Apply the boundary operator again, to each edge. Edge becomes , edge becomes , and edge becomes .

Step 3. Add these: . The terms cancel, the terms cancel, and the terms cancel. The total is .

Boundary of a boundary is zero. Now delete the face but keep the three edges. The loop still has boundary zero — it closes — yet no face remains to fill it. That unfilled loop is one homology class: one hole.

Check your understanding Beginner

Formal definition Intermediate+

A chain complex over a ring is a sequence of -modules and maps

with for every [Weibel Ch. 1]. The maps are differentials or boundary operators. The condition forces , so the quotient below is defined.

The -th homology of is

where are the -cycles and are the -boundaries. A complex is exact at when , equivalently . A cochain complex has differentials that raise degree, ; its cohomology is .

A chain map is a family of module maps commuting with the differentials (). Chain maps induce maps . Two chain maps are chain homotopic () when there are maps with ; chain-homotopic maps induce the same map on homology.

A chain map is a quasi-isomorphism when every induced map is an isomorphism. Quasi-isomorphism is weaker than isomorphism of complexes: two distinct complexes can carry the same homology and still differ degree by degree. The passage to the derived category in 04.03.11 formally inverts all quasi-isomorphisms, so that a quasi-isomorphism becomes a genuine isomorphism there; this is the move that lets derived functors be computed from any convenient resolution of the same object.

A sequence is exact at when . A short exact sequence is

exact at every term: is injective, is surjective, and . It splits when compatibly with and ; equivalently there is a section with , or a retraction with .

An -module is projective when every diagram with admits a lift ; equivalently is exact. Dually, is injective when is exact, i.e. every map into a submodule extends. A category has enough projectives when every module is a quotient of a projective; always has enough projectives (every module is a quotient of a free module). A projective resolution of is an exact sequence

with each projective [Cartan-Eilenberg Ch. VI]. Injective resolutions are defined dually.

A covariant functor is right exact when it preserves cokernels; is right exact. It is left exact when it preserves kernels; is left exact. The derived functors (for right exact , via projective resolutions) and (for left exact , via injective resolutions) measure the failure of to be exact, and the two workhorses are

Counterexamples to common slips

  • Not every complex is exact. For concentrated in degrees , the cokernel of is , so — homology detects the obstruction, it does not vanish.
  • Tensor is not left exact. From , tensoring with gives , the zero map, so injectivity is lost. records this failure.
  • Projective need not be free. Over many rings (rings of integers in number fields, or the tangent bundle of a sphere via Swan's theorem) projective modules exist that admit no basis; over a PID, projective coincides with free, which is the simple case.

Key theorem with proof Intermediate+

Theorem (Snake lemma). Given a commutative diagram of -modules with exact rows

there is an exact sequence

in which the connecting homomorphism sends to the class of in . The proof is a diagram chase checking exactness at each of the six positions [Weibel Ch. 1].

To see how is built, chase an element through the diagram. Lift it along the surjection to an element with . Apply and then : since , exactness of the bottom row places in , so a unique has . The class of in is independent of the lift , and that class is . This zig-zag — lift right, push down, pull back left — is the prototype of every connecting homomorphism in homological algebra, including the boundary map of the long exact sequence in homology and the Bockstein operations of 04.03.06.

The snake lemma is the algebraic engine behind the long exact sequence in homology: a short exact sequence of complexes yields, by applying the snake lemma degree by degree, the long exact sequence

Theorem (Five lemma). Given a commutative diagram with exact rows

if are isomorphisms, then is an isomorphism.

Proof. Injectivity of . Let with . Then by commutativity, and since is injective, . Exactness of the top row gives for some . Commutativity yields , so for some . Since is surjective, , and . Injectivity of gives , whence . So is injective.

Surjectivity of . Let . Since is injective and , exactness gives for some by first using : , hence as injective. Thus for some . Surjectivity of gives . Set . Then , so hits . Hence is surjective, and an isomorphism.

Bridge. This diagram-chase lemma builds toward 04.03.01 (sheaf cohomology), where the long exact sequence is the engine that computes obstructions on spaces, and appears again in 04.03.06 (derived functors) as the mechanism by which a short exact sequence of sheaves yields a long exact sequence of cohomology groups. The foundational reason diagram chases recur is that exactness is a pointwise condition that nevertheless propagates globally along the arrows; this is exactly the pattern that makes homological algebra the universal language for measuring obstructions, and the bridge is that every derived functor is a systematic device for extending a half-exact functor to a fully exact one by adjoining these connecting maps.

Exercises Intermediate+

Lean formalization Intermediate+

lean_status: none is recorded for this unit. Mathlib already carries the surrounding infrastructure — CategoryTheory.Abelian.ShortComplex for a short exact sequence, HomologicalComplex for , the homotopy category, and the statement of the snake lemma — but the project has not yet wired the elementary definitions here (chain complex over a fixed ring, , and over ) to the downstream sheaf-cohomology 04.03.01 and derived-category 04.03.11 consumers. That wiring is the open task captured in Mathlib gap analysis; until it lands, no Lean module is declared.

Advanced results Master

The defining achievement of homological algebra is that every half-exact functor extends, via resolutions, to a sequence of derived functors connected by long exact sequences. Concretely, a left-exact covariant functor between abelian categories, with having enough injectives, gives right derived functors defined by for any injective resolution ; the result is independent of the resolution chosen, because injective resolutions are unique up to chain homotopy [Grothendieck Tohoku]. A short exact sequence then yields the long exact sequence

so precisely repairs the failure of to be right exact. The dual construction with projective resolutions gives the left derived functors of a right-exact functor [Cartan-Eilenberg Ch. V].

The two universal examples are and . Over any ring, may be computed either from a projective resolution of (applying ) or from an injective resolution of (applying ); the two agree — this is the balance of , and satisfies the analogous symmetry when is commutative [Weibel §2.7]. In the lowest degree, classifies extensions of by up to the Yoneda equivalence relation: the split extension is the zero class, and every non-split short exact sequence is a non-zero element of .

Three structural facts make the theory usable. First, and , so the derived functors literally extend the original ones. Second, if has a projective resolution of length , then for ; over a PID every module has a length- resolution, so only and survive, which is why computations over reduce to a single map (Exercises 7 and 8). Third, a functor is exact precisely when all its higher derived functors vanish, restoring the clean case in which short exact sequences are preserved.

A second technique, dimension shifting, turns the long exact sequence into a recursive computation tool. Splicing the long exact sequence for with a resolution of expresses in terms of of the next syzygy, stepping the degree down by one at the cost of replacing the module by a kernel of the resolution. Iterating reduces any to a computation of on successive syzygies — which is why a projective resolution of length kills for , and why finitely generated modules over a regular local ring have bounded cohomological dimension.

When the input is not a single short exact sequence but a whole filtered complex, the long exact sequences assemble into a spectral sequence: a page of bigraded modules with differentials of bidegree converging, under mild boundedness hypotheses, to the associated graded of the desired homology [Weibel Ch. 5]. The two archetypes are the Grothendieck spectral sequence for composed functors and the hypercohomology spectral sequence that computes sheaf cohomology from an open cover — the latter being the bridge from this unit to the Čech-to-derived-functor comparison in 04.03.03 and the vanishing theorems of 04.03.05.

Synthesis. Derived functors are the load-bearing construction of the whole subject: the snake lemma proved in the Key theorem builds toward 04.03.06 where and are computed by resolving either argument, the long exact sequence in homology appears again in 04.03.01 as the sheaf-cohomology sequence governing coherent sheaves on schemes, this is exactly the mechanism that converts a half-exact functor into a fully exact one, classifying extensions generalises the split-versus-non-split dichotomy to all modules at once, the projective-versus-injective resolution story is dual to itself so that left and right derived functors are two faces of one construction, and the central insight is that homology measures the precise obstruction to exactness; putting these together, the bridge is that , , sheaf cohomology, and group cohomology are all instances of the single derived-functor construction.

Full proof set Master

Proposition (Existence of projective resolutions). In , every module admits a projective resolution.

Proof. Every module is a quotient of a free module: choose a generating set of and let surject onto by ; call the kernel . Since free modules are projective, is projective. Now repeat: is itself a quotient of a free module , giving with kernel . Composing yields . Iterating produces an exact sequence with each free, hence projective.

Proposition ( classifies extensions). For -modules , the set of equivalence classes of short exact sequences (the Yoneda equivalence) is in bijection with .

Proof sketch. Fix a projective resolution and let . Apply to the truncated resolution ; since is projective, is exact, so . A short exact sequence is the pushout of along a map ; two maps give equivalent extensions exactly when they differ by an element of , which is precisely the quotient. The split extension corresponds to the zero class.

Connections Master

  • Rings and modules 01.03.01. Homological algebra lives inside the abelian category of modules over a ring 01.03.01; every construction here — chain complex, exact sequence, , — is a machine built on top of the modules and homomorphisms established in that prerequisite unit, and tensor products of modules are the input from which is derived.

  • Sheaf cohomology 04.03.01. The global-sections functor on sheaves of modules is left exact but not exact, and its right derived functors are sheaf cohomology 04.03.01; the long exact sequence proved here is exactly the sheaf-cohomology long exact sequence that drives algebraic geometry.

  • Derived functors and Ext in geometry 04.03.06. The and derived-functor formalism developed here is specialised to coherent sheaves in 04.03.06, where sheaves classify extensions of sheaves and underpin Serre duality; the abstract balance of becomes a concrete geometric tool.

  • Derived categories 04.03.11. Passing from individual derived functors to the derived category — the localisation of the category of complexes at quasi-isomorphisms 04.03.11 — packages all the long exact sequences here into a single triangulated structure in which and become exact functors between derived categories.

  • Galois and group cohomology 01.02.15. Group cohomology is the right derived functor of the -invariants functor on -modules, and specialises to Galois cohomology and Hilbert's theorem 90 in 01.02.15; it is the most direct arithmetic application of the derived-functor machine.

Historical & philosophical context Master

Homological algebra was forged between 1940 and 1957 from three pressures: the need to organise the cohomology theories then proliferating in topology (singular, Čech, sheaf); the algebraic reformulation of extension problems in group theory and ring theory; and Grothendieck's insistence that the subject be re-derived inside an arbitrary abelian category rather than only module categories [Grothendieck 1957]. The founding synthesis was Cartan and Eilenberg's 1956 Homological Algebra, which unified , , resolutions, and spectral sequences under a single diagrammatic discipline [Cartan-Eilenberg 1956].

The 1957 Tohoku paper of Grothendieck then showed that the entire Cartan-Eilenberg machine depended only on the axioms of an abelian category and the existence of enough injectives, which made the theory portable to sheaves of modules and so planted the seed of modern algebraic geometry. Weibel's 1994 textbook and Gelfand-Manin's 2003 Methods of Homological Algebra record the further passage, in the late twentieth century, from derived functors to derived categories — a shift of viewpoint in which the long exact sequences proved here become shadows of a single triangulated structure.

The philosophical point is that homology replaces the unanswerable question "is this functor exact?" with the answerable one "how far does it deviate from exactness, in every degree?" The obstruction, once named and graded, becomes a computable invariant — and that move, from a yes/no failure to a measured invariant, is the move that makes homological algebra the lingua franca of modern geometry, topology, and number theory.

Bibliography Master

@book{Weibel1994,
  author = {Weibel, Charles A.},
  title = {An Introduction to Homological Algebra},
  publisher = {Cambridge University Press},
  series = {Cambridge Studies in Advanced Mathematics},
  volume = {38},
  year = {1994},
}

@book{GelfandManin2003,
  author = {Gelfand, Sergei I. and Manin, Yuri I.},
  title = {Methods of Homological Algebra},
  edition = {2nd},
  publisher = {Springer Monographs in Mathematics},
  year = {2003},
}

@book{CartanEilenberg1956,
  author = {Cartan, Henri and Eilenberg, Samuel},
  title = {Homological Algebra},
  publisher = {Princeton University Press},
  year = {1956},
}

@book{HiltonStammbach1997,
  author = {Hilton, Peter J. and Stammbach, Urs},
  title = {A Course in Homological Algebra},
  edition = {2nd},
  publisher = {Springer GTM 4},
  year = {1997},
}

@article{Grothendieck1957,
  author = {Grothendieck, Alexander},
  title = {Sur quelques points d'alg\`ebre homologique},
  journal = {Tohoku Mathematical Journal},
  volume = {9},
  number = {2},
  pages = {119--221},
  year = {1957},
}

@book{MacLane1963,
  author = {Mac Lane, Saunders},
  title = {Homology},
  publisher = {Springer Classics in Mathematics},
  year = {1963},
}