Lemma 1.3.15 (Pasting lemma for pullback squares). Consider a commutative diagram

Commutative diagram involving C 1, C 2, C 3, D 1, D 2, D 3, with arrows labeled g 1, f 1, g 2, f 2, f 3, h 1, h 2.

If the right-hand square is a pullback square, then the left-hand square is a pullback square if and only if the outer rectangle is a pullback square.

Proof. By the previous exercise there is a preferred equivalence \[ D_1 \times _{D_3} C_3 \iso D_1 \times _{D_2} (D_2 \times _{D_3} C_3). \] If the right-hand square is a pullback square, the functor \(C_2 \to D_2 \times _{D_3} C_3\) is an equivalence. Hence, by Exercise 1.3.11, the induced functor \(D_1 \times _{D_2} C_2 \to D_1 \times _{D_2} (D_2 \times _{D_3} C_3)\) is an equivalence. The claim now follows from 2-out-of-3 applied to the square

Commutative square with maps C 1 to D 1 \times D 2 C 2 labeled (f 1,g 1), D 1 \times D 3 C 3 to D 1 \times D 2 (D 2 \times D 3 C 3) labeled simeq, C 1 to D 1 \times D 3 C 3 labeled (f 1,g 2 circ g 1), D 1 \times D 2 C 2 to D 1 \times D 2 (D 2 \times D 3 C 3) labeled simeq.

โ–ก