Discrete Math question... will type equation, but I need to prove this using logical equivalences
\[[(p V q) \rightarrow r]\rightarrow[(p \rightarrow r) \Lambda (q \rightarrow r)]\]
Do you know what a truth table is?
vaguely
You have 3 variables: p,q, and r To calculate the number of rows you will need for this truth table you do 2^(number of variables) Then do all possible combinations for p,q, and r and I mean like TTT, TTF, and so on...
Once you set that part we will look at each little expression inside the statement
so 8 rows
I mean like the P or Q thing then the (P or Q) then r thing then we will go to the other side of the implication which I think you actually meant to put an equivalent sign instead of ->
this is how the problem was typed out for me
right don't you agree there will be 8 possible combinations? pqr ---- TTT TTF TFF TFT FTT FTF FFF FFT
ahhh!!! yes!
good with that
now for each of those combinations decide if "P or Q" is T or F
We are doing this because this in the statement
sorry, that is where you are losing me...
and i don't mean to change the capital to lower case you have in the table this already pqr ---- TTT TTF TFF TFT FTT FTF FFF FFT =============================== now we are going to another column using what we already have in the rows to decide what p or q is -------- pqr p or q ---- ______ TTT TTF TFF TFT FTT FTF FFF FFT
for the first row you are given p and q are both true so is p or q true?
can it be both?
http://en.wikipedia.org/wiki/Truth_table check out this table it gives you the definition (or logic) of the conjunctions and implications this or is the inclusive or which means it can be both the exclusive or will show an F when both are true
pqr p or q ---- ______ TTT T TTF T TFF T TFT T FTT T FTF T FFF T FFT T
OOPS!
pqr p or q ---- ______ TTT T TTF T TFF T TFT T FTT T FTF T FFF F FFT F
yeah great correction
now lets look at the whole left side of the implication
got going and then for got where to switch
ok
pqr p or q (p or q) then r ---- ______ ----------- TTT T TTF T TFF T TFT T FTT T FTF T FFF F FFT F
you should see why we did one whole column for the p or q part now we needed that column for this new column
pqr p or q (p or q) then r ---- ______ ----------- TTT T T TTF T T TFF T F TFT T T FTT T T FTF T F FFF F T? FFT F F
do you know why the second row is wrong?
yes...
geez! sorry!
\[ \begin{array}{|c|c|c|c} P & Q & R & (P\lor{}Q)\to R \\ \hline T & T & T & T \\ T & T & F & F \\ T & F & T &T \\ T & F & F & F \\ \hline F & T & T & T \\ F & T & F & F \\ F & F & T & T \\ F & F & F &T \\ \hline \end{array} \] do you know how long it took me to do this? can i have a cookie?
you have a true if part and a false then part
it's okay @teach3.14 these truth tables can get long and sometimes everyone including i make a mistake seeing all these F and T make me dizzy and crazy
it looks very nice @satellite73
yes hes a show off
:)
just send me the cookie i will be on my way
cookie given ok so now we need to go on the other side of the implication
and idea where to start there?
any*
\[p \rightarrow r\]
sounds great you are working on the logic that we should do whats in the grouping symbols great
ok so we need to make a new column for that
then a new column for q then r then a new column for the whole right side
wait a sec, was his table correct? aren't lines 6 & 7 switched around for the (p v q) ->r?
let me take a look
looks like you are right about row 6 column 4
but everything else is right
pqr p or q (p or q) then r p then r q then r ---- ______ ----------- ___________ --------- TTT T T T T TTF T F F F TFF T F F T TFT T T T F FTT T T F T FTF T F T F FFF F T T T FFT F F F F
including the row 7 part just the row 6 column 4
in his table*
ok good, I got worried for a second, thought I was following along!
5th and last line for the p then r 4th and last
if=false and then=true then the if then statement is true
i know that is weird sounding but that is logic
4th and last for q then r*
so the p and the q are like the if and the then?
and did you change values for the (p or q) then r thing?
for that column check out the 2nd row and last row
ok, I am afraid I am off on where we are now...
is this correct? pqr p or q (p or q) then r p then r q then r ---- ______ ----------- ___________ --------- TTT T T T T TTF T F F F TFF T F F T TFT T T T T FTT T T T T FTF T F T F FFF F T T T FFT F F T T
ok look at the last row for (p or q) then r and that is all i can see
pqr p or q (p or q) then r p then r q then r ---- ______ ----------- ___________ --------- TTT T T T T TTF T F F F TFF T F F T TFT T T T T FTT T T T T FTF T F T F FFF F T T T FFT T F T T
ok no....you change the wrong value
ok good, cause I didn't think that was right!
I was talking about the last row for (p or q) then r
pqr p or q (p or q) then r p then r q then r ---- ______ ----------- ___________ --------- TTT T T T T TTF T F F F TFF T F F T TFT T T T T FTT T T T T FTF T F T F FFF F T T T FFT F T T T
beautiful :)
now the last column
last column should be a pretty easy one i love and
pqr p or q (p or q) then r p then r q then r p and q ---- ______ ----------- ___________ --------- _________ TTT T T T T T TTF T F F F F TFF T F F T F TFT T T T T F FTT T T T T F FTF T F T F F FFF F T T T T FFT F T T T F
?
we don't care about p and q we care about (p then r) and (q then r)
ahhh
for example p then r is T in the first row q then r is T is in the first row so the and of those parts is also T in the first row
lol if you just want to write that column that is fine because i think you have ran out of room
pqr p or q (p or q) then r p then r q then r p then r and q then r ---- ______ ----------- ___________ --------- ____________________ TTT T T T T T TTF T F F F T TFF T F F T F TFT T T T T T FTT T T T T T FTF T F T F F FFF F T T T T FFT F T T T T
err i can't really read it i'm sorry but in order for an and statement to be true both parts must be true all other cases write F
so ONLY if the are BOTH true?
you should notice something about the (p or q) then r column and also the (p then r) and (q then r) column what do you know about each value for each row right!
you can answer my question after you are done fixing the table
actually when you are done i will probably restate me question to help better guide
pqr p or q (p or q) then r p then r q then r p then r and q then r ---- ______ ----------- _________ --------- _________________ TTT T T T T T TTF T F F F F TFF T F F T F TFT T T T T T FTT T T T T T FTF T F T F F FFF F T T T T FFT F T T T T
I think I was actually correct
:)
so you must right down this whole true table that you have built (this work is for your instructor) what i would do is highlight the boxes that we want to compare which is (p or q) then r | (p then r) and (q then r) T T F F F F T T T T F F T T T T
they match
if you actually had a highlighter and i was you i would highlight these two columns these columns are the important columns as they help us determine if the statements are logically equivalent
since they match they are logically equivalent
if they had one single mismatching and they are not logically equivalent and you would piss off any Vulcan
awesome! thanks!
you did great you put in a lot of work you deserve a medal also for all your hard work you should try working some truth tables more too to get more practice also remember if you have and if then statement.... if=false and then=true --- the statement is true if=false and then=false --- the statement is true for "and statements" you need to just remember that you must have both parts true for the statement to be true
thank you for taking the time to walk me though that! I will try to practice some more!
and of course if you have: if=true and then=true then the if then statement is totally true I didn't say that above because that one i think is obvious
:)
have a goodnight and good luck
Join our real-time social learning platform and learn together with your friends!