I'm having a hard time understanding why
\begin{equation}\frac{\partial x}{\partial y}\frac{\partial y}{\partial z}\frac{\partial z}{\partial x}=-1 \tag{1}\label{1} \end{equation}
Wikipedia provides this derivation. I have two problems with it.
The proof starts by stating that there is a function f such that $f(x,y,z)=0$ and that $z$ can be made a function of $x,y$. Furthermore it states that there can be found a curve, along which $dz=0$ and $y$ is a function of $x$, such that we can then write the differential of $z$ in terms of the differential of $x$ as
$$dz=\frac{\partial z}{\partial x}dx+\frac{\partial z}{\partial y}\frac{\partial y}{\partial x}dx$$
The rest follows naturally from setting $dz=0$ and multiplying some partial derivatives by their inverses.
I have two problems with this proof
1.Chain rule
The first one is that since \begin{equation} \tag{2} \label{2} \frac{\partial z}{\partial x}=-\frac{\partial z}{\partial y}\frac{\partial y}{\partial x} \end{equation} That would mean that, by chain rule, $$\frac{\partial z}{\partial x}=-\frac{\partial z}{\partial x}$$ which would imply this partial derivative to be zero. However if this is true, \ref{1} yields $0=-1$. Is the chain rule not valid in this case? If so, why?
2.Inverse of the partials
The second is that, while applying the last step, it is implied that we obtain \ref{1} by multiplying by the inverse of the righthand-side in \ref{2}. I thought the relationship
$$\frac{\partial y}{\partial x}=\frac{1}{\frac{\partial x}{\partial y}}$$ was in general not true, as pointed out in this post. Is it true in this case? And if so, why is that?
Also, if that really is the case, then using the chain rule again yields, from \ref{1},
$$\frac{\partial x}{\partial z}\frac{\partial z}{\partial x}=-1 \iff 1=-1$$
What am I doing wrong?