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 $\wedge$ is used for and: A and B is notated $A\wedge{B}$.

The symbol $\vee$ is used for or: A or B is notated $A\vee{B}$

The symbol $\sim$ is used for not: not A is notated $\sim{A}$

You can remember the first two symbols by relating them to the shapes for the union and intersection. $A\wedge{B}$ would be the elements that exist in both sets, in $A\cap{B}$. Likewise, $A\vee{B}$ would be the elements that exist in either set, in $A\cup{B}$.
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.

Basic Truth Tables

A B $A\wedge{B}$
T T T
T F F
F T F
F F F
A B $A\vee{B}$
T T T
T F T
F T T
F F F
A $\sim{A}$
T F
F T

Try It

Truth tables really become useful when analyzing more complex Boolean statements.

Example

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

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 $p\rightarrow{q}$

Implications are similar to the conditional statements we looked at earlier; $p\rightarrow{q}$ 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

 p q p → q T T T T F F F T T F F T

Example

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

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”: $p\rightarrow{q}$

The converse is “if q then p”: $q\rightarrow{p}$

The inverse is “if not p then not q”: $\sim{p}\rightarrow\sim{q}$

The contrapositive is “if not q then not p”: $\sim{q}\rightarrow\sim{p}$

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 $p\rightarrow{q}$ $q{\rightarrow}p$ $\sim{p}\rightarrow\sim{q}$ $\sim{q}\rightarrow\sim{p}$
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.