Cohomology module
The nth cohomology H^n(C) = ker(d^n)/im(d^{n-1}) of a cochain complex of modules.
Let be a ring and let
be a cochain complex of R-modules, i.e. for all .
The th cocycles and th coboundaries are
Since , one has . The th cohomology module is
A cochain complex is exact (as a sequence of modules) iff all its cohomology modules vanish; see exact complex.
Examples
Example 1: Two-term cochain complex over
Let , , , and otherwise. Then
Example 2: as cohomology (concrete computation)
Let . A projective resolution of is
Apply Hom to get a cochain complex
which identifies with
Thus
(See Ext.)
Example 3: Vanishing over a field
If is a field and are -vector spaces, then every -module is projective and injective. Hence
(see Ext), because one may take a length-0 projective (or injective) resolution and the resulting cochain complex has zero cohomology in positive degrees.