4.7  Soundness

Chapter 3 ended on a question it could not answer. Section 3.1 searched for a derivation of P→Q⊢Q→P, and every route came back to the same gap; but a search that fails proves nothing, since a cleverer derivation might exist. The row that refutes affirming the consequent in Section 4.5, p=F and q=T, finds what the search could not: it makes p→q true and q→p false, and the search of Section 4.6 finds such rows whenever they exist. This section proves the theorem that turns such a row into a proof that no derivation exists. It is called soundness: whatever the rules derive is true in every row where the premises are true. The proof is the book’s first long proof about proofs, and it is an induction on the lines of a derivation.

4.7.1. What must be proved, and why it is not obvious

Remark. Two levels. This section speaks about the calculus from outside it.

Object level: written in the language Meta level: claims about it, proved in ordinary mathematics
formulas; derivations, with their lines, boxes, justifications and printed purposes (“asm, for →I”, which the proof reads as the rule whose case applies) “Γ⊢ψ”, “Γ⊨ψ”, “line k is justified by ∨E”, “Γk⊨φk”

Section 4.2’s checklist reads: objects, the lines of one derivation; property, Γk⊨φk (contexts are defined below); base cases, the premises and assumptions, which cite nothing; steps, one for each rule; principle, Theorem 4.2.2.

Second readingIs the proof circular?

The proof below argues by cases (“if v(φ)=F … if v(φ)=T”) and by contradiction, in the metalanguage: the very patterns that ∨E and RAA record in the object language. That is not circular. The theorem is not meant to persuade someone who rejects reasoning by cases. It is a theorem of ordinary mathematics about a calculus, and what it rules out is a mismatch between the rules and the tables, of the kind the connective in the fold of Section 4.4 has.

Chapters 1 and 2 checked each rule as it arrived. ∧I is safe because two true statements make a true conjunction (Section 1.2); →E is safe because that is what “if … then” asserts (Section 1.3). Section 1.2 said once that Chapter 4 would prove it for every rule of Chapters 1 and 2 at once. Why is that more than collecting the separate checks?

The first attempt at a proof is: go down a derivation, line by line, and show that each line is true in every row in which the premises are true. For a derivation without boxes this works. Each line is a premise, or comes from earlier lines by a rule, and the rule turns true lines into a true line. But it fails at the first box. Here is the derivation of Proposition 2.3.2, written with atoms:

1p→q
2¬qasm, for →I
3pasm, for ¬I
4q→E 1, 3
5⊥¬E 4, 2
6¬p¬I 3–5
7¬q→¬p→I 2–6

Line 3 is p, and the row p=F, q=F makes the premise p→q true and line 3 false. Line 5 is ⊥, which is false in every row. So the lines inside a box are not true in the rows where the premises are true, and the first attempt collapses. Yet the derivation is correct, and its last line ¬q→¬p is true in every row making p→q true (Example (An implication and its contrapositive)).

What goes wrong is that a line inside a box is not claimed on the strength of the premises alone. Line 4 says: if p→q, ¬q and p all hold, then q holds. That is a true claim about rows. Every line depends on the premises and on the assumptions of the boxes around it, and a correct statement about each line must mention both. Below we give this list a name: the context of the line.

4.7.2. Derivations of formulas

From now on the lines of a derivation carry formulas in the sense of Definition 4.1.1, with atoms p,q,r,…. Nothing in the rules changes. Every rule was stated as a schema, whose letters φ,ψ,χ stand for arbitrary statements (Definition 1.2.1), so it applies to formulas as it stands, and Definition 1.4.2 and Definition 1.2.3 read the same with “formula” for “statement”. As Section 4.1 said, a derivation written with Chapter 2’s letters P,Q is a pattern, and reading its letters as atoms, or as any formulas, gives a derivation of formulas.

Two conventions for the rest of the section. The primitive rules are those of Chapters 1 and 2 collected in Section 3.1: R, ∧I, ∧E, →I, →E, ∨I, ∨E, ¬I, ¬E, ⊥E, RAA, ↔I and ↔E. The box rules among them are the five that cite a box: →I, ¬I, RAA, ∨E and ↔I. The other eight, R included, cite only lines; we call them the one-step rules.

A derivation may also use derived rules such as MT and LEM. A line citing one abbreviates a stretch of derivation in rules proved earlier, with the letters replaced by formulas (Definition 2.3.1), and Section 2.3 showed how to write it out: repeat the cited lines, then paste the derivation of the derived rule below them. Every chain of derived rules ends in primitive rules. So whenever Γ⊢ψ, there is also a derivation of ψ from premises in Γ that uses primitive rules only. That is the only kind of derivation the proof below has to consider.

4.7.3. The context of a line

Let a derivation have lines 1,…,n. We write φk for the formula on line k. The length of a derivation is its number of lines. The context of line k is the list of the premises together with the assumptions of every box containing line k: the statements the line depends on. We write it Γk. The context of the last line is just the premises, since by Definition 1.4.2 the last line lies in no box. For lists of formulas Δ and Δ′, we write Δ⊆Δ′ when every formula of Δ occurs in Δ′.

Exercise C4 of Section 1.4 (Exercise (C4: The assumptions a line depends on, used later)) wrote such lists by hand, as sets of line numbers; its part (c) observed what Lemma 4.7.1 below proves.

The context of a line is everything that line depends on: the premises, and every assumption still open where the line stands.

In the derivation of Proposition 2.3.2 above, the boxes are 2–6 and 3–5, and the contexts are:

Line Formula Boxes containing it Context
1 p→q none p→q
2 ¬q 2–6 p→q, ¬q
3, 4, 5 p, q, ⊥ 2–6, 3–5 p→q, ¬q, p
6 ¬p 2–6 p→q, ¬q
7 ¬q→¬p none p→q

Quick check. In that derivation, which lines have p in their context?

Solution. Lines 3, 4 and 5, the lines of the box opened by p.

Now look at each line through its context. Line 3 is one of the formulas in its own context, so every row making the context true makes line 3 true. Line 4: every row making p→q and p true makes q true. Line 5: no row makes p→q, ¬q, and p all true (the first and third force q), so the context is unsatisfiable and it entails even ⊥ (Section 4.5). Line 6: every row making p→q and ¬q true makes p false. Line 7: its context is the premise, and we know p→q⊨¬q→¬p. So on this derivation, every line k satisfies Γk⊨φk. This is the statement that survives the boxes, and it is the one we shall prove for every line of every derivation.

Two facts about contexts, read off the scope rule, do the bookkeeping. The first says that citing an available line never involves an assumption the citing line does not have. The second says exactly what the context of a box’s last line is, when the box is cited by a box rule.

Lemma 4.7.1 (Contexts in a Derivation)

Let lines i, k and a≤b belong to a derivation, and let Γj denote the context of line j.

  • (a) If line i is available at line k, then Γi⊆Γk.
  • (b) If line k is justified by a box rule citing the box whose first line is a and whose last line is b, then the formulas of Γb are exactly those of Γk together with φa, the assumption of that box. We write this Γb=Γk,φa.
Diagram. Labels: premises and the boxes around line k, a, varphi_a, b, varphi_b, k, varphi_k, context Gamma_k, varphi_a, context Gamma_k

Part (b): the last line of a cited box depends on everything line k depends on, and on the box’s own assumption. The arrow is the citation.

Idea. Both parts compare two sets of boxes, since contexts differ only in the assumptions of the boxes around a line. For (a), the scope rule says that the boxes around line i are among the boxes around line k. For (b), the boxes around line b should be the cited box itself and the boxes around line k; the danger is a further box inside the cited box that also ends on line b, and the box rules forbid exactly that.

The proof reads both parts off the scope rule; it is in the fold below.

Second readingThe proof: reading the scope rule

Proof. (a) The premises belong to every context. Any other formula of Γi is the assumption of a box containing line i. Since line i is available at line k, every box containing line i also contains line k, by the scope rule of Definition 1.4.2. So that assumption belongs to Γk.

(b) Let B be the box from line a to line b. Since line k cites B, the box B is available at line k. By the scope rule, it ends before line k, and the boxes containing B are exactly the boxes containing line k.

We find the boxes containing line b. Every box containing line k contains B, and so contains line b; and B contains line b. Conversely, let C be a box containing line b. By Definition 1.4.2, two boxes are either disjoint or one inside the other; C and B share line b, so C=B, or C contains B, or C lies inside B. The last is impossible: then line b, the last line of B, would be a line of a box inside B, and every box rule requires the last line of its box to be a line of that box itself, not of a box inside it (Definition 1.4.1, Definition 2.2.1, Definition 2.5.1, Definition 1.6.1, Definition 2.4.1). So C=B, or C is one of the boxes containing B, which are the boxes containing line k.

Hence the boxes containing line b are B and the boxes containing line k. The assumption of B is φa, so Γb consists of the premises, the assumptions of the boxes containing line k, and φa, which is Γk together with φa.

In the derivation of Proposition 2.3.2, line 6 cites the box 3–5 by ¬I, and Γ5=p→q, ¬q, p is Γ6=p→q, ¬q with the assumption p added, as (b) says. Line 5 cites lines 4 and 2, both available there, and Γ4 and Γ2 are contained in Γ5, as (a) says.

Second readingA box that ends inside another

Warning. Part (b) needs the box to be cited by a box rule. Definition 1.4.2 allows a box to end on the same line as a box inside it, and then its last line has a larger context. In the derivation below, the box 2–4 is available at line 5, but Γ4=p, q, r contains r, the assumption of the inner box, as well as q. No box rule may cite 2–4: its last line lies inside the box 3–4, not in 2–4 itself. (This is why the derivation of Example (Regrouping a disjunction) needs its line 11.)

1p
2q
3r
4pR 1
5pR 1

Quick check. In the derivation of Proposition 2.3.2 above, which case of the soundness claim handles line 5? Which lines’ contexts are involved, and why does Γ5⊨⊥ hold?

Solution. Line 5 is ⊥, by ¬E citing lines 4 and 2: a one-step rule. Lines 4 and 2 are available at line 5, so by Lemma 4.7.1 (a), Γ4=p→q, ¬q, p and Γ2=p→q, ¬q are contained in Γ5=p→q, ¬q, p. The claim for the earlier lines gives Γ4⊨q and Γ2⊨¬q. So a valuation making Γ5 true would make both q and ¬q true, which clause (V2) of Definition 4.4.2 forbids. No valuation makes Γ5 true, and Γ5⊨⊥ holds because there is no row to check.

4.7.4. The soundness theorem

We can now state the theorem that Chapters 1 and 2 kept pointing to.

Theorem 4.7.2 (Soundness)

Let Γ be a list of formulas and ψ a formula. If Γ⊢ψ, then Γ⊨ψ.

Try it first (ten minutes): suppose line k is φ→ψ, by →I from a box that opens with φ and ends with ψ. Suppose you already know that every row making the context of line k and φ true makes ψ true. Why is φ→ψ true in every row making the context of line k true? What happens in the rows where φ is false?

Idea. An attempt at the →I case runs into two things. First, knowledge about the box’s last line is knowledge about rows making its own context true, which contains the assumption φ; that is why the claim must carry contexts, and why Lemma 4.7.1 (b) is needed. Second, the rows in which φ is false are not covered by the box at all, and they need nothing: there φ→ψ is true by (V5). The same two moves handle every box rule. The Step roadmap:

① Prove the stronger claim Γk⊨φk for every line k of a derivation in primitive rules.

② Use strong induction on k (Theorem 4.2.2): a rule may cite any earlier line, not only the line just above, so the hypothesis must be available for all earlier lines at once.

③ Split on how line k is justified. A premise or an assumption belongs to its own context. A one-step rule: apply the hypothesis to the cited lines, move their contexts into Γk by Lemma 4.7.1 (a), and use one clause of Definition 4.4.2. A box rule: apply the hypothesis to each box’s last line, whose context is Γk plus the box’s assumption by Lemma 4.7.1 (b), and argue about the rows where that assumption is true or false.

④ The last line lies in no box, so its context is the premises, all in Γ; adding the other formulas of Γ keeps the entailment.

Before reading on: in the case of RAA (Claim 3 below), where does the proof use that v(¬φ) is F exactly when v(φ) is T, and which half of that fact does it use?

Proof. Step 1 (reduction to primitive rules). Suppose Γ⊢ψ. As shown in the subsection on derivations of formulas, there is a derivation of ψ whose premises all belong to Γ and which uses primitive rules only. Fix one, with lines 1,…,n; let φk be the formula on line k and Γk its context.

Step 2 (the induction). For k∈N, let S(k) be the statement: if 1≤k≤n, then Γk⊨φk. We prove S(k) for every k by Theorem 4.2.2. So let k∈N, and assume S(j) for every j<k. If k=0 or k>n, there is nothing to prove, so let 1≤k≤n. Every line and every box that line k cites is available at line k, and so lies before line k (Definition 1.4.2). Hence the induction hypothesis Γj⊨φj holds for every line j that line k cites, and for the last line of every box it cites.

Let v be a valuation that makes every formula of Γk true. We show v(φk)=T; since v is arbitrary, this proves Γk⊨φk. By Definition 1.4.2, line k is a premise, an assumption, or the conclusion of one primitive rule, and the three claims below treat these cases.

Step 3 (the cases).

Claim. If line k is a premise or an assumption, then v(φk)=T.

Proof of Claim. A premise belongs to every context. An assumption opens a box, that box contains line k, and so its assumption φk belongs to Γk. In both cases φk is one of the formulas that v makes true.

For the one-step rules we first record what the hypothesis gives for a cited line. If line k cites line i, then line i is available at line k, so Γi⊆Γk by Lemma 4.7.1 (a). Hence v makes every formula of Γi true, and the induction hypothesis Γi⊨φi gives (∗)v(φi)=Tfor every line i cited by line k.

Claim. If line k is justified by a one-step rule, then v(φk)=T.

Proof of Claim. We take the rules one at a time; in each, the cited lines are true under v by (∗).

R. Line k repeats a line i, so φk=φi, and v(φk)=T.

∧I. Line k is φ∧ψ, citing lines holding φ and ψ. Both are true under v, so φ∧ψ is true by (V3).

∧E. Line k is φ, citing a line holding φ∧ψ. That line is true under v, so by (V3) both conjuncts are true, and in particular φ. The second form, which writes ψ, is the same with the other conjunct, and we skip it.

→E. Line k is ψ, citing lines holding φ→ψ and φ. Both are true under v. By (V5), an implication with a true hypothesis and a false conclusion is false; since φ→ψ is true and φ is true, ψ is true.

∨I. Line k is φ∨ψ or ψ∨φ, citing a line holding φ. That line is true under v, so both disjunctions are true by (V4).

¬E. Line k is ⊥, citing lines holding φ and ¬φ. By (∗) both would be true under v, and by (V2) ¬φ is false whenever φ is true. So no valuation makes every formula of Γk true, and there is no v to consider: Γk⊨⊥ holds because there is no row to check.

⊥E. Line k is any formula φ, citing a line holding ⊥. By (∗), v(⊥)=T, which (V1) forbids. So again no valuation makes every formula of Γk true, and Γk⊨φ holds.

↔E. Line k is ψ, citing lines holding φ↔ψ and φ. Both are true under v; by (V6), v(ψ)=v(φ)=T. The second form, which writes φ from φ↔ψ and ψ, is the same with the sides exchanged, and we skip it.

For the box rules we record what the hypothesis gives for a cited box. If line k cites, by a box rule, the box from line a to line b, then Γb=Γk,φa by Lemma 4.7.1 (b), and the induction hypothesis for line b says (∗∗)Γk,φa⊨φb:every valuation making Γk and φa true makes φb true.

Claim. If line k is justified by a box rule, then v(φk)=T.

Proof of Claim. Recall that v makes every formula of Γk true.

→I. Line k is φ→ψ, citing a box that opens with φ and ends with ψ. By (∗∗), every valuation making Γk and φ true makes ψ true. If v(φ)=F, then v(φ→ψ)=T by (V5). If v(φ)=T, then v makes Γk and φ true, so v(ψ)=T, and again v(φ→ψ)=T by (V5).

¬I. Line k is ¬φ, citing a box that opens with φ and ends with ⊥. By (∗∗), every valuation making Γk and φ true makes ⊥ true; since (V1) makes ⊥ false under every valuation, no valuation makes Γk and φ true. As v makes Γk true, it must make φ false, and then v(¬φ)=T by (V2).

RAA. Line k is φ, citing a box that opens with ¬φ and ends with ⊥. By (∗∗) and (V1), as in the previous case, no valuation makes Γk and ¬φ true. Suppose v(φ)=F. Then v(¬φ)=T by (V2), so v makes Γk and ¬φ true, which is impossible. Hence v(φ)=T.

∨E. Line k is χ, citing a line i holding φ∨ψ, a box that opens with φ and ends with χ, and a box that opens with ψ and ends with χ. By (∗), v(φ∨ψ)=T, so by (V4), v(φ)=T or v(ψ)=T. By (∗∗) for the first box, every valuation making Γk and φ true makes χ true; for the second, every valuation making Γk and ψ true makes χ true. If v(φ)=T, then v makes Γk and φ true, so v(χ)=T. If v(ψ)=T, the second box gives v(χ)=T in the same way.

↔I. Line k is φ↔ψ, citing a box that opens with φ and ends with ψ, and one that opens with ψ and ends with φ. By (∗∗), every valuation making Γk and φ true makes ψ true, and every valuation making Γk and ψ true makes φ true. If v(φ)=T, the first box gives v(ψ)=T. If v(φ)=F, then v(ψ)=F too, since v(ψ)=T would give v(φ)=T by the second box. In both cases v(φ)=v(ψ), so v(φ↔ψ)=T by (V6).

The three claims cover every way line k can be justified, so S(k) holds. By Theorem 4.2.2, S(k) holds for every k∈N: every line k of the derivation satisfies Γk⊨φk.

Step 4 (the last line). The last line n of a derivation lies in no box (Definition 1.4.2), so its context Γn consists of the premises alone, and φn=ψ. By the induction of Steps 2 and 3, Γn⊨ψ. Every premise belongs to Γ (Definition 1.2.3), so a valuation making every formula of Γ true makes every formula of Γn true, and hence makes ψ true. This proves Γ⊨ψ.

The proof is long, but each case is one step of the truth-table reasoning of Section 4.4, placed in the right context. Every primitive rule has passed. So has every derived rule, since each abbreviates primitive ones. The rules never lead from truth to falsehood, not merely line by line but for every derivation that can ever be written.

Second readingWhy induction on the position of a line

Why strong induction and the position k of a line? A rule may cite any available line, however far back: line 7 of the derivation of Proposition 2.3.2 cites the box that begins at line 2. So the hypothesis is needed for all earlier lines at once. A different route would induct on the length of the whole derivation, removing its last line. But the lines above the last line need not form a derivation, since a box may still be open there (in the derivation of Proposition 2.3.2, lines 1–6 end inside the box 2–6), and that route has to cut boxes open. Carrying the context of every line avoids the surgery.

Example (Running the claim on a case split)

Here is a derivation of p∨q⊢q∨p. List the context of each line, and check Γk⊨φk for each k, naming the case of the proof that handles it.

1p∨q
2pasm, for ∨E
3q∨p∨I 2
4qasm, for ∨E
5q∨p∨I 4
6q∨p∨E 1, 2–3, 4–5

Solution. The boxes are 2–3 and 4–5.

Line Context Γk Case Why Γk⊨φk
1 p∨q premise φ1 is in its context
2 p∨q, p assumption φ2 is in its context
3 p∨q, p ∨I citing 2 Γ2⊆Γ3; a row making p true makes q∨p true
4 p∨q, q assumption φ4 is in its context
5 p∨q, q ∨I citing 4 as for line 3, with q
6 p∨q ∨E citing 1 and both boxes see below

For line 6: by Lemma 4.7.1 (b), Γ3=Γ6,p and Γ5=Γ6,q, and the claim for lines 3 and 5 says that rows making p∨q and p true, and rows making p∨q and q true, make q∨p true. A row making Γ6 true makes p∨q true, so it makes p or q true, and one of the two boxes applies. Line 6 is the last line, and its context is the premise: so p∨q⊨q∨p, as soundness promises.

4.7.5. Every rule, checked against the tables

Rule Introduced Case Clause Wrong version; its derivation; refuting row
R 1.4 (clause (D3)) Claim 2 none: the line is repeated
∧I, ∧E 1.2 Claim 2 (V3)
→E 1.3 Claim 2 (V5)
→I 1.4 Claim 3 (V5) “a box from φ to ψ gives ψ→φ”; the box p∧q, p would give ⊢p→(p∧q); row p=T, q=F
∨I 1.5 Claim 2 (V4)
∨E 1.6 Claim 3 (V4) “the two boxes may end in different lines; write the first box’s”; from p∨q, the boxes p and q would give p∨q⊢p; row p=F, q=T
¬E, ⊥E 2.1 Claim 2 (V2); (V1)
¬I 2.2 Claim 3 (V1), (V2) “a box from φ to any line gives ¬φ”; the one-line box p would give ⊢¬p; row p=T
↔I, ↔E 2.4 Claim 3; Claim 2 (V6)
RAA 2.5 Claim 3 (V1), (V2) “a box from φ to ⊥ gives φ”; from ¬p, the box p, ⊥ (by ¬E) would give ¬p⊢p; row p=F

The thirteen primitive rules, with the case and clause each uses. Each wrong version changes one condition, and its case fails there: the row makes the premises true and the line false.

Second readingThe four wrong derivations, written out

Here are the four derivations the wrong versions would license, written as patterns with Chapter 2’s letters; read P and Q as the atoms p and q for the rows of the table. Each is correct except at its last line, which only the wrong version allows. Wrong →I reverses the implication its box proves; wrong ∨E closes on a line that only the first box reaches; wrong ¬I closes a box that never reached ⊥; wrong RAA opens its box with φ instead of ¬φ.

1P∧Qasm, for →I
2P∧E 1
3P→(P∧Q)→I 1–2
1P∨Q
2Pasm, for ∨E
3Qasm, for ∨E
4P∨E 1, 2–2, 3–3
1Pasm, for ¬I
2¬P¬I 1–1
1¬P
2Pasm, for RAA
3⊥¬E 2, 1
4PRAA 2–3

4.7.6. Refuting with one row

Soundness is most often used backwards. If the conclusion can be false while the premises are true, no derivation can exist.

Corollary 4.7.3 (Refuting Row)

Let Γ be a list of formulas and ψ a formula. If some valuation makes every formula of Γ true and ψ false, then Γ⊬ψ.

Proof. Let v make every formula of Γ true and ψ false. Then Γ⊨ψ fails (Definition 4.5.3). If Γ⊢ψ held, Theorem 4.7.2 would give Γ⊨ψ. So Γ⊢ψ does not hold.

Here Γ⊬ψ means that there is no derivation of ψ from premises in Γ: not with the primitive rules, not with any derived rule, not in a thousand lines. One row has settled a question about infinitely many derivations.

Quick check. Does the row p=q=T refute p→q⊢q? Does the row p=q=F?

Solution. The first does not, since its conclusion q is true. The second does: p→q is T and q is F. So p→q⊬q, by Corollary 4.7.3.

Chapter 3’s question. Section 3.1 searched for a derivation of P→Q⊢Q→P and stalled. The row p=F, q=T makes p→q true (false hypothesis) and q→p false (true hypothesis, false conclusion). By Corollary 4.7.3, p→q⊬q→p. The letters of Chapter 3 stood for arbitrary statements, and the search asked for a derivation of the pattern: one derivation, written with P and Q, that works whatever they are. Such a derivation, with P and Q read as the atoms p and q, would derive p→q⊢q→p, which we have just ruled out. So the pattern has no derivation, and the search was right to fail. (Particular instances can be derivable: with P and Q the same statement, P→P⊢P→P takes one line. A refuting row for atoms speaks about the pattern, as the warning after Lemma 4.5.3 said.)

What soundness certifies. Soundness turns every break this book has made into a proof that no derivation exists. Section 1.1 called a form bad when some choice of statements makes its counterexample set true (Definition 1.1.3). For a propositional form, a row making the counterexample set true is such a choice, and by Corollary 4.7.3 no derivation of the form exists, with any rule of Chapters 1 and 2. Chapter 1 promised exactly this, in Section 1.3, for affirming the consequent: the row p=F, q=T of Example (Affirming the consequent is not valid) makes p→q and q true and p false, so p→q, q⊬p. So the repair of Argument B that Section 1.4 considered is not merely unjustified: it is impossible. The same holds for every break in the derive-or-break items from Section 1.5 on, for each claim of Section 3.2 that the search of Section 4.6 refuted, the four breaks of Exercise (B3: Derive or break, used later) among them, and for every refuting row of Sections 4.5 and 4.6. A break by statements about a number certifies the same: the truth values of those statements form a row, and since the connectives are truth-functional (Section 4.4), that row makes the counterexample set true.

Warning. A refuting row must make every premise true. For p→q, p⊢q, the row p=F, q=F makes the conclusion false, but it also makes the premise p false, so it refutes nothing; and the sequent is derivable, by one line of →E. A row in which some premise fails is simply not one of the rows Definition 4.5.3 looks at.

Warning. Soundness goes one way. It says that derivable sequents are valid; it does not say that a formula true in the row you happened to check is derivable. The atom p is true under the all-T valuation, but ⊬p: the all-F valuation makes it false, so Corollary 4.7.3 (with Γ empty) applies. Whether every valid sequent is derivable is a separate question, answered in Section 4.8.

Quick check. Give a row showing p→r⊬(p∨q)→r.

Solution. Take p=F, q=T, r=F. The premise p→r is true, since p is false. The conclusion has hypothesis p∨q, which is true, and conclusion r, which is false, so it is false. By Corollary 4.7.3, no derivation exists. (The rows with p true fail: they make the premise force r true, or make the premise false.)

Satisfiable lists are consistent. Section 4.5 kept two words apart, and soundness joins them in one direction. A satisfiable list Δ is consistent (Definition 3.2.1): if Δ⊢⊥, soundness would give Δ⊨⊥, but a row making Δ true makes ⊥ false. With Proposition 3.2.2 (b) this is Corollary 4.7.3 once more: a row making the counterexample set Γ,¬ψ true shows it consistent, and so Γ⊬ψ, as Exercise B4 of Section 3.2 anticipated. Section 4.8 proves the converse.

4.7.7. Test the subgoal

Section 3.1’s search works on subgoals: a goal, and the lines available for it. Soundness gives it a test. Before chasing a subgoal, look for a row making the available lines true and the subgoal false. If there is one, no line standing at this point can hold the subgoal: its context, the premises and the open assumptions, is among the available lines, so the row makes that context true and the subgoal false, while the proof of Theorem 4.7.2 showed that every line k satisfies Γk⊨φk. This is the move test the subgoal. Section 3.1 met it without the name (“Choosing a side of ∨ can leave a goal that does not follow”): from p∨q, the goal q∨p tempts ∨I from q, and the row p=T, q=F makes p∨q true and q false, so the search must split p∨q first.

Chapter 2 met a harder case. Section 2.5 did not aim at ∨I for the De Morgan direction ¬(P∧Q)⊢¬P∨¬Q, because the step from the premise to either disjunct can be broken. Now such a break is a proof: the row p=T, q=F makes ¬(p∧q) true and ¬p false, so ¬(p∧q)⊬¬p, and the row p=F, q=T gives ¬(p∧q)⊬¬q. Both subgoals fail the test, so a derivation of Proposition 2.5.5 (d) cannot end with ∨I, which is why Section 2.5 reached for RAA. The test only refutes. A subgoal that passes it may still be hard to reach; whether it can be reached at all is Section 4.8’s question.

Quick check. A search for p→q, ¬q⊢¬p opens a box p for ¬I, with the goal ⊥. Does the subgoal q pass the test?

Solution. Yes, trivially. The available lines p→q, ¬q, p are made true by no row at all (p and p→q force q), so no row refutes any subgoal there; and indeed q follows by →E, then ⊥ by ¬E. An unsatisfiable context lets every subgoal pass.

Remark (Looking ahead). Chapter 8 says what reductio asserts that the other rules do not, and who objected to it.

4.7.8. Exercises

A. Check your understanding

Exercise (A1)

These parts are about the proof of Theorem 4.7.2. Part (c) uses the derivation of Proposition 2.1.2, written with atoms:

1¬p
2pasm, for →I
3⊥¬E 2, 1
4q⊥E 3
5p→q→I 2–4
  • (a) Why does the proof use strong induction on k, rather than ordinary induction from line k to line k+1?
  • (b) In the ∨E case, the induction hypothesis is applied to the last lines b and d of the two boxes. What does it say about each, and which part of Lemma 4.7.1 identifies the contexts?
  • (c) List the context of each of the five lines of the derivation above, and check Γk⊨φk for each.
  • (d) Suppose a rule “from φ→ψ and ψ, infer φ” were added to the primitive rules. Which part of the proof would fail? Give a valuation showing it.
  • (e) Where does Step 4 use that the last line of a derivation lies in no box?

Solution. (a) A rule may cite any available line, however far back, and the last line of a box that closed long ago. The hypothesis must therefore be available for every earlier line, not just for line k−1. For example, line 7 of the derivation of Proposition 2.3.2 uses the claim for line 6, and line 6 uses it for line 5; but line 5 uses it for line 2, three lines back.

(b) It says Γb⊨χ and Γd⊨χ. By Lemma 4.7.1 (b), Γb=Γk,φ and Γd=Γk,ψ: every row making Γk and φ true makes χ true, and every row making Γk and ψ true makes χ true. It is not Γk⊨χ, which is what we are trying to prove.

(c) The box is 2–4.

Line Context Check
1 ¬p premise, in its context
2 ¬p, p assumption, in its context
3 ¬p, p no row makes ¬p and p true, so it entails ⊥
4 ¬p, p the same unsatisfiable context entails q
5 ¬p a row making ¬p true makes p false, so p→q true

Line 3 is the ¬E case, line 4 the ⊥E case, and line 5 the →I case, with Γ4=Γ5,p by Lemma 4.7.1 (b).

(d) Claim 2, the one-step rules: it would need a new case, and the case is false. From v(φ→ψ)=T and v(ψ)=T nothing follows about v(φ). The valuation with v(p)=F, v(q)=T makes p→q and q true and p false; with the new rule, the three-line derivation of p from p→q and q would have a last line whose context does not entail it.

(e) It concludes that the context of the last line is just the premises. Without that, the last line could depend on an undischarged assumption, and Γn⊨ψ would say nothing about the rows making the premises true.

Exercise (A2: Drill)

The parts run from reading off a refuting row, through contexts, to testing a subgoal and deciding a claim.

  • (a) Give a refuting row for p∨q⊢p.
  • (b) Give one for p→q, ¬p⊢¬q.
  • (c) Does p=T, q=F refute p∧q⊢q?
  • (d) Is there a refuting row for p, p→q⊢q?
  • (e) Refute ⊢p∨q.
  • (f) Refute p→(q∨r)⊢p→q.
  • (g) Line 5 of a derivation lies in the boxes opened at lines 2 and 4, and line 1 is the only premise. What is Γ5?
  • (h) Line k is justified by ¬I citing the box 3–6. What is Γ6, in terms of Γk?
  • (i) A search for p∨q⊢q∨p considers ending with ∨I from q. Test the subgoal q.
  • (j) The list p→q, q→¬p is satisfiable: give a row, and say what follows about ⊢.
  • (k) Which clause of Definition 4.4.2 does the ∨E case of the proof of Theorem 4.7.2 use?
  • (l) Derive or refute: (p∧q)→r⊢(p→r)∧(q→r).

Solution.

  • (a) p=F, q=T.

  • (b) p=F, q=T.

  • (c) No: it makes the premise false.

  • (d) No. The only row making both premises true has q true. (The sequent is derivable, by one line of →E.)

  • (e) p=q=F. With no premises, every row qualifies.

  • (f) p=T, q=F, r=T.

  • (g) φ1,φ2,φ4.

  • (h) Γk,φ3, by Lemma 4.7.1 (b).

  • (i) The row p=T, q=F makes p∨q true and q false: p∨q⊬q (Corollary 4.7.3), so the subgoal is dead.

  • (j) p=F, q=T (or both F). So the list is consistent: p→q, q→¬p⊬⊥. (It is the list of Exercise (B4: Derive ⊥, or make every member true, used later) (a) without its third member p; with p, Section 3.2 derived ⊥.)

  • (k) (V4).

  • (l) Refute: p=T, q=F, r=F makes the premise true (false hypothesis) and p→r false, so the conclusion false; by Corollary 4.7.3 no derivation exists.

B. Practice

Exercise (B1: Derivable or not)

Determine which of the following are derivable. Justify your answer.

  • (a) (p∧q)→r⊢p→r.
  • (b) ¬(p∧q)⊢¬p.
  • (c) p↔q, q∨r⊢p.
  • (d) p→(q∨r)⊢(p→q)∨(p→r).

Solution. (a) Not derivable. The row p=T, q=F, r=F makes the premise true (its hypothesis p∧q is false) and the conclusion p→r false. By Corollary 4.7.3 there is no derivation.

(b) Not derivable. The row p=T, q=F makes p∧q false, so ¬(p∧q) true, and ¬p false. By Corollary 4.7.3 there is no derivation.

(c) Not derivable. The row p=F, q=F, r=T makes p↔q true (both sides false) and q∨r true, and p false.

(d) Derivable: Example (Choosing a side too early) in Section 3.1 derives it, with LEM on q. So no row can refute it: by Theorem 4.7.2 it is valid. A search for a refuting row confirms this. The conclusion is false only if both p→q and p→r are false, that is, p=T and q=r=F; but then q∨r is false and the premise is false.

The trap is (d). Its conclusion looks stronger than the premise, since it seems to decide in advance which disjunct follows from p; but a derivation exists, and trying to refute it by a row is bound to fail.

Exercise (B2: Ordering the ∨E case)

Here are nine lines. Seven of them, in the right order, form the ∨E case of the proof of Theorem 4.7.2. Line k is χ, by ∨E citing line i (holding φ∨ψ), the box from line a to line b (opening with φ, ending with χ), and the box from line c to line d (opening with ψ, ending with χ). Give an admissible order, and say why each of the other two lines cannot be used.

  • (i) By the induction hypothesis for lines b and d, which come before line k, Γb⊨χ and Γd⊨χ.

  • (ii) Hence v(χ)=T in either case; since v was arbitrary, Γk⊨χ.

  • (iii) Let v be a valuation making every formula of Γk true.

  • (iv) If v(ψ)=T, then v makes every formula of Γd true, so v(χ)=T.

  • (v) By Lemma 4.7.1 (a), Γi⊆Γk, so v makes every formula of Γi true; by the induction hypothesis for line i, v(φ∨ψ)=T, so v(φ)=T or v(ψ)=T.

  • (vi) By the induction hypothesis for line k, Γk⊨χ.

  • (vii) By Lemma 4.7.1 (b), Γb is Γk with φ added, and Γd is Γk with ψ added.

  • (viii) If v(φ)=T, then v makes every formula of Γb true, so v(χ)=T.

  • (ix) Line b is inside the box, and the box was cited at line k, so the context of line b is Γk; the induction hypothesis for line b then gives Γk⊨χ directly.

Solution. An admissible order: (iii), (v), (vii), (i), (viii), (iv), (ii).

What each line needs: (v) and (viii), (iv) use the valuation fixed in (iii); (viii) and (iv) use (vii) and (i); (ii) uses the case split of (v) and both of (viii) and (iv). So any order is admissible in which (iii) comes before (v), (viii), and (iv); (vii) and (i) come before (viii) and (iv); (v) comes before (ii); and (viii) and (iv) come before (ii). For instance (vii), (i), (iii), (v), (iv), (viii), (ii) is also admissible: (vii) and (i) do not mention v, and the two cases may be taken in either order.

Line (vi) applies the induction hypothesis to line k itself. The hypothesis of Theorem 4.2.2 covers only the lines j<k; (vi) assumes what is to be proved.

Line (ix) uses the context of the citing line for the box’s last line. It is false: line b lies inside the box, whose assumption φ is part of its context, so Γb=Γk,φ, not Γk. In the derivation of Example (Running the claim on a case split), line 3 has context p∨q, p, while line 6 has context p∨q, and p∨q⊨q∨p could not be read off from line 3 directly.

Exercise (B3: Derive or refute)

For each claim, give a derivation, or a refuting row and the result that makes it a proof of non-derivability.

  • (a) p↔q⊢¬p↔¬q.
  • (b) p↔¬q⊢¬(p∧q).
  • (c) p→q, q→r⊢r→p.
  • (d) ¬p∨q⊢p→q.
  • (e) p↔q, ¬q⊢p.
  • (f) ¬(p→q)⊢q→p.

Solution.

  • (a) Derive.
    1p↔q
    2¬pasm, for ↔I
    3qasm, for ¬I
    4p↔E 1, 3
    5⊥¬E 4, 2
    6¬q¬I 3–5
    7¬qasm, for ↔I
    8pasm, for ¬I
    9q↔E 1, 8
    10⊥¬E 9, 7
    11¬p¬I 8–10
    12¬p↔¬q↔I 2–6, 7–11
  • (b) Derive.
    1p↔¬q
    2p∧qasm, for ¬I
    3p∧E 2
    4q∧E 2
    5¬q↔E 1, 3
    6⊥¬E 4, 5
    7¬(p∧q)¬I 2–6
  • (c) Refute. p=F, q=F, r=T: both premises have false hypotheses, and r→p is T→F. By Corollary 4.7.3, no derivation exists.

  • (d) Derive.

    1¬p∨q
    2pasm, for →I
    3¬pasm, for ∨E
    4⊥¬E 2, 3
    5q⊥E 4
    6qasm, for ∨E
    7q∨E 1, 3–5, 6–6
    8p→q→I 2–7
  • (e) Refute. p=q=F: p↔q is T, ¬q is T, and p is F. By Corollary 4.7.3, no derivation exists.

  • (f) Derive, without RAA.

1¬(p→q)
2qasm, for →I
3pasm, for →I
4qR 2
5p→q→I 3–4
6⊥¬E 5, 1
7p⊥E 6
8q→p→I 2–7
  • (c) is the converse of the chain, a way of affirming a conclusion; (e) is a look-alike of p↔q, ¬q⊢¬p, which (a) gives by ↔E; (f) looks paradoxical and is not: its premise is false in every row but one, and there q→p is true.
Exercise (B4: Test the subgoal)

A search for p→(q∨r), ¬q⊢p→r has reached this stage:

1p→(q∨r)
2¬q
3pasm, for →I
⋮
9r
10p→r→I 3–9

A student plans to reach r by deriving q first.

  • (a) Test that subgoal.
  • (b) Name the move that works, then complete it.

Solution.

  • (a) The available lines are p→(q∨r), ¬q, p, and the subgoal is q. The row p=T, q=F, r=T makes the three lines true and q false. So no line of the box itself, whose context is p→(q∨r), ¬q, p, can hold q: every line satisfies Γk⊨φk, by the proof of Theorem 4.7.2. The plan is dead. (q may still stand as the assumption of a case box inside it, whose lines have a larger context; that is how (b) uses it.)

  • (b) Use the premise by its main connective: →E gives q∨r; split it, closing the case q by the clash with ¬q.

1p→(q∨r)
2¬q
3pasm, for →I
4q∨r→E 1, 3
5qasm, for ∨E
6⊥¬E 5, 2
7r⊥E 6
8rasm, for ∨E
9r∨E 4, 5–7, 8–8
10p→r→I 3–9

(Proposition 2.3.4 gives line 9 from lines 4 and 2 in one step, as a derived rule; either is correct.)

C. Going deeper

Exercise (C1: A safe rule and an unsafe one)
  • (a) Add to the primitive rules a one-step rule X: from a line φ∧ψ, infer φ∨ψ. Show that Theorem 4.7.2 still holds for derivations that may use X.
  • (b) Add instead a one-step rule Y: from a line φ∨ψ, infer φ∧ψ. Show that soundness fails: name the case of the proof that breaks, give a derivation using Y of a sequent with a refuting row, and give the row.

Solution (Hint 1). The proof of Theorem 4.7.2 treats one rule per case. Adding a rule adds one case to Claim 2 and changes nothing else.

Solution (Hint 2). For (b), start a derivation from the premise p, and look for a way to write p∨q first.

Solution. (a) The proof of Theorem 4.7.2 goes through with one more case in Claim 2. Every other part is unchanged: Step 1 and Step 4 do not look at the rules, Lemma 4.7.1 (a) holds for any cited line, and (b) concerns only box rules, and X is not one. The case X. Line k is φ∨ψ, citing a line i holding φ∧ψ. By (∗), v(φ∧ψ)=T, so v(φ)=T by (V3), and v(φ∨ψ)=T by (V4). So every line of a derivation with X still satisfies Γk⊨φk, and soundness holds.

(b) The new case of Claim 2 fails: from v(φ∨ψ)=T, (V4) gives only that one disjunct is true, and (V3) needs both. With Y, this is a derivation of p⊢q:

1p
2p∨q∨I 1
3p∧qY 2
4q∧E 3

The row p=T, q=F makes the premise true and the conclusion false, so p⊭q, although p⊢q with Y. The failure is at line 3: its context is p, and the row makes p and line 2 true but line 3 false.

Marking scheme. (10 points)

  • 2: (a) says that only one case is added, and why the rest of the proof (Steps 1 and 4, Lemma 4.7.1) is unaffected.
  • 3: (a) the case for X, using the hypothesis for the cited line through Lemma 4.7.1 (a) and the clauses (V3), (V4).
  • 2: (b) names the failing case, with the reason (one true disjunct does not give a true conjunction).
  • 3: (b) a correct derivation with Y and a refuting row for its sequent.

Fatal errors (0 for the step): a “refuting row” that makes a premise false; in (a), checking X only on atoms without the context argument.

Exercise (C2: Exit check: soundness)

Close the section first, and write from memory.

Write out, in full, the →I, ¬I and ∨E cases of the proof of Theorem 4.7.2: state the claim being proved for every line, set up the induction, and prove the three cases, naming the reason for each step.

Solution. The claim. Fix a derivation in primitive rules with lines 1,…,n, and write φk for the formula on line k and Γk for its context (the premises and the assumptions of the boxes containing line k). We prove Γk⊨φk for every k with 1≤k≤n, by Theorem 4.2.2 applied to “if 1≤k≤n, then Γk⊨φk” (for k=0 it holds vacuously): fix k with 1≤k≤n, assume Γj⊨φj for every line j<k, and let v be a valuation making every formula of Γk true. Every line and box that line k cites lies before line k, so the hypothesis applies to the cited lines and to the last lines of the cited boxes. We show v(φk)=T.

→I. Line k is φ→ψ, citing the box from line a (the assumption φ) to line b (the formula ψ). By Lemma 4.7.1 (b), Γb=Γk,φ. Since b<k, the hypothesis gives Γk,φ⊨ψ. If v(φ)=F, then v(φ→ψ)=T by (V5). If v(φ)=T, then v makes every formula of Γk,φ true, so v(ψ)=T, and v(φ→ψ)=T by (V5).

¬I. Line k is ¬φ, citing the box from line a (the assumption φ) to line b (the formula ⊥). By Lemma 4.7.1 (b) and the hypothesis for line b, Γk,φ⊨⊥. Since v(⊥)=F under every valuation (V1), no valuation makes all of Γk,φ true. As v makes Γk true, v(φ)=F, so v(¬φ)=T by (V2).

∨E. Line k is χ, citing line i (holding φ∨ψ) and the boxes from a to b (φ to χ) and from c to d (ψ to χ). Line i is available at line k, so Γi⊆Γk by Lemma 4.7.1 (a); v makes Γi true, and the hypothesis for line i gives v(φ∨ψ)=T, so v(φ)=T or v(ψ)=T by (V4). By Lemma 4.7.1 (b), Γb=Γk,φ and Γd=Γk,ψ, and the hypothesis for lines b and d gives Γk,φ⊨χ and Γk,ψ⊨χ. If v(φ)=T, then v makes Γk,φ true, so v(χ)=T; if v(ψ)=T, likewise by the second box.

Conclusion. With the other cases, the induction gives Γk⊨φk for every line. The last line lies in no box, so its context is the premises, which all belong to Γ; a valuation making Γ true makes the premises true, and so makes the last line ψ true: Γ⊨ψ.

Marking scheme. (10 points)

  • 2: states the claim Γk⊨φk for every line, with contexts.
  • 2: uses the course-of-values hypothesis on earlier lines only, and says why the cited lines and boxes are earlier.
  • 2: identifies the context of each box’s last line as Γk plus the box’s assumption, citing Lemma 4.7.1 (b) (and (a) for the cited line in ∨E).
  • 1 + 1 + 1: the semantic step in each of the three cases (the rows where the assumption is false for →I; no row satisfies the box’s context for ¬I; the split on which disjunct is true for ∨E).
  • 1: the conclusion for the last line.

A proof that inducts on the length of the derivation instead, and handles open boxes correctly, earns the same points step for step. Fatal errors (0 for the step): applying the hypothesis to line k itself; using Γk as the context of a box’s last line.

Exercise (C3: A changed table)

Replace (V4) by: v(φ∨ψ)=T exactly when exactly one of v(φ), v(ψ) is T. Keep every other clause and every rule.

  • (a) Which cases of the proof of Theorem 4.7.2 still go through?
  • (b) For each rule whose case fails, give a derivation and a row that is a counterexample for the new table.
  • (c) Is p⊢p∨q still derivable? Is it valid for the new table? What does this show?

Solution.

  • (a) Every case except ∨I. The rules that do not mention ∨ use other clauses, which are unchanged. The ∨E case needs only that a true disjunction has a true side, and that still holds: exactly one side is true.

  • (b) ∨I: the derivation 1 p; 2 p∨q, ∨I 1. The row p=q=T makes p true and, for the new table, p∨q false.

  • (c) Derivable: the rules did not change. Not valid for the new table: the row of (b). So soundness is a fact about the rules and the tables together; change a table, and the same rules can lead from truth to falsehood.

Marking scheme. (10 points)

  • 4: (a), with the argument for the ∨E case.
  • 4: (b), the derivation and the row, checked.
  • 2: (c), both answers and the conclusion.

Fatal errors (0 for the step): in (a), declaring the ∨E case broken without a row that breaks it.

Exercise (C4: Challenge: ⊥ read as a letter)

Read ⊥ as an ordinary letter. A letter valuation w gives T or F to every atom and to ⊥, computes ∧, ∨, →, ↔ by (V3)–(V6), and sets w(¬φ)=T exactly when w(φ)=F or w(⊥)=T. Write Γ⊨ℓψ when every letter valuation making every formula of Γ true makes ψ true.

  • (a) Show that every line of a derivation that uses no ⊥E and no RAA, and cites no derived rule whose own derivation uses them, satisfies Γk⊨ℓφk. Give the cases ¬E and ¬I, and say why the others are those of Theorem 4.7.2.
  • (b) Deduce that ⊥⊢p has no derivation without ⊥E and RAA (and without derived rules derived with them).
  • (c) Derive ⊥⊢p with RAA and without ⊥E, and say why (b) must exclude RAA as well.

Solution.

  • (a) Step 1 of the proof expands each line citing a derived rule into a pasted derivation of that rule, which by hypothesis uses neither ⊥E nor RAA; so the expanded derivation is in the remaining primitive rules (and a derived rule derived from derived rules of this kind expands the same way, one layer at a time). Steps 1, 2 and 4 do not look at the clauses, and the cases of premises, assumptions, R and the rules for ∧, ∨, →, ↔ use only (V3)–(V6), which are unchanged; they go through word for word with w for v.

    ¬E: w makes Γk true, so by (∗) it makes φ and ¬φ true. Now w(¬φ)=T with w(φ)=T forces w(⊥)=T, and line k is ⊥.

    ¬I: by (∗∗), every letter valuation making Γk and φ true makes ⊥ true. If w(φ)=F, then w(¬φ)=T. If w(φ)=T, then w makes Γk and φ true, so w(⊥)=T, and again w(¬φ)=T.

  • (b) The letter valuation with w(⊥)=T and w(p)=F makes the premise true and the conclusion false. So ⊥⊨ℓp fails, and by (a) no derivation of ⊥⊢p without ⊥E and RAA, and without derived rules derived with them, exists. (Many derived rules of Chapter 2 use one of the two, Proposition 2.5.1 (b) (with RAA) and Proposition 2.1.1 (with ⊥E) among them; a derivation that avoids the two only on its face is not covered.)

  • (c)
1⊥
2¬pasm, for RAA
3⊥R 1
4pRAA 2–3

So with RAA the rule ⊥E is derivable, and (a) must fail for RAA. It does: with w(⊥)=T, every negation is true, so the box of lines 2–3 satisfies (∗∗), and yet w(p)=F.

Marking scheme. (10 points)

  • 2: the carried-over cases named, with the reason (Steps 1, 2, 4 and the clauses (V3)–(V6) unchanged), and Step 1’s restriction to derived rules derived without ⊥E and RAA.
  • 2: the ¬E case.
  • 3: the ¬I case, both values of w(φ).
  • 1: (b), the letter valuation and the conclusion.
  • 2: (c), the derivation and the failing case.

Fatal errors (0 for the step): in (b), using the ordinary valuations, under which ⊥⊨p holds.

Exercise (C5: Challenge: two three-valued tables)

A Kleene valuation uK assigns one of the values 0, 12, 1 to each atom and is extended by uK(⊥)=0, uK(¬φ)=1−uK(φ), uK(φ∧ψ)=min{uK(φ),uK(ψ)}, uK(φ∨ψ)=max{uK(φ),uK(ψ)}, uK(φ→ψ)=max{1−uK(φ),uK(ψ)}. (This extension differs from the three-valued valuation of the optional excursion below, whose ¬ gives ¬φ the value 0 at 12.) For a set D of designated values, say that Γ D-entails ψ if every Kleene valuation uK giving every formula of Γ a value in D gives ψ a value in D.

  • (a) For D={1}, show that the case →I fails: give a box that is correct for D-entailment and a uK at which the line that →I writes is undesignated.
  • (b) For D={12,1}, show that the case →E fails.
  • (c) Is p∨¬p designated under every uK in (a)? In (b)?

Solution.

  • (a) The one-line box p: p D-entails p. →I writes p→p, and at uK(p)=12, uK(p→p)=max{12,12}=12∉D.

  • (b) The premises p→q, p and the conclusion q, at uK(p)=12, uK(q)=0: uK(p→q)=max{12,0}=12∈D and uK(p)=12∈D, but uK(q)=0∉D.

  • (c) In (a), no: uK(p∨¬p)=max{12,12}=12 at uK(p)=12. In (b), yes: max{x,1−x}≥12 for each of the three values x.

So the first choice of D loses excluded middle and the box rule for →; the second keeps excluded middle and loses modus ponens.

Marking scheme. (10 points)

  • 4: (a), the box, the valuation and the computation.
  • 3: (b), the valuation and the three values.
  • 3: (c), both parts, with the computation.

Fatal errors (0 for the step): a “failure” in (a) or (b) at a valuation that does not designate every premise.

4.7.9. Optional excursion: reductio says something new

Optional: nothing later depends on this excursion. It answers a question Chapter 2 raised.

A three-valued valuation u assigns to each atom one of the values 0, 12, 1, ordered 0<12<1. Think of 1 as “true”, 0 as “false”, and 12 as “not yet settled”.

u(φ→ψ)u(ψ)=0u(ψ)=12u(ψ)=1u(φ)=0111u(φ)=12011u(φ)=10121u(φ)u(¬φ)0112010 An implication gets 1 when its conclusion is at least as true as its hypothesis, and otherwise the value of its conclusion; a negation is 1 only on 0.

Chapter 2 introduced RAA in Section 2.5 because the rules before it stalled on ¬¬P⊢P, and said that Chapter 4 would prove that no derivation of P from ¬¬P avoids RAA. Truth tables cannot do it. The row method only proves non-derivability from all the rules, and with RAA the sequent is derivable, so no two-valued row refutes it. The trick is to run the proof of Theorem 4.7.2 with a different notion of truth, one with three values, under which every rule except RAA still passes.

A three-valued valuation is extended to all formulas by recursion (Theorem 4.3.4): u(⊥)=0,u(¬φ)=u(φ→⊥),u(φ∧ψ)=min{u(φ),u(ψ)},u(φ∨ψ)=max{u(φ),u(ψ)},u(φ→ψ)={1if u(φ)≤u(ψ),u(ψ)otherwise,u(φ↔ψ)=min{u(φ→ψ),u(ψ→φ)}. So u(¬φ)=1 if u(φ)=0, and u(¬φ)=0 otherwise. On the values 0 and 1 alone these are exactly the tables of Definition 4.4.2, with 1 for T and 0 for F. For a list Γ, let u(Γ) be the least of the values u(γ) for γ in Γ, and u(Γ)=1 if Γ is empty. Write Γ⊨3ψ if u(Γ)≤u(ψ) for every three-valued valuation u: the conclusion is at least as true as the weakest premise.

Theorem 4.7.4 (Reductio Is Not Derivable from the Other Rules) Optional: nothing later depends on this.

Neither ¬¬p⊢p nor ⊢p∨¬p has a derivation that uses only the primitive rules other than RAA (and derived rules derived from those).

Idea. Repeat the proof of Theorem 4.7.2 with ⊨3 in place of ⊨: every line of a derivation without RAA satisfies Γk⊨3φk. Then show that both sequents fail for ⊨3, at u(p)=12. The one case that breaks is RAA, and that is the point.

Proof. As in Step 1 of the proof of Theorem 4.7.2, a derived rule derived without RAA abbreviates a pasted derivation in the primitive rules other than RAA, so it is enough to consider those. Fix a derivation that uses only the primitive rules other than RAA, with lines 1,…,n, formulas φk and contexts Γk. We show Γk⊨3φk for every k with 1≤k≤n, by Theorem 4.2.2 exactly as in Step 2 of the proof of Theorem 4.7.2, the cases k=0 and k>n being vacuous. Fix k, assume the claim for all earlier lines, and fix a three-valued valuation u; write m=u(Γk). We must show m≤u(φk). Two facts do the bookkeeping. If line k cites line i, then Γi⊆Γk (Lemma 4.7.1 (a)), and the least value over a longer list is at most the least over a shorter one, so m≤u(Γi)≤u(φi). If line k cites a box from line a to line b by a box rule, then Γb=Γk,φa (Lemma 4.7.1 (b)), so the hypothesis for line b says min{m,u(φa)}≤u(φb). Below, x=u(φ), y=u(ψ), z=u(χ).

Premises and assumptions: φk is in Γk, so m≤u(φk). R: m≤u(φi)=u(φk). ∧I: m≤x and m≤y, so m≤min{x,y}. ∧E: m≤min{x,y}≤x, and likewise ≤y. ∨I: m≤x≤max{x,y}.

→E: m≤u(φ→ψ) and m≤x. If x≤y, then m≤x≤y. Otherwise u(φ→ψ)=y, so m≤y. ↔E: m≤u(φ↔ψ)≤u(φ→ψ) and m≤x, so m≤y as for →E; the second form is symmetric.

¬E: m≤x and m≤u(¬φ). If x=0, then m≤0; if x>0, then u(¬φ)=0 and m≤0. So m=0=u(⊥). ⊥E: m≤u(⊥)=0, so m=0≤u(φk).

→I: the hypothesis gives min{m,x}≤y. If x≤y, then u(φ→ψ)=1≥m. Otherwise y<x and u(φ→ψ)=y; since min{m,x}≤y<x, the minimum is not x, so it is m, and m≤y. ↔I: the same argument for each box gives m≤u(φ→ψ) and m≤u(ψ→φ), so m is at most their minimum.

¬I: the hypothesis gives min{m,x}≤u(⊥)=0. If x=0, then u(¬φ)=1≥m. If x>0, the minimum is 0 and is not x, so m=0≤u(¬φ).

∨E: m≤max{x,y}, and the boxes give min{m,x}≤z and min{m,y}≤z. If x≥y, then m≤x, so min{m,x}=m and m≤z. If y>x, then m≤y and m≤z from the second box.

This covers every rule used, so Γk⊨3φk for every line, and in particular for the last line, whose context is the premises. As in Step 4 of the proof of Theorem 4.7.2, a list containing all the premises has least value at most theirs, so every sequent Γ⊢ψ derived without RAA satisfies Γ⊨3ψ.

Now let u(p)=12. Then u(¬p)=0, since 12>0, and u(¬¬p)=1, since u(¬p)=0. So u(¬¬p)=1>12=u(p), and ¬¬p⊨3p fails. Also u(p∨¬p)=max{12,0}=12<1, the value of the empty list, so ⊨3p∨¬p fails. Hence neither sequent is derivable without RAA.

The case that was not written is RAA itself. Its box would give min{m,u(¬φ)}≤0, and we would need m≤x. At u(φ)=12 the box gives nothing, since u(¬φ)=0 already, while m may be 1. This is the three-valued face of the question asked in the Idea of Theorem 4.7.2: the two-valued RAA case used that v(φ)=F forces v(¬φ)=T, and with a third value, φ and ¬φ can both fail to be true.

Remark. The same values settle Peirce’s law, ((p→q)→p)→p, which Section 2.5 derived with RAA (Proposition 2.5.4): at u(p)=12, u(q)=0, we get u(p→q)=0, u((p→q)→p)=1, and the whole formula has value 12, so it too needs RAA. The values do not refute everything Chapter 2 derived with RAA: the De Morgan direction ¬(p∧q)⊢¬p∨¬q passes this test, and so does ⊢(p→q)∨(q→p). Neither of these is derivable without RAA either, but showing that needs a different kind of model, and this book states it without proof, as Section 2.5’s Looking-ahead box announced. RAA says something the other rules cannot.

A technique, named. The proof is an instance of a general technique: to show that a rule cannot be derived from the others, find a new notion of “true” under which the other rules are sound and that rule is not. Here the notion has three values; Exercise C4 uses two values with ⊥ read as an ordinary letter, and Exercise C5 two other three-valued tables. Each notion is a different semantics. For the two-valued tables the rules are not only sound but complete, which is Section 4.8’s theorem.