I'm reading through Derek Goldrei's "Propositional and Predicate Calculus" book and I've come across an exercise problem that states to show the derivation of "$\vdash{(\lnot\lnot{p}\to{p})}$" using these three axioms:
$$(\phi\to{(\psi\to{\phi}))}$$ $$((\phi\to{(\psi\to{\theta}))}\to{((\phi\to{\psi})\to{(\psi\to{\theta})})}$$ $$((\lnot\phi\to{\lnot\psi})\to{(\psi\to{\phi})})$$
As well as the deduction theorem. I searched through Stack Exchange and found some answers. However, the note the author gives states:
Our private solution includes use of Ax 1, Ax 3, Modus Ponens, and the deduction theorem.
And so far every solution posted here contains solutions that either use lemmas not yet introduced, or the use of other axioms. My question is how would one derive the formula using only the first and third axiom, modus ponens, and the deduction theorem only. This is what I have so far:
$$\begin{align} &(0)\quad\vdash{(\lnot\lnot{p}\to{p})}&&\text{. . .}\\ &(1)\quad\lnot\lnot{p}\vdash{p}&&\text{Deduction Theorem}\\ \\ &(2)\quad\lnot\lnot{p}&&\text{Assumption}\\ &(3)\quad(\lnot\lnot{p}\to{(p\to{\lnot\lnot{p}})})&&\text{Ax 1}\\ &(4)\quad(p\to{\lnot\lnot{p}})&&\text{MP 2, 3} \end{align} $$
I just feel stuck as to where to go next, or if I even started off correctly. A solution is not required, just a step in the right direction could help.