I'm reading Kenneth Rosen's Discrete Mathematics and its Applications. An excerpt for explaining how the truth table for "$p$ only if $q$" may be filled goes as follows:
“p only if q” says that p cannot be true when q is not true. That is, the statement is false if p is true, but q is false. When p is false, q may be either true or false, because the statement says nothing about the truth value of q.
We get the following truth table from that justification. $$\begin{array}{|c|c|c|} \hline p&q&p\Rightarrow q\\ \hline T&T&T\\ T&F&F\\ F&T&T\\ F&F&T\\\hline \end{array}$$
My confusion is related to "$q$ if $p$" resulting in the same table As far as I understand, "$q$ if $p$" implies $q$ can be true if $p$ is true or even if it isn't, which would fill the truth table like so:
$$\begin{array}{|c|c|c|} \hline p&q&p\Rightarrow q\\ \hline T&T&T\\ F&T&T\\\hline \end{array}$$
Following Rosen's When p is false, q may be either true or false, because the statement says nothing about the truth value of q. Can I say when $q$ is false, $p$ may either be true or false, because the statement says nothing about the truth value of $p$? But that results in the wrong truth table, can someone explain what I'm missing here?
Short answer : " Q, if P" would be false in case ...
You may just complete the sentence and put the truth-value " F" on the corresponding row(s) of the truth-table. Put " T" on all other rows, for whenever a sentence is not false, it is true, by default.
\begin{array}{|c|c|c|} \hline p&q&p\Rightarrow q\\ \hline T&T&T\\ F&T&T\\\hline \end{array}
A principle that can be helpful here is :
The only case in which we would be entitled to say that John is wrong is the case where P is true, and where, in spite of that, Q is not true.
Only the occurrence of such a case would show John was wrong in asserting that Q is always true when P is true, or, if you prefer, that " P is a sufficient conditon for Q to be true" ( For john didn't say more than this).
Since the case ( T,F) is the only falsity condition, the conditional is true in all other possible cases.