I have to remove the existential quantifier from the following formula:
$$\exists i\left[\left(i \geq 0\right) \land \left(z-2i = 0\right) \land \left(y+i=x\right)\right]$$
First I make some simple transformations:
$$\exists i\left[\left(i \geq 0\right) \land \left(\frac{z}{2} =i\right) \land \left(x-y=i\right)\right]$$
We can get rid of $\exists i \geq 0$ because we can simply pick such an $i$
So we can move the existential quantifier inwards and arrive at:
$$\left(\frac{z}{2} \geq 0\right) \land \left(x-y \geq 0\right)$$
Is this a valid way to get rid of the existential quantifier?
In formal logic, the way to "get rid" of an existential quantifier is through the so-called $\exists$-elimination rule; see Natural Deduction.
If you have proved or assumed that $\exists x \phi(x)$, you can procede assuming $\phi(n)$, provided that $n$ is new, i.e.there are no other assumptions in your proof that use $n$ [this corerspond to the "intuitive" way of reasoning: I know that a number exists such that $\phi$; call it $n$].
Then, from assumption $\phi(n)$ you derive a statement $\psi$.
If $\psi$ does not use $n$, you can discharge (i.e."remove") the assumption $\phi(n)$ and you have obtained a proof of $\psi$ from $\exists x \phi(x)$, i.e.
In your application, you have assumed $i$ such that $i \ge 0$; then you have derived the two inequalities $\psi_1$ and $\psi_2$ that do not include $i$ any more; so you can say that :