Five lemma

In mathematics, especially homological algebra and other applications of abelian category theory, the five lemma is an important and widely used lemma about commutative diagrams. The five lemma is not only valid for abelian categories but also works in the category of groups, for example.

The five lemma can be thought of as a combination of two other theorems, the four lemmas, which are dual to each other.

Statements
Consider the following commutative diagram in any abelian category (such as the category of abelian groups or the category of vector spaces over a given field) or in the category of groups.


 * [[file:5 lemma.svg]]

The five lemma states that, if the rows are exact, m and p are isomorphisms, l is an epimorphism, and q is a monomorphism, then n is also an isomorphism.

The two four-lemmas state:1. If the rows in the commutative diagram
 * [[file:4 lemma right.svg]]

are exact and m and p are epimorphisms and q is a monomorphism, then n is an epimorphism.

2. If the rows in the commutative diagram
 * [[file:4 lemma left.svg]]

are exact and m and p are monomorphisms and l is an epimorphism, then n is a monomorphism.

Proof
The method of proof we shall use is commonly referred to as diagram chasing. We shall prove the five lemma by individually proving each of the two four lemmas.

To perform diagram chasing, we assume that we are in a category of modules over some ring, so that we may speak of elements of the objects in the diagram and think of the morphisms of the diagram as functions (in fact, homomorphisms) acting on those elements. Then a morphism is a monomorphism if and only if it is injective, and it is an epimorphism if and only if it is surjective. Similarly, to deal with exactness, we can think of kernels and images in a function-theoretic sense. The proof will still apply to any (small) abelian category because of Mitchell's embedding theorem, which states that any small abelian category can be represented as a category of modules over some ring. For the category of groups, just turn all additive notation below into multiplicative notation, and note that commutativity of abelian group is never used.

So, to prove (1), assume that m and p are surjective and q is injective.
 * [[file:4 lemma right.svg]]


 * Let c&prime; be an element of C&prime;.
 * Since p is surjective, there exists an element d in D with p(d) = t(c&prime;).
 * By commutativity of the diagram, u(p(d)) = q(j(d)).
 * Since im t = ker u by exactness, 0 = u(t(c&prime;)) = u(p(d)) = q(j(d)).
 * Since q is injective, j(d) = 0, so d is in ker j = im h.
 * Therefore, there exists c in C with h(c) = d.
 * Then t(n(c)) = p(h(c)) = t(c&prime;). Since t is a homomorphism, it follows that t(c&prime; − n(c)) = 0.
 * By exactness, c&prime; − n(c) is in the image of s, so there exists b&prime; in B&prime; with s(b&prime;) = c&prime; − n(c).
 * Since m is surjective, we can find b in B such that b&prime; = m(b).
 * By commutativity, n(g(b)) = s(m(b)) = c&prime; − n(c).
 * Since n is a homomorphism, n(g(b) + c) = n(g(b)) + n(c) = c&prime; − n(c) + n(c) = c&prime;.
 * Therefore, n is surjective.

Then, to prove (2), assume that m and p are injective and l is surjective.
 * [[file:4 lemma left.svg]]


 * Let c in C be such that n(c) = 0.
 * t(n(c)) is then 0.
 * By commutativity, p(h(c)) = 0.
 * Since p is injective, h(c) = 0.
 * By exactness, there is an element b of B such that g(b) = c.
 * By commutativity, s(m(b)) = n(g(b)) = n(c) = 0.
 * By exactness, there is then an element a&prime; of A&prime; such that r(a&prime;) = m(b).
 * Since l is surjective, there is a in A such that l(a) = a&prime;.
 * By commutativity, m(f(a)) = r(l(a)) = m(b).
 * Since m is injective, f(a) = b.
 * So c = g(f(a)).
 * Since the composition of g and f is trivial, c = 0.
 * Therefore, n is injective.

Combining the two four lemmas now proves the entire five lemma.

Applications
The five lemma is often applied to long exact sequences: when computing homology or cohomology of a given object, one typically employs a simpler subobject whose homology/cohomology is known, and arrives at a long exact sequence which involves the unknown homology groups of the original object. This alone is often not sufficient to determine the unknown homology groups, but if one can compare the original object and sub object to well-understood ones via morphisms, then a morphism between the respective long exact sequences is induced, and the five lemma can then be used to determine the unknown homology groups.