| Version 7 |
Version 6 |
| A \emph{truth table} is a tabular listing of all possible input value combinations for a logical function and their corresponding output values. Similarly, the truth table of a logical proposition is the truth table of the corresponding logical function. |
A \emph{truth table} is a tabular listing of all possible input value combinations for a logical function and their corresponding output values. Similarly, the truth table of a logical proposition is the truth table of the corresponding logical function. |
|
|
| For instance, the truth table of the connective ``or'' is as follows: |
For instance, the truth table of the connective ``or'' is as follows: |
| \begin{center} |
\begin{center} |
| \begin{tabular}{ccc} |
\begin{tabular}{ccc} |
| $a$ & $b$ & $a \lor b$ \\ |
$a$ & $b$ & $a \lor b$ \\ |
| \hline |
\hline |
| F & F & F \\ |
F & F & F \\ |
| F & T & T \\ |
F & T & T \\ |
| T & F & T \\ |
T & F & T \\ |
| T & T & T |
T & T & T |
| \end{tabular} |
\end{tabular} |
| \end{center} |
\end{center} |
|
|
| For $n$ input variables, there will always be $2^n$ rows in the truth table. |
For $n$ input variables, there will always be $2^n$ rows in the truth table. |
| A sample truth table for ``$(a \land b) \rightarrow c$'' would be |
A sample truth table for ``$(a \land b) \rightarrow c$'' would be |
|
|
| \begin{center} |
\begin{center} |
| \begin{tabular}{cccc} |
\begin{tabular}{cccc} |
| $a$ & $b$ & $c$ & $(a \land b) \rightarrow c$ \\ |
$a$ & $b$ & $c$ & $(a \land b) \rightarrow c$ \\ |
| \hline |
\hline |
| F & F & F & T \\ |
F & F & F & T \\ |
| F & F & T & F \\ |
F & F & T & F \\ |
| F & T & F & T \\ |
F & T & F & T \\ |
| F & T & T & F \\ |
F & T & T & F \\ |
| T & F & F & T \\ |
T & F & F & T \\ |
| T & F & T & F \\ |
T & F & T & F \\ |
| T & T & F & T \\ |
T & T & F & T \\ |
| T & T & T & T |
T & T & T & T |
| \end{tabular} |
\end{tabular} |
| \end{center} |
\end{center} |
|
|
| (Note that $\land$ represents logical and, while $\rightarrow$ represents the conditional truth function). |
(Note that $\land$ represents logical and, while $\rightarrow$ represents the conditional truth function). |
|
|
| To compute truth tables of expressions, one often proceeds in steps. for instance, |
|
| to compute a truth table for ``$\neg p \lor (p \land q)$, one might proceed as follows: |
|
|
|
| \begin{center} |
|
| \begin{tabular}{ccccc} |
|
| $p$ & $q$ & $\neg p$ & $(p \land q)$ & $\neg p \lor (p \land q)$ \\ |
|
| \hline |
|
| F & F & T & F & T \\ |
|
| F & T & T & F & T \\ |
|
| T & F & F & F & F \\ |
|
| T & T & F & T & T |
|
| \end{tabular} |
|
| \end{center} |
|
|
|