Awodey's Category Theory is at it again, asking me to do things without fully explaining what any of it means. Part (b) of Problem 2 in Chapter 5 reads as follows:
Show that the pullback along an arrow $f:Y\to X$ of a pullback square over $X$, $\require{AMScd}$ \begin{CD} A\times_X B @>>> B\\ @VVV @VVV\\ A @>>> X \end{CD} is again a pullback square over $Y$.
So I started by doing the obvious thing and I drew a cube with the goal of eventually applying the two-pullbacks lemma.
The goal is to show that the back fact of the cube is a pullback square. The triples $(A', \alpha', f_\alpha)$ and $(B', \beta', f_\beta)$ are obtained as pullbacks of the diagrams $\require{AMScd}$ \begin{CD} A\\ @V\alpha VV\\ X @<f<< Y \end{CD} and $\require{AMScd}$ \begin{CD} B\\ @V\beta VV\\ X @<f<< Y \end{CD} This much seems pretty clearly the right way to do things, but then I run into a problem. There are two ways to induce each of the three arrows $P\to A'$, $P\to B'$, and $P\to A\times_X B$ as pullbacks. My thinking is that I probably don't want to induce $P\to A'$ or $P\to B'$ as the pullback of $\alpha'$ and $\beta',$ so I induce those maps as pullbacks $\require{AMScd}$ \begin{CD} P @>>> A\times_X B\\ @VVV @VV p_1 V\\ A' @>>f_\alpha > A \end{CD} and $\require{AMScd}$ \begin{CD} P @>>> A\times_X B\\ @VVV @VV p_2 V\\ B' @>>f_\beta > B \end{CD} The problem is that this induces two different maps $g_1:P\to A\times_X B$ and $g_2:P\to A\times_X B$. If I could show that these maps are the same, then I could apply two-pullbacks twice and be done. However, I have no idea how to do this. It seems that it should come from the uniqueness of maps to pullbacks, so I would try and show that $p_1g_1=p_1g_2$ and $p_2g_1=p_2g_2$. Uniqueness would then give $g_1=g_2$. Alas, I don't see why this would be true. Perhaps I need to pullback $\alpha'$ and $\beta'$ and show that those maps are the the same as the ones I have already induced. Any hint would be appreciated.
In truth, I am not exactly sure what the question is asking. For example, one lemma given in Awodey states that the pullback of a commutative triangle is a commutative triangle. He then clarifies to say that if I have a triangle $\gamma:A\to B$, $\beta:B\to C$, and $\alpha:A\to C$ with $\alpha=\beta\circ\gamma$ and a map $f:C'\to C$, and if one can form pullbacks $\alpha'$ and $\beta'$ of $\alpha$ and $\beta$ along $f$, then there is a pullback $\gamma'$ of $\gamma$ which satisfies $\alpha'=\beta'\circ\gamma'$. I'm not entirely sure how the first bolded statement translates to the second bolded statement. The only justification I have for it is that it makes the application of the two-pullbacks lemma possible. If someone could justify the precise lemma statement from the ambiguous one and make the problem statement precise in the same way, that would help just as much.