Sources covered
Lecture 4 (predicate logic: quantifiers, scope, interpretations, equivalences, worked interpretations; end of the logic part of Ch. 2) and Lecture 5 (proof patterns, Script §2.6 complete). Script: §2.4.3–2.4.8, §2.5, §2.6.1–2.6.10. Material only in the script is marked (script only); reconstructions or additions of mine are marked (added). Next week: Chapter 3 (sets, relations, functions), starting with a formal definition of the natural numbers.
1. Executive Overview & Core Objectives
Lecture 4 finishes the informal introduction to predicate logic (Prädikatenlogik). Quantified formulas over a universe are general formulas whose truth depends on an interpretation, or, once the universe and the meaning of the predicates are fixed, they become statements. The lecture covers scope of quantifiers, pushing negations through quantifiers, which quantifier rules are equivalences and which are only one-way consequences, and how to formalize concepts such as “prime”, “infinitely many primes”, “sibling” or “transitive”.
Lecture 5 introduces the standard proof patterns of §2.6. Each pattern is justified by a logical consequence of propositional logic: composition of implications, direct proof, indirect proof (contraposition), modus ponens, case distinction, proof by contradiction, existence and counterexample proofs, the pigeonhole principle, and induction. The exception is induction, which rests on a Peano axiom.
Learning objectives. After this week you should be able to:
- name and use the building blocks of predicate logic: universe, predicates, functions, constants, operators, quantifiers;
- determine the scope of a quantifier and distinguish free and bound variables;
- evaluate quantified formulas under a given interpretation (, , , people);
- push negations through quantifiers (, ) and know which quantifier laws are and which only (with counterexamples);
- formalize definitions (prime, sibling, grandparent, inverse, transitivity, symmetry) as predicate-logic formulas;
- state each proof pattern of §2.6, its justifying lemma (2.5–2.11), and carry it out on examples (, , squares, , primes, pigeonhole, induction);
- recognize the classic errors: proving instead of , using "" where "" is needed, confusing an indirect proof with a proof by contradiction, and claiming irreversible proof steps are reversible.
2. Core Concepts & Formal Definitions
2.1 Building blocks of predicate logic (recap and refinements, Lecture 4)
| Building block | Notation | Input → Output | Remarks |
|---|---|---|---|
| universe (Universum) | the domain of values | a non-empty set (script) | |
| predicates (Prädikate) | fixed number of elements of → truth value | replace the propositional symbols; a 0-ary predicate is just a truth value, like a symbol | |
| functions (Funktionen) | fixed number of elements of → element of | e.g. squaring, , | |
| constants (Konstanten) | ; e.g. | fixed elements of | can be seen as 0-ary functions; kept separate only for convenience |
| operators | truth values → truth value | as in propositional logic | |
| quantifiers (Quantoren) | , | formula → formula | ”for all ”, “there exists ” |
Infix notation. Binary predicates and functions are usually written between their arguments. In , the symbol is a binary predicate, a constant and a variable. In , the symbol is a binary predicate and a binary function ().
Definition 2.11 (Quantifiers)
For a universe and a predicate :
- stands for: is true for all in .
- stands for: is true for some in , i.e. there exists at least one for which is true.
More generally, for a formula in which occurs, is true iff is true for every value of in , and is true iff is true for at least one value of in . (Also written or .)
Source note (Lecture 4)
When explaining and its tree, the lecturer twice said that the -node evaluates to true if the subformula is true “for all values of ”. That is the semantics of . Correct: is true iff is true for at least one .
Restricted quantifiers (script §2.4.3). ” whenever ” is written
The variable name is irrelevant: .
2.2 Scope, free and bound variables (Lecture 4)
Scope convention (lecture and script)
A quantifier or binds the variable in the subformula that follows it. The binding lasts until the parenthesis enclosing that subformula closes, or until an inner quantifier on the same variable takes over (“overwrites”) for its own subformula.
- An occurrence of inside the scope of a quantifier on is bound (gebunden).
- An occurrence outside every such scope is free (frei).
- A formula with a free variable cannot be evaluated even under an interpretation, because has no value. A formula without free variables is closed (geschlossen).
Parentheses change the meaning ( , usual )
The trees differ:
- first formula: root , with an under each branch;
- second formula: root , with below it.
You cannot “factor out” the quantifier like a common factor in arithmetic, which is what the student asked about.
Inner quantifier overriding the outer one (reconstructed)
In , the inner re-binds , so the outer has nothing left to bind. The inner formula is true under , hence the whole formula is true. Dropping the inner quantifier gives , which is false. In general, if is not free in :
e.g. . The lecturer stressed that this was a syntax demonstration, not a sensible formula. Use fresh variable names in practice.
Intuition
Bound variables are like loop variables or function parameters in programming. is a loop over that checks “every iteration is true”, and checks “some iteration is true”. An inner declares a new local variable that shadows the outer one.
2.3 General formulas vs. interpretations (Script §2.4.5–2.4.7, §2.5)
Interpretation (informal, Script §2.4.5)
A predicate-logic formula has “free parts”: the universe and the meaning of the predicate and function symbols. An interpretation fixes:
- the universe (non-empty);
- a concrete -ary predicate for each predicate symbol;
- a concrete function for each function symbol;
- an element for each constant.
The precise definition follows in Chapter 6.
Example: with and = ” divisible by 4”:
- = ” is odd”: false ().
- = ” is even”: true.
Satisfiable, tautology, equivalence, consequence (informal, Script §2.4.6–2.4.7)
- is satisfiable if some interpretation makes true.
- is a tautology / valid if every interpretation (every universe, every meaning of the symbols) makes true.
- if and have the same truth value under every interpretation.
- if every interpretation that makes true also makes true.
Compared with propositional logic, “for every truth assignment of the symbols” is replaced by “for every interpretation”, which is a much richer notion.
The lecturer distinguished two “worlds” on the board:
- General (allgemein): statements about formulas that hold for all interpretations, such as . Only few such laws exist, because interpretations can be arbitrary.
- Special (eine Interpretation): a fixed universe and fixed meanings ( with , , ; or = people). Here a closed formula is simply true or false.
Formulas as statements (Script §2.5)
A formula is in general not a mathematical statement. If the interpretation is fixed (universe, predicates, functions), a closed formula is a statement that is either true or false. Only then may it be used as a statement, e.g. in a chain of proof steps, and only then is it meaningful to say “the formula is true”.
Example 2.25 (script only): for , is false and is true.
Convention used in lecture and script: under a fixed interpretation, "" is sometimes used loosely to mean ” and have the same truth value (both true or both false)”. That is weaker than equivalence for all interpretations.
Lemma 2.4 (script only)
For any formulas and : if , then the statement ” is valid is valid” is true. The converse is generally false.
Proof. says that for every interpretation, if is true then is true. If is true for every interpretation, then so is .
2.4 Laws for quantifiers (Lecture 4; Script §2.4.7–2.4.8)
| Law | Type | Reason or counterexample |
|---|---|---|
| equivalence | ”not all” means “at least one exception” | |
| equivalence | ”none” means “all fail” | |
| equivalence | both directions are clear | |
| consequence only | the same witness works for both | |
| fails | , , | |
| consequence only | proof in §3.1 | |
| fails | , = even, = odd (§3.1) | |
| equivalence | identical quantifiers commute | |
| equivalence | identical quantifiers commute | |
| consequence only | one for all serves each | |
| fails | , | |
| consequence | needs | |
| if not free in | equivalence | the quantifier is vacuous |
Exam Trap: order of mixed quantifiers
lets depend on . demands one that works for all . Under , :
- is true (take );
- is false: for any , choosing gives .
Swapping different quantifiers is never an automatic equivalence.
Source note: empty universe (Lecture 4 Q&A)
A student asked whether is allowed. The lecturer was unsure (“I have to check”). Script §2.4.1: is a non-empty set. This matters: fails on an empty universe, where every -formula is vacuously true and every -formula false.
2.5 Properties of binary predicates (Lecture 4; preview of Ch. 3)
Transitivity and symmetry (as formulas)
A binary predicate (later: a relation) is
- transitive (transitiv) if is true under the interpretation;
- symmetric (symmetrisch) if is true under the interpretation.
Examples on : and are transitive, not symmetric; is transitive and symmetric.
Source note (Lecture 4)
The lecturer first called the transitivity formula a “tautology” and then corrected himself: it is not valid (it fails for interpretations where is not transitive). We only know it is true for a particular interpretation, and that is exactly what “this is transitive” means. Transitivity, symmetry and reflexivity define equivalence relations in Chapter 3.
3. Step-by-Step Derivations & Mathematical Proofs
3.1 Predicate-logic consequences, proved informally (Lecture 4)
(a) .
- Fix an interpretation that makes the left side true.
- Then some makes true, so makes true and makes true.
- So is true (witness ) and is true (witness ). The right side is true.
The converse fails: , , . The right side has witnesses and ; the left side needs a single with and , which does not exist.
(b) .
- Fix an interpretation in which is true. Show that is true.
- Case 1: is false. Then the implication is true (false premise).
- Case 2: is true. Take any . Then is true, and is true by assumption, so is true (modus ponens). As was arbitrary, is true, and the implication is true.
The student’s route in the lecture: rewrite as and as , then argue by cases exactly as above.
Converse fails: , = ” even”, = ” odd”.
- is false, so is true.
- is false (: even, not odd).
(c) . For every fixed , (idempotence). Equivalent bodies under give equivalent formulas.
Intuition: if some had , it would also have , a contradiction. So holds for no .
Source note (Lecture 4)
The lecturer wrote for (c). A student pointed out that holds. The lecturer agreed (“logische Äquivalenz gilt sogar”) but left on the board, which is also correct, just weaker.
3.2 Composition of implications (Script §2.6.1)
Definition 2.12 (Composition of implications)
If and are both true, conclude that is true.
Lemma 2.5
Proof. Compare the truth tables of the two formulas. Equivalently (as in Week 1): forces . Then makes , and makes . So the left side is whenever the right side is .
Variant (Lecture 5). Find with , and ” and ” . Justification (added):
Exam Trap: this variant is not a case distinction
A student asked whether this is a case distinction. No. Here we need and ; both are proved and both are needed. A case distinction needs a proof that at least one case holds ( or ), plus “each case implies “.
3.3 Direct proof (Script §2.6.2)
Definition 2.13 (Direct proof of an implication)
A direct proof (direkter Beweis) of assumes and then proves under this assumption.
Example (Lecture 5; Script Example 2.3): if and are squares, then is a square. Here is a square if for some integer , is ” and are squares”, and is ” is a square”.
Why these steps. The left side must be rearranged into the form . Associativity re-parenthesizes, and commutativity swaps the two operands of one single multiplication. If we “know nothing about multiplication”, every regrouping must be justified, which is the lecturer’s “bureaucratic” point. The lecturer bundled several re-bracketings per step (“associativity four times in total”); the exact bookkeeping does not matter as long as each step uses an allowed law.
Clicker question (Lecture 5): which step is not reversible?
Steps 3–7 are reversible (equalities and regrouping; for step 6 backwards, take , ). The step from ” and ” to "" is not reversible: from being a square of that form we cannot recover that and individually are squares. If all steps were equivalences, the lemma’s converse would hold: ” square and squares”. That is false: is a square, but is not.
3.4 Indirect proof (contraposition) (Script §2.6.3)
Definition 2.14 (Indirect proof of an implication)
An indirect proof (indirekter Beweis) of assumes that is false and proves, under this assumption, that is false. That is, it proves the contrapositive (Kontraposition) .
Lemma 2.6
In fact , since both have table .
Proof by truth table:
| 0 | 0 | 1 | 1 | 1 | 1 |
| 0 | 1 | 0 | 1 | 1 | 1 |
| 1 | 0 | 1 | 0 | 0 | 0 |
| 1 | 1 | 0 | 0 | 1 | 1 |
The last two columns are identical.
Exam Trap: flip and negate
Proving does not prove . is the converse, not the contrapositive. Counterexample row: makes , while . Both sides must be negated and swapped.
Exam Trap: indirect proof ≠ proof by contradiction
An indirect proof applies to an implication and proves . A proof by contradiction (§3.7) proves an arbitrary statement by deriving something false from . They are related, but not the same pattern. The lecture said so explicitly.
Example 2.26 (Lecture 5). Claim: if is irrational, then is irrational. Here : ” is irrational”, : ” is irrational”; a real number is rational iff it equals for integers with .
A direct proof would be awkward: we would have to argue all the time that a certain representation does not exist. So we prove :
By Lemma 2.6, . A student remarked that is needed; the lecturer had suppressed it for simplicity. It is included above.
3.5 Modus ponens (Script §2.6.4)
Definition 2.15 (Modus ponens)
To prove : (1) find a suitable statement ; (2) prove ; (3) prove .
Lemma 2.7
The proof is by truth table (Week 1, §3.6). The formula symbols are “translated” to statements: becomes ” is true”, becomes ” is true”, becomes “and”, becomes .
Example (Lecture 5). : .
Computing directly is hopeless. Even computing by repeated squaring needs about squarings with large intermediate numbers. Modus ponens with : “3001 is prime”:
- Prove : it suffices to check that no prime divides 3001, i.e. the primes . None does, so 3001 is prime.
- Prove using the lemma (Fermat’s little theorem for base 2, proved later in the number theory and algebra chapters): if is a prime with , then . With : , i.e. .
Both steps hold, so follows. (Checked by computer: .)
Source note (Lecture 5)
The lecturer said ” congruent 1 modulo K”. He meant modulo : .
Exam Trap: vs.
The symbol is overloaded. between numbers (with a subscript) means ” and have the same remainder modulo ”, i.e. (Chapter 4). between formulas means logical equivalence. Same glyph, unrelated meanings.
3.6 Case distinction (Script §2.6.5)
Definition 2.16 (Case distinction)
To prove by case distinction (Fallunterscheidung):
- Find a finite list of statements (the cases).
- Prove that at least one is true (at least one case occurs).
- Prove for every .
Steps 2 and 3 can be done in either order. For this is exactly modus ponens.
Lemma 2.8
For every :
The lecturer’s point: for each fixed this can be checked with a truth table ( rows). But “for every ” is an infinite family of statements, and checking tables one at a time never finishes. We need induction for that (script remark).
Proof sketch by induction on (added, following the script’s remark):
-
Base : is Lemma 2.7.
-
Step : take an assignment making the left side for true. Then is true.
- If is true, the left side for is true (all for are among the conjuncts), so is true by the induction hypothesis.
- Otherwise must be true, and gives .
Either way is true.
Example (Lecture 5): for the chessboard. On a board, the marked square is a corner, an edge (non-corner) square, or an interior square. Up to rotation and reflection, these three cases cover all 16 positions. Give a tiling for each case. (The counting criterion is necessary but does not prove existence.)
Example 2.27 (script only). Claim: for every not divisible by 5, is one more than a multiple of 5.
- Write with (possible since ).
- By the binomial formula :
- Every summand except is divisible by 5. So the claim is equivalent to ” is one more than a multiple of 5” for .
- Case distinction:
| 1 | 1 | 0 = 5·0 |
| 2 | 16 | 15 = 5·3 |
| 3 | 81 | 80 = 5·16 |
| 4 | 256 | 255 = 5·51 |
All cases hold. (Later this generalizes to every odd prime in place of 5, via Fermat’s little theorem.)
3.7 Proof by contradiction (Script §2.6.6)
Definition 2.17 (Proof by contradiction)
To prove by contradiction (Widerspruchsbeweis):
- Find a suitable statement .
- Prove that is false.
- Assume that is false and prove (from this assumption) that is true, a contradiction.
In practice the order is often: assume , derive statements until one is visibly false. That one is , and step 2 is then obvious. A contradiction is often marked with (lightning); define the symbol if you use it.
Lemma 2.9
Since , equivalently : prove ” or ” and ” is false”.
Check: the right side is only for . Then , so the left side needs (for ) and , i.e. . Impossible, so the left side is whenever .
Example 2.28 (Lecture 5): is irrational.
Fact used: a number is rational iff for coprime (teilerfremd) integers , i.e. (greatest common divisor, ggT; defined formally in §4.2.3). At most one of is then even.
Now consider on its own, for arbitrary :
Plugging this back in:
So with false, hence . The script notes that the formulas here are only compact notation for statements; the reasoning is ordinary mathematics, not formula manipulation.
Why does imply ? (student question, Lecture 5)
Indirect proof: if is odd, , then is odd. So ” odd odd”, whose contrapositive is ” even even”.
Via unique prime factorization (lecturer’s alternative): the exponent of 2 in is twice the exponent in , so it is even. If , that exponent is , hence , so the exponent in is .
The lecture skipped this justification; a complete proof needs it.
3.8 Existence proofs and counterexamples (Script §2.6.7, §2.6.9)
Definition 2.18 (Existence proof)
Consider a universe of parameters and, for each , a statement . An existence proof (Existenzbeweis) proves that is true for at least one , i.e. .
- It is constructive if it exhibits a concrete with true.
- Otherwise it is non-constructive.
Definition 2.19 (Proof by counterexample)
A proof by counterexample (Beweis durch Gegenbeispiel) proves that is not true for all , i.e. , by exhibiting an (the counterexample) with false. Since , it is a constructive existence proof of a counterexample.
Examples:
- Example 2.29 (constructive): . Witness : are all prime.
- Example 2.30 (non-constructive; infinitely many primes, ):
- Fix and consider .
- No with divides , because and so leaves remainder 1.
- Every has a prime divisor, so has a prime divisor , and by step 2.
- exists, but we don’t know it explicitly. In general .
- Example 2.34: "" holds for , but gives , which is not prime. Counterexample, so the claim is false. (Checked by computer: are the first failures.)
- Example 2.35: “every is a sum of at most three squares”, i.e. . Counterexample : only are squares , and no three of them sum to 15.
Exam Trap
A single example never proves a -statement, but a single counterexample disproves it. Symmetrically, one witness proves an -statement. “It works for ” (Example 2.34) is not a proof.
3.9 The pigeonhole principle (Script §2.6.8)
Partition
A partition (Partition) of a set into is a family of subsets with
- for all (pairwise disjoint), and
- (together they cover ).
Hence .
Theorem 2.10 (Pigeonhole principle, Schubfachprinzip)
If a set of objects is partitioned into sets, then at least one of these sets contains at least objects.
Proof (by contradiction).
- Suppose every part has at most objects.
- Since the parts are disjoint and cover the set, the total is
The strict inequality uses , which holds because rounding up adds less than 1. - So , a contradiction.
The lecturer called this an indirect proof: the theorem is an implication, and we derive “not a partition of objects” from the negated conclusion. The script calls it a proof by contradiction. Both descriptions fit.
Name: more pigeons than pigeonholes forces some hole to contain at least 2 pigeons. Since , , which gives the classical version (footnote 41). The theorem is the quantitative strengthening.
Source note (Lecture 5)
- The lecturer stated “there exists with greater than ”. That is wrong. Counterexample: , , parts of size , and , so no part is . Correct: (script, and also what the proof above shows).
- When defining a partition he wrote ” for all ”. It must be for all , since .
Examples (script only):
-
Example 2.31: among 100 people, at least 9 share a birth month: , , .
-
Example 2.32: every with contains distinct with .
- Write each as with odd.
- There are only possible odd parts (the holes) but numbers (the pigeons), so two numbers share the same .
- The one with fewer factors of 2 divides the other.
This is tight: has size and no such pair (e.g. contains ).
-
Example 2.33 (Erdős–Szekeres): every sequence of distinct numbers has a strictly increasing or strictly decreasing subsequence of length .
- To each position , assign : the lengths of the longest increasing and decreasing subsequences starting at .
- If the claim were false, all , so there are at most possible pairs for positions.
- By pigeonhole, some have .
- If , putting in front of the longest increasing subsequence from gives length , a contradiction. If , the same with .
3.10 Proof by induction (Script §2.6.10)
Proof by induction (vollständige Induktion)
Goal: over . In this course (convention).
- Basis step (Induktionsanfang / Verankerung): prove .
- Induction step (Induktionsschritt): prove that for an arbitrary , . Assume (the induction hypothesis) and derive .
Variants: for prove as the base; for prove .
Theorem 2.11 (justification of induction)
For the universe and an arbitrary unary predicate :
Why this is special (lecturer’s emphasis). contains infinitely many statements. Nothing in propositional or predicate logic as developed so far proves that the chain reaches every natural number. That is a property of itself, so it is built into the definition of : Theorem 2.11 is one of the Peano axioms (Peano-Axiome), i.e. postulated, not proved. Script footnote 44: if one instead defines within axiomatic set theory, the Peano axioms become provable theorems (beyond this course). A formal definition of comes in the next lectures.
Notation question (Lecture 5). The lecturer wrote (statement arrow) between the parts, not or , because he reads the formula under a fixed interpretation (, a concrete ) as a statement, so the axiom applies to arbitrary statements . Written with it would be the formalization of the axiom in some calculus.
Why not over ? (student question) Induction walks through the elements one by one: 0, then 1, then 2, and so on. is “larger” than (uncountable, §3.7), so no such enumeration reaches all reals, and the base plus successor step cannot cover them.
Example 2.36 (script only). for all .
-
Basis: .
-
Step: assume . Then
We split off the last summand to make the induction hypothesis applicable.
Example 2.37 (script only). Which postages can be formed from 4-cent and 5-cent stamps?
- are impossible.
- are possible.
- Claim: every amount is possible. Let = ” is a sum of 4s and 5s”.
-
Basis: .
-
Step (by case distinction): assume a decomposition of .
- Case 1: it contains a 4. Replace one 4 by a 5, which gives .
- Case 2: it contains no 4. Since , it has at least three 5s. Replace three 5s () by four 4s (), which gives .
Either way holds.
-
4. Worked Examples & Applications
4.1 Interpretation (Lecture 4)
| Formula | Reading | Truth value |
|---|---|---|
| every natural number is | true (would be false on ) | |
| some number is | true () | |
| some number and some (other) number | true | |
| one number both and | false | |
| there is no largest number | true | |
| there is a largest number | false |
Negation pushed through (student’s solution):
“There is an that is every ”: a maximum exists. It is false on but true on a finite universe like (take ). Same formula, different interpretation, different truth value.
4.2 Defining (Lecture 4; Script Example 2.19)
Goal: a formula with free variable that is true exactly when is prime, using only , , constants and quantifiers. (or ) means “the left side is defined as the right side”.
Student’s solution (Lecture 4):
Script version: .
Step by step:
- ranges over every factorization of , and each must be trivial ( or ).
- Without , the number would qualify: its only factorization is .
- is excluded automatically: is a factorization with neither factor 1. The lecturer briefly considered adding for safety; it is harmless but not needed. The script’s excludes both and .
Exam Trap: vs. in definitions
Q (Lecture 4): “Why not ?” With , the formula would say that some factorization is trivial. That is true for every (), so every number would be “prime”. Q: “Doesn’t make 18 prime?” No. The demands that all factorizations be trivial, and violates it.
4.3 Reading formulas (Lecture 4; Script Examples 2.17–2.23)
- : says that above every number there is a prime, i.e. there are infinitely many primes (Example 2.21).
- : says every non-zero real has a multiplicative inverse. True on ; false on (e.g. ) (Example 2.22). Equivalent form (Example 2.24): , since .
- (script only) Example 2.17: on , is false; is false on but true on ().
- (script only) Example 2.18: says there is no smallest element. True on and , false on ().
- (script only) Example 2.20, Fermat’s last theorem on : . The script does not abbreviate to .
- (script only) Example 2.23: says between any two distinct elements lies a third (“dense”). True on and (take ); false on and ().
- (script only) §2.4.6: is a tautology: for each , the body is an instance of the propositional tautology .
4.4 Family relations (Lecture 4)
Interpretation: = all humans. Simplifying assumptions: humans have always existed and always will, and everyone has parents (no philosophical claim intended). Basic predicate: : ” is a parent of ”.
- Child: swap the arguments.
- Sibling: a common parent . The student’s first proposal lacked . Mathematically, everyone would then be their own sibling. The lecture added to match everyday language. The transcript does not capture the student’s exact formula, so this version is reconstructed. With one common parent, half-siblings count as siblings.
- Grandparent: is the parent in the middle.
Exam Trap: no recursive definitions
A student proposed . Not allowed here. A definition may not use the defined predicate itself. Arbitrarily long chains () cannot be written as a finite formula with our means. Ways around this exist, but they bring back self-reference problems such as “the set of all sets that do not contain themselves” (Chapter 3, Russell). Aside (added): it is a known theorem that “ancestor”, the transitive closure of , is in general not definable in first-order predicate logic.
4.5 Which steps are reversible? (Lecture 5)
In a chain of steps, only some steps are equivalences. The script writes where both directions hold, but always suffices (footnote 35).
| Step | Reversible? |
|---|---|
| no (, but is not a square) | |
| no in general (: , but is not rational) | |
| even | no (: fine; but implies even, so actually yes) |
| rational | yes (script uses ) |
(Row 3: , so that step happens to be reversible. Always check each direction individually.)
5. Intuition & Conceptual Bridges
Every proof pattern is a tautology in disguise
Each pattern of §2.6 is a logical consequence of propositional logic, “translated” so that symbols become statements, becomes “and”, and becomes .
Pattern Justifying consequence composition (L. 2.5) indirect proof (L. 2.6) modus ponens (L. 2.7) case distinction (L. 2.8) contradiction (L. 2.9) counterexample induction Peano axiom (Thm. 2.11), not a tautology Induction is the only one that is not a logical law but a property of . Invalid “patterns” correspond to non-tautologies, e.g. fails (Week 1, the "" proof).
Quantifiers are big AND and big OR
On a finite universe :
- is ;
- is .
Then the quantifier laws follow from Lemma 2.1:
- and are de Morgan’s rules;
- is just reordering a long conjunction;
- is a disjunction of , while is a conjunction of two disjunctions with independent indices. So the second only follows from the first.
On infinite universes the “big” become infinite, and that is where truth tables stop working.
Which pattern when? (Lecture 5 Q&A)
There is no ranking. Use what fits.
- Statements of the form “not … exists” or “is irrational/infinite” are often easiest by contradiction or indirectly: you get to assume something concrete ().
- “For all ” suggests induction.
- “There exist two … with …” with more objects than categories suggests pigeonhole.
- “For all” claims you suspect false call for a counterexample.
The lecturer admitted to having written unnecessarily long direct proofs in research papers that would have been short by contradiction.
Connections.
- Backwards: Week 1 tautologies (, transitivity) now justify proof patterns. The doubling theorem of the chessboard (Week 1) is an induction in disguise: base , step . by case distinction is §2.6.5 in action.
- Forward: Chapter 3 (sets, relations, functions) starts next week. Transitivity and symmetry return as properties of relations defining equivalence relations and partial orders. Partitions (pigeonhole) return as equivalence classes. Russell’s paradox explains the ban on self-referential definitions. Countability (§3.7) explains why induction works on but not . Chapter 4 proves the Fermat lemma used in the modus ponens example and defines and . Chapter 6 makes interpretations, for predicate logic, and proof calculi fully formal.
6. Summary & Self-Assessment Questions
Cheat sheet
| Concept | Key fact |
|---|---|
| true iff true for every | |
| true iff true for at least one | |
| Scope | until the closing parenthesis or a re-quantification of the same variable |
| Free variable | not bound; the formula cannot be evaluated |
| Universe | non-empty set |
| Interpretation | fixes and the meaning of predicates, functions, constants |
| Valid (predicate logic) | true under all interpretations |
| Formula as statement | only under a fixed interpretation (§2.5) |
| Negation | , |
| and | |
| and | (not ) |
| and | (not ) |
| Mixed quantifiers | (not ) |
| prime | |
| Composition | , , hence (L. 2.5) |
| Direct proof | assume , derive (Def. 2.13) |
| Indirect proof | assume , derive (Def. 2.14, L. 2.6) |
| Modus ponens | find , prove , prove (Def. 2.15, L. 2.7) |
| Case distinction | cases , at least one holds, each implies (Def. 2.16, L. 2.8) |
| Contradiction | and false (Def. 2.17, L. 2.9) |
| Existence | exhibit a witness (constructive) or show existence otherwise (Def. 2.18) |
| Counterexample | one with disproves (Def. 2.19) |
| Pigeonhole | objects in parts: some part has (Thm. 2.10) |
| Induction | and , hence (Thm. 2.11, Peano) |
| contains 0 in this course |
Source notes: where lecture and correct version differ
- L4: was described as “true if true for all ”. Correct: for at least one .
- L4: the empty universe was left open. The script requires , which is needed for .
- L4: the transitivity formula was briefly called a “tautology”. It is only true under the interpretations where is transitive.
- L4: even holds as .
- L4: the sibling formula is reconstructed; the transcript drops the student’s exact proposal.
- L5: ” modulo ” should read modulo .
- L5: pigeonhole stated with "". Correct: . Partition disjointness needs .
- L5: Lemma 2.8 “cannot be proved yet”. The script proves it by induction on (sketch in §3.6).
Self-assessment questions
Question 1. Let and : "". Determine the truth value of (a) , (b) , (c) written with the negation pushed all the way inside. (d) Which of (a), (b) changes its truth value when ?
Solution to Question 1
(a) True. For each choose . Here depends on , which allows.
(b) False. A single would need for all . But and cannot both satisfy it.
(c) , i.e. . It is false on , consistent with (a) being true.
(d) On , (a) becomes false: for there is no with . (b) stays false: fails for , and any fails for every . So only (a) changes.
Question 2. (a) Show that with a concrete interpretation. (b) Is ? Prove the valid direction and refute the other.
Solution to Question 2
(a) , : ” even”, : ” odd”. The left side is true (witnesses 0 and 1). The right side would need a number that is both even and odd, so it is false. One interpretation where the left is true and the right false refutes .
(b) Not equivalent; only .
- Proof: if is true, then every satisfies , hence . The same if is true (case distinction on which disjunct holds).
- Refutation of the converse: even/odd on again. Every number is even or odd, so the left side is true. But not all numbers are even and not all are odd, so the right side is false.
This is the dual of the / law: distributes over , over , and the mixed cases only give .
Question 3. Prove by an indirect proof: for every integer , if is odd then is odd. Then state precisely why proving “if is even then is even” would not be an indirect proof of the same claim (and what it would prove instead).
Solution to Question 3
Let : ” is odd”, : ” is odd”. Indirect proof: assume , i.e. is even, . Then is even, i.e. . So , and by Lemma 2.6 (), .
“If is even then is even” is , which corresponds to . That is the converse ” odd odd”, a different statement (true here, but not the claim). Negating without swapping is the classic error.
Question 4. (a) Prove by contradiction that is irrational. Name and explicitly. (b) Where exactly would the analogous proof break down for ?
Solution to Question 4
(a) : ” is irrational”. Assume : with , . Then .
- , hence . (Indirect: if , then or , so , i.e. .)
- Write . Then , so , so , hence .
- So , i.e. .
: ” with , and ”, which is false. We showed and false, so holds (Lemma 2.9).
(b) For : gives , , , so . Nothing forces (e.g. ). The step "" has no analogue: dividing by 4 leaves no factor 2 behind. No contradiction arises, as it must be, since is rational.
Question 5. (a) Show with the pigeonhole principle that among any 5 points in a unit square (side length 1), two have distance at most . (b) Prove by induction that for all . State base, hypothesis and step. (c) Why is “it holds for , I checked by computer” not a proof of (b), and what pattern would a single failing give?
Solution to Question 5
(a) Split the unit square into 4 sub-squares of side (the “holes”; assign boundary points to any one adjacent sub-square so the parts form a partition). 5 points into parts: some part contains at least points (Theorem 2.10). Two points in a square of side are at most its diagonal apart: .
(b) : , universe , so the base is .
- Base: .
- Hypothesis: for an arbitrary .
- Step: .
By Theorem 2.11 (shifted to start at 1), .
(c) Finitely many checks only prove , not the infinite (cf. , prime up to ). One failing would be a counterexample (Def. 2.19), proving .