I was studying first order predicate logic and discovered tha:
$$\Sigma \vdash (\exists y \theta(x,y)) \to \psi(x)$$
is NOT the same as:
$$\Sigma \vdash \exists y ( \theta(x,y) \to \psi(x) )$$
which came to me as very big surprise. I do blind symbol crunching by recalling $p \to q $ is a short hand for $\neg p \lor q$, the reason is pretty obvious. Since:
$$ \Sigma \vdash (\exists y \theta(x,y)) \to \psi(x) $$
equivalent to:
$$ \Sigma \vdash \neg (\exists y \theta(x,y)) \lor \psi(x)$$ $$ \Sigma \vdash \neg (\exists y \theta(x,y)) \lor \psi(x)$$ $$ \Sigma \vdash \forall y \neg \theta(x,y) \lor \psi(x)$$ $$ \Sigma \vdash \forall y ( \neg \theta(x,y) \lor \psi(x))$$
and finally the expression that surprised me most and was most troubling to me:
$$ \Sigma \vdash \forall y ( \theta(x,y) \to \psi(x))$$
I would have not guessed that was equal to the original $\Sigma \vdash (\exists y \theta(x,y)) \to \psi(x)$ while $\Sigma \vdash \exists y ( \theta(x,y) \to \psi(x))$ is not the same. So we can't just pull out the quantifier if it's on the antecedent (but you can in the consequent). I was told by my professor that this should be obvious and if it wasn't that there was some intuitive misunderstanding of what implication means. He wasn't helpful so here I am.
So what is the intuition for why this happens? What misunderstanding do I have of implications with quantifiers? What is the proper way to understand implications with quantifiers? Whats a good foundation for this?
My main concern is that:
$$\Sigma \vdash (\exists y \theta(x,y)) \to \psi(x) \iff \Sigma \vdash \forall ( y \theta(x,y)) \to \psi(x)$$
is true while I thought it was "obvious" that:
$$\Sigma \vdash (\exists y \theta(x,y)) \to \psi(x) \iff \Sigma \vdash \exists ( y \theta(x,y)) \to \psi(x)$$
is true. But this second one is false and concerns me because it should have been obvious.
Attempt to explain my current understanding:
I think there is plenty of explanations of implications online, which I understand. My favorite one is explaining implications as a promise and one explores if the promise holds or not. So if $A \to B$ is an implication, then if $A$ is False but $B$ was True or False, then there is no lie, so the implication is true. Something true to something true is obviously ok and if the antecedent is false but leads to a truth then the statement is a lie. It makes sense.
For me also Modus Ponens (MP) makes implications make a lot of sense. If we have the implication IS true and the antecedent is true, then we do have "causation". Which is how I think of implications in the context of "causation" (inference rules).
Beyond that I am not sure what else I missed...anyone has an insight they can share with me please? This has had me extremely concerned for days...
Ok now I tried thinking about the opposite because the first answer seemed helpful but noticed that I am even more confused. i.e. whats going on in the case:
$$ (\forall y \varphi(x,y) ) \to \psi(x) $$
why is it equivalent to:
$$ \exists y (\varphi(x,y) \to \psi(x) ) $$
The intuition you should have is just that a conditional means "the consequent is true if the antecedant is."
$(\exists y~\phi(y))\to \psi$ means, "$\psi$ is true if there is a $y$ that satisfies $\phi(y)$."
$\forall y~(\phi(y)\to \psi)$ means "for any $y$, $\psi$ is true if that $y$ satisfies $\phi(y)$"
Which make the same guarantee about $\psi$ being true.