Let k be a commutative ring, A a k-algebra associative and unital, M an (A,A)-bimodule. We call extension of A by M the data of a k-algebra B associative and unital and of an exact sequence of k-modules
(E):0⟶MiBpA⟶0,
where p is an homomorphism of algebras and where
i(p(b)m)=bi(m)andi(mp(b))=i(m)bfor b∈B,m∈M.
Two extensions 0⟶MiBpA⟶0 and 0⟶Mi′B′p′A⟶0 are said to be equivalent if there exists an homomorphism of algebras u:B⟶B′ such that p′∘u=p and u∘i=i′; the homomorphism u is then bijective.
(a) Suppose that the exact sequence of k-modules 0⟶MiBpA⟶0 is split; let s:A⟶B be a k-linear section of p. Now prove that there exists an element f∈C2(A,M) (X, p. 195, exercise 26, b)) such that
s(a)s(a′)−s(aa′)=i(f(a,a′))
for a,a′∈A. Now prove that f is a 2-cocycle and that its class in H2(A,M) is independent of the choice of s; we denote it by (E).
(b) Let Exk(A,M) be the set of equivalence classes of extensions of A by M which are trivial as extensions of k-modules. Now prove that c defines a bijection from Exk(A,M) onto H2(A,M).
c) Let E:0→MiBpA→0 and E′:0→Mi′B′p′A→0 be two extensions of A by M. Let C denote the subalgebra of B×B′ formed by the elements (b,b′) such that p(b)=p′(b′), c the ideal of C formed by the elements (i(m),−i′(m)) for m∈M, B the algebra C/c, π:C→B the homomorphism of passing to the quotient. Let i′′:M→B and p′′:B→A be the homomorphisms such that i′′(m)=π((m,0)) for m∈M and p′′π((b,b′))=p(b) for b∈B,b′∈B′. Prove that the sequence 0→M→B→A→0 is an extension of A by M, called the sum extension of (E) and (E′), and that one defines in this way a commutative group law on the set of equivalence classes of extensions of A by M. In particular, the set Exk(A,M) is endowed in this way with a group structure, and the mapping c is a group isomorphism.