= Five lemma
{c}
{wiki}
The <Five lemma> applies to a <commutative diagram> in an <abelian category> whose two rows are <exact sequences in an abelian category>:
$$
\begin{array}{ccccccccc}
A_1&\xrightarrow{a_1}&A_2&\xrightarrow{a_2}&A_3&\xrightarrow{a_3}&A_4&\xrightarrow{a_4}&A_5\\
\downarrow f_1&&\downarrow f_2&&\downarrow f_3&&\downarrow f_4&&\downarrow f_5\\
B_1&\xrightarrow{b_1}&B_2&\xrightarrow{b_2}&B_3&\xrightarrow{b_3}&B_4&\xrightarrow{b_4}&B_5.
\end{array}
$$
If $f_1$ is an <epimorphism>, $f_2$ and $f_4$ are <isomorphisms>, and $f_5$ is a <monomorphism>, then $f_3$ is an <isomorphism>. In particular, four surrounding <isomorphisms> force the middle one. Both the <monomorphism> and <epimorphism> properties of the second and fourth vertical <morphisms> enter the conclusion.<The Stacks project>[§12.5, Lemma12.5.20 and the two four-term implications in Lemma12.5.19]{ref}
For <modules>, injectivity follows by chasing an element $x\in A_3$ with $f_3x=0$. Commutativity and injectivity of $f_4$ give $a_3x=0$, so exactness gives $x=a_2u$. Then $b_2f_2u=0$, hence $f_2u=b_1v$. Surjectivity of $f_1$ gives $v=f_1w$, and injectivity of $f_2$ yields $u=a_1w$. Therefore $x=a_2a_1w=0$.
For surjectivity, take $y\in B_3$ and choose $z\in A_4$ with $f_4z=b_3y$. Since $f_5a_4z=b_4b_3y=0$, injectivity of $f_5$ and exactness give $z=a_3x$. Now $b_3(y-f_3x)=0$, so $y-f_3x=b_2u$ for some $u\in B_2$. Write $u=f_2v$. Commutativity gives $y=f_3(x+a_2v)$.
The weaker one-sided hypotheses $f_1,f_4$ epic and $f_2,f_5$ monic do not suffice. Over a nonzero <field> $k$, use the exact rows $0\to0\to k\xrightarrow{1}k\to0$ and $0\to k\xrightarrow{1}k\to0\to0$, with every vertical map zero. The first and fourth are <epimorphisms>, and the second and fifth are <monomorphisms>, but the middle zero map $k\to k$ is not an <isomorphism>.
Back to article page