Foundations
Basic Logic and Proof Techniques
The fundamental proof strategies used throughout mathematics: direct proof, contradiction, contrapositive, induction, construction, and cases. Required vocabulary for reading any theorem.
Why This Matters
Every theorem in this entire site is proved using one or more of these techniques. If you cannot recognize whether a proof proceeds by contradiction or contrapositive, you will struggle to read learning theory papers. Choosing the right proof technique often turns an intractable argument into a short one.
Logical Foundations
Implication
A statement ("if , then ") is false only when is true and is false. If is false, the implication is vacuously true regardless of .
Contrapositive
The contrapositive of is . These are logically equivalent. The converse is not equivalent to the original.
Quantifiers
Universal and Existential Quantifiers
means holds for every element of .
means there is at least one element of for which holds.
Negation swaps quantifiers: and .
The negation rule is critical for proofs by contradiction. To disprove "for all , ," you need only find one counterexample.
Proof Techniques
Direct Proof
Assume is true. Through a chain of logical deductions, conclude . This is the simplest proof structure.
The sum of two even integers is even
Let and for integers . Then , which is even. Done.
Proof by Contradiction
To prove , assume and derive a logical contradiction. Since the assumption led to a contradiction, must be false, so is true.
The square root of 2 is irrational
Assume with integers and . Then , so is even, so is even. Write . Then , so , so is even. But then , contradicting .
Proof by Contrapositive
To prove , instead prove . These are logically equivalent. Often easier when the negation of gives a concrete condition to work with.
If n squared is even, then n is even
Contrapositive: if is odd, then is odd. Proof: implies , which is odd.
Proof by Induction
Weak Induction
To prove for all : (1) Base case: prove . (2) Inductive step: prove that for all .
Strong Induction
To prove for all : (1) Base case: prove . (2) Inductive step: prove that . The inductive hypothesis assumes all previous cases, not just one.
Weak and strong induction are logically equivalent, but strong induction is sometimes more natural (e.g., proving properties of recursive algorithms where the recursion references multiple smaller inputs).
Proof by Construction
To prove that an object with certain properties exists, explicitly build it. Constructive proofs are stronger than existence proofs by contradiction because they produce the witness.
Proof by Cases
Split the domain into exhaustive, mutually exclusive cases and prove the claim separately in each case. Useful when a single argument does not cover all possibilities.
Main Theorems
Principle of Mathematical Induction
Statement
Let be a predicate on the natural numbers. If is true and for all , then is true for all .
Intuition
Induction is the domino effect. The base case knocks over the first domino. The inductive step ensures each domino knocks over the next. Together, they guarantee all dominoes fall.
Proof Sketch
This follows from the well-ordering principle: every nonempty subset of has a least element. Suppose fails for some . Let . By well-ordering, has a least element (since holds). Then holds but does not, contradicting the inductive step.
Why It Matters
Induction is the standard technique for proving statements about sequences, sums, algorithm correctness, and recursive structures. In learning theory, induction arguments appear in proving properties of iterative algorithms (e.g., convergence of gradient descent after steps).
Failure Mode
Forgetting the base case is the classic failure. The inductive step "" can be vacuously true if is never true for any starting value. Both the base case and inductive step are required.
Common Confusions
Contradiction vs. contrapositive
To prove by contradiction, you assume and derive any contradiction. To prove it by contrapositive, you assume and derive directly. Contrapositive is a direct proof of an equivalent statement. Contradiction is more general (you can derive any contradiction, not just ), but contrapositive is cleaner when it works.
Converse is not the same as contrapositive
The converse of is . This is a completely different statement that may be true or false independently. The contrapositive is logically equivalent to the original. Confusing these leads to invalid proofs.
Induction does not work on the reals
Mathematical induction works on (or any well-ordered set). You cannot use it to prove a statement for all real numbers. For the reals, you need different techniques (e.g., the least upper bound property, or transfinite induction with the axiom of choice).
Exercises
Problem
Prove by induction: for all , .
Problem
Write the negation of: "For every , there exists such that implies ." (This is the definition of continuity.)
References
Canonical:
- Velleman, How to Prove It, 3rd ed., Chapters 1-6
- Hammack, Book of Proof, 3rd ed., Chapters 1-10
Current:
-
Bloch, Proofs and Fundamentals (2011), Chapters 1-3
-
Enderton, Elements of Set Theory (1977), Chapters 1-6
-
Halmos, Naive Set Theory (1960), Chapters 1-25
-
Munkres, Topology (2000), Chapter 1 (set theory review)
Next Topics
- Sets, functions, and relations: the basic objects that proofs operate on
- Counting and combinatorics: proof by bijection and double counting
Last reviewed: April 2026
Builds on This
- Arrow's Impossibility TheoremLayer 2
- CAP TheoremLayer 3
- Category TheoryLayer 0A
- Computability TheoryLayer 0A
- Distributed ConsensusLayer 3
- Formal Languages and AutomataLayer 0A
- Formal Verification and Proof AssistantsLayer 3
- Information Retrieval FoundationsLayer 2
- Model Theory BasicsLayer 2
- P vs NPLayer 0A
- Proof Theory and Cut-EliminationLayer 2
- Relational AlgebraLayer 1
- Sets, Functions, and RelationsLayer 0A
- Type TheoryLayer 0A