I'm trying to prove the following tautologies:
\begin{align} & ⊢ (A \to (B \to A)) \\ & ⊢ ((A \to B) \to A) \to A \end{align}
For the first one, what I did was:
- $A$ assumption
- $B$ assumption
- $A$ restated
- $B \to A$ arrow-introduction of 2 and 3
- $A \to (B \to A)$ arrow-introduction of 1-4
But this doesn't look right to me.
For the second one, here's what I have so far:
- ((A --> B) --> A) assumption
- A --> B assumption
- A arrow-elimination of 1 and 2
You've solved the first, so here are two ways of proving the second one. 'Taut Con' is modus tollens.
I've taken the liberty of typing Git Gud's alternative proof more explicitly here (please vote his answer up if you too find it insightful). It highlights the connection to the law of excluded middle and is economical in its use of special rules (e.g. doesn't appeal to modus tollens). Here it is:
Another way would be to prove the contrapositive, using just $\rightarrow$-intro & Reit: