I have a question about an argument in the proof of Thm 8.2.5 (Dimension formula) from Liu's "Algebraic Geometry" (page 334):
Firstly the problem is reduced to the affine case with $Y:=Spec \text{ }\mathcal{O}_{Y,y}$ and $X$ closed subscheme of $Z:= \mathbb{A}^1_Y=Spec\text{ }\mathcal{O}_{Y,y}[T]$. Therefore $X= Spec\text{ }\mathcal{O}_{Y,y}[T]/I$.
Let $\zeta $ be the (unique) generic point of $Y$ and let $X_{\zeta}$ (resp. $Z_{\zeta}$) the generic fiber of $\zeta$ under morphism $f$ (resp. $Z \to Y$).
Now the question: Why the (obvious) fact that $codim(X_{\zeta},Z_{\zeta}) \le 1$ implies already $codim(X,Z) \le 1$ ?
Indeed $Z_{\zeta}= O_{Y,y}[T] \otimes k(\zeta)=k(\zeta)[T]$ where $k(\zeta)= O_{Y, \zeta}$ is the localisation of $O_{Y,y}$ at generic point $\zeta \in Y$. Therefore $Z_{\zeta}$ has Krull dimension $1$ and therefore $X_{\zeta}$ can also only have codimension $1$ or $0$ wrt $Z_{\zeta}$.
The question is why does it suffice to deduce that $codim(X,Z) \le 1$?
My considerations:
By definition if $X$ is an irreducible (because integral) subset of $Z$ then codimension $codim(X,Z)$ is defined as follows:
Let $\nu \in X$ the unique generic point of $X$. Then
$$codim(X,Z)= min_{x \in X} \dim \mathcal{O}_{Z,x}= \dim \mathcal{O}_{Z,\nu}$$
and respectively
$$codim(X_{\zeta},Z_{\zeta})= min_{x \in X_{\zeta}} \dim \mathcal{O}_{Z_{\zeta},x}$$
Remark: $X_{\zeta}$ might be possibly not more irreducible and therefore could have no more a unique generic point as $X$ have.
So the question why $min_{x \in X_{\zeta}} \dim \mathcal{O}_{Z_{\zeta},x}=\dim \mathcal{O}_{Z,\nu}$?
Can these considerations lead to an argument solving the problem? Or does there exist another standard method / tool / kind of a "dimension formula" to relate codimensions of integral subschemes and their corresponding generic fibers.
Remark: I have already asked this question in MSE without finding a satisfying solution: https://math.stackexchange.com/questions/3297166/dimension-formula-from-lius-ag-ac?noredirect=1&lq=1