The five lemma can be thought of as a combination of two other theorems, the four lemmas, which are dual to each other.
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 groupss.
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 2 four lemmas state:
The method of proof we shall use is commonly referred to as diagram-chasing. Although it may boggle the mind at first, once one has some practice at it, it is actually fairly routine. We shall prove the five lemma by individually proving each of the 2 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 iff it is surjective.
Similarly, to deal with exactness, we can think of kernelss and imagess in a function-theoretic sense.
The proof will still apply to any Abelian category because of Mitchell's embedding theorem, which states that any 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 is never used.
So, to prove (1), assume that m and p are surjective and q is injective.
Statement
Proof
Then, to prove (2), assume that m and p are injective and l is surjective.
Combining the 2 four lemmas now proves the entire five lemma.
See also: Short five lemma, Snake lemma