show that \(q \rightarrow p \equiv (p\rightarrow q)\rightarrow(q\rightarrow p)\) without using truth tables
Remember that \[p\rightarrow q\]Is just \[\neg p \vee q\]
so this becomes \[\neg(p \rightarrow q) \vee (q \rightarrow p)\] then... \[\neg (\neg p \vee q) \vee (\neg q \vee p)\] then... \[(p \wedge q) \vee (\neg q \vee p)\] then...?
that, and some demorgan should do it
the third line should be \[(p\land \lnot q)\lor (\lnot q \lor p)\]
oh yes
i still don't know what to do next though
i am thinking of how to do it with symbols the first statement is evidently contained in the second, so visually you end up with \[\lnot q \lor p\] which is what you want
i cannot see how to achieve that...
i hate this crap, i think you have to distribute. let me see if i can do it with paper
on no, it is "absorption" law
seems i can use commutative here... \[(\neg q \vee p) \vee (p \wedge \neg q)\] then... \[((\neg q \vee p) \vee p) \wedge ((\neg q \vee p)\wedge \neg q)\]
wait... it should be a wedge at the last part
\[((\neg q \vee p) \wedge ((\neg q \vee p) \vee \neg q)\]
hmm missed something again
\[((\neg q \vee p) \vee p) \wedge ((\neg q \vee p) \vee \neg q)\] much better
so if i commute again... \[(p \vee (\neg q \vee p)) \wedge (\neg q \vee (\neg q \vee p))\] then... \[(p \vee (\neg q \vee p)) \wedge ((\neg q \vee \neg q) \vee p)\] then... \[(p \vee (\neg q \vee p)) \wedge (\neg q \vee p)\] hmm
ok i think i have it
then... \[(p\vee(\neg q \vee p) \wedge \neg q) \vee (p\vee (\neg q \vee p) \vee p)\] then... \[(p\vee(\neg q \vee p) \wedge \neg q) \vee (p\vee p \vee(\neg q \vee p))\] then... \[(p\vee(\neg q \vee p) \wedge \neg q) \vee (p\vee (\neg q \vee p))\] then...
what did you get?
this is what i did, and it took me a couple minutes to make the replacement the distributive law say \[p\lor (q\land r)\equiv (p\lor r)\land (p\lor q)\] i wrote the first line as \[(q\land r)\lor p\equiv (p\lor r)\land (p\lor q)\] then i made the replacements \(p\) i replace by \(\lnot q \lor r\) \(q\) i replace by \(p\) and \(r\) i replace by \(\lnot q\)
a direct substitution have me \[(\lnot q \lor p \lnot q)\land (\lnot q \lor p \lor p)\]
crap i meant \[(\lnot q \lor p\lor \lnot q)\land (\lnot q \lor p \lor p)\]
this is continued from what step?
nevermind
\[(p\land \lnot q)\lor (\lnot q \lor p)\]
\[(p\land \lnot q)\lor (\lnot q \lor p)\equiv (\lnot q \lor p\lor \lnot q)\land (\lnot q \lor p \lor p)\] by the substitutions i wrote above
ah i think im beginning to see what you mean
it took me a couple minutes to figure out the substitution to use, because i hate this crap it is completely obvious that \(p\land \lnot q\) is entirely contained in \(\lnot q \lor p\) just like \(A\cap B\) is contained in \(A\cup B\)
the substitutions are always the hard part
try the substitution i wrote above, see if you get the same thing. i believe it will work, although i believe since it is so completely trivial that there is a snappier way to do it
yeah, that is the hard part
Join our real-time social learning platform and learn together with your friends!