# Horseshoe lemma

In homological algebra, the horseshoe lemma, also called the simultaneous resolution theorem, is a statement relating resolutions of two objects ${\displaystyle A'}$ and ${\displaystyle A''}$ to resolutions of extensions of ${\displaystyle A'}$ by ${\displaystyle A''}$. It says that if an object ${\displaystyle A}$ is an extension of ${\displaystyle A'}$ by ${\displaystyle A''}$, then a resolution of ${\displaystyle A}$ can be built up inductively with the nth item in the resolution equal to the coproduct of the nth items in the resolutions of ${\displaystyle A'}$ and ${\displaystyle A''}$. The name of the lemma comes from the shape of the diagram illustrating the lemma's hypothesis.

## Formal statement

File:Horseshoe lemma.png

is a diagram in ${\displaystyle {\mathcal {A}}}$ such that the column is exact and the rows are projective resolutions of ${\displaystyle A'}$ and ${\displaystyle A''}$ respectively, then it can be completed to a commutative diagram

File:Horseshoe lemma conclusion.png

where all columns are exact, the middle row is a projective resolution of ${\displaystyle A}$, and ${\displaystyle P_{n}=P'_{n}\oplus P''_{n}}$ for all n. If ${\displaystyle {\mathcal {A}}}$ is an abelian category with enough injectives, the dual statement also holds.

The lemma can be proved inductively. At each stage of the induction, the properties of projective objects are used to define maps in a projective resolution of ${\displaystyle A}$. Then the snake lemma is invoked to show that the simultaneous resolution constructed so far has exact rows.