Truth Tables

Learning Outcomes

  • Use a truth table to interpret complex statements or conditionals
  • Write truth tables given a logical implication, and its related statements
  • Determine whether two statements are logically equivalent

Because complex Boolean statements can get tricky to think about, we can create a truth table to break the complex statement into simple statements, and determine whether they are true or false. A table will help keep track of all the truth values of the simple statements that make up a complex statement, leading to an analysis of the full statement.

Truth Table

A table showing what the resulting truth value of a complex statement is for all the possible truth values for the simple statements.

Example

Suppose you’re picking out a new couch, and your significant other says “get a sectional or something with a chaise.” Construct a truth table that describes the elements of the conditions of this statement and whether the conditions are met.

Some symbols that are commonly used for and, or, and not make using a truth table easier.

study strategy

You may notice that you’ve accumulated quite a bit of new vocabulary and symbols. A helpful technique is to collect all of these in a central location: a set of flashcards, a notebook, or something similar.

New notation and vocabulary are introduced in this page as well. Try to find similarities between the symbols in this page and the ones you encountered in previous pages in this module.

Symbols

The symbol [latex]\wedge[/latex] is used for and: A and B is notated [latex]A\wedge{B}[/latex].

The symbol [latex]\vee[/latex] is used for or: A or B is notated [latex]A\vee{B}[/latex]

The symbol [latex]\sim[/latex] is used for not: not A is notated [latex]\sim{A}[/latex]

You can remember the first two symbols by relating them to the shapes for the union and intersection. [latex]A\wedge{B}[/latex] would be the elements that exist in both sets, in [latex]A\cap{B}[/latex]. Likewise, [latex]A\vee{B}[/latex] would be the elements that exist in either set, in [latex]A\cup{B}[/latex].
In the previous example, the truth table was really just summarizing what we already know about how the or statement work. The truth tables for the basic and, or, and not statements are shown below.  It is a good idea to try to memorize these basic truth tables.  It will help you when you are working with truth tables and more complex statements.

Basic Truth Tables

“And” – Conjunction:  A Λ B

A B [latex]A\wedge{B}[/latex]
T T T
T F F
F T F
F F F

“Or” – Disjunction: A V B

A B [latex]A\vee{B}[/latex]
T T T
T F T
F T T
F F F

“Not: – Negation: ~A

A [latex]\sim{A}[/latex]
T F
F T

Click Here to see a video going over truth tables for conjunction and disjunction.

Try It

Truth tables really become useful when analyzing more complex Boolean statements.  But, what is the correct order needed when completing a truth table?

The Dominance of Connectives

The order of operations for working with algebraic and arithmetic expressions provides a set of rules that allow consistent results. For example, if you were presented with the problem 1+3×2, and you were not familiar with the order of operation, you might assume that you calculate the problem from left to right. If you did so, you would add 1 and 3 to get 4, and then multiply this answer by 2 to get 8, resulting in an incorrect answer. Try inputting this expression into a scientific calculator. If you do, the calculator should return a value of 7, not 8.

Scientific Calculator

The order of operations for algebraic and arithmetic operations states that all multiplication must be applied prior to any addition. Parentheses are used to indicate which operation—addition or multiplication—should be done first. Adding parentheses can change and/or clarify the order. The parentheses in the expression 1+(3×2) indicate that 3 should be multiplied by 2 to get 6, and then 1 should be added to 6 to get 7: 1+(3×2)=7.

As with algebraic expressions, there is a set of rules that must be applied to compound logical statements in order to evaluate them with consistent results. This set of rules is called the dominance of connectives. When evaluating compound logical statements, connectives are evaluated from least dominant to most dominant as follows:

  1. Parentheses are the least dominant connective. So, any expression inside parentheses must be evaluated first. Add as many parentheses as needed to any statement to specify the order to evaluate each connective.
  2. Next, we evaluate negations.
  3. Then, we evaluate conjunctions and disjunctions from left to right, because they have equal dominance.
  4. After evaluating all conjunctions and disjunctions, we evaluate conditionals.
  5. Lastly, we evaluate the most dominant connective, the biconditional. If a statement includes multiple connectives of equal dominance, then we will evaluate them from left to right.

The following image is a visual breakdown of the dominance of connectives.

A table with four columns shows Dominance, Connective, Symbol, and Evaluate. The dominance column on the table shows a downward vertical arrow from least dominant to most dominant. The connective column on the table shows Parentheses, Negation, Disjunction or Conjunction, Conditional, and Biconditional. The Symbol column on the table shows an open bracket and a closed bracket, equivalent, an upward circumflex and a downward circumflex, a right side arrow, and a double-sided arrow. The Evaluate column on the table shows First, a downward arrow, Left to right or add parentheses to specify order because or slash and have equal dominance. a downward arrow, and last.

 

Example

Create a truth table for the statement [latex]A\wedge\sim\left(B\vee{C}\right)[/latex]

Try It

When we discussed conditions earlier, we discussed the type where we take an action based on the value of the condition. We are now going to talk about a more general version of a conditional, sometimes called an implication.

Implications

Implications are logical conditional sentences stating that a statement p, called the antecedent, implies a consequence q.

Implications are commonly written as [latex]p\rightarrow{q}[/latex]

Implications are similar to the conditional statements we looked at earlier; [latex]p\rightarrow{q}[/latex] is typically written as “if p then q,” or “p therefore q.” The difference between implications and conditionals is that conditionals we discussed earlier suggest an action—if the condition is true, then we take some action as a result. Implications are a logical statement that suggest that the consequence must logically follow if the antecedent is true.

Example

The English statement “If it is raining, then there are clouds is the sky” is a logical implication. Is this a valid argument, why or why not?

Notice that the statement tells us nothing of what to expect if it is not raining. If the antecedent is false, then the implication becomes irrelevant.

Example

A friend tells you that “if you upload that picture to Facebook, you’ll lose your job.” Describe the possible outcomes related to this statement, and determine whether your friend’s statement is invalid.

In traditional logic, an implication is considered valid (true) as long as there are no cases in which the antecedent is true and the consequence is false. It is important to keep in mind that symbolic logic cannot capture all the intricacies of the English language.

Truth Values for Implications (conditionals) and Biconditionals

p q pq
T T T
T F F
F T T
F F T

Click Here to see a short video over truth tables for conditionals.

There is another way to look at conditionals – that is, if P then Q and If Q then P.  We call these “biconditionals” and we write them as “P if and only if Q”.  Symbolically, we write this as P ↔ Q.  Below is the truth table for this biconditional.

p q p ↔ q
T T T
T F F
F T F
F F T

A biconditional is considered to be true if both P and Q are true simultaneously or if both P and Q are false simultaneously.

Click Here to see a short video over the truth table for a biconditional.

Example

Construct a truth table for the statement [latex]\left(m\wedge\sim{p}\right)\rightarrow{r}[/latex]

Try It

For any implication, there are three related statements, the converse, the inverse, and the contrapositive.

Related Statements

The original implication is “if p then q”: [latex]p\rightarrow{q}[/latex]

The converse is “if q then p”: [latex]q\rightarrow{p}[/latex]

The inverse is “if not p then not q”: [latex]\sim{p}\rightarrow\sim{q}[/latex]

The contrapositive is “if not q then not p”: [latex]\sim{q}\rightarrow\sim{p}[/latex]

Click here to see a video for the truth tables for each of the related statements.

Example

Consider again the valid implication “If it is raining, then there are clouds in the sky.”

Write the related converse, inverse, and contrapositive statements.

Try It

Looking at truth tables, we can see that the original conditional and the contrapositive are logically equivalent, and that the converse and inverse are logically equivalent.

Implication Converse Inverse Contrapositive
p q [latex]p\rightarrow{q}[/latex] [latex]q{\rightarrow}p[/latex] [latex]\sim{p}\rightarrow\sim{q}[/latex] [latex]\sim{q}\rightarrow\sim{p}[/latex]
T T T T T T
T F F T T F
F T T F F T
F F T T T T

Equivalence

A conditional statement and its contrapositive are logically equivalent.

The converse and inverse of a statement are logically equivalent.