A dimension bound for the generic fiber over a discrete valuation ring
Let $O$ be a discrete valuation ring and $K=\operatorname{Frac}O$. Let $B$ be a finite set and $I_b$ finite coordinate sets. Put $$A=O[X_{b,i}:b\in B,\ i\in I_b],$$ with the grading that gives all variables in the $b$th block degree $e_b\in\mathbb N^B$. Let $P\subset A$ be a multihomogeneous prime ideal such that $P\cap O=0$ and, for every block $b$, some variable $X_{b,i}$ does not belong to $P$. Writing $P_K=PA_K$ in $A_K=K[X_{b,i}]$, one has $$\dim(A_K/P_K)+1\le\dim(A/P).$$
Dimensions are Krull dimensions, and $P_K$ is the ideal generated by the coefficientwise image of $P$.