prove ∃x (P(x) => Q(x)) = ∀x P(x) => ∃x Q(x)
∃x (P(x) => Q(x))
= ∃x (¬P(x) ∨ Q(x)) ----- (1)
= ∃x(¬P(x)) ∨ ∃xQ(x) ----- (2)
= ¬∀xP(x) ∨ ∃xQ(x) ----- (3)
= ∀x P(x) => ∃x Q(x) ----- (4)
From line 2 to line 3, we use demorgan law to convert the existential to universal.
From line 3 to line 4, apparently is P => Q === ¬P ∨ Q However, it doesnt make sense to me.
Because ∀x P(x) => ∃x Q(x) should be ∀x¬P(x) ∨ ∃x Q(x) and not ¬∀xP(x) ∨ ∃xQ(x)
Please tell me how to do this or what i am misunderstanding. thank you
No, your comprehension is wrong. Notice that $\forall x\left(P(x)\right)$ is simply one statement, and it's negation is $\exists x\left(\neg P(x)\right)$ and not $\forall x\left(\neg P(x)\right)$. Simply, it is by logic rules.