I trying to study for my final exam and I can't figure out how to solve this:
$\forall x(\neg p(x)\rightarrow q(x)), \forall z(p(z)\rightarrow r(z))\vdash \forall z(\neg r(z) \rightarrow\exists yq(y))$
This is what I have so far:
- $\forall x(\neg p(x)\rightarrow q(x))$
- $\forall z(\neg p(z)\rightarrow r(z))$
- $p(x_0)\rightarrow q(x_0)$ (using 1 and UE($S^x_{x_0}$))
- $p(x_0)\rightarrow r(x_0)$ (using 2 and UE($S^z_{x_0}$))
- $\neg p(x_0)\rightarrow r(x_0)$ (using 3, 4 and Hypothetical syllogism)
- $r(x_0) \vee q(x_0)$ (using 5)
- $\neg r(x_0) \rightarrow q(x_0)$ (using 6)
- $\forall z(\neg r(z)\rightarrow q(z))$ (using Universal Introduction)
But I can't reach $\forall z(\neg r(z) \rightarrow\exists yq(y))$
I can't find any theorem that I can use to put the $\exists$ in the middle of the $\forall$.
Can anyone help me?
Thank you
Your proof attempts to use Hypothetical Syllogism immediately after the two Universal Eliminations.
Before you can do that, you will need to use Contraposition, to get two conditionals in the correct form:
$$\lnot r(c)\to \lnot p(c)~,~\lnot p(c)\to q(c)~\vdash~\lnot r(c)\to q(c)$$
So that just leaves you with the steps to derive the required conditional from that.
$$\def\fitch#1#2{\quad\begin{array}{|l} #1\\\hline #2\end{array}} \fitch{~1.~\forall x~(\lnot p(x)\to q(x))\hspace{5.5ex}\text{Premise}\\~2.~\forall z~(p(z)\to r(z))\hspace{8ex}\text{Premise}}{\fitch{~3.~[~c~]\hspace{17.5ex}\text{Assumption}}{~4.~\lnot p(c)\to q(c)\hspace{8ex}\forall\text{E},1,3\\~5.~p(c)\to r(c)\hspace{9.5ex}\forall\text{E},2,3\\~6.~\lnot r(c)\to\lnot p(c)\hspace{6.5ex}\text{Contraposition},5\\~7.~\lnot r(c)\to q(c)\hspace{8ex}\text{Hypothetical Syllogism},6,4\\{\small\fitch{~8.~\ldots}{~9.~\ldots\\10.~\ldots}}\\11.~\lnot r(c)\to\exists y~q(y)\hspace{3.5ex}\to\!\text{I},8{-}10}\\12.~\forall z~(\lnot r(z)\to \exists y~q(y))\hspace{3ex}\forall\text{I},3{-}11}$$