Introduction to Logic
Senior 4 · Mathematics
Introduction to Logic
Lesson 3 of 5
25 min
One gate says "No entry without a ticket". Another says "If you enter, you must have a ticket". Different words, the same rule. Logic can prove that two sentences always mean the same thing, and it gives a set of laws for rewriting a complicated condition as a simpler one. Programmers use the same laws to simplify the conditions in their code, and engineers to simplify circuits (Lesson 5).
Definition
Logically equivalent statements: compound statements and are logically equivalent, written , if they have the same truth value in every row of their truth tables. Equivalently, is a tautology.
Example: (Lesson 2, Worked example 4). We write for any tautology and for any contradiction.
Each law below can be checked with a truth table. Notice that every law comes in a pair: swap with and with and you get its partner.
| Law | Form with | Form with |
|---|---|---|
| Identity | ||
| Domination | ||
| Idempotent | ||
| Negation (complement) | ||
| Double negation | ||
| Commutative | ||
| Associative | ||
| Distributive | ||
| De Morgan | ||
| Absorption | ||
| Conditional | ||
| Biconditional | ||
Worked example 1: proving De Morgan's law with a truth table
Show that .
| T | T | T | F | F | F | F |
| T | F | F | T | F | T | T |
| F | T | F | T | T | F | T |
| F | F | F | T | T | T | T |
The fourth and seventh columns are identical, so the statements are equivalent. The diagram shows the same fact: the cases where " and " fails are exactly those outside or outside .

Worked example 2: negating in words
Write the negation of each statement without starting "It is not true that". (a) The shop is open and the price is fair. (b) or . (c) If it is Saturday, the office is closed.
Solution
Worked example 3: simplifying with the laws
Simplify .
Solution Name one law at each step.
Worked example 4: proving an equivalence without a truth table
Show that .
Solution
In words: "if then , and if then " says the same as "if then both and ". With three statements a truth table would need 8 rows; the laws need three lines.
Warning
The conditional is not associative. and are different: with false, true and false, the first is , which is F, while the second is , which is T. Always keep the brackets around a conditional.
Tip
To simplify, first remove every and with the conditional and biconditional laws, then push each inside with De Morgan until it sits on a single letter, and only then look for distributive, negation and absorption steps.
Dr. Trefor Bazett: 3 Ways to Show a Logical Equivalence, with De Morgan's laws as the example. Watch for the truth-table method and the method of applying known laws step by step.
Practice
Name the law you use at each step.
Key points
Sources and credits
Quick check
Which statement is logically equivalent to ¬(p ∧ q)?