I'm self-studying mathematical logic from "Introduction to Mathematical Logic" by Detlovs and Podnieks (available free here under CC license). Unfortunately, it doesn't come with any solutions. I'm stuck trying to prove ⊢ A∨(A→B), from Exercise 1.4.2 (i) on page 43. The text appears to be using the Hilbert-style deduction method.
Relevant axioms (classical logic)
- $L_1: B \to (C \to B)$
- $L_2: (B \to (C \to D)) \to ((B \to C) \to (B \to D))$
- $L_6: B \to B \lor C$
- $L_7: C \to B \lor C$
- $L_8: (B \to D) \to ((C \to D) \to (B \lor C \to D))$
- $L_9: (B \to C) \to ((B \to \lnot C) \to ¬B)$
- $L_{10}: \lnot B \to (B \to C)$
- $L_{11}: B \lor \lnot B$
Relevant inference rules
- Modus Ponens
Attempt
- $(A \to A \lor (A \to B)) \to ((\lnot A \to A \lor (A \to B)) \to (A \lor \lnot A \to A \lor (A \to B)))$ --- $L_8$
- $A \to A \lor (A \to B)$ --- $L_6$
- $A \lor \lnot A$ --- $L_{11}$
- $(\lnot A \to A \lor (A \to B)) \to (A \lor \lnot A \to A \lor (A \to B))$ --- from (1) and (2) by MP
- $(\lnot A \to A \lor (A \to B)) \to A \lor (A \to B)$ --- from (3) and (4) by MP
- $(\lnot A \to (A \to A \lor (A \to B))) \to ((\lnot A \to A) \to (\lnot A \to A \lor (A \to B)))$ --- $L_2$
- $(\lnot A \to (A \to A \lor (A \to B)))$ --- $L_{10}$
- $(\lnot A \to A) \to (\lnot A \to A \lor (A \to B))$ --- from (6) and (7) by MP
I'm stuck at this point because $\lnot A \to A$ appears to be a contradiction. I'm also not sure whether this is the right approach. It looks alright at formula 5, but I'm not sure how to prove $\lnot A \to A \lor (A \to B)$, since it requires proving that $A \lor (A \to B)$ is always true, which is what we're trying to prove in the first place.
The text states that it can be solved using 14 formulas, 13 being the shortest yet.

I assume that you are forced not tu use the Deduction Theorem.
But you can use the so-called Law of Syllogism (transitivity of $\to$).
If so, here is a sketch of a derivation:
$\vdash A \to (A \lor (A \to B))$ --- L6
$\vdash \lnot A \to (A \to B)$ --- L10
$\vdash (A \to B) \to (A \lor (A \to B))$ --- L7
$\vdash \lnot A \to (A \lor (A \to B))$ --- from 2. and 3. by Syllogism.
Now we can "cook them" together using L8:
Now, from 5., 1. and 4. by MP twice:
Finally, using L11: $\vdash A \lor \lnot A$, by MP: