Skip to main content

Welcome to a Grasp lesson

Create a free account to keep studying and create your own study path.

Lesson 2

Truth Tables for Compound Propositions

Recommended resources

In our previous lesson, we established the vocabulary of propositional logic by defining propositions and the five logical connectives. You learned how to translate between English sentences and symbolic logical expressions. This lesson builds directly on that foundation. Our goal is to master the use of truth tables, a systematic method for determining the truth value of any compound proposition.

This mechanical process of evaluation is fundamental. It allows us to analyze the structure of a logical argument with complete certainty, free from ambiguity or intuition. For your goal of mastering mathematical proofs, truth tables provide the means to verify logical equivalences and rules of inference that are the essential tools for constructing valid arguments.

The Structure of a Truth Table

In the last lesson, you saw a simple truth table for the basic connectives. Now, we will formalize their construction for any compound proposition. A truth table provides an exhaustive analysis of a proposition by listing every possible combination of truth values for its simple components.

The key principles are:

  • Rows: For a proposition with distinct simple propositions (e.g., ), there are possible combinations of truth values. Therefore, the truth table will have rows, plus a header row. Your experience in software development will make this principle intuitive; it's analogous to the number of states representable by bits.
  • Columns: We need a column for each simple proposition, a column for each intermediate sub-expression, and a final column for the entire compound proposition.

To construct the initial columns for the simple propositions systematically, a common method is to model binary counting. For three variables :

  • The column for (the rightmost variable) alternates T, F, T, F, ...
  • The column for alternates TT, FF, TT, FF, ...
  • The column for (the leftmost) alternates TTTT, FFFF, ...

This ensures all combinations are covered without repetition or omission.


Constructing and Evaluating a Truth Table

The best way to learn this process is to see it in action. The following video provides an excellent, clear walkthrough of how to set up and fill out a truth table for a compound proposition involving three variables.

Discrete Math - 1.1.3 Constructing a Truth Table for Compound Propositions

This video, "Constructing a Truth Table for Compound Propositions," from the Kimberly Brehm channel, methodically explains the setup and evaluation process. It also touches on the order of operations for logical connectives.

First, watch the introduction which covers the rules for rows and columns and the precedence of operators. Then, follow the detailed walkthrough of constructing a table for the expression (p \lor q) \rightarrow \neg r from this point. Observe how the table is built from left to right, from the simplest components to the final result.

As you saw, the process involves breaking down the complex proposition into its smallest parts and evaluating them one step at a time, just as you would evaluate a complex arithmetic or programming expression.

Let's use an image to visualize this "building up" process. The table below is partially completed for the expression . Columns for the simple propositions () are filled, and columns for the sub-expressions ( and ) are also filled. The final step would be to compute the main connective, , using the values from the two preceding columns.

A truth table under construction. The final column for the compound statement `(p v q) ^ ¬r` is evaluated by applying the 'AND' connective to the 'p v q' and '¬r' columns.

Now, let's solidify this procedure with a formal reading that breaks down the process and provides another worked example.

Truth Tables, Tautologies, and Logical Equivalences

This resource from Millersville University provides a clear, text-based explanation of constructing truth tables.

First, review the section summarizing the tables for the five basic connectives. Then, carefully read the section starting with the remark on lexicographic ordering and the worked example for \neg p \land (p \rightarrow q). Pay close attention to how each column is derived from previous ones.


Tautologies, Contradictions, and Contingencies

Truth tables allow us to classify compound propositions based on their truth values. This is a crucial step towards understanding the nature of logical laws.

  • A tautology is a proposition that is true in every row of the truth table. Its truth is independent of the truth values of its components. Tautologies represent universal logical truths. A simple example is ("A statement is either true or it is not true").
  • A contradiction is a proposition that is false in every row. An example is .
  • A contingency is a proposition that is true in some rows and false in others. Most complex propositions fall into this category.

The Logic of Compound Statements

These slides from a Stony Brook Computer Science course provide concise definitions for these classifications.

Please read the definitions and examples on the slides titled "Tautologies" and "Contradictions". Notice how the final column of the truth table determines the classification.

Let's consider a slightly more complex tautology, which represents a fundamental rule of inference called Modus Ponens: . In words: "If implies , and is true, then must be true." Try to construct the truth table for this proposition yourself. You will find that the final column contains only 'T's, confirming it as a law of logic.


Logical Equivalence

A primary application of truth tables in mathematics is to establish logical equivalence. Two propositions are logically equivalent if they have identical truth tables. We denote this with the symbol .

For example, in the previous lesson, we asserted that the conditional statement is difficult to grasp. One way to clarify its meaning is to show that it is logically equivalent to . Let's verify this.

T T F T T
T F F F F
F T T T T
F F T T T

Since the columns for and are identical, we can state that . This equivalence is extremely useful in proofs, as it allows us to replace a conditional statement with a disjunction, which can sometimes be easier to work with.

One of the most important sets of logical equivalences are De Morgan's Laws.

The Logic of Compound Statements

This resource formally defines logical equivalence and demonstrates it with De Morgan's Laws.

Read the slides from "Logical Equivalence" through "De Morgan's Laws". The tables clearly show how to prove or disprove equivalence by comparing the final columns for two different propositions.


Practice Problem

Let's test your understanding. Take a moment to construct a full truth table for the following proposition:

This will require columns for , and finally the full expression. After you have attempted it, you can check your work against the solution presented in the following video.

Discrete Math - 1.1.3 Constructing a Truth Table for Compound Propositions

The same video from earlier contains a practice problem that matches this one exactly.

Watch the explanation starting from the practice problem. Compare your step-by-step work and your final result with the video's solution.


Conclusion

In this lesson, you have learned the systematic process of using truth tables to analyze compound propositions. The key takeaways are:

  • Truth tables provide a mechanical, error-proof method to evaluate the truth of a logical statement for all possible scenarios.
  • The construction follows a clear algorithm: establish rows for variables, and build columns for simple propositions, sub-expressions, and the final expression.
  • The final column of a truth table allows us to classify propositions as tautologies (always true), contradictions (always false), or contingencies.
  • Truth tables are the definitive tool for verifying logical equivalence, a concept that is indispensable for manipulating expressions within mathematical proofs.

While powerful, truth tables become unwieldy as the number of variables grows. For statements about infinite sets (e.g., "all integers have a certain property"), we cannot use a truth table. In the next lesson, we will begin our study of predicate logic, introducing the universal quantifier ("for all", ) and the existential quantifier ("there exists", ), which give us the language to reason about such general statements.