Propositional logic · Definition
Truth table
Before you start you need to know
A truth table organizes all possible values of the propositions and the result of a formula in each case.
Definition
Let \(P_1,\ldots,P_n\) be atomic propositions. A truth table records the value of a formula for every assignment of them.
With \(n\) atomic propositions there are \(2^n\) assignments, and each one occupies a row. The final column gives the formula's value in that row.
For \(P\to Q\) with two propositions there are 4 rows: \(T,T\), \(T,F\), \(F,T\), \(F,F\). The formula is false only in the row \(T,F\).
A common mistake is to omit some assignment, for example writing only 3 rows for two propositions; the table must cover all \(2^n\) combinations.
Think about it
How many rows of assignments does a formula with three atomic propositions require?
Eight, because there are 2³ possible assignments.
Exercises 11
- A truth table shows...
- With two propositions, a truth table has...
- With n propositions, how many possible assignments are there?
- What is a truth table used for?
- A truth table lets us read the value of a formula for...
- A truth table with n variables has...
- For two propositions, a complete table has...
- A truth table allows comparing...
- What is recorded in a truth table for each assignment?
- If two formulas have the same final column throughout the table, they are...
- With three propositions P, Q and R, how many rows of the table have P true and Q false?
What comes next
References
- Frederic P. Schuller, Lectures on the Geometrical Anatomy of Theoretical Physics · Lecture 1, Introduction / Logic of Propositions and Predicates, YouTube, 2015.