For a left -module, group cohomology is
with the trivial module. Equivalently take a projective resolution and the cohomology of . This also describes the right-derived functors of the invariant-module functor .
For an explicit model, the homogeneous bar free resolution has , with diagonal -action and boundary the alternating sum of coordinate deletions. It is free over : each orbit has a unique representative with first coordinate . The augmented complex is exact because inserting as a first coordinate supplies a contracting homotopy of underlying abelian groups; its lack of -equivariance does not affect exactness. The associated inhomogeneous group cochains are functions , with
For group cochains of degree zero, . Adjacent deletions cancel in pairs, giving and hence .
In degree zero this gives
It is also , since a map is determined by the invariant image of .
In degree one the cocycle condition is , so
These are crossed homomorphisms modulo principal crossed homomorphisms. For trivial action they reduce to ordinary group homomorphisms, so .
There are two further useful descriptions. If is the augmentation ideal, a crossed homomorphism gives an equivariant map by , because . Applying to therefore gives
Also a section of has the form and is a group homomorphism exactly when is a crossed homomorphism. Conjugation of sections by an element of changes by a principal crossed homomorphism. Thus classifies the -conjugacy classes of such sections, or equivalently of complements to in the semidirect product.
In degree two, a normalized two-cocycle satisfies
Define multiplication on by
The displayed cocycle identity is precisely associativity; normalization gives the identity and inverses exist. This produces a group extension with the prescribed action on .
Conversely a set-theoretic section , , gives in the additive kernel of a group homomorphism. Associativity gives the cocycle condition. Replacing by changes by
The resulting extensions are equivalent through a change of coordinates in . Conversely any extension equivalence preserving both kernel of a group homomorphism and quotient yields such a change of section. Hence
The zero class corresponds exactly to a split extension. With trivial action these are central group extensions; addition of classes corresponds to the Baer sum. This proves the second group cohomology classifies group extensions interpretation.
For and trivial coefficients , put . The Koszul resolution for a rank-two free abelian group is
where and . To check exactness at , reduce modulo . Since is not a zero divisor in , write , and cancellation gives . Injectivity of follows because is a domain. The augmentation kernel is generated by , proving the other exactness statement.
Applying makes both differentials zero, since act trivially. Thus
Degree-one classes assign arbitrary integers to the two generators. Geometrically these are also the cohomology groups of the torus, a classifying space for ; its cohomology ring is the exterior algebra on the two degree-one classes.
The integer in degree two has an explicit extension representative. On triples , set
The bilinear term is a two-cocycle. With generators , and central ,
Every central extension of by has this form: choose lifts of the two generators and the fixed generator of the kernel of a group homomorphism, then their group commutator determines and every element has a unique form . Changing the lifts by central elements leaves that commutator unchanged. Thus distinct integers give inequivalent extensions, and the cocycles add with . The case is ; is the integer Heisenberg group. This realizes the integral central extensions of a rank-two free abelian group concretely.
A group extension of by the -module is an exact sequence
whose conjugation action on agrees with the prescribed action of on . It is a split group extension when has a group-homomorphic section . Two such extensions are equivalent group extensions when an isomorphism of their middle groups is the identity on and induces the identity on . Transporting a section through that isomorphism proves that every extension equivalent to a split extension is split.
Choose a set-theoretic section with . Its failure to preserve multiplication is the normalized two-cocycle
Associativity gives the two-cocycle identity, and replacing changes by a group coboundary. The resulting class is therefore intrinsic to the extension, as expressed by second group cohomology classifies group extensions.
Now write and let be the augmentation ideal of . The Koszul resolution for a rank-two free abelian group gives, after applying , the last coboundary
Its image is . For this yields the second cohomology of a rank-two free abelian group with truncated group-ring coefficients calculation
The canonical map induces the identity on these final quotients, so is surjective; indeed it is an isomorphism.
Let and let be its lower central series. The class-two quotient is the Integer Heisenberg group. In the class-three free nilpotent group , the module is cyclic over on and is isomorphic to . Quotienting it by gives the central kernel of the Heisenberg group. The kernel of
is , freely generated by and , and is central. Thus it is . This is the central nonsplit extension of the integer Heisenberg group by . If it split, centrality would give , whose abelianization has rank four; but has abelianization . Hence the extension is nonsplit.
For , the square-zero ideal condition gives
Thus the square-zero unit subgroup is abelian, and
is a group isomorphism from the additive group of .
Use the specified ring isomorphism . For , choose a lift and define for . Two lifts differ by an element of , whose product with vanishes, so this is well defined. Right multiplication is handled identically. The two actions commute by associativity, making a bimodule. If lifts , then is a unit: a lift of makes both and elements of , hence units, and a ring element with both a left and a right inverse is invertible. Conjugation therefore defines
Changing by an element of does not change this expression because . Moreover,
so is an isomorphism of -modules for these conjugation actions.
Let be reduction on unit groups, and define as the inverse image of the distinguished subgroup . Every has a unit lift by the preceding argument, and the kernel consists exactly of the units congruent to , namely . Multiplication in therefore gives the group extension
Choose a set-theoretic section with . Its extension cocycle
satisfies the two-cocycle identity by associativity. A different section changes by a group coboundary, so second group cohomology classifies group extensions gives a well-defined class
The same construction for gives , an extension cocycle , and .
The answer to the final question is no. An abstract ring isomorphism need not carry the distinguished ideal to , need not induce the identity under the two chosen identifications of the quotient rings with , and need not induce the prescribed -module isomorphism . Hence it need not give an isomorphism of the two displayed group extensions, so it imposes no equality . That equality does hold if the ring isomorphism has all three compatibility properties, because it then carries one extension cocycle to the other up to a group coboundary.