Truth Tables

COS2661 - Formal Logic II · Introduction to Propositional Logic

Truth Tables

Truth tables are a fundamental tool in propositional logic. They help to determine the truth values of logical expressions based on the truth values of their components. In this section, you will learn how to construct truth tables and use them to evaluate logical statements.

Basic Concepts

In propositional logic, a proposition is a statement that can either be true (T) or false (F). Logical operators combine propositions to form complex expressions. The main logical operators are:

  • Conjunction (AND): Denoted by ∧, the conjunction of two propositions is true only if both propositions are true.
  • Disjunction (OR): Denoted by ∨, the disjunction of two propositions is true if at least one of the propositions is true.
  • Negation (NOT): Denoted by ¬, the negation of a proposition is true if the proposition is false, and vice versa.
  • Implication (IF...THEN): Denoted by →, the implication is false only if the first proposition is true and the second is false.
  • Biconditional (IF AND ONLY IF): Denoted by ↔, the biconditional is true if both propositions have the same truth value.

Constructing Truth Tables

To construct a truth table, follow these steps:

  1. Identify the propositions involved in the logical expression.
  2. Determine the number of rows needed in the truth table. For n propositions, you will need 2n rows.
  3. List all possible combinations of truth values for the propositions.
  4. Evaluate the expression for each combination of truth values.

Example 1: Truth Table for Conjunction

Consider the expression P ∧ Q. Here, P and Q are propositions.

P   Q   P ∧ Q
T   T   T
T   F   F
F   T   F
F   F   F

In this truth table:

  • When both P and Q are true (T), P ∧ Q is true (T).
  • When P is true and Q is false (F), P ∧ Q is false (F).
  • When P is false and Q is true, P ∧ Q is false.
  • When both P and Q are false, P ∧ Q is false.

Example 2: Truth Table for Disjunction

Now consider the expression P ∨ Q.

P   Q   P ∨ Q
T   T   T
T   F   T
F   T   T
F   F   F

In this truth table:

  • When both P and Q are true, P ∨ Q is true.
  • When P is true and Q is false, P ∨ Q is still true.
  • When P is false and Q is true, P ∨ Q is true.
  • When both P and Q are false, P ∨ Q is false.

Truth Tables for Negation

Next, we will look at the truth table for negation. For the proposition P, the negation is ¬P.

P   ¬P
T   F
F   T

In this truth table:

  • If P is true, ¬P is false.
  • If P is false, ¬P is true.

Truth Tables for Implication

The truth table for the implication P → Q is as follows:

P   Q   P → Q
T   T   T
T   F   F
F   T   T
F   F   T

In this truth table:

  • If P is true and Q is true, P → Q is true.
  • If P is true and Q is false, P → Q is false.
  • If P is false, P → Q is always true, regardless of Q.

Truth Tables for Biconditional

The truth table for the biconditional P ↔ Q is as follows:

P   Q   P ↔ Q
T   T   T
T   F   F
F   T   F
F   F   T

In this truth table:

  • If both P and Q are true, P ↔ Q is true.
  • If both P and Q are false, P ↔ Q is true.
  • If one is true and the other is false, P ↔ Q is false.

Remember: In a truth table, each row represents a unique combination of truth values for the propositions.

Complex Expressions

Truth tables can also be used for complex expressions that involve multiple operators. To evaluate these, follow the same steps as before, but break down the evaluation into parts. For example, consider the expression (P ∧ Q) → R.

  1. Identify the propositions: P, Q, and R.
  2. Determine the number of rows: 23 = 8.
  3. List all combinations of truth values for P, Q, and R.
  4. Evaluate (P ∧ Q) first, then evaluate the implication.

Example 3: Truth Table for a Complex Expression

Let's construct the truth table for (P ∧ Q) → R.

P   Q   R   P ∧ Q   (P ∧ Q) → R
T   T   T   T       T
T   T   F   T       F
T   F   T   F       T
T   F   F   F       F
F   T   T   F       T
F   T   F   F       F
F   F   T   F       T
F   F   F   F       F

In this truth table:

  • Evaluate P ∧ Q first, then use that result to evaluate (P ∧ Q) → R.
  • For example, when P is true, Q is true, and R is false, (P ∧ Q) is true, but the implication is false.

Watch out: Be careful with the order of operations when evaluating complex expressions. Always evaluate the components first before combining them.

Applications of Truth Tables

Truth tables are useful for various applications in logic, such as:

  • Determining the validity of arguments.
  • Simplifying logical expressions.
  • Designing digital circuits.

By evaluating the truth values of propositions, you can assess whether an argument is valid or whether a logical expression can be simplified.

Summary

  • Truth tables represent the truth values of propositions and their combinations.
  • Logical operators include conjunction, disjunction, negation, implication, and biconditional.
  • Constructing truth tables involves listing all combinations of truth values and evaluating the expressions.
  • Truth tables can be used for both simple and complex logical expressions.

Check your understanding

  1. What is the truth value of P ∧ Q when P is true and Q is false?
  2. How many rows would you need for a truth table with three propositions?
  3. Construct a truth table for the expression ¬(P ∨ Q).
  4. Explain how truth tables can help in evaluating the validity of logical arguments.