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?