Proposition 2.4.2. Let \(X\) be a category. Then the following conditions are equivalent:
(1) The category \(X\) is a groupoid;
(2) The functor \(\pi_{\Iso}\colon \Iso(X) \to \Ar(X)\) admits a section, in the sense of Definition 1.3.2;
(3) The functor \(p_{[1]}^*\colon X \to \Ar(X)\), induced by the map \(p_{[1]}\colon [1] \to *\), admits a section;
(4) The functor \(p_{[1]}^*\colon X \to \Ar(X)\) is an equivalence.
Proof
To see that (1) implies (2), take \(\Gamma = \Ar(X)\) and let \(f = \id_{\Ar(X)}\), so that \(s = \tilde{f}\) provides a section. Conversely, if \(s\colon \Ar(X) \to \Iso(X)\) is a section of \(\pi_{\Iso}\), a lift \(\tilde{f}\) of \(f\) may be given as \(\tilde{f} := s \circ f\).
The fact that (2) and (3) are equivalent is immediate from the following commutative diagram:
using that the map \(i\) is an equivalence by Axiom F. Finally, note that the functor \((p_{[1]})^*\) always admits a retraction given by \(\ev_0\colon \Ar(X) \to X\), and thus the equivalence between (3) and (4) is an instance of Lemma 1.3.3.
From Section 2.4, Groupoids.