The Stacks project, tag 07JV, at revision a04446e (28 July 2026). Official page: stacks.math.columbia.edu/tag/07JV
Snake lemma
The snake lemma and its variants are discussed in the setting of abelian categories in Homology, Section 12.5.
Lemma 10.4.1 (07JW) official page ↗
Reference: [Cartan-Eilenberg, III, Lemma 3.3]
Given a commutative diagram \[\xymatrix{ & X \ar[r] \ar[d]^\alpha & Y \ar[r] \ar[d]^\beta & Z \ar[r] \ar[d]^\gamma & 0 \\ 0 \ar[r] & U \ar[r] & V \ar[r] & W }\] of abelian groups with exact rows, there is a canonical exact sequence \[\Ker(\alpha) \to \Ker(\beta) \to \Ker(\gamma) \to \Coker(\alpha) \to \Coker(\beta) \to \Coker(\gamma)\] Moreover: if \(X \to Y\) is injective, then the first map is injective; if \(V \to W\) is surjective, then the last map is surjective.
Proof. The map \(\partial : \Ker(\gamma) \to \Coker(\alpha)\) is defined as follows. Take \(z \in \Ker(\gamma)\). Choose \(y \in Y\) mapping to \(z\). Then \(\beta(y) \in V\) maps to zero in \(W\). Hence \(\beta(y)\) is the image of some \(u \in U\). Set \(\partial z = \overline{u}\), the class of \(u\) in the cokernel of \(\alpha\). Proof of exactness is omitted.