1. Logic and Mathematical Statements

Truth Tables

Truth Tables: Mapping Logic Step by Step

students, logic is the math of reasoning 🧠. In this lesson, you will learn how truth tables work and why they are one of the most useful tools in discrete mathematics. A truth table lists every possible combination of truth values for a statement or group of statements and shows what the overall result is in each case. This helps us test arguments, compare statements, and check whether two statements mean the same thing.

What a Truth Table Does

A proposition is a statement that is either true or false, but not both. For example, $"7+2=9"$ is a proposition because it is true, and $"5$ is greater than $8"$ is also a proposition because it is false. A truth table takes propositions and records how their truth values change when we combine them using logical connectives such as $\lnot$, $\land$, $\lor$, $\to$, and $\leftrightarrow$.

Think of a truth table like a checklist for every possible situation. If a statement depends on two propositions, there are four possible combinations: $TT$, $TF$, $FT$, and $FF$. If there are three propositions, there are eight combinations, because each new proposition doubles the number of cases. In general, $n$ propositions produce $2^n$ rows. This is one of the most important facts about truth tables.

Truth tables are useful because they let us study logic without guessing. Instead of saying, “I think this argument works,” we can test every possible case. That makes truth tables a powerful tool for proving logical equivalence, checking validity, and understanding the structure of mathematical statements.

For example, suppose $p$ means “It is raining” and $q$ means “I carry an umbrella.” Then the statement $p \to q$ means “If it is raining, then I carry an umbrella.” A truth table lets us see exactly when that statement is true or false. This is especially helpful because implication does not work like ordinary everyday language all the time 🌧️☂️.

The Basic Truth Values and Connectives

To build a truth table, we first need to know the basic logical connectives.

The negation of a proposition $p$ is written as $\lnot p$. It means “not $p$.” If $p$ is true, then $\lnot p$ is false. If $p$ is false, then $\lnot p$ is true.

The conjunction $p \land q$ means “$p$ and $q$.” It is true only when both $p$ and $q$ are true.

The disjunction $p \lor q$ means “$p$ or $q$.” In mathematics, this usually means inclusive or, so it is true when at least one of the statements is true.

The conditional $p \to q$ means “if $p$, then $q$.” It is false only when $p$ is true and $q$ is false.

The biconditional $p \leftrightarrow q$ means “$p$ if and only if $q$.” It is true when $p$ and $q$ have the same truth value.

Here is the truth table for the simplest connectives with two propositions:

$$

$\begin{array}{c|c|c|c|c}$

p & q & p \land q & p \lor q & p $\to$ q \\

$\hline$

T & T & T & T & T \\

T & F & F & T & F \\

F & T & F & T & T \\

F & F & F & F & T \\

$\end{array}$

$$

Notice something important: $p \to q$ is true in every case except when $p$ is true and $q$ is false. This is a common source of confusion, but it is a standard definition in mathematics. It allows logic to work consistently in proofs.

How to Build a Truth Table

students, building a truth table is a step-by-step procedure. Let’s use the statement $\lnot p \lor q$ as an example.

First, list all possible values of the basic proposition variables. Since there are two variables, $p$ and $q$, we need $2^2=4$ rows.

Second, make columns for each part of the expression. For $\lnot p \lor q$, we need columns for $p$, $q$, $\lnot p$, and the final expression $\lnot p \lor q$.

Third, fill in the truth values for $p$ and $q$ in every possible combination:

$$

$\begin{array}{c|c}$

p & q \\

$\hline$

T & T \\

T & F \\

F & T \\

F & F \\

$\end{array}$

$$

Fourth, compute $\lnot p$ in each row. If $p$ is true, $\lnot p$ is false, and if $p$ is false, $\lnot p$ is true.

Fifth, combine $\lnot p$ and $q$ using $\lor$.

$$

$\begin{array}{c|c|c|c}$

p & q & \lnot p & \lnot p \lor q \\

$\hline$

T & T & F & T \\

T & F & F & F \\

F & T & T & T \\

F & F & T & T \\

$\end{array}$

$$

This table shows that $\lnot p \lor q$ is false only when $p$ is true and $q$ is false. That means it has the same truth pattern as $p \to q$. So we can conclude that $\lnot p \lor q$ and $p \to q$ are logically equivalent.

That is a major use of truth tables: they help us test logical equivalence.

Truth Tables and Logical Equivalence

Two statements are logically equivalent if they have exactly the same truth value in every possible case. We write this as $p \equiv q$.

Truth tables are the easiest way to check equivalence. If two statements match in every final column, then they are equivalent. If even one row differs, they are not equivalent.

For example, compare $p \to q$ and $\lnot p \lor q$:

$$

$\begin{array}{c|c|c|c}$

p & q & p $\to$ q & \lnot p \lor q \\

$\hline$

T & T & T & T \\

T & F & F & F \\

F & T & T & T \\

F & F & T & T \\

$\end{array}$

$$

Because the columns match exactly, the statements are logically equivalent. This fact is useful in algebra of logic because it lets us replace one form with another without changing meaning.

Truth tables also reveal classic logical laws. For instance, the statement $p \lor \lnot p$ is always true, no matter whether $p$ is true or false. This is called a tautology. Its truth table looks like this:

$$

$\begin{array}{c|c}$

p & p \lor \lnot p \\

$\hline$

T & T \\

F & T \\

$\end{array}$

$$

A statement that is always false is called a contradiction. For example, $p \land \lnot p$ is always false:

$$

$\begin{array}{c|c}$

p & p \land \lnot p \\

$\hline$

T & F \\

F & F \\

$\end{array}$

$$

These ideas matter because they help identify statements that are always true, always false, or sometimes true. That is a foundation for proving theorems and simplifying logical expressions.

Truth Tables for Arguments

Truth tables are not only for single statements. They can also test whether an argument is valid. An argument is valid when it is impossible for all the premises to be true and the conclusion false at the same time.

Suppose we have the argument:

$ p \to q $

$ p $

therefore $ q $

This is the famous form called modus ponens. To test it, we check the rows where both premises are true. In those rows, the conclusion must also be true.

Consider the truth table:

$$

$\begin{array}{c|c|c|c}$

p & q & p $\to$ q & \text{Conclusion } q \\

$\hline$

T & T & T & T \\

T & F & F & F \\

F & T & T & T \\

F & F & T & F \\

$\end{array}$

$$

Now look at the rows where $p$ and $p \to q$ are both true. That happens only in the first row, and there $q$ is true. So the argument is valid.

Truth tables can also show invalid arguments. If you can find even one row where all premises are true and the conclusion is false, then the argument fails. This is a direct and reliable method.

In real life, this is similar to checking a set of conditions in a recipe or school rule. If the conditions are not enough to guarantee the result, the “argument” does not always work. Logic uses truth tables to verify that guarantee carefully.

Why Truth Tables Matter in Discrete Mathematics

Truth tables are part of the broader study of logic and mathematical statements because they turn verbal reasoning into organized mathematical analysis. They help you move from sentence meaning to exact structure.

They are used in many areas of discrete mathematics, including proof writing, computer science, circuit design, and algorithms. In digital circuits, for example, $T$ and $F$ can represent $1$ and $0$. A logic gate such as AND, OR, or NOT behaves according to a truth table. That means truth tables connect abstract logic to actual technology 💻.

They also help simplify complicated statements. If two expressions are equivalent, a simpler form can replace a longer one. This makes proofs cleaner and computer logic faster. For example, a designer may use a truth table to show that two circuit expressions produce the same output for every input.

Most importantly, truth tables teach careful reasoning. Instead of relying on intuition alone, you test every possibility. That habit is central to discrete mathematics.

Conclusion

Truth tables give a complete picture of how logical statements behave. They list every possible combination of truth values and show how connectives like $\lnot$, $\land$, $\lor$, $\to$, and $\leftrightarrow$ work. They are used to test equivalence, identify tautologies and contradictions, and check whether arguments are valid.

students, if you can build and read truth tables confidently, you have learned a core skill in logic and mathematical statements. This skill supports later topics such as proofs, predicates, and set relationships. Truth tables are simple in layout, but powerful in what they reveal.

Study Notes

  • A proposition is a statement that is either true or false.
  • A truth table shows all possible truth-value combinations for one or more propositions.
  • If there are $n$ propositions, the truth table has $2^n$ rows.
  • The main logical connectives are $\lnot$, $\land$, $\lor$, $\to$, and $\leftrightarrow$.
  • $p \land q$ is true only when both $p$ and $q$ are true.
  • $p \lor q$ is true when at least one of $p$ or $q$ is true.
  • $p \to q$ is false only when $p$ is true and $q$ is false.
  • Two statements are logically equivalent if their truth tables match in every row.
  • A tautology is always true, such as $p \lor \lnot p$.
  • A contradiction is always false, such as $p \land \lnot p$.
  • Truth tables can test whether an argument is valid by checking whether true premises can lead to a false conclusion.
  • Truth tables are important in discrete mathematics, proofs, and digital logic.

Practice Quiz

5 questions to test your understanding