I am trying to prove
$$[(p\to q)~\&~(q\to r)]\to (p\to r) $$
is a tautology using only logical laws. I have gotten part-way there but I got stuck and am not sure how to proceed.
Please state any laws that you use in your answers so that I can reference them.
~ = NOT
& = AND
V = OR
-> = IMPLIES
The Proof:
$$\begin{array}{ll} [(p\to q)~\&~(q\to r)]\to (p\to r); & \text{Given} \\ \sim[(\sim p\vee q)~\&~({\sim} q\vee r)]~\vee~({\sim} p\vee r); & \text{Material Implication} \\ [{\sim}({\sim} p~\vee~ q)\vee{\sim}({\sim} q\vee r)]\vee({\sim} p\vee r); & \text{DeMorgan's Law} \\ [(p~\&\,{\sim} q)\vee(q~\&\,{\sim} r)]\vee({\sim} p\vee r); & \text{DeMorgan's Law} \end{array}$$
[]
and the()
around~pVr
becauseV
is associative. $\endgroup$V
and&
do not work together that nicely. $\endgroup$