Assuming I have the statement ∀x(∀y¬Q(x,y)∨P(x)), can I pull the universal quantifier ∀y out of the parenthesis? Meaning, is this statement equivalent to ∀x∀y(¬Q(x,y)∨P(x)) ?
An approach I tried so far:
- ∀x((∃y Q(x,y) ) => P(x)). (original eq.)
- ∀x((∀y¬Q(x,y))∨P(x)) (De Morgan's application)
- ∀x∀y(¬Q(x,y)∨P(x)). (Working off the assumption that taking out the ∀y is a valid operation).
- ∀x∀y (Q(x,y) => P(x)) (Going backwards from the ¬P v Q definition of implication)
Statement 4 does not seem to be equivalent to statement 1, which suggests that pulling out the universal quantifier is not acceptable. I would greatly appreciate any confirmation of whether this is the case, and if so, what governs when quantifiers can be brought to the outside of the parenthesis.

The original expression: $\forall x~((\exists y~Q(x,y))\to P(x))$ says "For any $x$ it holds that if some $y$ satisfies $Q(x,y)$, then $P(x)$ is satisfied."
Now either consequent is true for all $x$ or, whenever it is false, the antecedent is also false (ie for that $x$ no $y$ can satisfy $Q(x,y)$). Thus the expression equates to: $\forall x~(\neg P(x)\to\forall y~\neg Q(x,y))$
The final expression: $\forall x~\forall y~(Q(x,y)\to P(x))$ says: "For any $x$ and $y$, it holds that if $Q(x,y)$ then $P(x)$."
Now either consequent is true for all $x$ or, whenever it is false, the antecedent is also false; moreover false for all $y$ when $P(x)$ is false for some $x$. Thus the expression equates to: $\forall x~\forall y~(\neg P(x)\to \neg Q(x,y))$
Therefore the original and final expressions are equivalent.