Divisor multiplicity after dehomogenization
Let $B$ be a finite set and $I_b$ finite sets of coordinates. Set $A=\mathbb Z[X_{b,i}:b\in B,\ i\in I_b]$, with each variable in block $b$ given degree $e_b\in\mathbb N^B$. Let $P\subset A$ be a relevant multihomogeneous prime ideal. Let $s,t\in A$ be multihomogeneous of the same multidegree, with $s\notin P$. Let $W$ be a relevant minimal prime of $P+(s)$, and assume $t\notin W$. If $y\in\operatorname{Frac}(A/P)$ satisfies $y[t]=[s]$, then $y$ belongs to the subring $R_{P,W}$ defined below, and $$\ell^{\mathrm{nat}}_{A_W}\bigl((A/(P+(s)))_W\bigr)=\ell^{\mathrm{nat}}_{R_{P,W}}\bigl(R_{P,W}/(y)\bigr).$$
Brackets denote images in $A/P$. An ideal is relevant if, in every block, at least one coordinate variable does not belong to it. The ring $R_{P,W}\subseteq\operatorname{Frac}(A/P)$ is generated as a subring by the fractions $[u]/[v]$ with $u,v$ multihomogeneous of the same multidegree, $v\notin W$, and $[v]\ne0$. For a module $M$, $\ell^{\mathrm{nat}}(M)$ is its module length when that length is finite and is zero when its length is infinite.