See How Things Work

The laws of logic

Unit
Logic
Part
1. Statements
Lesson
1.10

The laws of logic are the standard equivalences, each with its name: the identity, domination, idempotent, double negation, commutative, associative, distributive, De Morgan, absorption and negation laws, and the laws of the conditional and the biconditional. This lesson proves every one of them and uses them to simplify formulas step by step, without truth tables.

The constants T and F

Lesson 1.8 (Logical equivalence) showed how known equivalences give new ones, by substitution and replacement, so that a chain of equivalences can replace a truth table. Such chains need a stock of known equivalences. Several of them compare a formula with one that is always true or always false, and these get their own symbols.

Definition (The constants T and F).

T is a formula that is true in every row, and F is a formula that is false in every row.⁠[1] They may be used in formulas like letters,⁠[2] but they stand for no statement: a truth table needs no column of its own for them, since their values never change.

Caution.

The same letters T and F also stand for the truth values true and false in a table (lesson 1.4, Truth tables). In a formula, T is a formula; in a cell of a table, T is a truth value. In every row, the formula T has the truth value T.

Example (Formulas with constants).

Find a simpler formula equivalent to each: (1) ¬T; (2) p → F; (3) T → p; (4) p ∨ ¬p.

  1. ¬T has the value F in every row, since T is true in every row. So ¬T ≡ F, and in the same way ¬F ≡ T.
  2. p → F: in the row p T it is T → F, false; in the row p F it is F → F, true. Its column F, T is the column of ¬p, so p → F ≡ ¬p.
  3. T → p: in the row p T it is T → T, true; in the row p F it is T → F, false. Its column T, F is the column of p, so T → p ≡ p.
  4. p ∨ ¬p is true in both rows (lesson 1.4), and so is T: two formulas with all T in their columns are equivalent (lesson 1.8, exercise 5). So p ∨ ¬p ≡ T.

Answer: ¬T ≡ F, p → F ≡ ¬p, T → p ≡ p and p ∨ ¬p ≡ T. A conditional with a false conclusion says that its hypothesis is false; one with a true hypothesis says just its conclusion.

Looking ahead.

A formula equivalent to T, such as p ∨ ¬p, is called a tautology, and one equivalent to F a contradiction; they are the subject of the next lesson, 1.11, “Tautologies and contradictions”.

The laws of ∧, ∨ and ¬

The table lists the equivalences that are used most often to transform formulas built with ¬, ∧ and ∨, each with the name it is known by.⁠[3][4][5]

Identity laws
p ∧ T ≡ pp ∨ F ≡ p
Domination laws
p ∨ T ≡ Tp ∧ F ≡ F
Idempotent laws
p ∨ p ≡ pp ∧ p ≡ p
Double negation law
¬¬p ≡ p
Commutative laws
p ∨ q ≡ q ∨ pp ∧ q ≡ q ∧ p
Associative laws
(p ∨ q) ∨ r ≡ p ∨ (q ∨ r)(p ∧ q) ∧ r ≡ p ∧ (q ∧ r)
Distributive laws
p ∨ (q ∧ r) ≡ (p ∨ q) ∧ (p ∨ r)p ∧ (q ∨ r) ≡ (p ∧ q) ∨ (p ∧ r)
De Morgan’s laws
¬(p ∧ q) ≡ ¬p ∨ ¬q¬(p ∨ q) ≡ ¬p ∧ ¬q
Absorption laws
p ∨ (p ∧ q) ≡ pp ∧ (p ∨ q) ≡ p
Negation laws
p ∨ ¬p ≡ Tp ∧ ¬p ≡ F
Table. The laws of logic for ¬, ∧ and ∨, in the order of Rosen’s table.⁠[3][4] Every law is checked by a truth table when the page is built.
Theorem (the laws of logic).

Each equivalence in the table holds.

Proof.

Each proof compares the two sides row by row; by the truth-table test of lesson 1.8, agreement in every row proves the equivalence.

Identity and domination. In every row T is true and F is false. So p ∧ T is true exactly when p is true, and p ∨ F is true exactly when p is true: both have the column of p. p ∨ T has a true part in every row, so it is true in every row, like T; p ∧ F has a false part in every row, so it is false in every row, like F.

Idempotent. Both parts of p ∨ p and of p ∧ p have the value of p, so each has the value of p (lesson 1.3, exercise 5). Double negation is the Proposition of lesson 1.2 (Negation).

Commutative. p ∧ q is true when both parts are true, and p ∨ q when at least one is (lesson 1.3). Neither condition depends on the order of the parts, so the rows TF and FT give p ∧ q and q ∧ p the same value, and the rows TT and FF obviously do; the same holds for ∨. Associative is the Proposition of lesson 1.3 (Conjunction and disjunction).

Distributive. Take p ∧ (q ∨ r) ≡ (p ∧ q) ∨ (p ∧ r) and split the rows by the value of p. If p is false, the left side is false, and so are both conjunctions on the right, so the right side is false too. If p is true, then in these rows p ∧ (q ∨ r) has the value of q ∨ r, and p ∧ q, p ∧ r have the values of q, r (an identity law in each row), so the right side also has the value of q ∨ r. For p ∨ (q ∧ r) ≡ (p ∨ q) ∧ (p ∨ r): if p is true, both sides are true; if p is false, the left side has the value of q ∧ r, and p ∨ q, p ∨ r have the values of q, r, so the right side has the value of q ∧ r as well.

De Morgan is the Theorem of lesson 1.9 (De Morgan’s laws).

Absorption. p ∨ (p ∧ q): if p is true, its first part is true, so it is true; if p is false, both p and p ∧ q are false, so it is false. p ∧ (p ∨ q): if p is false, its first part is false, so it is false; if p is true, both p and p ∨ q are true, so it is true. Both have the column of p.

Negation. In every row exactly one of p and ¬p is true (lesson 1.2). So p ∨ ¬p has a true part and p ∧ ¬p a false part in every row: the first is true in every row, like T, the second false in every row, like F.

By the substitution theorem of lesson 1.8, each law stays true when its letters are replaced by any formulas, every occurrence of a letter by the same formula.⁠[6] For example, the absorption law with ¬r for p and q → s for q gives ¬r ∨ (¬r ∧ (q → s)) ≡ ¬r.

Convention.

Velleman states the laws with T and F in words, as “tautology laws” and “contradiction laws”: P ∧ (a tautology) is equivalent to P, and so on.⁠[7] In each pair of laws in the table, one law turns into the other when ∧ and ∨ are exchanged and T and F are exchanged; formulas related in this way are called duals.⁠[8] Only the double negation law has no partner.

Caution.

Many of these laws resemble rules of algebra,⁠[9] but not all of them. The second distributive law matches a × (b + c) = a × b + a × c (Expanding with the distributive property), with ∧ for × and ∨ for +. The first one, with the roles exchanged, has no counterpart for numbers: 2 + 3 × 4 = 14, but (2 + 3) × (2 + 4) = 5 × 6 = 30. Nor do the idempotent and absorption laws: 3 × 3 = 9 and 3 + 3 = 6, not 3, and 2 + 2 × 5 = 12, not 2. Each law is used only in the form proved, and the associative, distributive and De Morgan laws only where the connectives match their form.⁠[10]

Explore

Check a law

Type a formula, or build it with the buttons. The table shows every row and every part of the formula.

Rowpqp ∨ qp ∧ (p ∨ q)(p ∧ (p ∨ q)) ↔ p
1TTTTT
2TFTTT
3FTTFT
4FFFFT

(p ∧ (p ∨ q)) ↔ p has 2 letters, so its table has 22 = 4 rows. It is true in 4 of them: it is true in every row.

The builder starts with an absorption law, written with ↔: the last column is T in every row, so the two sides are equivalent (lesson 1.8). The builder reads every letter, also T and F, as a statement letter: to check a law with a constant, write p ∨ ¬p in place of T and p ∧ ¬p in place of F, as in (p ∨ (q ∧ ¬q)) ↔ p.

The laws of → and ↔

Conditionals and biconditionals have laws of their own. Most of them were proved in lessons 1.5–1.8; the others follow from those and the laws above.⁠[11][12]

Theorem (laws of the conditional and the biconditional).

For all statements p, q, r:

  1. p → q ≡ ¬p ∨ q;
  2. p → q ≡ ¬(p ∧ ¬q);
  3. p → q ≡ ¬q → ¬p;
  4. p ∨ q ≡ ¬p → q;
  5. ¬(p → q) ≡ p ∧ ¬q;
  6. (p → q) ∧ (p → r) ≡ p → (q ∧ r);
  7. (p → r) ∧ (q → r) ≡ (p ∨ q) → r;
  8. (p → q) ∨ (p → r) ≡ p → (q ∨ r);
  9. (p → r) ∨ (q → r) ≡ (p ∧ q) → r;
  10. p ↔ q ≡ (p → q) ∧ (q → p);
  11. p ↔ q ≡ ¬p ↔ ¬q;
  12. p ↔ q ≡ (p ∧ q) ∨ (¬p ∧ ¬q);
  13. ¬(p ↔ q) ≡ p ↔ ¬q.

Laws (1) and (3)–(9) are in Rosen’s table of equivalences with conditionals, and (10)–(13) form his table with biconditionals;⁠[13][14] (2) is one of Velleman’s conditional laws, below.

Law (1) is called the conditional-disjunction equivalence by Rosen;⁠[15] Velleman calls (1) and (2) the conditional laws⁠[16] and (3) the contrapositive law.⁠[17]

Proof.

(1) is the Proposition of lesson 1.5 (Conditional statements), (3) the Theorem of lesson 1.6 (Converse, inverse and contrapositive), (5) is proved in lesson 1.5, (10) and (12) in lesson 1.7 (Biconditional statements), and (13) in lesson 1.8.

Several of the others compare the rows in which the two sides are false: two formulas that are false in exactly the same rows are true in the same rows too, so they are equivalent. (2): p → q is false only in the row p T, q F; ¬(p ∧ ¬q) is false exactly when p ∧ ¬q is true, which is the same row. (4): ¬p → q is false exactly when ¬p is true and q false, that is, when p and q are both false, which is exactly when p ∨ q is false. (7): (p ∨ q) → r is false exactly when p ∨ q is true and r false; (p → r) ∧ (q → r) is false exactly when one of its conditionals is, that is, when p is true and r false, or q true and r false: again when r is false and p ∨ q is true.

(11): ¬p and ¬q have the same truth value exactly when p and q do, so ¬p ↔ ¬q and p ↔ q are true in the same rows.

The rest are chains of laws already proved, one law per step, using substitution and replacement (lesson 1.8).

(6): (p → q) ∧ (p → r) ≡ (¬p ∨ q) ∧ (¬p ∨ r) by (1), twice; ≡ ¬p ∨ (q ∧ r) by a distributive law, read from right to left with ¬p for p; ≡ p → (q ∧ r) by (1).

(8): (p → q) ∨ (p → r) ≡ (¬p ∨ q) ∨ (¬p ∨ r) by (1); ≡ (¬p ∨ ¬p) ∨ (q ∨ r) by the associative and commutative laws for ∨, used several times in one step to regroup and reorder the four parts (both formulas are true exactly when at least one of the parts ¬p, q, ¬p, r is true, by the meaning of ∨ used twice); ≡ ¬p ∨ (q ∨ r) by an idempotent law; ≡ p → (q ∨ r) by (1).

(9): (p → r) ∨ (q → r) ≡ (¬p ∨ r) ∨ (¬q ∨ r) by (1); ≡ (¬p ∨ ¬q) ∨ (r ∨ r) by the associative and commutative laws, in the same way; ≡ (¬p ∨ ¬q) ∨ r by an idempotent law; ≡ ¬(p ∧ q) ∨ r by De Morgan’s law; ≡ (p ∧ q) → r by (1).

Rosen’s table also has p ∧ q ≡ ¬(p → ¬q).⁠[13] It follows from (5): substituting ¬q for q gives ¬(p → ¬q) ≡ p ∧ ¬¬q, and double negation turns the right side into p ∧ q.

Example (Splitting a hypothesis with law (7)).

Let n stand for a whole number. Use law (7) to prove “if n is a multiple of 10 or a multiple of 15, then n is a multiple of 5”.

  1. With p: n is a multiple of 10, q: n is a multiple of 15, r: n is a multiple of 5, the statement is (p ∨ q) → r.
  2. By law (7) it is equivalent to (p → r) ∧ (q → r): “if n is a multiple of 10, then n is a multiple of 5, and if n is a multiple of 15, then n is a multiple of 5”.
  3. Both conditionals are true for every n: a multiple of 10 is 10 × k = 5 × (2 × k), and a multiple of 15 is 15 × k = 5 × (3 × k), both multiples of 5.
  4. So the conjunction is true for every n, and so is the equivalent original statement.

Answer: the statement is true for every whole number n. Law (7) turns one statement with “or” in its hypothesis into two separate conditionals, one for each case. This is the idea behind proof by cases, a lesson of the unit Proof.

Simplifying with the laws

With the laws, an equivalence can be proved without a truth table: write a chain of formulas, each obtained from the one before by one law, used on the whole formula or on one part of it, and name the law at each step.⁠[18] The laws can be combined in this way to work out more complicated equivalences, as in algebra.⁠[19] Each step is correct by the substitution and replacement theorems, and the chain is correct by transitivity (lesson 1.8). A law may be used in either direction, since ≡ is symmetric.

Example (A simplification in two letters).

Simplify ¬(¬p ∨ ¬q) ∨ p.

  1. ¬(¬p ∨ ¬q) ≡ ¬¬p ∧ ¬¬q (De Morgan’s law, with ¬p, ¬q for p, q)
  2. ≡ p ∧ q (double negation, twice). By replacement, the whole formula is equivalent to (p ∧ q) ∨ p.
  3. (p ∧ q) ∨ p ≡ p ∨ (p ∧ q) (commutative law)
  4. ≡ p (absorption law).

Answer: ¬(¬p ∨ ¬q) ∨ p ≡ p. Check one row: with p F and q T the formula is ¬(T ∨ F) ∨ F = F ∨ F = F, the value of p.

Example (A simplification in three letters).

Simplify ¬(p → q) ∨ (p ∧ r), and say what it means for p: n is prime, q: n is odd, r: n > 10.

  1. ¬(p → q) ≡ p ∧ ¬q (law (5)). By replacement, the formula is equivalent to (p ∧ ¬q) ∨ (p ∧ r).
  2. ≡ p ∧ (¬q ∨ r) (a distributive law, from right to left, with ¬q for q)
  3. ≡ p ∧ (q → r) (law (1), from right to left, with q, r for p, q).

Answer: ¬(p → q) ∨ (p ∧ r) ≡ p ∧ (q → r). In words, “n is a prime that is not odd, or a prime greater than 10” says “n is prime, and if n is odd, then n > 10”. Both are true for 2 and 11 and false for 7 (Prime and composite numbers): for n = 7 the left side is F ∨ F, and the right side is T ∧ (T → F) = F.

Example (An edge case: a formula equivalent to T).

Lesson 1.4 found with a truth table that p ∨ ¬(p ∧ q) is true in every row. Prove p ∨ ¬(p ∧ q) ≡ T with the laws.

  1. p ∨ ¬(p ∧ q) ≡ p ∨ (¬p ∨ ¬q) (De Morgan’s law, by replacement)
  2. ≡ (p ∨ ¬p) ∨ ¬q (associative law)
  3. ≡ T ∨ ¬q (negation law)
  4. ≡ ¬q ∨ T (commutative law)
  5. ≡ T (domination law).

Answer: the formula is equivalent to T, true whatever p and q stand for. A chain may end in a constant.

Example (A formula equivalent to F).

Show that (p ∧ ¬q) ∧ (¬p ∨ q) ≡ F.

  1. ¬p ∨ q ≡ ¬p ∨ ¬¬q (double negation, from right to left)
  2. ≡ ¬(p ∧ ¬q) (De Morgan’s law, from right to left, with ¬q for q)
  3. By replacement, the formula is equivalent to (p ∧ ¬q) ∧ ¬(p ∧ ¬q), which is a negation law with p ∧ ¬q for p: it is equivalent to F.

Answer: the formula is false in every row. Since ¬p ∨ q ≡ p → q, it says “p and not q, and if p then q”, which can never be true. Spotting a whole formula and its negation saved a long expansion.

Example (A condition on two numbers).

Let x and y stand for rational numbers. Simplify the condition “not both x > 0 and y > 0, and x > 0”.

  1. Let p be x > 0 and q be y > 0. The condition is ¬(p ∧ q) ∧ p.
  2. ¬(p ∧ q) ∧ p ≡ p ∧ ¬(p ∧ q) (commutative law) ≡ p ∧ (¬p ∨ ¬q) (De Morgan’s law, by replacement)
  3. ≡ (p ∧ ¬p) ∨ (p ∧ ¬q) (distributive law) ≡ F ∨ (p ∧ ¬q) (negation law) ≡ p ∧ ¬q (commutative and identity laws).
  4. By lesson 1.2, ¬q, the negation of y > 0, has the truth value of y ≤ 0 for every y, so it may be replaced by y ≤ 0 (lesson 1.9, replacing a part).

Answer: “x > 0 and y ≤ 0”. Check: for x = 2, y = −1 both conditions are true; for x = 2, y = 3 both are false, since x and y are both positive and y ≤ 0 fails; for x = 0, y = 0 both are false, since x > 0 fails.

Example (A common mistake: cancelling).

A student argues: “p ∧ (p ∨ q) ≡ p by absorption and p ∧ p ≡ p by idempotence, so p ∧ (p ∨ q) ≡ p ∧ p. Cancelling p ∧ on both sides gives p ∨ q ≡ p.” Find the error.

  1. The first conclusion is right: two formulas equivalent to the same formula are equivalent to each other (lesson 1.8).
  2. The last step is not a law. Test it: in the row p F, q T, p ∨ q is true and p is false, so p ∨ q and p are not equivalent.
  3. The reason: when p is false, p ∧ A is false whatever A is, so p ∧ A ≡ p ∧ B says nothing about A and B in those rows.

Answer: there is no cancellation law in logic. The same happens with numbers and 0: 0 × 2 = 0 × 3, but 2 ≠ 3. Use only the laws proved, in the form proved.

Game

Name the law

Round
1
Score
0
Streak
0

Which law turns A into B in one step?

A = ¬(r ∨ (r ∧ p))
B = ¬r
Looking ahead.

The laws for ¬, ∧, ∨, T and F are a special case of the identities of a Boolean algebra, and the same identities hold for sets.⁠[20] They return in the units Boolean Algebra and Sets.

Historical note.

George Boole set out an algebra of logic in The Laws of Thought (1854).⁠[21] There he wrote xy for the class of things to which both names x and y apply, and observed that when the two symbols mean the same thing, their combination expresses no more than either of them alone: xx = x, which he wrote x² = x.⁠[22] This law was called the idempotent law in 1870, in another context, by the Harvard mathematician Benjamin Peirce (1809–1880);⁠[23] Jeff Miller’s list of the earliest known uses of words of mathematics also dates the word idempotent to Peirce in 1870.⁠[24]

Exercises

Exercise .

Name the law used in each step.

  1. ¬q ∨ (¬q ∧ r) ≡ ¬q
  2. (p ∨ ¬r) ∧ T ≡ p ∨ ¬r
  3. ¬(¬p ∧ q) ≡ ¬¬p ∨ ¬q
  4. r ∧ (p ∨ q) ≡ (r ∧ p) ∨ (r ∧ q)
  5. (p → q) ∧ (p → q) ≡ p → q
▸ Show solution
  1. Absorption law, with ¬q for p and r for q.
  2. Identity law, with p ∨ ¬r for p.
  3. De Morgan’s law, with ¬p for p.
  4. Distributive law (∧ over ∨), with r, p, q for p, q, r.
  5. Idempotent law, with p → q for p.
Exercise .

Simplify (p ∨ q) ∧ ¬(¬p ∧ q), naming the law at each step, and check one row.

▸ Show solution
  1. ¬(¬p ∧ q) ≡ ¬¬p ∨ ¬q (De Morgan) ≡ p ∨ ¬q (double negation). By replacement the formula is equivalent to (p ∨ q) ∧ (p ∨ ¬q).
  2. ≡ p ∨ (q ∧ ¬q) (distributive law, from right to left) ≡ p ∨ F (negation law) ≡ p (identity law).

Check: in the row p F, q T, the formula is (F ∨ T) ∧ ¬(T ∧ T) = T ∧ F = F, the value of p.

Exercise .

Prove p → (q ∨ r) ≡ (p ∧ ¬q) → r with the laws, without a truth table.

▸ Show solution

(p ∧ ¬q) → r ≡ ¬(p ∧ ¬q) ∨ r (law (1)) ≡ (¬p ∨ ¬¬q) ∨ r (De Morgan) ≡ (¬p ∨ q) ∨ r (double negation) ≡ ¬p ∨ (q ∨ r) (associative law) ≡ p → (q ∨ r) (law (1), from right to left). Lesson 1.8 proved the same equivalence with an 8-row table.

Exercise .

A student rewrites p ∨ (q ∧ r) as (p ∨ q) ∧ r “by the associative law”. Show with one row that this is wrong, and name the law that does apply.

▸ Show solution

In the row p T, q T, r F, the formula p ∨ (q ∧ r) is T, because p is T, while (p ∨ q) ∧ r is F, because r is F. So the step is wrong. The associative law regroups a chain of the same connective; here ∨ and ∧ are mixed. The law that applies is the distributive one: p ∨ (q ∧ r) ≡ (p ∨ q) ∧ (p ∨ r).

Exercise .

Simplify each condition: (1) “n is even, or n is even and n > 50”; (2) “x > 2, and x > 2 or y = 0”.

▸ Show solution
  1. With p: n is even and q: n > 50, the condition is p ∨ (p ∧ q), which is p by absorption: “n is even”.
  2. With p: x > 2 and q: y = 0, the condition is p ∧ (p ∨ q), which is p by absorption: “x > 2”.
Exercise .

Prove p ↔ (p ∧ q) ≡ p → q by finding the rows in which each side is false, without writing the whole table.

▸ Show solution

p ↔ (p ∧ q) is false exactly when p and p ∧ q have different truth values. If p is false, p ∧ q is false too, so they agree. If p is true, p ∧ q has the value of q, so they differ exactly when q is false. So the left side is false only in the row p T, q F, and p → q is false only in the same row. The two formulas are false in exactly the same row, so they are true in the same three rows and are equivalent. In words: “p holds exactly when p and q both hold” says that q holds whenever p does.

Exercise .

Prove (p → q) ∧ (p ∨ q) ≡ q with the laws, naming the law at each step, and say what the equivalence means.

▸ Show solution
  1. (p → q) ∧ (p ∨ q) ≡ (¬p ∨ q) ∧ (p ∨ q) (law (1), by replacement)
  2. ≡ (q ∨ ¬p) ∧ (q ∨ p) (commutative law, used on each part)
  3. ≡ q ∨ (¬p ∧ p) (a distributive law, from right to left, with q, ¬p, p for p, q, r)
  4. ≡ q ∨ (p ∧ ¬p) (commutative law, by replacement) ≡ q ∨ F (negation law) ≡ q (identity law).

Check one row: with p T and q F the formula is (T → F) ∧ (T ∨ F) = F ∧ T = F, the value of q. In words, “if p then q, and p or q” says just q: when p holds, the conditional gives q; when p fails, “p or q” gives q.

Summary

  1. T is a formula true in every row and F one false in every row; they may be used in formulas like letters.
  2. The laws of ¬, ∧, ∨: identity, domination, idempotent, double negation, commutative, associative, distributive, De Morgan, absorption and negation. Each is proved row by row, and holds with any formulas for its letters.
  3. The laws of → and ↔ include p → q ≡ ¬p ∨ q, the contrapositive law, (p → r) ∧ (q → r) ≡ (p ∨ q) → r and p ↔ q ≡ (p → q) ∧ (q → p).
  4. To simplify a formula, write a chain of equivalences, one law per step on the whole or on a part, naming each law; the chain may end in T or F.
  5. Some laws have no counterpart in arithmetic, and there is no cancellation law: use each law only in the form proved.

Sources

  1. 1.
    Kenneth H. Rosen, Discrete Mathematics and Its Applications (8th ed., McGraw-Hill, 2019).
    Chapter 1, “The Foundations: Logic and Proofs”, section 1.3, “Propositional Equivalences” (1.3.2, “Logical Equivalences”), p. 29 (the whole topic: pp. 29).
    “In these equivalences, T denotes the compound proposition that is always true and F denotes the compound proposition that is always false.”
    Used for: T is a formula that is true in every row, and F one that is false in every row.
  2. 2.
    Kenneth H. Rosen, Discrete Mathematics and Its Applications (8th ed., McGraw-Hill, 2019).
    Chapter 5, “Induction and Recursion”, section 5.3, “Recursive Definitions and Structural Induction” (5.3.3, “Recursively Defined Sets and Structures”, Example 8), p. 371 (the whole topic: pp. 371).
    “BASIS STEP: T, F, and s, where s is a propositional variable, are well-formed formulae.”
    Used for: T and F may be used in formulas like letters.
  3. 3.
    Kenneth H. Rosen, Discrete Mathematics and Its Applications (8th ed., McGraw-Hill, 2019).
    Chapter 1, “The Foundations: Logic and Proofs”, section 1.3, “Propositional Equivalences” (1.3.2, “Logical Equivalences”, Table 6), p. 29 (the whole topic: pp. 29).
    “p ∧ T ≡ p Identity laws p ∨ F ≡ p p ∨ T ≡ T Domination laws p ∧ F ≡ F p ∨ p ≡ p Idempotent laws p ∧ p ≡ p ¬(¬p) ≡ p Double negation law”
    Used for: the identity, domination, idempotent and double negation laws, with their names and in this order.
  4. 4.
    Kenneth H. Rosen, Discrete Mathematics and Its Applications (8th ed., McGraw-Hill, 2019).
    Chapter 1, “The Foundations: Logic and Proofs”, section 1.3, “Propositional Equivalences” (1.3.2, “Logical Equivalences”, Table 6), p. 29 (the whole topic: pp. 29).
    “Distributive laws p ∧ (q ∨ r) ≡ (p ∧ q) ∨ (p ∧ r) ¬(p ∧ q) ≡ ¬p ∨ ¬q De Morgan’s laws ¬(p ∨ q) ≡ ¬p ∧ ¬q p ∨ (p ∧ q) ≡ p Absorption laws p ∧ (p ∨ q) ≡ p p ∨ ¬p ≡ T Negation laws p ∧ ¬p ≡ F”
    Used for: the distributive, De Morgan, absorption and negation laws, with their names (the commutative and associative laws stand between the double negation and distributive laws in the same table).
  5. 5.
    Daniel J. Velleman, How to Prove It: A Structured Approach (2nd ed., Cambridge University Press, 2006).
    Chapter 1, “Sentential Logic”, section 1.2, “Truth Tables”, p. 21 (the whole topic: pp. 20–21).
    “P ∧ (Q ∨ R) is equivalent to (P ∧ Q) ∨ (P ∧ R).”
    Used for: the laws are standard: Velleman’s list has the same commutative, associative, idempotent, distributive, absorption, double negation and De Morgan laws (this is one of his distributive laws).
  6. 6.
    Daniel J. Velleman, How to Prove It: A Structured Approach (2nd ed., Cambridge University Press, 2006).
    Chapter 1, “Sentential Logic”, section 1.2, “Truth Tables”, p. 21 (the whole topic: pp. 21–22).
    “Any of the letters in these equivalences can be replaced by more complicated formulas, and the resulting equivalence will still be true.”
    Used for: each law stays true when its letters are replaced by any formulas.
  7. 7.
    Daniel J. Velleman, How to Prove It: A Structured Approach (2nd ed., Cambridge University Press, 2006).
    Chapter 1, “Sentential Logic”, section 1.2, “Truth Tables”, p. 23 (the whole topic: pp. 22–23).
    “P ∧ (a tautology) is equivalent to P.”
    Used for: Velleman states the laws with T and F in words, as tautology laws and contradiction laws (this is his first tautology law, the identity law p ∧ T ≡ p).
  8. 8.
    Kenneth H. Rosen, Discrete Mathematics and Its Applications (8th ed., McGraw-Hill, 2019).
    Chapter 1, “The Foundations: Logic and Proofs”, section 1.3, “Propositional Equivalences” (exercises, before exercise 38), p. 39 (the whole topic: pp. 39).
    “The dual of a compound proposition that contains only the logical operators ∨, ∧, and ¬ is the compound proposition obtained by replacing each ∨ by ∧, each ∧ by ∨, each T by F, and each F by T.”
    Used for: formulas related by exchanging ∧ with ∨ and T with F are called duals.
  9. 9.
    Daniel J. Velleman, How to Prove It: A Structured Approach (2nd ed., Cambridge University Press, 2006).
    Chapter 1, “Sentential Logic”, section 1.2, “Truth Tables”, p. 21 (the whole topic: pp. 21).
    “Many of the equivalences in the list should remind you of similar rules involving +, ·, and − in algebra.”
    Used for: many of the laws resemble rules of algebra.
  10. 10.
    Kenneth H. Rosen, Discrete Mathematics and Its Applications (8th ed., McGraw-Hill, 2019).
    Chapter 1, “The Foundations: Logic and Proofs”, section 1.3, “Propositional Equivalences” (1.3.2, “Logical Equivalences”, margin note), p. 30 (the whole topic: pp. 30).
    “Be careful not to apply logical identities, such as associative laws, distributive laws, or De Morgan’s laws, to expressions that have a mix of conjunctions and disjunctions when the identities only apply when all these operators are the same.”
    Used for: the associative, distributive and De Morgan laws are used only where the connectives match their form.
  11. 11.
    Kenneth H. Rosen, Discrete Mathematics and Its Applications (8th ed., McGraw-Hill, 2019).
    Chapter 1, “The Foundations: Logic and Proofs”, section 1.3, “Propositional Equivalences” (1.3.2, “Logical Equivalences”), p. 29 (the whole topic: pp. 29).
    “We also display some useful equivalences for compound propositions involving conditional statements and biconditional statements in Tables 7 and 8, respectively.”
    Used for: conditionals and biconditionals have laws of their own (Rosen’s Tables 7 and 8).
  12. 12.
    Daniel J. Velleman, How to Prove It: A Structured Approach (2nd ed., Cambridge University Press, 2006).
    Chapter 1, “Sentential Logic”, section 1.5, “The Conditional and Biconditional Connectives”, p. 47 (the whole topic: pp. 46–47).
    “To summarize, so far we have discovered the following equivalences involving conditional statements:”
    Used for: conditionals have laws of their own (Velleman’s conditional laws follow).
  13. 13.
    Kenneth H. Rosen, Discrete Mathematics and Its Applications (8th ed., McGraw-Hill, 2019).
    Chapter 1, “The Foundations: Logic and Proofs”, section 1.3, “Propositional Equivalences” (1.3.2, “Logical Equivalences”, Table 7), p. 29 (the whole topic: pp. 29).
    “(p → q) ∧ (p → r) ≡ p → (q ∧ r)”
    Used for: laws (1) and (3)–(9), and p ∧ q ≡ ¬(p → ¬q), are in Rosen’s Table 7 (this is law (6)).
  14. 14.
    Kenneth H. Rosen, Discrete Mathematics and Its Applications (8th ed., McGraw-Hill, 2019).
    Chapter 1, “The Foundations: Logic and Proofs”, section 1.3, “Propositional Equivalences” (1.3.2, “Logical Equivalences”, Table 8), p. 29 (the whole topic: pp. 29).
    “p ↔ q ≡ ¬p ↔ ¬q”
    Used for: laws (10)–(13) are Rosen’s Table 8 (this is law (11); the table lists all four).
  15. 15.
    Kenneth H. Rosen, Discrete Mathematics and Its Applications (8th ed., McGraw-Hill, 2019).
    Chapter 1, “The Foundations: Logic and Proofs”, section 1.3, “Propositional Equivalences” (1.3.2, “Logical Equivalences”, Example 3), p. 28 (the whole topic: pp. 28).
    “(This is known as the conditional-disjunction equivalence.)”
    Used for: Rosen calls law (1), p → q ≡ ¬p ∨ q, the conditional-disjunction equivalence.
  16. 16.
    Daniel J. Velleman, How to Prove It: A Structured Approach (2nd ed., Cambridge University Press, 2006).
    Chapter 1, “Sentential Logic”, section 1.5, “The Conditional and Biconditional Connectives”, p. 47 (the whole topic: pp. 46–47).
    “P → Q is equivalent to ¬(P ∧ ¬Q).”
    Used for: Velleman’s conditional laws are (1) and (2) (this is the second; the first, P → Q is equivalent to ¬P ∨ Q, stands above it).
  17. 17.
    Daniel J. Velleman, How to Prove It: A Structured Approach (2nd ed., Cambridge University Press, 2006).
    Chapter 1, “Sentential Logic”, section 1.5, “The Conditional and Biconditional Connectives”, p. 49 (the whole topic: pp. 49).
    “The contrapositive of P → Q is the formula ¬Q → ¬P, and it is equivalent to P → Q.”
    Used for: Velleman’s contrapositive law, law (3).
  18. 18.
    Kenneth H. Rosen, Discrete Mathematics and Its Applications (8th ed., McGraw-Hill, 2019).
    Chapter 1, “The Foundations: Logic and Proofs”, section 1.3, “Propositional Equivalences” (1.3.4, “Constructing New Logical Equivalences”, Example 6), p. 31 (the whole topic: pp. 31).
    “we will establish this equivalence by developing a series of logical equivalences, using one of the equivalences in Table 6 at a time”
    Used for: an equivalence is proved by a chain of formulas, each step using one law and naming it.
  19. 19.
    Daniel J. Velleman, How to Prove It: A Structured Approach (2nd ed., Cambridge University Press, 2006).
    Chapter 1, “Sentential Logic”, section 1.2, “Truth Tables”, p. 21 (the whole topic: pp. 21).
    “As in algebra, these rules can be applied to more complex formulas, and they can be combined to work out more complicated equivalences.”
    Used for: the laws can be combined to work out more complicated equivalences, as in algebra.
  20. 20.
    Kenneth H. Rosen, Discrete Mathematics and Its Applications (8th ed., McGraw-Hill, 2019).
    Chapter 1, “The Foundations: Logic and Proofs”, section 1.3, “Propositional Equivalences” (1.3.2, “Logical Equivalences”, margin note), p. 29 (the whole topic: pp. 29).
    “The identities in Table 6 are a special case of Boolean algebra identities found in Table 5 of Section 12.1. See Table 1 in Section 2.2 for analogous set identities.”
    Used for: the laws for ¬, ∧, ∨, T and F are a special case of the identities of a Boolean algebra, and the same identities hold for sets.
  21. 21.
    Kenneth H. Rosen, Discrete Mathematics and Its Applications (8th ed., McGraw-Hill, 2019).
    Chapter 1, “The Foundations: Logic and Proofs”, section 1.1, “Propositional Logic” (1.1.1, “Introduction”), p. 3 (the whole topic: pp. 3).
    “These methods were discussed by the English mathematician George Boole in 1854 in his book The Laws of Thought.”
    Used for: Boole’s The Laws of Thought appeared in 1854.
  22. 22.
    George Boole, An Investigation of the Laws of Thought, on Which Are Founded the Mathematical Theories of Logic and Probabilities (Walton and Maberly, London; Macmillan and Co., Cambridge, 1854).
    Chapter II, “Of Signs in General, and of the Signs Appropriate to the Science of Logic in Particular; also of the Laws to Which That Class of Signs Are Subject”, section § 9, p. 31 (the whole topic: pp. 31–32).
    “it follows that if the two symbols have exactly the same signification, their combination expresses no more than either of the symbols taken alone would do.”
    Used for: Boole’s product xy is the class of things to which both names apply; when the two symbols mean the same, the combination expresses no more than either alone: xx = x, which he writes x² = x (the next lines of the page).
  23. 23.
    Stanley Burris and Marcel Jackson, “George Boole”, Stanford Encyclopedia of Philosophy (first published 2010, revised 2026).
    Section “3.3, “Operations and Laws for Elective Symbols””. plato.stanford.edu/entries/boole · open at the quoted passage.
    “(called the idempotent law in 1870 by the Harvard mathematician Benjamin Peirce (1809–1880), in another context)”
    Used for: Boole’s law x² = x was called the idempotent law, a name used in 1870, in another context, by the Harvard mathematician Benjamin Peirce (1809–1880).
  24. 24.
    Jeff Miller, “Earliest Known Uses of Some of the Words of Mathematics (I)”, MacTutor History of Mathematics Archive, University of St Andrews.
    “IDEMPOTENT and NILPOTENT were used by Benjamin Peirce (1809-1880) in 1870”
    Used for: Jeff Miller’s list of the earliest known uses of words of mathematics dates the word idempotent to Benjamin Peirce (1809–1880) in 1870 (second source for the year and the dates).