Proposition 4.2.4. Let \(p\colon X \to Y\) be a functor and assume that \(Y\) is a groupoid. Then the following conditions are equivalent:

  1. (1) The category \(X\) is a groupoid;

  2. (2) The map \(p\) is a left fibration;

  3. (3) The map \(p\) is a right fibration.

Proof

We prove the equivalence between (1) and (2); the equivalence between (1) and (3) is dual. Consider the following commutative diagram: Commutative diagram; see the PDF for its LaTeX source Since \(Y\) is a groupoid, the right vertical map is an equivalence. It follows that this square is a pullback square if and only if the left vertical map is an equivalence. But the former is by Lemma 4.2.2 equivalent to (2), while the latter is equivalent to (1).

From Section 4.2, Left and right fibrations.