Proofs
Reference examples for each technique, plus a structural checker for your own proof outline.
Claim: If n is an even integer, then n² is even.
- Assume n is even. By definition, n = 2k for some integer k.
- Then n² = (2k)² = 4k² = 2(2k²).
- Since 2k² is an integer, n² = 2m where m = 2k² is an integer.
- Therefore n² is even. ■
Claim: If n² is even, then n is even.
- The contrapositive is: If n is odd, then n² is odd.
- Assume n is odd, so n = 2k+1 for some integer k.
- Then n² = 4k² + 4k + 1 = 2(2k²+2k) + 1, which is odd.
- Since the contrapositive holds, the original statement holds. ■
Claim: √2 is irrational.
- Assume, for contradiction, that √2 is rational: √2 = a/b in lowest terms.
- Then 2 = a²/b², so a² = 2b², meaning a² is even, so a is even: a = 2c.
- Substituting: 4c² = 2b² ⇒ b² = 2c², so b is also even.
- But then a and b share a factor of 2, contradicting 'lowest terms'. ■
Claim: 1 + 2 + ... + n = n(n+1)/2 for all n ≥ 1.
- Base case: n=1. LHS = 1, RHS = 1(2)/2 = 1. True.
- Inductive hypothesis: assume 1+2+...+k = k(k+1)/2 holds for some k ≥ 1.
- Inductive step: 1+2+...+k+(k+1) = k(k+1)/2 + (k+1) = (k+1)(k+2)/2.
- This matches the formula for n=k+1, so by induction the formula holds for all n ≥ 1. ■
Claim: For any integer n, n(n+1) is even.
- Case 1: n is even. Then n = 2k for some integer k, so n(n+1) = 2k(n+1) = 2·[k(n+1)], which is even.
- Case 2: n is odd. Then n+1 is even, so n+1 = 2k for some integer k, so n(n+1) = n·2k = 2·(nk), which is even.
- Every integer is either even or odd, and both cases give an even result.
- Therefore n(n+1) is even for every integer n. ■
Claim: Every integer n ≥ 2 can be written as a product of one or more primes.
- Base case: n=2. 2 is itself prime, so it trivially is 'a product of one prime'.
- Strong inductive hypothesis: assume every integer k with 2 ≤ k < n can be written as a product of primes.
- Inductive step: consider n. If n is prime, we're done. Otherwise n = a·b with 2 ≤ a,b < n. By the strong hypothesis, both a and b can be written as products of primes, so n = a·b can too.
- By strong induction, every integer n ≥ 2 is a product of primes. ■
Claim: For every full binary tree T (every node has 0 or 2 children), the number of leaves L(T) = the number of internal nodes I(T) + 1.
- Base case: T is a single leaf node. Then L(T)=1, I(T)=0, and indeed 1 = 0+1.
- Inductive hypothesis: assume the claim L=I+1 holds for the (structurally smaller) left subtree T1 and right subtree T2.
- Inductive step: if T has a root with subtrees T1 and T2, then L(T) = L(T1)+L(T2), and I(T) = 1 + I(T1) + I(T2). By the hypothesis, L(T1)=I(T1)+1 and L(T2)=I(T2)+1, so L(T) = I(T1)+I(T2)+2 = (I(T)-1)+2 = I(T)+1.
- By structural induction, the claim holds for every full binary tree. ■
Claim: Claim to disprove: For all integers n, n² + n + 1 is prime.
- To disprove a 'for all' statement, it suffices to find a single value of n where it fails.
- Try n = 4: n²+n+1 = 16+4+1 = 21.
- 21 = 3 × 7, which is not prime.
- Since the statement fails for n=4, it is false in general — this single counterexample disproves it. ■
Check Your Own Proof
Understanding Mathematical Proofs
A proof is a logically airtight argument that a statement is always true, built from definitions, previously proven results, and valid rules of inference. Learning the standard proof techniques — direct proof, contrapositive, contradiction, and induction — gives you a toolkit for tackling almost any theorem, and understanding *why* each technique works (rather than memorizing steps) is what separates a mechanical exercise from real mathematical reasoning.
Key Definitions & Formulas
- Direct proof: assume the hypothesis, apply definitions and known results, arrive at the conclusion.
- Proof by contrapositive: to prove P → Q, instead prove ¬Q → ¬P (logically equivalent, sometimes far easier).
- Proof by contradiction: assume the statement is false, derive a logical impossibility, conclude the original statement must be true.
- Mathematical induction: prove a base case, then prove that if the statement holds for n, it holds for n+1 — this establishes it for all n.
- Counterexample: a single case where a claimed universal statement fails, sufficient to disprove ∀x, P(x).
Worked Example
To prove "if n² is even, then n is even" by contrapositive: assume n is odd, so n = 2k+1 for some integer k. Then n² = 4k² + 4k + 1 = 2(2k²+2k) + 1, which is odd. We've shown ¬(n even) → ¬(n² even), which is logically equivalent to the original statement — and often much easier to work with directly.
Where This Is Used
- Verifying algorithm correctness (loop invariants use induction directly).
- Establishing the security guarantees of cryptographic protocols.
- Formal software verification and compiler correctness proofs.
- Any rigorous mathematical or scientific claim that needs to hold in all cases, not just tested ones.