I want to prove (or to find a reference to) the following statement:
Statement:
Let $Z$ be an irreducible locally closed set (Zariski topology) of $\mathbb C^n$ and $\pi$ be a projection on the first $l$ coordinates (the values of $l$ is not important). Assume that there exists $d$ such that $\dim\pi^{-1}(\pi(z))\geq d$ for all $z\in Z$. Then $$ \dim \pi(Z)\leq \dim Z - d.\ \ \ \ \ \ (1) $$
I found several versions of the fiber dimension theorem, but they cannot be applied directly to my case since $Z$ is always assumed to be a variety.
For example, Theorem 3.7 on p.78 in Perrin D., Algebraic Geometry.. an introduction, Springer 2008 says (I omit statement 1))
Theorem 3.7
Let $\phi:\ X\rightarrow Y$ be a dominant morphism of irreducible algebraic varieties. Then there exists a non-empty open set $U\subset Y$ such that
a) $U\subset \phi(X)$
b) $\forall y\in U$, $\dim \phi^{-1}(y)=\dim X-\dim Y$.
Question: Is the following derivation of the statement above from Theorem 3.7 correct?
Since $Z$ is a locally closed set, there exist polynomials $p_1,\dots,p_k$ and $q_1,\dots,q_m$ in $n$ variables such that $$ Z=\{z\in\mathbb C^n:\ p_1(z)=\dots=p_k(z)=0\ \text{ and }\ q_1(z)\ne 0\ \text{ or }\ q_2(z)\ne 0\ \text{ or } \ \dots q_m(z)\ne 0\}. $$ Since $Z$ is irreducible, $m=1$, that is $$ Z=\{(z_1,\dots,z_n):\ p_1(z_1,\dots,z_n)=\dots=p_k(z_1,\dots,z_n)=0\ \text{ and }\ q(z_1,\dots,z_n)\ne 0\}. $$ We extend $Z$ to a Zariski closed subset $\widetilde{Z}\subset \mathbb C^{n+1}$: \begin{equation*} \begin{split} \widetilde{Z}=\{(z_1,\dots,z_n, z_{n+1}):\ &p_1(z_1,\dots,z_n)=\dots=p_k(z_1,\dots,z_n)=0\ \text{ and }\\ &z_{n+1}q(z_1,\dots,z_n)=1\}. \end{split} \end{equation*} It is clear $Z=\pi_{1,\dots,n}\widetilde{Z}$ (projection onto the first $n$ coordinates). On the other hand, $\widetilde{Z}$ is the image of $Z$ under the mapping $(z_1,\dots,z_n)\in Z\mapsto (z_1,\dots,z_n,\frac{1}{q(z_1,\dots,z_n)})\in\widehat{Z}$. Hence, $\dim Z=\dim\widetilde{Z}$. Thus, we can apply Theorem 3.7.