Let R be a ring
and let
⋯dn−1CndnCn+1dn+1⋯be a cochain complex
of R-modules
, i.e. dn+1∘dn=0 for all n.
Definition
The nth cocycles and nth coboundaries are
Zn(C∙):=ker(dn)⊆Cn,Bn(C∙):=im(dn−1)⊆Cn.Since dn∘dn−1=0, one has Bn(C∙)⊆Zn(C∙). The nth cohomology module is
Hn(C∙):=Zn(C∙)/Bn(C∙).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 Z
Let C0=Z, C1=Z, d0=×n, and Ci=0 otherwise. Then
H0(C∙)=ker(×n)=0,H1(C∙)=coker(×n)≅Z/nZ.Example 2: Ext as cohomology (concrete computation)
Let R=Z. A projective resolution
of Z/nZ is
0→Z×nZ→Z/nZ→0.Apply Hom
(−,Z) to get a cochain complex
0→Hom(Z,Z)×nHom(Z,Z)→0,which identifies with
0→Z×nZ→0.Thus
HAHAHUGOSHORTCODE286s6HBHBZ(Z/nZ,Z)≅H1(Hom(P∙,Z))≅Z/nZ.Example 3: Vanishing over a field
If k is a field and V,W are k-vector spaces, then every k-module is projective
and injective
. Hence
HAHAHUGOSHORTCODE286s9HBHBk(V,W)=0for all n>0,because one may take a length-0 projective (or injective) resolution and the resulting cochain complex has zero cohomology in positive degrees.