Given the following axioms $$\begin{aligned}&1. p\Rightarrow (q\Rightarrow p)\\&2. [p\Rightarrow (q\Rightarrow r )] \Rightarrow [(p\Rightarrow q)\Rightarrow (p\Rightarrow r)]\\&3. \neg\neg p \Rightarrow p \end{aligned}$$ and the deduction rule of modus ponens, I want to prove that $$p\vdash \neg\neg p$$ and should therefore use the Deduction Theorem.
Has anyone a hint how to start?
I will outline the basic idea of the proof, but you can formalize it. We set, $q\equiv(\neg \neg p \to p)$ and, $r \equiv (\neg \neg p)$ and let $p \equiv p$. Then, by axiom 2, we have that
$$[p \to (q \to r)] \to [(p \to q)\to (p \to r)]$$
is equivalent to
$$[p \to ((\neg \neg p \to p) \to (\neg \neg p))] \to [(p \to (\neg \neg p \to p))\to (p \to (\neg \neg p))]$$
On the LHS, since we assumed $p$, we now have $(\neg \neg p \to p) \to (\neg \neg p)$. By axiom 1, this also holds. Therefore, the RHS of the sentence must also hold.
Now, we consider the RHS. The LHS of the RHS holds by axiom 1 as well. Hence, we then get the RHS of the RHS must hold, which is $(p \to \neg \neg p)$, i.e. the statement we are trying to prove.
Note: If this post is too confusing, I will be glad to rewrite it in the morning.