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 :
- Divides: means there exists an integer with .
- Even: is even means such that .
- Odd: is odd means such that .
- Prime: whose only positive divisors are and .
- Composite: for which there exists an integer with and .
What a proof is.
- To prove a statement is to show it is impossible to be false, not just true in many cases.
- Most claims can be cast as an implication . The backbone of a direct proof is the tautology: if is true and is true, then is true.
- An equivalent route is the contrapositive , which has the same truth table.
Examples are not proof.
- Finding many—even infinitely many—confirming cases does not establish a universal claim. "All primes are odd" survives yet fails at .
- The Goldbach conjecture (every even integer greater than is a sum of two primes, e.g. , ) has been checked by computer to enormous values but remains unproven—verification is not proof.
Procedure for a direct proof.
- Restate the proposition in if–then form: (the antecedent) implies (the conclusion).
- Write the first line = assume the antecedent, and the last line = the conclusion you must reach.
- Unravel the definitions—replace each defined term with its meaning, working top-down from the antecedent and bottom-up from the conclusion.
- Bridge the gap. There is no algorithm for this middle step; it requires insight specific to the problem.
- Closure of under addition and multiplication (sums/products of integers are integers) may be assumed.
If-and-only-if proofs. To prove , prove both and —two proofs in one, often marked with directional arrows and .
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 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. .)
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: (and), (or), (implies), (iff), (not). Key identities, each provable by truth table:
- Commutative: , .
- Associative: , and likewise for .
- Identity: , .
- Distributive: , and .
- Complement: , .
- De Morgan: , .
- Implication as disjunction: .
Worked Example
Claim: The sum of two even integers is even.
Restate as implication: If and are even integers, then is even.
Proof. Assume and are even. Unraveling the definition of even, there exist integers with and . We must reach for some integer :
Since and are integers, is an integer (closure of under addition). Thus , which is exactly the definition of even. Therefore is even.
The same template proves transitivity of divisibility: if and , then . Assuming the antecedent gives integers with and ; substituting, , so with the integer we have , i.e. .
Summary
- To prove a statement is to show it is impossible to be false; no quantity of confirming examples (Goldbach being the cautionary case) ever suffices.
- The direct-proof recipe: restate as , assume the antecedent on line one, target the conclusion on the last line, unravel definitions from both ends, then bridge with problem-specific insight.
- Even/odd/divides/prime/composite are all defined by an existence statement ( an integer such that …); unraveling these definitions is what turns a claim into algebra.
- An iff proof requires proving both directions; closure of the integers under and may be assumed.
- A single counterexample disproves a universal claim—precisely the truth-table row where the antecedent is true and the conclusion is false.
- The logical connectives form a Boolean algebra with commutative, associative, identity, distributive, complement, and De Morgan laws, all verifiable by truth table; in particular .