3.3  From Argument to Derivation

Most searches in Sections 3.1 and 3.2 started from a sequent: its letters, its premises and its conclusion were given. Mathematics starts from a paragraph. Its premises are scattered among words such as “since” and “so”; some of them are not written at all; and its letters must be chosen. This section turns paragraphs into sequents and derives them. Then it goes the other way, and writes a proof beside the derivation it mirrors. A last page collects the sequents that searches keep needing.

3.3.1. One key for the section

Section 1.1, Exercise B5, fixed one key for an integer n, and this section keeps it: E: “n is even”, P: “n is prime”, T: “n is a multiple of 3”, G: “n>10” (Exercise (B5: One key, sixteen sentences, used later)). A prime is an integer greater than 1 whose only positive divisors are 1 and itself. Three facts about integers will serve as premises:

  • F1 (P∧E)→¬G: an even prime is at most 10. The only even prime is 2, since an even n>2 has the divisor 2.
  • F2 (P∧T)→¬G: a prime multiple of 3 is at most 10. The only one is 3, since a multiple of 3 greater than 3 has the divisor 3.
  • F3 (E∧T)→¬P: no even multiple of 3 is prime. Such an integer is a multiple of 6. A positive multiple of 6 has the divisor 2 and is greater than 2, and 0 and the negative integers are not prime.

Each fact is true for every integer n. An argument may use any of them as a premise, and a derivation lists the ones it uses.

A translation is checked by reading it back, letter by letter, as in Section 1.1: F3 reads back as “if n is even and a multiple of 3, then n is not prime”.

Quick check. On the key, translate “n is an odd prime greater than 10”. Then read back G→¬(P∧E).

Solution. (¬E∧P)∧G. And G→¬(P∧E) reads back as “if n>10, then n is not an even prime”.

3.3.2. Extracting an argument

To turn a paragraph into a sequent, work through five steps.

  1. Find the conclusion. Words such as so, hence, therefore, thus and it follows that introduce it.
  2. Find the stated premises. Words such as since, because, for and given that introduce them. A supposition (“suppose …”, “let n be …”) is a premise, or the assumption of a box.
  3. Name the unstated facts. Wherever a step does not follow by a rule from the lines before it, write the fact that would make it follow, as an implication, and check that the fact is true. Supply the weakest fact that closes the gap: a stronger one may prove more than the paragraph claims, or be false. (Compare Section 1.3, Exercise B5 (d), where a missing implication was written and checked.)
  4. Translate on a key, with Section 1.1’s phrase book.
  5. Derive the sequent, or break it.

Steps 1–4 are reading. Step 5 is the rest of this book.

Example (An argument about a prime, extracted)

Extract the argument of this paragraph and derive it.

Let n be an integer, and suppose that n is a prime greater than 10. Then n is odd, since the only even prime is 2. Nor is n a multiple of 3, because the only prime that is a multiple of 3 is 3 itself. So n is neither even nor a multiple of 3.

Solution. We take the five steps in order.

  1. The conclusion follows “So”: n is neither even nor a multiple of 3, that is, ¬E∧¬T (“neither … nor” in the phrase book).
  2. The stated premise is the supposition, “n is a prime greater than 10”: P∧G, since “a prime greater than 10” is a conjunction. “n is odd” and “nor is n a multiple of 3” are not premises. They are steps, each with a reason after “since” or “because”.
  3. The reasons are facts about numbers, but not in a form a rule can use. “The only even prime is 2” is used as “an even prime is not greater than 10”, which is F1. The second reason is used as F2.
  4. The sequent is P∧G, (P∧E)→¬G, (P∧T)→¬G⊢¬E∧¬T.
  5. We read the derivation off the goal. It is a conjunction of two negations: two ¬I boxes joined by ∧I, as in Section 3.1.

In the first picture, the premise is taken apart and the two conjuncts stand as subgoals. In the second, each subgoal has its box, with goal ⊥.

1P∧G
2(P∧E)→¬G
3(P∧T)→¬G
4P∧E 1
5G∧E 1
⋮
10¬E
⋮
15¬T
16¬E∧¬T∧I 10, 15
1P∧G
2(P∧E)→¬G
3(P∧T)→¬G
4P∧E 1
5G∧E 1
6Easm, for ¬I
⋮
9⊥
10¬E¬I 6–9
11Tasm, for ¬I
⋮
14⊥
15¬T¬I 11–14
16¬E∧¬T∧I 10, 15

Inside each box, the fact fires once the box’s assumption is joined to P, and its conclusion ¬G clashes with line 5.

1P∧G
2(P∧E)→¬G
3(P∧T)→¬G
4P∧E 1
5G∧E 1
6Easm, for ¬I
7P∧E∧I 4, 6
8¬G→E 2, 7
9⊥¬E 5, 8
10¬E¬I 6–9
11Tasm, for ¬I
12P∧T∧I 4, 11
13¬G→E 3, 12
14⊥¬E 5, 13
15¬T¬I 11–14
16¬E∧¬T∧I 10, 15

Lines 4–5 need nothing new, so they are written before the boxes (Section 3.1). Had the supposition been kept as a supposition, the claim would be (P∧E)→¬G, (P∧T)→¬G⊢(P∧G)→(¬E∧¬T): the same lines inside one more box, closed by →I.

The argument can also be drawn as a map: each statement a dot, each step an arrow into what it gives. The unstated facts are the dots nobody wrote. The map shows what supports what; it is not a derivation, and it leaves out the boxes.

Diagram

Quick check. Which line of the derivation in Example (An argument about a prime, extracted) is the paragraph’s sentence “Then n is odd”, and which lines does the paragraph leave silent?

Solution. Line 10. The paragraph is silent on lines 4–5 and on the box, lines 6–9, that shows it, apart from the reason F1 behind line 8.

Warning (Not allowed: extracting an argument). Each entry names the step of the method it breaks.

  • “Writing ‘n is odd’ among the premises”: a step taken as a premise. The derivation then proves nothing about whether n is odd (step 2).
  • “Reading ‘n is odd, since n is a prime greater than 10’ with ‘n is odd’ as the premise”: since introduces the premise, not the conclusion (steps 1–2).
  • “Supplying ‘every prime is odd’ for the first step”: the supplied fact must be true, and this one fails at n=2 (step 3).
  • “Supplying ¬E∧¬T itself as the unstated fact”: the derivation is legal and proves nothing. Supply the weakest fact that closes the gap (step 3).
  • “Translating ‘n is a prime greater than 10’ as P→G”: a noun with an adjective is a conjunction, P∧G, as “an even prime” was E∧P in Section 1.1 (step 4).

3.3.3. Two columns

Now the other direction: a proof is written, and its derivation is wanted. Write the proof in the left column and the derivation in the right, each sentence on the row of the lines it says. A line that no sentence says is a silent step. A sentence that matches no line is a gap in the proof, or a step this book’s rules cannot take.

Example (A proof and its derivation, side by side)

Let n be an integer. Claim: if n is even and prime, then n is not a multiple of 3.

Proof. Suppose n is even and prime. If n were a multiple of 3, it would be an even multiple of 3, and no even multiple of 3 is prime; but n is prime. So n is not a multiple of 3.

Write the derivation the proof mirrors, in two columns.

Solution. The proof uses one fact, F3, and the claim is an implication. The sequent is (E∧T)→¬P⊢(E∧P)→¬T. The goal gives a box on E∧P (left). Inside it the goal ¬T is a negation, so a ¬I box on T opens, after the assumption has been taken apart (right).

1(E∧T)→¬P
2E∧Pasm, for →I
⋮
9¬T
10(E∧P)→¬T→I 2–9
1(E∧T)→¬P
2E∧Pasm, for →I
3E∧E 2
4P∧E 2
5Tasm, for ¬I
⋮
8⊥
9¬T¬I 5–8
10(E∧P)→¬T→I 2–9

The two columns finish the derivation.

The proof The derivation
“Suppose n is even and prime.” 2 E∧P, asm, for →I
(silent) 3 E, 4 P, ∧E 2
“If n were a multiple of 3,” 5 T, asm, for ¬I
“it would be an even multiple of 3,” 6 E∧T, ∧I 3, 5
“and no even multiple of 3 is prime;” 1 (E∧T)→¬P, F3; 7 ¬P, →E 1, 6
“but n is prime.” 8 ⊥, ¬E 4, 7
“So n is not a multiple of 3.” 9 ¬T, ¬I 5–8
(the claim) 10 (E∧P)→¬T, →I 2–9

The finished derivation, read down the right column:

1(E∧T)→¬P
2E∧Pasm, for →I
3E∧E 2
4P∧E 2
5Tasm, for ¬I
6E∧T∧I 3, 5
7¬P→E 1, 6
8⊥¬E 4, 7
9¬T¬I 5–8
10(E∧P)→¬T→I 2–9

The proof says lines 2 and 5–9, and line 1 only inside a clause. It is silent on lines 3–4, taking the conjunction apart, and on line 10, since closing the outer box is the claim itself. Its “Suppose” is line 2’s “asm, for →I”, and its “If n were” is line 5’s “asm, for ¬I”. The proof hides the fact F3 in a clause; the derivation lists it.

Quick check. If the claim in Example (A proof and its derivation, side by side) were “if n is even and prime, then n is at most 10”, which fact would replace F3, and what would happen to the box of line 5?

Solution. F1 replaces F3. The box of line 5 disappears: the goal ¬G is F1’s conclusion, so after ∧E and ∧I give P∧E, one →E line reaches it.

3.3.4. A library of standard sequents

Chapters 1 and 2 and Section 3.2 proved sequents that searches keep needing. Here they are grouped by what they are for: a searcher with a resource or a goal of a given shape looks up its row. Each row is a derived rule (Definition 2.3.1). It is applied to whole available lines, never to a part of a line, and it is cited by the name in its middle column. “The rules in one place” in Section 3.1 lists the primitive rules and most of these derived rules on one card; this page regroups the derived rules, with those of Section 3.2, by use. The last group is different: it holds facts about derivations, which change the task rather than add a line.

Sequent In a justification Proved in
To use an implication
P→Q, ¬Q⊢¬P MT Proposition 2.3.1
P→Q, Q→R⊢P→R (implication is transitive) Proposition 1.4.1
(P∧Q)→R⊣⊢P→(Q→R) (curry) Proposition 1.4.2
P→Q⊢¬P∨Q (implication as disjunction) Proposition 2.5.6 (b)
To use a disjunction
P∨Q, ¬P⊢Q; P∨Q, ¬Q⊢P DS Proposition 2.3.4; Exercise (B1: The other disjunctive syllogism, used later) (a)
(P→R)∧(Q→R)⊣⊢(P∨Q)→R (cases on a hypothesis) Example (Cases on a hypothesis are two implications); Example (A disjunctive hypothesis splits into two implications)
(P→R)∧(Q→S), P∨Q⊢R∨S (constructive dilemma) Example (Constructive dilemma)
(P→R)∧(Q→S), ¬R∨¬S⊢¬P∨¬Q (destructive dilemma) Exercise (B4: Dilemmas as derived rules, used later) (b)
¬(P∧Q)⊢P→¬Q (modus ponendo tollens) Exercise (B4: Dilemmas as derived rules, used later) (c)
To use a negation or a clash
P, ¬P⊢Q (ex falso) Proposition 2.1.1
¬P⊢P→Q VI Proposition 2.1.2
¬¬P⊢P ¬¬E Proposition 2.5.1 (b)
¬(P∨Q)⊢¬P∧¬Q; ¬(P∧Q)⊢¬P∨¬Q DM Proposition 2.5.5 (a), (d)
To reach a negation
P→Q⊢¬Q→¬P CP Proposition 2.3.2
⊢(P→(Q∧¬Q))→¬P (implies a contradiction) Example (A statement that implies a contradiction)
¬P∧¬Q⊢¬(P∨Q); ¬P∨¬Q⊢¬(P∧Q) DM Proposition 2.5.5 (b), (c)
P⊢¬¬P ¬¬I Proposition 2.5.1 (a)
To reach an implication
¬P∨Q⊢P→Q (implication as disjunction) Proposition 2.5.6 (a)
¬Q→¬P⊢P→Q (CP, converse) Proposition 2.5.2
To reach a disjunction
⊢P∨¬P LEM Proposition 2.5.3
(P∧¬Q)→R⊣⊢P→(Q∨R) (refute one side) Example (Proving a disjunction by refuting one side)
To rearrange
P∧Q⊢Q∧P; P∨Q⊢Q∨P (and commutes); (or commutes) Proposition 1.2.1; Example (First derivations with “or”)
(P∧Q)∧R⊢P∧(Q∧R); P∨(Q∨R)⊢(P∨Q)∨R (and regroups); (or regroups) Proposition 1.2.2; Example (Regrouping a disjunction)
P∧(Q∨R)⊣⊢(P∧Q)∨(P∧R) (distributivity) Proposition 1.6.1
P↔Q⊢Q↔P (iff symmetric) Example (An iff read both ways)
P↔Q⊣⊢(P→Q)∧(Q→P) (iff as two implications) Proposition 2.4.1
P→Q, Q→R, R→P⊢P↔Q (equivalence cycle) Proposition 2.4.6
To change the task (facts about derivations, not lines)
more premises never hurt; a derived statement may be used as a premise (weakening, cut) Lemma 2.3.3
Γ⊢φ exactly when Γ,¬φ is inconsistent — Proposition 3.2.2
an inconsistent list derives every statement — Proposition 3.2.1

Rows proved in exercises (the second form of DS; the destructive dilemma and modus ponendo tollens rows, Exercise (B4: Dilemmas as derived rules, used later) (b), (c)) may be used by exercises, as in Section 3.1; the text’s own derivations use only rows proved in the text.

Quick check. Which row would you look up first? (i) The goal is ¬(P∨Q). (ii) A resource is ¬(P∧Q), and the goal is ¬P∨¬Q. (iii) The resources include P→Q and ¬Q.

Solution.

  • (i) DM (b), under “To reach a negation”. (ii) DM (d), which gives the goal in one line. (iii) MT.

Remark (Looking ahead). We show that something is derivable by exhibiting a derivation; how could we ever show that something is not? Chapter 4 gives each statement a truth value and proves that the rules never lead from true premises to a false conclusion. Then one choice of truth values, such as P false and Q true for the failed search of Section 3.1, proves that no derivation exists.

3.3.5. Exercises

A. Check your understanding

Exercise (A1)
  • (a) In “Since n2 is even, n is even”, which is the premise and which the conclusion?
  • (b) Find the conclusion: “n is odd, for n is prime and greater than 10.”
  • (c) Name the unstated fact: “n is a multiple of 6, so n is even.”
  • (d) On the key of this section, translate “n is an odd prime at most 10.”
  • (e) In Example (A proof and its derivation, side by side), which sentence of the proof is line 5, and what does line 5’s annotation read?

Solution.

  • (a) The premise is “n2 is even”; the conclusion is “n is even”.

  • (b) “n is odd”. For introduces the premise.

  • (c) Every multiple of 6 is even: if 6∣n, then 2∣n.

  • (d) (¬E∧P)∧¬G.

  • (e) “If n were a multiple of 3”; the annotation reads “asm, for ¬I”.

B. Practice

Exercise (B1: Extract, then derive)

For each paragraph, find the conclusion, the stated premises and any unstated fact; choose letters; write the sequent; derive it.

  • (a) Let x be a real number with x2≤x. If x were greater than 1, then x2=x⋅x would be greater than x. If x were negative, x2 would be positive, hence greater than x. So x is at least 0 and at most 1.
  • (b) Let n be an integer. Since n2 is odd, n is odd.
  • (c) Let a and b be real numbers with ab=0. If a≠0, we may divide by a and find b=0. So a=0 or b=0.

Solution.

  • (a) Take A: “x>1”, B: “x<0”, C: “x2>x”. The paragraph states two facts, each with its reason: A→C and B→C. The premise “x2≤x” is ¬C, by the convention of Section 2.1. The conclusion “at least 0 and at most 1” is ¬B∧¬A, by the same convention. The sequent is A→C, B→C, ¬C⊢¬B∧¬A.
    1A→C
    2B→C
    3¬C
    4¬AMT 1, 3
    5¬BMT 2, 3
    6¬B∧¬A∧I 5, 4

    Nothing is unstated here except the order convention.

  • (b) Take E: “n is even”, S: “n2 is even”. The premise is ¬S and the conclusion ¬E. The unstated fact is E→S, “the square of an even integer is even”, which is true since (2k)2=4k2=2(2k2). The sequent is E→S, ¬S⊢¬E.
    1E→S
    2¬S
    3¬EMT 1, 2

    The tempting wrong supply is “the square of an odd integer is odd”, ¬E→¬S. It is true, since (2k+1)2=2(2k2+2k)+1, but with the premise ¬S it gives nothing: concluding ¬E from it would be affirming the consequent (Section 1.3).

  • (c) Take A: “a=0”, B: “b=0”, Z: “ab=0”. The stated fact is (Z∧¬A)→B, dividing by a: b=a−1(ab)=0. The premise is Z and the conclusion A∨B. Neither side of the goal is in hand, so we split on A by LEM, Section 3.1’s step 5, as in Example (Proving a disjunction by refuting one side).
1(Z∧¬A)→B
2Z
3A∨¬ALEM
4Aasm, for ∨E
5A∨B∨I 4
6¬Aasm, for ∨E
7Z∧¬A∧I 2, 6
8B→E 1, 7
9A∨B∨I 8
10A∨B∨E 3, 4–5, 6–9
Exercise (B2: Two columns)

Let n be an integer. Claim: if n is prime and n>10, then n is not a multiple of 6.

Proof. Suppose n is prime and n>10. If n were a multiple of 6, it would be an even multiple of 3, and no even multiple of 3 is prime; but n is prime. So n is not a multiple of 6.

  • (a) On the key, “n is a multiple of 6” is E∧T. The derivation the proof mirrors has reached the stage below. Name the move, then complete it.

    1(E∧T)→¬P
    2P∧Gasm, for →I
    ⋮
    7¬(E∧T)
    8(P∧G)→¬(E∧T)→I 2–7
  • (b) Write the two-column table.

  • (c) Which hypothesis does the derivation never cite? What claim does that show, and is it true?

Solution.

  • (a) The goal ¬(E∧T) is a negation, so step 2 of the method opens a ¬I box on E∧T. F3 fires on it, and the clash partner P comes from line 2.
    1(E∧T)→¬P
    2P∧Gasm, for →I
    3P∧E 2
    4E∧Tasm, for ¬I
    5¬P→E 1, 4
    6⊥¬E 3, 5
    7¬(E∧T)¬I 4–6
    8(P∧G)→¬(E∧T)→I 2–7
  • (b) The two columns:
    The proof The derivation
    “Suppose n is prime and n>10.” 2
    (silent) 3
    “If n were a multiple of 6,” 4
    “it would be an even multiple of 3, and no even multiple of 3 is prime;” 1 (F3), 5
    “but n is prime.” 6
    “So n is not a multiple of 6.” 7
    (the claim) 8

    Line 4 already is E∧T, so “an even multiple of 3” is a rereading, not a step.

  • (c) G, that is, n>10, is never cited: no line uses it. The same lines with P in place of P∧G as the assumption of the outer box (line 3 dropped), closed by →I, would derive (E∧T)→¬P⊢P→¬(E∧T): no prime is a multiple of 6. That is true for every integer, by F3. The hypothesis n>10 was idle.
Exercise (B3: Fifteen items)

Items 1–5: derive each sequent, using a row of the library where it shortens the derivation, and name the row; their letters are free, not the key. Items 6–10: translate on the key, using the facts F1–F3 as premises where needed, and derive. Items 11–15: derive or break, as in Example (Two claims, one connective apart). The facts may be used as premises. A break is an integer n at which the premises are true and the conclusion false; since F1–F3 hold at every n, such an n makes the whole counterexample set true.

Derive, with the library.

  • 1. ¬(P∨Q)⊢P→R.
  • 2. P∨Q, P→R, ¬R⊢Q∧¬P.
  • 3. ¬(P∧¬Q)⊢P→Q.
  • 4. (P∨Q)→R⊢¬R→(¬P∧¬Q).
  • 5. ¬P→Q, ¬Q⊢P∧(¬Q∨R).

Translate on the key, then derive.

  • 6. n is an even multiple of 3; so n is not prime, and n is not a prime greater than 10.
  • 7. n is a prime at most 10, or n is odd; so if n is even, n is at most 10.
  • 8. n is a prime multiple of 3; so n is at most 10, and n is odd.
  • 9. n is prime; n is not a multiple of 3 or n is at most 10; and n is a multiple of 3. So n is at most 10.
  • 10. If n is greater than 10, then n is not an even prime.

Derive or break.

  • 11. n is even but not a multiple of 3; so n is not prime.
  • 12. n is an even prime; so n is at most 10.
  • 13. n is odd and greater than 10; so n is prime.
  • 14. n is odd; so n is not an even prime.
  • 15. n is not prime; so n is even or a multiple of 3.

Solution. 1. DM (a), then VI.

1¬(P∨Q)
2¬P∧¬QDM 1
3¬P∧E 2
4P→RVI 3

2. MT, then DS.

1P∨Q
2P→R
3¬R
4¬PMT 2, 3
5QDS 1, 4
6Q∧¬P∧I 5, 4

3. Modus ponendo tollens, with ¬Q for Q, turns the premise into P→¬¬Q. Inside a box on P, →E and ¬¬E reach Q.

1¬(P∧¬Q)
2P→¬¬Qmodus ponendo tollens 1
3Pasm, for →I
4¬¬Q→E 2, 3
5Q¬¬E 4
6P→Q→I 3–5

Without the library, the goal Q inside the box is a letter, so RAA on ¬Q, which clashes with the premise once P∧¬Q is built: seven lines.

1¬(P∧¬Q)
2Pasm, for →I
3¬Qasm, for RAA
4P∧¬Q∧I 2, 3
5⊥¬E 4, 1
6QRAA 3–5
7P→Q→I 2–6

The other library route (DM (d) on the premise, then ¬¬I, DS and ¬¬E inside the box) is no shorter than the seven lines.

4. MT, then DM (a), inside one box.

1(P∨Q)→R
2¬Rasm, for →I
3¬(P∨Q)MT 1, 2
4¬P∧¬QDM 3
5¬R→(¬P∧¬Q)→I 2–4

5. MT, then ¬¬E.

1¬P→Q
2¬Q
3¬¬PMT 1, 2
4P¬¬E 3
5¬Q∨R∨I 2
6P∧(¬Q∨R)∧I 4, 5

6. E∧T, (E∧T)→¬P⊢¬P∧¬(P∧G), with F3.

1E∧T
2(E∧T)→¬P
3¬P→E 2, 1
4P∧Gasm, for ¬I
5P∧E 4
6⊥¬E 5, 3
7¬(P∧G)¬I 4–6
8¬P∧¬(P∧G)∧I 3, 7

7. (P∧¬G)∨¬E⊢E→¬G, with no fact needed.

1(P∧¬G)∨¬E
2Easm, for →I
3P∧¬Gasm, for ∨E
4¬G∧E 3
5¬Easm, for ∨E
6⊥¬E 2, 5
7¬G⊥E 6
8¬G∨E 1, 3–4, 5–7
9E→¬G→I 2–8

8. P∧T, (P∧T)→¬G, (E∧T)→¬P⊢¬G∧¬E, with F2 and F3.

1P∧T
2(P∧T)→¬G
3(E∧T)→¬P
4¬G→E 2, 1
5P∧E 1
6T∧E 1
7Easm, for ¬I
8E∧T∧I 7, 6
9¬P→E 3, 8
10⊥¬E 5, 9
11¬E¬I 7–10
12¬G∧¬E∧I 4, 11

9. P, ¬T∨¬G, T⊢¬G.

1P
2¬T∨¬G
3T
4¬¬T¬¬I 3
5¬GDS 2, 4

The premise P is not needed.

10. (P∧E)→¬G⊢G→¬(P∧E), with F1.

1(P∧E)→¬G
2Gasm, for →I
3P∧Easm, for ¬I
4¬G→E 1, 3
5⊥¬E 2, 4
6¬(P∧E)¬I 3–5
7G→¬(P∧E)→I 2–6

With the library, lines 3–6 shrink to two: 3 ¬¬G, ¬¬I 2; 4 ¬(P∧E), MT 1, 3.

11. Breaks. The claim is E∧¬T⊢¬P, and at n=2 the integer is even, not a multiple of 3, and prime.

12. Derives: P∧E, (P∧E)→¬G⊢¬G, with F1.

1P∧E
2(P∧E)→¬G
3¬G→E 2, 1

13. Breaks. The claim is ¬E∧G⊢P, and at n=15 the integer is odd, greater than 10, and not prime.

14. Derives: ¬E⊢¬(P∧E). No fact is needed.

1¬E
2P∧Easm, for ¬I
3E∧E 2
4⊥¬E 3, 1
5¬(P∧E)¬I 2–4

15. Breaks. The claim is ¬P⊢E∨T, and at n=25 the integer is not prime, odd, and not a multiple of 3.

Items 11 and 12, and items 13 and 14, pair a break with a derivation on nearby words; item 15 tries to go back from “not prime” to “even or a multiple of 3”, which F3 does not give, and fails.

Exercise (B4: Put the proof in order)

Let a and b be real numbers. Claim: if a+b>2, then a>1 or b>1.

  • (i) This contradicts a+b>2.
  • (ii) Suppose a+b>2.
  • (iii) Then a>1, since a+b>2.
  • (iv) Adding, a+b≤2.
  • (v) Hence a>1 or b>1.
  • (vi) Suppose, for a contradiction, that neither a>1 nor b>1.
  • (vii) Suppose a>1 or b>1.
  • (viii) Then a≤1 and b≤1.
  • (a) Put six of these sentences in an order that proves the claim; two do not belong.
  • (b) Match each sentence of your order to a line of the derivation below, with A: “a>1”, B: “b>1”, S: “a+b>2”.
1(¬A∧¬B)→¬S
2Sasm, for →I
3¬(A∨B)asm, for RAA
4¬A∧¬BDM 3
5¬S→E 1, 4
6⊥¬E 2, 5
7A∨BRAA 3–6
8S→(A∨B)→I 2–7

Solution.

  • (a) (ii), (vi), (viii), (iv), (i), (v). No other order is admissible: the supposition (ii) must open first, since the claim is an implication, the RAA supposition (vi) inside it, and each later sentence uses the one before it. The two distractors:
      • (iii) does not follow: a=0, b=3 has a+b>2 and a≤1.
      • (vii) assumes the conclusion, a box opened on the goal (Section 3.1’s warning “Do not assume what you want to prove”).
  • (b)
    • (ii) is line 2, “asm, for →I”. (vi) is line 3, “asm, for RAA”. (viii) is line 4, by DM and the order convention of Section 2.1 (¬(a>1) is a≤1). (iv) is line 5, with the fact on line 1: adding the two inequalities. (i) is line 6, and (v) is line 7. The claim is line 8. The fact on line 1 is the one step of school algebra: a≤1 and b≤1 give a+b≤2.

C. Going deeper

Exercise (C1: Exit check: from a paragraph to a derivation)

Let n be an integer greater than 10, and suppose n is even or a multiple of 3. Then n is not prime. Indeed, suppose n were prime. If n is even, n is an even prime, and every even prime is at most 10. If n is a multiple of 3, n is a prime multiple of 3, and every such number is at most 10. Either way n is at most 10, which is false. So n is not prime.

  • (a) Name the conclusion, the stated premises, and the facts the paragraph gives as reasons, each on the key.
  • (b) Write the sequent.
  • (c) Derive it.
  • (d) Write the two-column table.
  • (e) Is the premise “n>10” needed? Break the claim without it.

Solution.

  • (a) The conclusion is ¬P. The premises are G and E∨T. The facts are F1 (“every even prime is at most 10”) and F2.

  • (b) G, E∨T, (P∧E)→¬G, (P∧T)→¬G⊢¬P.

  • (c) The goal is a negation: a ¬I box on P. Inside it, the resource E∨T is split, each case reaching ¬G by its fact, and ¬G clashes with G outside the cases.

    1G
    2E∨T
    3(P∧E)→¬G
    4(P∧T)→¬G
    5Pasm, for ¬I
    6Easm, for ∨E
    7P∧E∧I 5, 6
    8¬G→E 3, 7
    9Tasm, for ∨E
    10P∧T∧I 5, 9
    11¬G→E 4, 10
    12¬G∨E 2, 6–8, 9–11
    13⊥¬E 1, 12
    14¬P¬I 5–13
  • (d) The two columns:
    The proof The derivation
    “Let n … greater than 10, and suppose n is even or a multiple of 3.” 1, 2
    “Then n is not prime.” the goal, line 14
    “suppose n were prime.” 5 (asm, for ¬I)
    “If n is even, … at most 10.” 6–8, with 3
    “If n is a multiple of 3, … at most 10.” 9–11, with 4
    “Either way n is at most 10,” 12
    “which is false.” 13
    “So n is not prime.” 14
  • (e) It is needed. Without G, the claim E∨T, (P∧E)→¬G, (P∧T)→¬G⊢¬P breaks at n=2: 2 is even, so E∨T holds; F1 and F2 hold, as at every n; and 2 is prime, so the negated conclusion ¬¬P is true too.

Marking scheme. (10 points)

  • 2: (a)–(b), the sequent, with F1 and F2 named as the facts given as reasons, in implication form.
  • 3: (c), a correct derivation; the model has the ¬I box on P, the two cases both ending in ¬G, and the clash with G outside the cases. In (d), the table is marked against the reader’s own derivation.
  • 2: (d), every sentence placed, the two “suppose”s matched to their annotations.
  • 3: (e), “needed”, with a break that makes every member of the new counterexample set true.

Fatal errors (0 for the step): ¬P taken as a premise; the cases of ∨E ending in different statements; a “break” in (e) at an n where a premise fails. A derivation that splits E∨T first and opens a ¬I box in each case earns full marks for (c).

Exercise (C2: Challenge: A statement that promises anything)
  • (a) Derive C↔(C→Q)⊢Q.
  • (b) Let Q be “0=1”. What does (a) say about a statement C that is equivalent to “if C, then 0=1”?
  • (c) Which rules does your derivation use? Compare Lemma 2.4.2.

Solution.

  • (a) The premise gives nothing until one side of the iff is on a line. The side C→Q is an implication, and its box can use the premise on its own assumption.
    1C↔(C→Q)
    2Casm, for →I
    3C→Q↔E 1, 2
    4Q→E 3, 2
    5C→Q→I 2–4
    6C↔E 1, 5
    7C→Q↔E 1, 6
    8Q→E 7, 6

    The shorter ending 7 Q, →E 5, 6 is a detour: line 5 was built by →I and is taken apart at once. Cutting it costs a line here, because line 5 is cited again at line 6, so it stays. This is the case Section 3.1 names: cutting a detour need not shorten a derivation, and the rule is advice, not a theorem.

  • (b) Read as an argument, the derivation proves 0=1 from the condition on C; since 0=1 is false, no statement can meet the condition. In this chapter’s words, the list C↔(C→Q), ¬Q is inconsistent: add ¬Q as a second premise (line 2, the later lines shifting down by one) and a last line ⊥, ¬E, citing Q and that premise.

  • (c) Only ↔E, →I and →E: no rule for ¬ or ⊥, and no RAA. Lemma 2.4.2 shows that no statement is equivalent to its own negation. This shows more: any statement equivalent to “if C, then Q” forces Q, whatever Q is. So when Q is refutable, as “0=1” is, no statement is equivalent to “if C, then Q”, and the argument uses no “not”. (Taking Q to be ⊥ gives back Lemma 2.4.2, since ¬C and C→⊥ are interderivable (Section 2.2).) The trouble is self-reference, not negation. This is known as Curry’s paradox, after the logician whose name is also on the law Proposition 1.4.2. Section 5.6 meets the same shape with “for every”, in the barber and Russell’s theorem.

Marking scheme. (10 points)

  • 4: (a), any correct derivation; the model has the box on C (lines 2–4, with the assumption C cited twice), C recovered outside it by ↔E (line 6), and Q reached outside every box. The 7-line ending →E 5, 6 earns full marks; the detour remark is not required.
  • 3: (b), the conclusion that no statement meets the condition, with the inconsistency.
  • 3: (c), the rules of the reader’s own derivation named correctly, and the point that a derivation using only ↔E, →I and →E exists (the model), so no negation rule is needed.

Fatal error (0 for (a)): Q obtained inside the box and carried out of it.

R. Review

Exercise (R1)

For real numbers a and b, let max(a,b):=a and min(a,b):=b if a≥b, and max(a,b):=b and min(a,b):=a if a<b. Prove that max(a,b)+min(a,b)=a+b.

Solution. Since a≥b or a<b, and these two cases cover every pair of real numbers, we argue by cases (∨E, Definition 1.6.1), as in Example (The absolute value of a product).

Case a≥b. Then max(a,b)=a and min(a,b)=b, so max(a,b)+min(a,b)=a+b.

Case a<b. Then max(a,b)=b and min(a,b)=a, so max(a,b)+min(a,b)=b+a=a+b.

In either case the equation holds, which proves it. Both cases end in the same statement, the goal, as ∨E requires.

Exercise (R2)

Let x be a real number. Write N for “x<0”, M for “x>1”, and S for “x=7”. Translate the argument below into a sequent in these letters, and derive it.

x is neither negative nor greater than 1. Therefore x is not negative, and if x is greater than 1, then x=7.

Solution. The phrase book (Section 1.1) gives “neither … nor” as ¬N∧¬M; equivalently (Proposition 2.5.5 (a), (b)) ¬(N∨M), “N∨M fails”, which we use here as the premise. It is not ¬N∨M. The conclusion is a conjunction whose second part is an implication. The sequent (Definition 1.2.4) is ¬(N∨M)⊢¬N∧(M→S). The goal is a conjunction; the first conjunct is a negation (a ¬I box on N), and the second an implication (a box on M). In both boxes ∨I builds N∨M, which clashes with the premise; in the second box ⊥E then gives S.

1¬(N∨M)
2Nasm, for ¬I
3N∨M∨I 2
4⊥¬E 3, 1
5¬N¬I 2–4
6Masm, for →I
7N∨M∨I 6
8⊥¬E 7, 1
9S⊥E 8
10M→S→I 6–9
11¬N∧(M→S)∧I 5, 10

Lines 2–5 are half of Proposition 2.5.5 (a), which turns ¬(N∨M) into the phrase book’s ¬N∧¬M; with ¬N∧¬M as the premise, ∧E shortens both boxes. The implication M→S is vacuously true, as in Proposition 2.1.2: the premise rules out M, and a promise never tested is never broken, whatever S says.

Exercise (R3)

Is (P→Q)→R⊢P→(Q→R) derivable? Derive or break its converse, P→(Q→R)⊢(P→Q)→R.

Solution. The first is derivable, by the search method of Section 3.1. The goal gives a box on P, then a box on Q, with the goal R. The premise gives R by →E once we produce P→Q, a new goal: a box on P whose last line repeats Q.

1(P→Q)→R
2Pasm, for →I
3Qasm, for →I
4Pasm, for →I
5QR 3
6P→Q→I 4–5
7R→E 1, 6
8Q→R→I 3–7
9P→(Q→R)→I 2–8

The repetition at line 5 puts Q inside the box of line 4, as →I requires (clause (D3) of Definition 1.4.2). Two look-alike tools do not apply. Proposition 1.4.2 moves a conjunction in and out of a hypothesis, (P∧Q)→R⊣⊢P→(Q→R), and the premise here has P→Q, not P∧Q, in that place. And Proposition 1.4.1 chains two implications, which we do not have.

The converse breaks: with P and R false (and Q either way), the premise P→(Q→R) is true because P is false, while P→Q is true and R is false, so the conclusion is false. Chapter 4 proves that such a choice rules out every derivation, so that a search for it can only stall: the chapter’s open question, in a new place.

Exercise (R4)

Ana and Ben talk about a real number.

Ana. Let x be a real number with x2<x. Then x is positive.

Ben. Why can’t it be negative?

Ana. A negative number is less than its square.

Ben. And zero?

Ana. At zero, x2 equals x. And x is less than 1, because for x≥1 we would have x2≥x.

Ben. So 0<x<1. But you never said why x2≥x when x≥1.

Ana. Multiply x≥1 by x, which is positive.

  • (a) What is the conclusion, and who states it?
  • (b) Turn the dialogue into a derivation.
  • (c) Is Ana’s last answer enough?

Solution.

  • (a) “0<x<1”, stated by Ben. Ana’s first line, “x is positive”, is an intermediate step.

  • (b) With, for instance, N: “x<0”, Z: “x=0”, B: “x≥1”, L: “x2<x”, the premise is L. The facts:

    • N→¬L (Ana: a negative x has x2>0>x);
    • Z→¬L (Ana: x2=x at 0);
    • B→¬L (Ana, then justified at Ben’s request).

    The conclusion (¬N∧¬Z)∧¬B reads as “x≥0, x≠0, x<1” by the convention of Section 2.1, that is, 0<x<1, since x≥0 and x≠0 give x>0. The sequent is N→¬L, Z→¬L, B→¬L, L⊢(¬N∧¬Z)∧¬B.

    For the derivation: MT (Proposition 2.3.1) needs the negation of each fact’s conclusion, and that is ¬¬L, given by ¬¬I (Proposition 2.5.1 (a)); hence line 5.

    1N→¬L
    2Z→¬L
    3B→¬L
    4L
    5¬¬L¬¬I 4
    6¬NMT 1, 5
    7¬ZMT 2, 5
    8¬BMT 3, 5
    9¬N∧¬Z∧I 6, 7
    10(¬N∧¬Z)∧¬B∧I 9, 8
  • (c) Yes: x≥1 gives x>0, and multiplying x≥1 by the positive x gives x2≥x.

The method is the extraction of this section (Example (An argument about a prime, extracted)), run on a dialogue; the rules are Chapter 2’s. The look-alike, ¬N by →E from line 1 and L, fails: →E needs the hypothesis N on a line, and MT needs ¬¬L, not L, which is why line 5 is written.