I'm working through Fulton's intersection theory book and I've been stuck on the end of Prop 1.7, i.e. that flat pullbacks commute with proper pushforwards for fibre squares. Specifically I understand why it's enough to show that $f'_{*}[X']=d[Y']$, where X,Y are varieties of the same dimension, $f:X\rightarrow Y$ is surjective proper map and $f_{*}[X]=d[Y]$. But this amounts to showing that $d \mathcal l(\mathcal O_{Y_{j}',Y'})=\sum_{X_{i}'\rightarrow Y_j'} \mathcal l(\mathcal O_{X'_i,X'})\deg(X'_i/Y'_j)$, where that sum is over the irreducible components $X_i'$ of $X'$ that map onto the irreducible component $Y_j'$ of $Y'$, and $\mathcal l$ stands for the lengths of those rings over themselves. I don't know how to reduce this to the local calculation Fulton describes, nor how he uses that alegbraic lemma from the appendix to show it once we're in the described local ring case. Can someone please explain this for me? Thanks

My answer will be based on the script of an intersection theory class by Professor Barbara Fantechi found here: http://www.cmi.ac.in/~asengupta/int.pdf (see page 4). The proof of the central Lemma will be very technical and if I have overlooked something please point it out in the comment section. The crucial point in the argument is the reduction to a local ring computation. For this reduction, the following Lemma is the key:

**Lemma:** Let $X,Y$ be separated, finite type schemes over a field $k$ equidimensional of the same dimension and let $f: X \to Y$ be a dominant morphism. Let $Y' \subset Y$ be an irreducible component and $A=\mathcal{O}_{Y',Y}$ be the local ring at its generic point. Note that we have a canonical map $\text{Spec}(A) \to Y$. Then when we do the cartesian product of $f$ with this map, we have
$$\text{Spec}(A) \times_Y X = \text{Spec}( \prod_i \mathcal O_{X_i,X}),$$
where the $X_i$ are the irreducible components of $X$ mapping dominantly to $Y'$.

Note that for $f$ proper $B=\prod_i \mathcal O_{X_i,X}$ contains all the information we need to compute the coefficient of $(Y')^{red}$ in $f_* [X]$, namely the multiplicity $l(\mathcal O_{X_i,X})$ of $X_i^{red}$ in $[X]$ and the degree of the field extension $[R(X_i^{red}):R((Y')^{red})]=[R(\mathcal O_{X_i,X}):R(A)]$, where $R$ denotes the function field and the total quotient ring respectively.

Let me do the desired reduction using this Lemma: to compare the coefficients of $Y_j'$ as described in your question, we may thus base change the map $f':X' \to Y'$ by the inclusion of the spectrum of $A=\mathcal O_{Y'_j,Y}$ in $Y'$. $$ \begin{array}{ccccc} \text{Spec}(B)& \to & X' & \to & X \cr \downarrow& & \downarrow & & \downarrow \cr \text{Spec}(A)& \to & Y' & \to & Y \end{array}. $$ However $X'$ was already a cartesian product, so we may as well base change the map $f:X \to Y$ by $\text{Spec}(A) \to Y$. But using the Fact from the script (sometimes called the Going-down theorem for flat morphisms) we know that $Y'_j$ dominates $Y$. From this one sees that the inclusion $\text{Spec}(A) \to Y$ factors through $\text{Spec}(R(Y))$. But now we can apply the Lemma above again to see that the following are commuting squares: $$ \begin{array}{ccccc} \text{Spec}(B)& \to & R(X) & \to & X \cr \downarrow& & \downarrow & & \downarrow \cr \text{Spec}(A)& \to & R(Y) & \to & Y \end{array}. $$ Indeed, the outer rectangle is a cartesian square by definition and the right square is cartesian by applying the Lemma to $f:X \to Y$ noting that $X,Y$ were assumed to be irreducible varieties of the same dimension. From here on the proof from the script above should go through straightforward.

**Proof of the Lemma:** Because the inclusion of $\text{Spec}(A)$ in $Y$ factors through the complement of the irreducible components of $Y$ different from $Y'$ we may assume $Y=Y'$ is irreducible. Now in $X$ note that the intersections of the irreducible components of $X$ are all of lower dimension than $Y$ and thus their images in $Y$ are also of positive codimension. By removing their closures in $Y$ and thus shrinking $Y$ further we may assume that $X$ is a disjoint union of irreducible finite type-schemes $X_i$. If some of them do not map dominantly to $Y$ we can shrink $Y$ even further to exclude their images and hence we may assume that they all map dominantly to $Y$.

Now we want to reduce to an affine computation. Shrink $Y$ to an affine open subset $\text{Spec}(C)$ and cover one such $X_i$ by open affines $\text{Spec}(D)$. We will see that all the corresponding cartesian products $\text{Spec}(A) \times_{\text{Spec}(C)} \text{Spec}(D)$ are canonically identified with $\text{Spec}(\mathcal O_{X_i,X})$, thus gluing them is trivial and the proof is finished. As $X_i, Y$ are irreducible, there are unique minimal primes $p_D, p_C$ in $D,C$ corresponding to the generic points $\eta_{X_i},\eta_Y$ of $X_i,Y$. Note that hence the local ring $A$ at $\eta_Y$ is $A=C_{p_C}$. Because $X_i$ dominates $Y$ we have that $\eta_{X_i}$ maps to $\eta_Y$, so for the corresponding map $\phi:C \to D$ we have $\phi^{-1}(p_D) = p_C$. We now have to show $$C_{p_C} \otimes_{C} D = D_{p_D}.$$ The left hand side is exactly $(C \setminus p_C)^{-1} D$, hence for $d \in D \setminus p_D$ we have to find an inverse using only $C \setminus p_C$ in the denominator. But now finally we can use that $X,Y$ have the same dimension. This implies that the corresponding extension $R(C) \subset R(D)$ of the total quotient fields is algebraic, because both have the same transcendence degree over $k$. Hence there are $c_n, \ldots, c_0 \in R(C)$ with $c_0 \neq 0 \in R(C)$ and $$c_n d^n + \ldots + c_1 d + c_0 = 0 \in R(D).$$ Multiplying by the denominators we may assume that all $c_i$ are in $C$ and that $c_0 \in C \setminus p_C$. Then one checks that this implies that $$d \cdot \frac{c_n d^{n-1} + \ldots + c_1}{-c_0} = 1 \in D_{p_D}. $$ Thus the proof is finished.

First, you can see the conclusion in the case $d=0$ as a consequence of the fact that the property of being 'flat of relative dimension $n$' is preserved under base extension, by looking at the case where $X$ and $Y$ are varieties. One reduces to this case by the below, but base changing by the inclusion of the variety, not its generic point, into $X$.

To perform Fulton's reduction:

We may assume $\alpha\in Z_\ast X$ is the class of a variety $[V]$, since $f^\ast, f_\ast$ are linear. Then $f(V)=W$ is a variety. Then to compare the multiplicities of each irreducible component of $f'_\ast g'^\ast\alpha$ and $g^\ast f_\ast\alpha$ it suffices to do after looking over the generic points of $V$ and $W$, since because $g$ is flat, each irreducible component of $g^{-1}(W)$ maps to the generic point of $W$. so we may assume $X=\operatorname{Spec} L$, $Y=\operatorname{Spec} K$, in which case an irreducible component of $Y'$ becomes the spectrum of a local Artinian ring. As mentioned in the text, properness and flatness are preserved under base change.

How to use the algebraic lemma to conclude when $d>0$.

Let me rename the Artinian ring $A$ as in $Y'=\operatorname{Spec} A$ by $A'$. So now $Y'=\operatorname{Spec} A'$.

Now assume $d>0$. Now $l_K(A'\otimes_K L)<\infty$ and we compute this number using the algebraic lemma applied both to $K\subset L$ and $K\subset A$ as before. It shows us that $$d\cdot l_L(A'\otimes_K L)=[k(A'):K]\cdot l_{A'}(A'\otimes_K L).$$

Now $l_L(A'\otimes_K L)=\dim_L(A'\otimes_K L)=\dim_K(A')=l_{A'}(A')\cdot[k(A'):K]$, so we find $$d\cdot l_{A'}(A')=l_{A'}(A'\otimes_K L).$$ Now if $Y'=\{P\}$ as sets, $[Y']=l_{A'}(A')\cdot P$ while $f'_\ast[X']=l_{A'}(A'\otimes_K L)\cdot P$. To see this last point, recall that since $A'\otimes_K L$ is finite over $L$, it is a direct product of finitely many local Artinian rings; now apply the algebraic lemma one last time to each point in $X'$. This proves the equality $$f'_\ast[X']=d[Y']$$ in the case $d>0$.