Truth Tables
Consider the following three formulas:
These formulas have different syntax trees:
There is something more that we can say about the formulas: two of the above formulas always have the same truth value. See if you can figure out which two formulas always have the same truth value before reading further.
Each atomic proposition can be assigned any of the two possible truth values, so there are two possible truth value functions for a single atomic proposition. For two atomic propositions, there 4 possible truth value functions. For instance, there are 4 ways to assign truth values to the atomic propositions and . It is common to list the different truth value functions in a table, where each atomic proposition labels a column and each row is an assignment of truth values to the formulas in the columns:
1. | ||
2. | ||
3. | ||
4. |
For example, row 2 is the truth value assignment that assigns to and to . Each additional atomic proposition doubles the number of rows. For example, there are 8 truth value functions for the atomic propositions , and :
More generally, we have the following:
Observation. If there are atomic propositions, then there are different truth value functions.
Method to find all truth values for formulas: Suppose that we are interested in all the possible truth values of one or more formulas. Below are the steps to find all the possible truth values for a collection of formulas:
- Write down all the atomic propositions that appear in the formulas.
- Create a truth table listing all the truth value functions for the atomic propositions identified in step 1.
- Add columns for each formula. You may want to add columns for some of the subformulas to make the calculations easier.
- Using the rules for assigning truth values to complex formulas (i.e., by chasing truth up the syntax tree), write a truth value for each formula in each row of the truth table.
The truth values for the 3 formulas from the beginning of this section (, , and ) are given in the following table:
Note that and always have the same truth value, but this is not true for any other pair of formulas.
#
Practice Questions- Find all possible truth values for
- Find all possible truth values for
- Find all possible truth values for
- Find all possible truth values for
- Find all possible truth values for
- Find all possible truth values for the formulas , and
- Find all possible truth values for the formulas and
- Find all possible truth values for
- Find all possible truth values for the formulas , , and
- Find all possible truth values for
- Find all possible truth values for
- Find all possible truth values for
- Find all possible truth values for
- Find all possible truth values for and
- Find all possible truth values for and
- Find all possible truth values for , , and .
- Find all possible truth values for , , and .
- Find all possible truth values for .
- Find all possible truth values for and .
- Find all possible truth values for , , and .