
The Pennsylvania State University
90% will say “valid” but it is invalid.
Many will say “valid” but it is invalid.
Informal tests (logical intuition, logical imagination) have problems
Definition
A truth table for PL is a table that provides a graphical way of representing valuations of wff(s) under a set of interpretations.
\[ \begin{array}{c|c} \phi & \neg (\phi)\\ \hline T & F\\ F & T \end{array} \]
\[ \begin{array}{c c|c c c c} \phi&\psi&\phi\wedge \psi&\phi\vee \psi&\phi \to \psi&\phi\leftrightarrow \psi\\ \hline T&T&T&T&T&T\\ T&F&F&T&F&F\\ F&T&F&T&T&F\\ F&F&F&F&T&T \end{array} \]
Step 3?
Step 3 is precise but not intuitive.
Let’s create a truth table for this wff: \(P\land \neg Q\)
\[ \begin{array}{c c|c c c c} P&Q &P& \land & \neg & Q\\\hline T&F & & & \\ \end{array} \]
\[ \begin{array}{c c|c c c c} P&Q &P& \land & \neg & Q\\\hline T&F & & & \\ \end{array} \]
write the T-values under the letters of \(P\land \neg Q\).
\[ \begin{array}{c c|c c c c} P&Q &P& \land & \neg & Q\\\hline T&F &T & & &F\\ \end{array} \]
\[ \begin{array}{c c|c c c c} P&Q &P& \land & \neg & Q\\\hline T&F &T & & &F\\ \end{array} \]
Assign truth values to the subformulas in the order in which you constructed the formula
\[ \begin{array}{c|c} \phi & \neg (\phi)\\ \hline T & F\\ F & T \end{array} \]
\[ \begin{array}{c c|c c c c} \phi&\psi&\phi\wedge \psi&\phi\vee \psi&\phi \to \psi&\phi\leftrightarrow \psi\\ \hline T&T&T&T&T&T\\ T&F&F&T&F&F\\ F&T&F&T&T&F\\ F&F&F&F&T&T \end{array} \]
\[ \begin{array}{c c|c c c c} P&Q &P& \land & \neg & Q\\\hline T&F &T & & &\color{blue}{F}\\ \end{array} \]
\[ \begin{array}{c|c} \phi & \neg (\phi)\\ \hline T & F\\ F & T \end{array} \]
\[ \begin{array}{c c|c c c c} P&Q &P& \land & \neg & Q\\\hline T&F &T & & \color{blue}{T}&F\\ \end{array} \]
\[ \begin{array}{c c|c c c c} P&Q &P& \land & \neg & Q\\\hline T&F &\color{blue}{T} & & \color{blue}{T}&F\\ \end{array} \]
\[ \begin{array}{c c|c c c c} \phi&\psi&\phi\wedge \psi&\phi\vee \psi&\phi \to \psi&\phi\leftrightarrow \psi\\ \hline \color{blue}{T}&\color{blue}{T}&\color{blue}{T}&T&T&T\\ T&F&F&T&F&F\\ F&T&F&T&T&F\\ F&F&F&F&T&T \end{array} \]
\[ \begin{array}{c c|c c c c} P&Q &P& \land & \neg & Q\\\hline T&F &T & \color{blue}{T}& T&F\\ \end{array} \]
What is the truth value of \(P\land \neg Q\)? \[ \begin{array}{c c|c c c c} P&Q &P& \land & \neg & Q\\\hline T&F &T & \color{blue}{T}& T&F\\ \end{array} \]
The truth value of \(P\land \neg Q\) is under its main operator.
Step 1: Write out the formula with the individual letters to the left.
\[ \begin{array}{cc|c c c c} S&R& \neg &(S & \leftrightarrow & R)\\\hline T&F&&&& \end{array} \]
Next, consider how \(\neg (S \leftrightarrow R)\) is constructed.
Assign truth values to the subformulas of \(\neg (S \leftrightarrow R)\) in that order.
Start by writing truth values under the proposition letters in the wff. Assume \(\mathscr{I}(S)=T\) and \(\mathscr{I}(R)=F\).
\[ \begin{array}{cc|c c c c} S&R& \neg &(S & \leftrightarrow & R)\\\hline T&F&&&&\\ \end{array} \]
Write the T-values under \(S\) and \(R\) under the wff.
\[ \begin{array}{cc|c c c c} S&R& \neg &(S & \leftrightarrow & R)\\\hline T&F&&T&&F\\ \end{array} \]
The next wff constructed is \((S \leftrightarrow R)\).
\[ \begin{array}{cc|c c c c} S&R& \neg &(S & \color{blue}{\leftrightarrow} & R)\\\hline T&F&&\color{blue}{T}&&\color{blue}{F}\\ \end{array} \]
To determine whether \((S \leftrightarrow R)\) is T or F, look at the truth table where the leftside of the biconditional is T and the rightside is F:
\[ \begin{array}{c c|c c c c} \phi&\psi&\phi\wedge \psi&\phi\vee \psi&\phi \to \psi&\phi\leftrightarrow \psi\\ \hline T&T&T&T&T&T\\ \color{blue}{T}&\color{blue}{F}&F&T&F&\color{blue}{F}\\ F&T&F&T&T&F\\ F&F&F&F&T&T \end{array} \]
\[ \begin{array}{cc|c c c c} S&R& \neg &(S & \color{blue}{\leftrightarrow} & R)\\\hline T&F&&\color{blue}{T}&&\color{blue}{F}\\ \end{array} \]
\[ \begin{array}{cc|c c c c} S&R& \neg &(S & \leftrightarrow & R)\\\hline T&F&&T&\color{blue}{F}&F\\ \end{array} \]
\(v(S \leftrightarrow R)=F\)
The next wff constructed is \(\neg (S \leftrightarrow R)\).
\[ \begin{array}{cc|c c c c} S&R& \color{blue}{\neg} &(S & \leftrightarrow & R)\\\hline T&F&&T&\color{blue}{T}&F\\ \end{array} \]
\[ \begin{array}{cc|c c c c} S&R& \color{blue}{\neg} &(S & \leftrightarrow & R)\\\hline T&F&&T&\color{blue}{F}&F\\ \end{array} \]
\[ \begin{array}{cc|c c c c} S&R& \neg &(S & \leftrightarrow & R)\\\hline T&F&\color{blue}{T}&T&T&F\\ \end{array} \]
\(v\neg(S \leftrightarrow R)=T\)
Exam Tip
You’ll need to create a table on the exam! So, practice, practice, practice!
Step 1: Write out the wff \(\phi\) and all of the propositional letters in \(\phi\) to the left of \(\phi\).
\[ \begin{array}{c c|c c c c c} P&R&\neg&P&\vee&\neg&R\\ \hline \end{array} \]
Step 2: Write all interpretations for the propositional letters in \(\phi\).
How many interpretations are there?
The number of possible interpretations (rows) is determined by the number of distinct propositional letters. If \(\phi\) has \(n\) distinct letters, you’ll need \(2^n\) table rows.
| Interpretation | \(P\) |
|---|---|
| \(\mathscr{I}_1\) | \(T\) |
| \(\mathscr{I}_2\) | \(F\) |
| Interpretation | \(P\) | \(Q\) | \(P\land Q\) |
|---|---|---|---|
| \(\mathscr{I}_1\) | T | T | |
| \(\mathscr{I}_2\) | T | F | |
| \(\mathscr{I}_3\) | F | T | |
| \(\mathscr{I}_4\) | F | F |
| Interpretation | \(P\) | \(Q\) | \(R\) | \((P\land Q)\land R\) |
|---|---|---|---|---|
| \(\mathscr{I}_1\) | T | T | T | |
| \(\mathscr{I}_2\) | T | T | F | |
| \(\mathscr{I}_3\) | T | F | T | |
| \(\mathscr{I}_4\) | T | F | F | |
| \(\mathscr{I}_5\) | F | T | T | |
| \(\mathscr{I}_6\) | F | T | F | |
| \(\mathscr{I}_7\) | F | F | T | |
| \(\mathscr{I}_8\) | F | F | F |
| Interpretation | \(P\) | \(Q\) | \(R\) | \(S\) |
|---|---|---|---|---|
| \(\mathscr{I}_1\) | T | T | T | T |
| \(\mathscr{I}_2\) | T | T | F | T |
| \(\mathscr{I}_3\) | T | F | T | T |
| \(\mathscr{I}_4\) | T | F | F | T |
| \(\mathscr{I}_5\) | F | T | T | T |
| \(\mathscr{I}_6\) | F | T | F | T |
| \(\mathscr{I}_7\) | F | F | T | T |
| \(\mathscr{I}_8\) | F | F | F | T |
| \(\mathscr{I}_9\) | T | T | T | F |
| \(\mathscr{I}_{10}\) | T | T | F | F |
| \(\mathscr{I}_{11}\) | T | F | T | F |
| \(\mathscr{I}_{12}\) | T | F | F | F |
| \(\mathscr{I}_{13}\) | F | T | T | F |
| \(\mathscr{I}_{14}\) | F | T | F | F |
| \(\mathscr{I}_{15}\) | F | F | T | F |
| \(\mathscr{I}_{16}\) | F | F | F | F |
\[ \begin{array}{c c|c c c c c} P&R&\neg&P&\vee&\neg&R\\ \hline &&&&&&\\ \end{array} \]
\[ \begin{array}{c c|c c c c c} P&R&\neg&P&\vee&\neg&R\\ \hline T&T&&&&&\\ T&F&&&&&\\ F&T&&&&&\\ F&F&&&&& \end{array} \]
Step 3: For each row, write the truth values under the corresponding letter.
\[ \begin{array}{c c|c c c c c} P&R&\neg&P&\vee&\neg&R\\ \hline T&T&&T&&&T\\ T&F&&T&&&F\\ F&T&&F&&&T\\ F&F&&F&&&F \end{array} \]
Step 4: Assign \(T\) or \(F\) to subformulas in the order that the wff is constructed.
\[ \begin{array}{c c|c c c c c} P&R&\neg&P&\vee&\neg&R\\ \hline T&T&F&T&&F&T\\ T&F&F&T&&T&F\\ F&T&T&F&&F&T\\ F&F&T&F&&T&F \end{array} \]
\[ \begin{array}{c c|c c c c c} P&R&\neg&P&\vee&\neg&R\\ \hline T&T&F&T&&F&T\\ T&F&F&T&&T&F\\ F&T&T&F&&F&T\\ F&F&T&F&&T&F \end{array} \]
Now determine the truth value of \(\neg P\vee\neg R\).
\[ \begin{array}{c c|c c c c c} P&R&\neg&P&\vee&\neg&R\\ \hline T&T&F&T&F&F&T\\ T&F&F&T&T&T&F\\ F&T&T&F&T&F&T\\ F&F&T&F&T&T&F \end{array} \]
The table shows the truth value of \(\neg P\vee\neg R\) under all interpretations of \(P\) and \(R\) in \(PL\).
See book, Ex. 3.31, pp.115, #1 (\(P\to \lnot R\))
Truth tables can be used to:
Definition
A proposition \(\mathbf{P}\) is a contradiction if and only if \(\mathbf{P}\) is always false.
Definition
A wff \(\phi\) is a PL-contradiction if and only if \(v(\phi)=F\) under every interpretation.
Definition
A proposition \(\mathbf{P}\) is a tautology if and only if \(\mathbf{P}\) is always true.
Definition
A wff \(\phi\) is a PL-tautology if and only if \(v(\phi)=T\) under every interpretation.
Definition
A proposition \(\mathbf{P}\) is a contingency if and only if its truth value depends upon the nature of the world.
Definition
A wff \(\phi\) is a PL-contingency if and only if \(\phi\) is neither a contradiction nor a tautology. Equivalently, \(v(\phi)=T\) under at least one interpretation and \(v(\phi)=F\) under at least one interpretation.
Tables can check whether \(\phi\) is a contradiction, tautology, or contingency:
Is \(\neg P\vee\neg R\) a PL-contingency, PL-tautology, or PL-contradiction?
\[ \begin{array}{c c|c c c c c} P&R&\neg&P&\vee&\neg&R\\ \hline T&T&F&T&F&F&T\\ T&F&F&T&T&T&F\\ F&T&T&F&T&F&T\\ F&F&T&F&T&T&F \end{array} \]
It is a PL-contingency.
Is \(P\vee\neg P\) a PL-contingency, PL-tautology, or PL-contradiction?
\[ \begin{array}{c|c c c c} P&P&\vee&\neg&P\\ \hline T&T&T&F&T\\ F&F&T&T&F \end{array} \]
This wff is a tautology.
Is \(P\wedge\neg P\) a PL-contingency, PL-tautology, or PL-contradiction?
\[ \begin{array}{c|c c c c} P&P&\wedge&\neg&P\\ \hline T&T&F&F&T\\ F&F&F&T&F \end{array} \]
This wff is a contradiction.
\[ \begin{array}{c c|c c c c c c c} I&C&\neg&( &\neg&I&\rightarrow&\neg&C& )\\ \hline T&T&F&&F&T&T&F&T&\\ T&F&F&&F&T&T&T&F&\\ F&T&T&&T&F&F&F&T&\\ F&F&F&&T&F&T&T&F& \end{array} \]
See book, Ex. 3.33, pp.122, #6: \(\lnot (P\vee \lnot R)\)
Definition
A set of propositions is consistent if and only if they all can be true; that is, there is some way that they can all be true.
Definition
A set of wffs \(\Gamma\) is PL-consistent if and only if there is at least one interpretation such that all members of \(\Gamma\) are true.
Definition
A set of propositions is inconsistent if and only if they cannot all be true at the same time.
Definition
A set of wffs \(\Gamma\) is PL-inconsistent if and only if it is not PL-consistent: there is no interpretation such that all members of \(\Gamma\) are true.
In many cases, we can simply see that a set of wffs is PL-consistent.
In other cases, it is not obvious.
Test whether \(P\rightarrow Q\), \(P\wedge Q\), and \(P\vee\neg Q\) are PL-consistent.
\[ \begin{array}{c c|c c c|c c c|c c c c} P&Q&P&\rightarrow&Q&P&\wedge&Q&P&\vee&\neg&Q\\ \hline T&T&T&T&T&T&T&T&T&T&F&T\\ T&F&T&F&F&T&F&F&T&T&T&F\\ F&T&F&T&T&F&F&T&F&F&F&T\\ F&F&F&T&F&F&F&F&F&T&T&F \end{array} \]
In the first row, all three wffs true. Therefore, the set is PL-consistent.
Are \((P\rightarrow Q)\), \((\neg R\vee Q)\), and \((R\wedge\neg Q)\) PL-consistent?
\[ \begin{array}{c c c|c c c|c c c|c c c} P&Q&R&P\rightarrow Q&\neg R\vee Q&R\wedge\neg Q\\ \hline T&T&T&T&T&F\\ T&T&F&T&T&F\\ T&F&T&F&F&T\\ T&F&F&F&T&F\\ F&T&T&T&T&F\\ F&T&F&T&T&F\\ F&F&T&T&F&T\\ F&F&F&T&T&F \end{array} \]
There is no row where all the wffs are \(T\), so the set is PL-inconsistent.
\[ \begin{array}{c c|c c c|c c c c} J&M&J&\rightarrow&M&\neg&J&\vee&M\\ \hline T&T&T&T&T&F&T&T&T\\ T&F&T&F&F&F&T&F&F\\ F&T&F&T&T&T&F&T&T\\ F&F&F&T&F&T&F&T&F \end{array} \]
There is at least one row where both wffs are true. Thus, the sentences are PL-consistent.
See book, Ex. 3.34, pp.125-6, #8: \(\neg P\to R, R\to\neg P\)
Definition
A pair of propositions \(P\) and \(Q\) are equivalent provided whenever \(P\) is true, \(Q\) is true, and whenever \(P\) is false, \(Q\) is false.
Definition
Members of a set of wffs \(\Gamma\) are PL-equivalent if and only if, for every interpretation, the members have the same truth value: \(v(\gamma_1)=\cdots=v(\gamma_n)\).
If two wffs have matching truth values under every interpretation, then they are equivalent.
Thus, for every interpretation, whenever \(P\) is true, \(P\) is true, and whenever \(P\) is false, \(P\) is false.
Are \(P\leftrightarrow Q\) and \(P\rightarrow Q\) PL-equivalent?
\[ \begin{array}{c c|c c c|c c c} P&Q&P&\leftrightarrow&Q&P&\rightarrow&Q\\ \hline T&T&T&T&T&T&T&T\\ T&F&T&F&F&T&F&F\\ F&T&F&F&T&F&T&T\\ F&F&F&T&F&F&T&F \end{array} \]
No. They are not PL-equivalent.
Translate the following as \(J\rightarrow M\) and \(\neg J\vee M\):
If John is tall, then Mary is happy.
John is not tall or Mary is happy.
\[ \begin{array}{c c|c c c|c c c} J&M&J&\rightarrow&M&\neg&J&\vee&M\\ \hline T&T&T&T&T&F&T&T\\ T&F&T&F&F&F&T&F\\ F&T&F&T&T&T&F&T\\ F&F&F&T&F&T&F&T \end{array} \]
The wffs are PL-equivalent.
Definition
An argument is valid if and only if it is impossible for the premises to be true and the conclusion false.
Definition
A set of PL-wffs \(\Gamma\) semantically entails a PL-wff \(\psi\) if and only if there is no interpretation \(\mathscr{I}\) in which all members of \(\Gamma\) are true and \(\psi\) is false.
If \(A\), \(B\), and \(C\) are premises and \(D\) is the conclusion, then \(A,B,C\) semantically entail \(D\) iff there is no interpretation where \(A\), \(B\), and \(C\) are all true and \(D\) is false.
Does \(P\rightarrow Q\) and \(P\) semantically entail \(Q\)?
\[ \begin{array}{c c|c c c|c|c} P&Q&P&\rightarrow&Q&P&Q\\ \hline T&T&T&T&T&T&T\\ T&F&T&F&F&T&F\\ F&T&F&T&T&F&T\\ F&F&F&T&F&F&F \end{array} \]
Yes. There is no row where \(P\rightarrow Q\) and \(P\) are true and \(Q\) is false. Therefore, \(P\rightarrow Q,P\models Q\).
Does \(P\vee Q\) and \(P\) semantically entail \(Q\)?
\[ \begin{array}{c c|c c c|c|c} P&Q&P&\vee&Q&P&Q\\ \hline T&T&T&T&T&T&T\\ T&F&T&T&F&T&F\\ F&T&F&T&T&F&T\\ F&F&F&F&F&F&F \end{array} \]
No. In row 2, \(P\vee Q\) and \(P\) are true while \(Q\) is false. Therefore, \(P\vee Q,P\not\models Q\).
Translate the argument as \(J\rightarrow M,\neg M\models\neg J\):
If John is tall, then Mary is happy. Mary is not happy. Therefore, John is not tall.
\[ \begin{array}{c c|c c c|c c|c c} J&M&J&\rightarrow&M&\neg&M&\neg&J\\ \hline T&T&T&T&T&F&T&F&T\\ T&F&T&F&F&T&F&F&T\\ F&T&F&T&T&F&T&T&F\\ F&F&F&T&F&T&F&T&F \end{array} \]
Thus, \(J\rightarrow M,\neg M\models\neg J\).
Translation
The fix to this problem is to develop a more powerful logical language.
For each new propositional letter \(n\), the table grows \(2^n\)

Develop a better test.