TITLE: snake lemma in category of groups
QUESTION [12 upvotes]: In Wiki, under the item "category of groups", it states that the snake lemma fails in category of groups, however the nine lemma is valid. However, in the preface of the book "  Mal'cev, protomodular, homological and semi-abelian categories ", it says "And category theory could not grasp either the conceptual foundations of the homological lemmas: the Nine Lemma, the Snake Lemma, which remain valid and strongly meaningful in the category Gp of groups, even if this category does not belong to the abelian setting in which these lemmas are generally proved in a significant categorical way."
Does the snake lemma fail or not in the category of groups? Any counter example or reference concerning that?

REPLY [5 votes]: I think one can have the Snake Lemma in the category of (non abelian) groups by the following way.
First, I remind what is an exact sequence of pointed sets (see, for example, "Local fields" of Serre in the chapter about non abelian cohomology) : a pointed set is just a set $A$ with a based point $x_A$. A morphism of pointed sets is defined to be a map sending the based point to the based point. A sequence $A \xrightarrow{f} B \xrightarrow{g} C$ is said to be exact if $f(A) = g^{-1}(x_C)$.
Now let's go back to the snake Lemma. A cokernel is a pointed set with the class of $0$ as based point (I denote $Coker(f:A \rightarrow B)$ to be the left cosets $B/Im(f)$ but it also works for right cosets, and I call it cokernel even if it is NOT the cokernel in the theory of category). One can check that the Snake Lemma holds in the sense I have given above (with the same proof as Alex said).