Math · 03

Proof and Logic

← Precalculus, competition-hardSingle-Variable Calculus →

Problems first

Attempt these before you open a book or a video. Write the argument in the work box and the conclusion in the answer box. Check counts the problem only when both pass, and it does not open the solution. The solution stays locked for twenty minutes after you start the timer.

Attack 1

Prove that there is no rational number whose square is 2. Paragraph form.

Timer not started. Twenty minutes of real work before a solution.

Attack 2

Prove by induction that \(1+2+\cdots+n=n(n+1)/2\) for every positive integer \(n\).

Timer not started. Twenty minutes of real work before a solution.

Attack 3

Give an injective function \(\mathbb{N}\to\mathbb{N}\) that is not surjective. Say what this forbids you from concluding about “size.”

Timer not started. Twenty minutes of real work before a solution.

Prerequisites

What this actually is

A proof is a finite piece of writing in which every sentence is either a definition, a hypothesis, or a consequence of earlier sentences by a rule you could name. Logic and set theory are the grammar of those sentences: connectives, quantifiers, membership, functions, relations. Induction is the one extra rule that talks about the natural numbers. Cardinality is the first place the grammar says something your intuition will reject, and that is why it is on this page.

You are not collecting logical symbols for their own sake. You are learning to block the three moves that produce fake mathematics: proving the converse instead of the statement, hiding a quantifier, and using an example as a proof of a universal claim. Enderton’s book is the ceiling for the logic itself. You do not need it to start analysis. You need Hammack’s chapters cold, including the calculus chapter, because ε–δ will otherwise feel like a new religion instead of a definition.

Write proofs as paragraphs. A stack of arrows with no verbs is not a proof. If you cannot read it aloud to someone who has not seen the problem, it is not finished.

Core results

Statements only. Write the argument before you reveal it. A revealed proof you did not attempt is a paragraph you will not be able to rebuild at 2am.

  1. Quantifiers. A statement \(\forall x\in S,\, P(x)\) is false exactly when one counterexample exists. A statement \(\exists x\in S,\, P(x)\) is proved by exhibiting one element and checking \(P\). Negation swaps the quantifiers and negates the predicate.

  2. Sets, functions, relations. \(A\subseteq B\) means every element of \(A\) is in \(B\). \(A=B\) means both inclusions. A relation is a set of ordered pairs. It is an equivalence relation when it is reflexive, symmetric, and transitive, and then the equivalence classes partition the set. A function is injective, surjective, or bijective in the usual senses.

  3. Proof patterns. Direct proof assumes the hypothesis and reaches the conclusion. Contrapositive proves \(\neg Q\Rightarrow\neg P\) instead of \(P\Rightarrow Q\). Contradiction assumes the negation of the claim and derives a false sentence. Existence may be constructive or not. Uniqueness is a separate sentence: any two objects satisfying the property are equal.

  4. Induction. If \(P(1)\) holds and \(P(k)\) implies \(P(k+1)\) for every \(k\ge 1\), then \(P(n)\) holds for every positive integer \(n\). Strong induction allows the inductive step to use all earlier cases. The well-ordering principle (every nonempty subset of the positive integers has a least element) is equivalent.

  5. Cardinality. Two sets have the same cardinality when a bijection exists between them. \(\mathbb{N}\), \(\mathbb{Z}\), and \(\mathbb{Q}\) are countable. \(\mathbb{R}\) is not: Cantor’s diagonal argument. If there are injections both ways between two sets, there is a bijection (Cantor–Bernstein).

The ladder

Four rungs, in order. Do not skip a rung because the next one looks more serious.

Tier 0 / First contact

Watch or read once. Do not study from this.

Hammack, Book of Proof, the landing page
Read once, do not study from this. Read the description and the table of contents so you see that counting, induction, relations, and a chapter of ε–δ are all in one book. Then close the page and open the PDF.

Tier 1 / Main text

The thing you work through.

Richard Hammack, Book of Proof, 3rd edition, revision 3.4 (5 February 2025), ISBN 978-0-9894721-2-8
Free legal PDF, Creative Commons, AIM open textbook. This replaces Velleman as the working text because you can start tonight. Velleman, How to Prove It, ISBN 978-1-108-43953-4, is the paid book to buy if you want a second, slightly stricter pass. The ISBN was confirmed against the Open Library catalog; a stable publisher page was not.

Tier 2 / Hard problems

The problem book.

Hammack, every exercise in Chapters 1–14, written
The book is the problem set. Do not use the solution section until a writeup exists. Munkres’s Chapter 1 exercises are the harder set-theory drill once Hammack feels short; the book is paid, ISBN 978-0-13-181629-9 for the 2nd edition catalog entry, and the topology page sends you there properly.

Tier 3 / The ceiling

The hardest questions that exist at this level.

Kedlaya, The Putnam Archive
The public ceiling for timed proof-writing. Enderton, A Mathematical Introduction to Logic, ISBN 978-0-12-238452-3, is the paid logic ceiling; no free copy was verified, so it is named and not linked.

Hardest questions

Names and links. The problem text stays on the source site. Copyrighted contest problems are not copied here. What follows is where they are and why they hurt.

  1. Hammack, Chapter 13, the ε–δ and sequence exercises
    This is the first time a proof has an alternating quantifier you cannot bluff.
  2. Hammack, Chapter 14, Cantor–Bernstein and uncountability
    You will want to say “obviously bigger.” The exercises refuse that sentence.
  3. Putnam 1987 problems
    Several early problems are pure reasoning. Treat A1 and B1 as proof exams, not as calculus.
  4. Putnam 2008 problems
    A modern paper. The A1/B1 layer is the right ceiling before you have had analysis.
  5. Kedlaya’s Putnam archive, the whole index
    When you need another paper, take it from here. Solutions on that site are for after your writeup.

Mastery gate

Pass: twenty proofs from Hammack, at least two from each of direct proof, contrapositive, contradiction, induction, relations, and cardinality, written in paragraphs and read aloud. Plus the irrationality of \(\sqrt{2}\) and one diagonal argument, from memory, on a blank page. Fail if any proof uses an example as a universal claim.

Diagrams

ABA∩B
To prove equality of sets, prove both inclusions. The picture is not the proof.

Escalating sets

Five sets. Finish a set before you touch the next. Full sentences, not a circled answer.

Set 1. Grammar

  1. Negate: for every \(\varepsilon>0\) there exists \(\delta>0\) such that if \(0<|x-a|<\delta\) then \(|f(x)-L|<\varepsilon\).
  2. Negate: there exists a real \(M\) such that for every positive integer \(n\), \(|a_n|\le M\).
  3. Which of “if \(n^2\) is even then \(n\) is even” and its converse is true? Prove the true one.
  4. Disprove: every positive integer is a sum of three squares. One counterexample, named as a counterexample.
  5. Translate “the set of even integers is closed under addition” into symbols, then prove it.

Set 2. Sets and functions

  1. Prove \(A\cap(B\cup C)=(A\cap B)\cup(A\cap C)\) by two inclusions.
  2. Prove that a composition of injections is injective.
  3. Find a surjection \(\mathbb{N}\to\mathbb{Z}\) and write the rule.
  4. Show that congruence modulo \(n\) is an equivalence relation. Describe the classes.
  5. Prove that if \(f:A\to B\) is bijective then \(f^{-1}\) is a function.

Set 3. Induction

  1. Prove \(1+2+\cdots+n=n(n+1)/2\).
  2. Prove \(2^n>n\) for every positive integer \(n\).
  3. Prove that \(3\) divides \(n^3-n\).
  4. Prove the formula for the sum of a geometric series by induction.
  5. Use strong induction to prove that every integer \(n\ge 2\) has a prime factor.

Set 4. Cardinality and structure

  1. Prove \(\sqrt{2}\) is irrational.
  2. Prove \(\mathbb{Z}\) is countable by writing an explicit bijection with \(\mathbb{N}\).
  3. Write Cantor’s diagonal argument for \((0,1)\).
  4. Show that a countable union of finite sets need not be finite, and that a countable union of countable sets is countable if you allow a choice of listings.
  5. Prove uniqueness of the additive identity in a set equipped with an associative operation, from the axioms, in five lines.

Set 5. Ceiling

  1. All of Hammack Chapter 13, written, before any solution is opened.
  2. All of Hammack Chapter 14.
  3. Putnam 1987 A1 and B1, full writeups, then the rest of the paper as far as you can.
  4. Putnam 2008 A1 and B1.
  5. One proof from this page, chosen at random by a friend, delivered orally.

Return bank

Ten problems to meet again. Logging a writeup schedules them at 1 day, 7 days, and 30 days in this browser.

  1. Irrationality of \(\sqrt{2}\).
  2. Sum \(1+\cdots+n\) by induction.
  3. Injection \(\mathbb{N}\to\mathbb{N}\) that misses a point.
  4. Negation of the ε–δ definition.
  5. Distributive law for sets, both inclusions.
  6. Composition of injections.
  7. Congruence modulo \(n\).
  8. Every \(n\ge 2\) has a prime factor.
  9. Diagonal argument.
  10. Putnam 1987 A1.

Oral pass

Define injection and surjection, prove the sum formula by induction, and explain why a single example cannot prove a universal statement. Blank page.

← Precalculus, competition-hardSingle-Variable Calculus →