Using only the 3 axioms
1) (φ → (ψ → φ ))
2) ((φ→(ψ →χ))→((φ→ψ)→(φ→χ)))
3) ((¬φ → ¬ψ ) → (ψ → φ ))
and Modus Ponens (in a language consisting of only $\neg$ and $\to$), prove the following
1) ¬q → ¬p, p $\vdash$ r → q
and
2) p→q $\vdash$ (r→p)→(r→q)
I found this problem in "a Concise Introduction to Logic" and I'm not sure how to go about it. I'm used to using natural deduction to construct these types of proofs, but that doesn't suffice in this problem.
I tried a lot of different combinations of the axioms and Modus Ponens, but nothing yielded any progress. Any help would be great, thank you in advance!
For
1) $¬q → ¬p$ --- 1st premise
2) $p$ --- 2nd premise
3) $(¬q → ¬p) → (p → q)$ --- Ax.3
4) $p → q$ --- from 1) and 3 by Modus Ponens
5) $q$ --- from 2) and 4) by MP
6) $q \to (r \to q)$ --- Ax.1
Similar for the second one, assuming the temporary premises $(r \to p)$ and $r$ and using the Deduction Th.