$(p \land (p \implies q) \land (q \implies r)) \implies r$
It is written slightly different in the text book, but this should be the equivalent form. The book is a bit unclear but I think the author wants to transform the previous eqution into
$r \implies r$ which is always true.
The proof:
1) $p$
2) $p \implies q$
3) $q \implies r$
4) $q$ (modus ponens 1 and 2)
5) $r$ (modus ponens 4 and 3)
I don't understand step 4 and 5. The author uses modus ponens with 1 and 2 to get to $q$. But they are not the same thing.
$(p \implies q) \land p$ to me is the same thing as $p \land q$ and not just $q$
What am I missing here?