Prove for the calculus of propositions: $$ A\rightarrow B\mapsto(B\rightarrow C)\rightarrow(A\rightarrow C) $$ I had used axioms and most suitable was this one: $$ X\rightarrow Y\rightarrow(X\rightarrow(Y\rightarrow Z)\rightarrow(X\rightarrow Z)) $$ (axiom2). Then I used Modus ponens rule and got this result: $$ A\rightarrow B,\ A\rightarrow B\rightarrow (A\rightarrow(B\rightarrow C)\rightarrow(A\rightarrow C))\\ A\rightarrow(B\rightarrow C)\rightarrow(A\rightarrow C) $$
Then I didn't understand, how to get $(B\rightarrow C)\rightarrow(A\rightarrow C)$. What axiom should I use or rule?
Using the Deduction Theorem:
$A \to B$ --- premise
$B \to C$ --- assumed [a]
$(B \to C) \to (A \to (B \to C))$ --- Ax.1
$A \to (B \to C)$ --- from 2) and 3) by Modus Ponens
$(A \to B) \to ((A \to (B \to C)) \to (A \to C))$ --- Ax.2
$((A \to (B \to C)) \to (A \to C))$ --- from 1) and 5) by Modus Ponens
$A \to C$ --- from 4) and 6) by Modus Ponens.