Simple Logic Truth Table Needs Checking

Hotsuma
Messages
41
Reaction score
0
Dear All,

Having trouble with a seemingly simple logic truth table. Are these answers correct?

\begin{tabular}{| c | c | c | c | c | c |}<br /> \hline<br /> p &amp; q &amp; r &amp; (p \vee q)\wedge(q \vee r) &amp; (\neg p \wedge q) \vee ( p \wedge \neg r) &amp; p \rightarrow q \rightarrow r\\<br /> \hline<br /> T &amp; T &amp; T &amp; T &amp; F &amp; T \\<br /> T &amp; T &amp; F &amp; T &amp; T &amp; F \\<br /> T &amp; F &amp; T &amp; T &amp; F &amp; T \\<br /> T &amp; F &amp; F &amp; F &amp; T &amp; F \\<br /> F &amp; T &amp; T &amp; T &amp; T &amp; T \\<br /> F &amp; T &amp; F &amp; T &amp; T &amp; F \\<br /> F &amp; F &amp; T &amp; F &amp; F &amp; T \\<br /> F &amp; F &amp; F &amp; F &amp; F &amp; T \\<br /> \hline<br /> \end{tabular}
 
Physics news on Phys.org
Hi Hotsuma, I think the and/or/not parts are ok, but for the last part I think it would be

<br /> \begin{tabular}{| c | c | c | c } <br /> \hline <br /> p &amp; q &amp; r &amp; p \rightarrow q \rightarrow r\\<br /> \hline<br /> T &amp; T &amp; T &amp; T \\<br /> T &amp; T &amp; F &amp; F \\<br /> T &amp; F &amp; T &amp; F \\<br /> T &amp; F &amp; F &amp; F \\<br /> F &amp; T &amp; T &amp; T \\<br /> F &amp; T &amp; F &amp; T \\<br /> F &amp; F &amp; T &amp; T \\<br /> F &amp; F &amp; F &amp; T \\<br /> \hline\end{tabular}

This effectively has 2 tests, it first requires that if p then q, if this is satisfied the the further condition that if q then r must be satisfied

In the 3rd case, as p is T and q is F, then the line is FALSE as the first condition is not satisfied

For the last 4 cases as p is F then the line is T by default, and we don't go any further - its a vacuous truth

what do you think?
 
Last edited:
Dear lanedance,

I considered this but wasn't sure if that was correct or not. What you described to me in your past post could be written as "if p then q" and "if q then r," which I don't think is the same thing, or rather, I'm not sure whether it is or is not. Thanks for the suggestion though, having someone else recommend what I was thinking is always appreciated.
 
And I'd love to prove that the two are tautologies, but since I am not sure about the former, that doesn't really help me much :(.


(p \rightarrow q) \wedge (q \rightarrow r) \equiv p \rightarrow q \rightarrow r
 
Hotsuma said:
Dear lanedance,

I considered this but wasn't sure if that was correct or not. What you described to me in your past post could be written as "if p then q" and "if q then r," which I don't think is the same thing, or rather, I'm not sure whether it is or is not.

I don't think is is exactly the same thing, take the case:
p = F
q = T
r = F

this gives the following:

p \rightarrow q
True - vacuously as P is False

q \rightarrow r
False

(p \rightarrow q) \wedge (q \rightarrow r)
False

p \rightarrow q \rightarrow r
True - vacuously as P is False
 
Last edited:
There is a problem here. Implication is not an associative connective. i.e.

(p \rightarrow q) \rightarrow r \not\equiv p \rightarrow (q \rightarrow r)

so the meaning of p \rightarrow q \rightarrow r is ambiguous.

(Consider the case where p = F, q = T, r = F.)

Unless there is an assumption about the order of execution of multiple implications, the last column could be evaluated differently (either TFTTTFTF or TFTTTTTT).

--Elucidus
 
Yeah, that was my fear. I e-mailed the professor at like 4PM but he has not yet responded (nor do I expect him to).
 
Back
Top