Mathematical proof: the methods and why they work
“A proof is meant to show that something is true. You might think of this in terms of a dialogue — someone asks you if something is true, say, if every prime other than two is an odd number. To answer ‘yes’ is not enough; they might want to know why. In this case, you’d give them a proof” [1]. This article follows the two appendices of the Open Logic Project’s Sets, Logic, Computation that teach proof as a craft: Appendix A on the patterns a proof is made of, worked on small facts about sets, and Appendix B on induction. Where an earlier article in this series proves theorems about sequences and series or the integral, this one is about how such proofs are built and read.
What a proof is
In everyday discourse an answer may be gestured at; in logic and mathematics “we want rigorous proof — we want to show that something is true beyond any doubt. This means that every step in our proof must be justified, and the justification must be cogent”: the assumption used is one the theorem actually makes, definitions are correctly applied, the inferences appealed to are correct [2]. The things proved have names by weight. A proposition is “a basic proof-worthy statement”; a theorem is “a significant, important proposition”, sometimes named after its prover or its subject; a lemma is a result used in proving a more important one, though “confusingly, sometimes lemmas are important results in themselves”; a corollary “easily follows from another one” [2]. A statement to be proved “often contains assumptions”, such as “Let A be a formula of the form B → C” or “Suppose …”, which may be assumed in the proof, restrict what is being proved, and introduce names for the objects in play [2].
Starting. The claim to be proved “should be the last thing that is mentioned in the proof”; the book’s advice is to write it at the foot of a blank page so that it stays in view, write the assumptions at the top flagged as assumptions, and write down the definitions involved “and ensure that you understand what they mean” [3].
Unpacking definitions
A definition abbreviates: the introduced term is the definiendum, what it abbreviates the definiens, and “in proofs, we often have to go back to how the definiendum was introduced, because we have to exploit the logical structure of the definiens” [3]. To prove A ∪ B = B ∪ A one must first know what “=” means for sets: A = B exactly when the two sets have the same members [4]. Matching the placeholders matters. In the proposition, the definition’s A is filled by A ∪ B and its B by B ∪ A, and the book warns against proving that the sets A and B themselves agree member for member: that would establish A = B, which is not what the proposition says [4, 5]. Unpacking ∪ in turn, and then the set-builder notation, reduces the claim to this: whatever belongs to one of the two unions belongs to the other [5]. “Unpacking definitions is a necessary part of constructing a proof”, and “you will often need to unpack more than one definition” [5].
The inference patterns
Proofs are built out of single inferences, marked by “so”, “thus” or “therefore”; an inference “often relies” on one or two things assumed or already concluded, and often carries an explanation [6]. Unpacking a definition is itself one such pattern, and it can run in either direction: from an established D = E one infers that the sets share their elements, and to reach D = E one plans to prove that they do; the book notes that “we would usually not write it this way” as numbered steps, but “might write” instead “We want to show D = E. By definition of =, this amounts to showing that …” [6, 7]. The others the book names:
- Using and proving a conjunction. From “p and q” infer p; this is “such a basic inference that it is often not mentioned”; to prove “p and q”, prove each of p and q, possibly in two labeled sections [7].
- Proving a disjunction. It is enough to prove one disjunct, “however, it basically never happens that either disjunct just follows from the assumptions”; more often the assumptions are themselves disjunctive, which calls for proof by cases [8].
- Conditional proof. To prove “if p then q”, “simply assume the antecedent … and prove the conclusion q from it.” “p only if q”, “q if p” and “q, provided p” all mean the same. A biconditional is two conditionals and needs two conditional proofs, or a chain of “iff” steps in which “you have to make sure that each step really is an ‘iff’” [8].
- Universal claims. Using one is simple: what is true of everything is true of each thing. Proving one means proving it for an arbitrary P, introducing a name for an arbitrary object with the property and showing, “based only on definitions or what you are allowed to assume”, that it has the other; “the trick is to maintain generality throughout the proof” [8, 9]. The book’s example proves A ⊆ A ∪ B by taking an arbitrary x ∈ A [9].
- Proof by cases. Given “p or q”, prove r from p and again from q, announcing “we distinguish cases”; it works “because we assume or know that one of the two alternatives holds”, and it is not necessary to treat the case where both hold separately [10]. The example, which takes B ⊆ D and C ⊆ E as given and shows B ∪ C ⊆ D ∪ E, is “so far … only unpacked definitions” until the two cases x ∈ B and x ∈ C are run [10, 11].
- Existence claims. To prove “there is an x such that …”, find an object that fits and prove that it has the property; “finding the right object may be hard, proving that it has the required property may be hard, and sometimes it’s even tricky to show that you’ve succeeded in defining an object at all” [11]. To use one, “pretend that you have a name for one of the things which your hypothesis says exist”, a name not already in use, reason about it, and reach a conclusion that no longer mentions it [12]. The hazard is reusing a name: the book shows a “proof” that concludes A ∩ B ≠ ∅ from A ≠ ∅ and B ≠ ∅, which is false, by using the same x for two different existence claims, and asks the reader to spot the step [13, 14].
Two worked proofs, with the commentary that textbooks leave out
The book proves that union distributes over intersection and that, when A ⊆ C, adding to A the members of C outside A gives back C, interleaving each line of proof with indented commentary on which pattern it uses. The first unpacks “=” into a conjunction of two universal claims, takes an arbitrary z for each direction, unpacks ∪ and ∩, and runs proofs by cases, including nested ones; the book warns that “either z ∈ A or z ∈ B, and also either z ∈ A or z ∈ C” might look like three possibilities, “but that would be a mistake” [14, 15, 16]. The second uses a fact “we can state without proof: z ∈ A or z ∉ A. This is called the ‘principle of excluded middle’” [17, 18].
Proof by contradiction
“In the first instance, proof by contradiction is an inference pattern that is used to prove negative claims”: to show ¬p, suppose p and derive a statement known to be false; it may contradict p itself or another hypothesis [18, 19]. A proof is announced with “by way of contradiction, assume” or “suppose not” [19]. Since p is equivalent to ¬¬p, positive claims can be proved “indirectly” by deriving a contradiction from ¬p; “if the double negation confuses you, think of a proof by contradiction of some claim as a proof of a contradiction from the opposite claim” [20, 21]. Even where a direct proof is as simple, “some people prefer to proceed indirectly” [21]. The book’s warning is about negation itself: to use A ⊈ A ∪ B one must correctly unpack it as “there is an x such that x ∈ A and x ∉ A ∪ B”, and “many students’ attempted proofs by contradiction fail because they analyze the negation of a claim like ‘all As are Bs’ incorrectly” [21, 22]. The last example, whose hypothesis is that, for these two sets, union equals intersection and whose conclusion is A = B, combines the methods: assume A ≠ B, unpack it into A ⊈ B or B ⊈ A, and reach a contradiction in each case [23].
Reading proofs
“Proofs you find in textbooks and articles very seldom give all the details we have so far included in our examples”, and the reader “will often have to fill in” which cases are distinguished, when a proof is indirect, and which definitions are used [23, 24]. The book’s absorption law, A ∩ (A ∪ B) = A, has a three-sentence proof; the same proof with every step and definition made explicit in brackets is several times longer, and “the proof doesn’t mention those definitions; it’s assumed the reader has already internalized them” [24, 25].
Induction
Mathematical induction is a different thing from the “simple induction” that infers all emeralds are green from many green ones; it too concludes a general claim, but “of a very different kind” [26]. To prove that every natural number has property P: prove P(0), and prove that P(k) implies P(k + 1) for every k. The reason it works: from P(0) and the conditional at k = 0 comes P(1) by modus ponens; from P(1) and the conditional at k = 1 comes P(2); “for any number n, after doing this n times, we eventually arrive at P(n)” [27, 28]. The assumption P(k) inside the second part is the inductive hypothesis [28].
The book’s first example is that n dice can show any total from n to 6n, all 5n + 1 of them, the pattern 1, 6, 11, 16 having suggested it. The inductive step shows that k + 1 dice can total anything from k + 1 to 6k + 1 by adding a 1 to any throw of k dice, and 6k + 2 through 6k + 6 by adding 2 through 6 to a throw of k sixes [28, 29]. Its second is the inductively defined sum with s₀ = 0 and, for each n, sₙ₊₁ = sₙ + (n + 1), for which sₙ = n(n + 1)/2 follows from the base case s₀ = 0·(0 + 1)/2, which the book calls obvious, and a step that substitutes the inductive hypothesis and needs “a bit of arithmetic of fractions” [29, 30]. “The important lesson here is that if you’re proving something about some inductively defined sequence aₙ, induction is the obvious way to go”, and even when the objects are not so defined, as with the dice, “you can use induction if you can somehow relate the case for k + 1 to the case for k” [30].
Strong induction. Instead of assuming the claim for k − 1 alone, assume it for all l < k and prove it for k. A base case is then not needed separately: the claim that P holds for all l < 0 is vacuously true, there being no such l, so the conditional at k = 0 already yields P(0) [30, 31]. This form matters when the case k “may require the assumption that it is true for one or more l < k” [31].
Inductive definitions and structural induction. Logic defines kinds of objects by rules for building new ones from old: the book’s “nice terms” are the letters a, b, c, d, together with [s₁ ∘ s₂] whenever s₁ and s₂ are nice terms, and “nothing else is a nice term” [31, 32]. “The key feature of inductive definitions is that if you want to prove something about all nice terms, the definition tells you which cases you must consider”: a letter, or [s₁ ∘ s₂], and “because of clause (3), those are the only possibilities” [32]. Strong induction on length shows that the left brackets in a nice term number fewer than half its length [32, 33]. Structural induction proves results “about all elements of an inductively defined set” without the numbers: prove the property for the initial objects and prove that each operation preserves it; “you can even think of the natural numbers ℕ themselves as being given by an inductive definition: the initial object is 0, and the operation is the successor function x + 1” [33, 34]. By it, every nice term has as many [ as ], and every proper initial segment of one has more [ than ] [34, 35] (nonempty, our precision: the book’s definition admits the empty string, which has neither, and its proof starts from the segment “[“).
Why unique readability matters. A relation such as t₁ being a subterm of t₂ can be defined by induction on t₂, but “the success of this definition depends on a fact that we haven’t proved yet”: that each nice term is either one of the letters or [s₁ ∘ s₂] for uniquely determined s₁ and s₂. Bracketless terms show what goes wrong without it: b ∘ a ∘ b reads both as b with a ∘ b and as b ∘ a with b, and whether a ∘ b is a subterm of it gets a different answer under each reading [35, 36]. For nice terms the property, unique readability, is proved from the initial-segment result: if [s₁ ∘ s₂] = [r₁ ∘ r₂] then s₁ = r₁, “for otherwise one is a proper initial segment of the other”, which is impossible for two nice terms, and s₂ = r₂ follows at once [36].
When it will not come
Near the end of its proofs appendix, before a list of further reading, the book gives advice it labels “I Can’t Do It!”: start early, talk to classmates without copying, ask for help, and take a break, since “if you’re stuck, it might be because you’ve been staring at the problem for too long”; like basically everything, “solving problems and doing proofs is something that requires practice” [37, 38]. If a problem defeats you, “that’s ok. It doesn’t mean you’re stupid or that you will never get it”: learn how it is done, see where you got stuck, and then try it again without the solution [38].
Not covered here
Formal derivation systems, which the book’s main chapters treat; the proof of unique readability for the formulas of first-order logic; the inductive definition of functions, which the appendix begins where this article stops; and the further reading the book lists, which is cited there rather than here.
Sources
- [1]Open Logic Project, Sets, Logic, Computation, Appendix A.1, p. 339 (what a proof is; the dialogue). View at source ↗
- [2]Same, A.1, p. 340 (“rigorous proof”, cogent justification; propositions, theorems, lemmas, corollaries; hypotheses). View at source ↗
- [3]Same, A.2–A.3, p. 341 (starting a proof; definiendum and definiens). View at source ↗
- [4]Same, A.3, p. 342 (Proposition A.1; Definition A.2; matching placeholders). View at source ↗
- [5]Same, A.3, p. 343 (“that would show that A = B”; unpacking ∪ and set-builder notation; Proposition A.3; “necessary part”). View at source ↗
- [6]Same, A.4, p. 344 (inferences; unpacking as a pattern; justifying before or after). View at source ↗
- [7]Same, A.4, p. 345 (the “We want to show D = E” form; using and proving a conjunction). View at source ↗
- [8]Same, A.4, p. 346 (proving a disjunction; conditional proof; biconditionals; using a universal claim). View at source ↗
- [9]Same, A.4, p. 347 (proving a universal claim; “maintain generality”; Proposition A.4). View at source ↗
- [10]Same, A.4, p. 348 (proof by cases; Proposition A.5 begun). View at source ↗
- [11]Same, A.4, p. 349 (Proposition A.5 concluded; proving an existence claim; Proposition A.6 begun). View at source ↗
- [12]Same, A.4, p. 350 (Proposition A.6 concluded; using existence claims). View at source ↗
- [13]Same, A.4, p. 351 (Proposition A.7 with commentary; bound variables versus names). View at source ↗
- [14]Same, A.4–A.5, p. 352 (the incorrect proof reusing x; Proposition A.8 begun). View at source ↗
- [15]Same, A.5, pp. 353–354 (the first direction with cases). View at source ↗
- [16]Same, A.5, pp. 355–356 (the second direction; “but that would be a mistake”; nested cases). View at source ↗
- [17]Same, A.6, pp. 356–357 (Proposition A.9; the conditional unpacked). View at source ↗
- [18]Same, A.6–A.7, p. 358 (principle of excluded middle; proof by contradiction introduced). View at source ↗
- [19]Same, A.7, p. 359 (the strategy; Proposition A.10; “suppose not”). View at source ↗
- [20]Same, A.7, p. 360 (the contradiction reached; p iff ¬¬p; indirect proofs of positive claims). View at source ↗
- [21]Same, A.7, p. 361 (reformulating claims; “some people prefer to proceed indirectly”; Proposition A.11 begun). View at source ↗
- [22]Same, A.7, p. 362 (“many students’ attempted proofs by contradiction fail”; Proposition A.12). View at source ↗
- [23]Same, A.7–A.8, p. 363 (Proposition A.13 by cases; reading proofs introduced). View at source ↗
- [24]Same, A.8, p. 364 (Proposition A.14, absorption, and its unpacking). View at source ↗
- [25]Same, A.8, p. 365 (the fully explicit version; “internalized”). View at source ↗
- [26]Same, Appendix B.1, p. 369 (induction versus “simple induction”; the two parts). View at source ↗
- [27]Same, B.1–B.2, p. 370 (induction on numbered objects; structural induction named; why the two parts suffice). View at source ↗
- [28]Same, B.2, p. 371 (modus ponens n times; the dice pattern; Theorem B.1; inductive hypothesis). View at source ↗
- [29]Same, B.2, p. 372 (the inductive step for dice; the inductively defined sum). View at source ↗
- [30]Same, B.2–B.3, p. 373 (Proposition B.2; “the important lesson”; strong induction introduced). View at source ↗
- [31]Same, B.3–B.4, p. 374 (no separate base case; vacuous quantification; inductive definitions introduced). View at source ↗
- [32]Same, B.4, pp. 375–376 (Definition B.3, nice terms; “which cases you must consider”; Proposition B.4 begun). View at source ↗
- [33]Same, B.4–B.5, p. 377 (Proposition B.4 concluded; structural induction; ℕ as an inductive definition). View at source ↗
- [34]Same, B.5, p. 378 (the two steps; Proposition B.5; proper initial segments). View at source ↗
- [35]Same, B.5–B.6, pp. 379–380 (Proposition B.6; Definition B.7, subterms; unique determination; Definition B.8, bracketless terms). View at source ↗
- [36]Same, B.6, p. 381 (the two readings of b ∘ a ∘ b; unique readability; Proposition B.9). View at source ↗
- [37]Same, A.9, pp. 365–366 (“I Can’t Do It!”; the four strategies). View at source ↗
- [38]Same, A.9, p. 367 (“requires practice”; “that’s ok”). View at source ↗
Wikipedia was not used as a source.
Works cited
- Richard Zach, Sets, Logic, Computation: An Open Introduction to Metalogic (Open Logic Project, F25). builds.openlogicproject.org/courses/sets-logic-computation. License: CC BY 4.0.