The Timpson Lyceum seal

The Timpson Lyceum · Discrete Math (2025)

Proof, Counterexample, and Boolean Algebra – Lecture 3 (Discrete Math)

Overview

This lecture moves from definitions to the central activity of discrete math: writing proofs. It explains what it actually means to prove a statement (showing it is impossible to be false, not merely collecting confirming examples), lays out a repeatable procedure for constructing direct proofs, and works through several representative proofs about even numbers, divisibility, and composites. It then introduces proof by counterexample as the way to disprove a universal statement, and closes by reframing the logical connectives from earlier as Boolean algebra, reviewing the standard identities and how to evaluate Boolean expressions.

Key Concepts

Core definitions (recalled). For integers a,ba, b:

What a proof is.

Examples are not proof.

Procedure for a direct proof.

  1. Restate the proposition in if–then form: α\alpha (the antecedent) implies β\beta (the conclusion).
  2. Write the first line = assume the antecedent, and the last line = the conclusion you must reach.
  3. Unravel the definitions—replace each defined term with its meaning, working top-down from the antecedent and bottom-up from the conclusion.
  4. Bridge the gap. There is no algorithm for this middle step; it requires insight specific to the problem.

If-and-only-if proofs. To prove α  ⟺  β\alpha \iff \beta, prove both α⇒β\alpha \Rightarrow \beta and β⇒α\beta \Rightarrow \alpha—two proofs in one, often marked with directional arrows (⇒)(\Rightarrow) and (⇐)(\Leftarrow).

Proof by counterexample. To prove a universal statement is false, exhibit a single case where the antecedent is true but the conclusion is false. This works because α⇒β\alpha \Rightarrow \beta is false only in that one row of the truth table. (Contrast with proof by contradiction, which shows that assuming the antecedent forces an impossibility, i.e. α⇒False\alpha \Rightarrow \text{False}.)

Boolean algebra. A Boolean is a value that is either true (T) or false (F)—exactly two values. The logical connectives are the Boolean operators: ∧\land (and), ∨\lor (or), ⇒\Rightarrow (implies),   ⟺  \iff (iff), ¬\lnot (not). Key identities, each provable by truth table:

Worked Example

Claim: The sum of two even integers is even.

Restate as implication: If aa and bb are even integers, then a+ba + b is even.

Proof. Assume aa and bb are even. Unraveling the definition of even, there exist integers x,yx, y with a=2xa = 2x and b=2yb = 2y. We must reach a+b=2ca + b = 2c for some integer cc:

a+b=2x+2y=2(x+y).\begin{aligned} a + b &= 2x + 2y \\ &= 2(x + y). \end{aligned}

Since xx and yy are integers, c=x+yc = x + y is an integer (closure of Z\mathbb{Z} under addition). Thus a+b=2ca + b = 2c, which is exactly the definition of even. Therefore a+ba + b is even. ■\blacksquare

The same template proves transitivity of divisibility: if a∣ba \mid b and b∣cb \mid c, then a∣ca \mid c. Assuming the antecedent gives integers m,nm, n with b=amb = a m and c=bnc = b n; substituting, c=(am)n=a(mn)c = (a m) n = a(mn), so with the integer p=mnp = mn we have c=apc = a p, i.e. a∣ca \mid c. ■\blacksquare

Summary