4.8  Completeness

Soundness (Theorem 4.7.2) says that the rules of Chapters 1 and 2 never lead from true premises to a false conclusion: whatever can be derived is true in every row where the premises are. That answers half of the chapter’s question. The other half is the converse. Could the rules be too weak, so that some sequent is true in every row and yet no derivation of it exists? This section proves that they are not: every truth-table consequence has a derivation. The proof reads a derivation off the truth table, one row at a time, and then glues the rows together with excluded middle.

4.8.1. The question soundness leaves open

Recall the two relations from Section 4.5. Γ⊢ψ says that there is a derivation of ψ from premises in Γ (Definition 1.2.3). Γ⊨ψ says that every valuation making all of Γ true makes ψ true (Definition 4.5.3). Soundness is the implication Γ⊢ψ ⇒ Γ⊨ψ. Its converse is not automatic. The rules are a list that people wrote down, and a list can leave something out. Suppose, as a thought experiment, that we struck RAA (Definition 2.5.1) from the list. Every derivation that remains is still a derivation, so soundness still holds. But the tautology p∨¬p would then have no derivation (this is the optional Theorem 4.7.4 of Section 4.7). So a sound list of rules can be too short. The question is whether our list is long enough.

Here is a sequent to keep in mind. The formula (p→q)∨(q→p) is a tautology: if q is true then p→q is true, and if q is false then q→p is true. Chapter 3 found a derivation of it (Exercise (C2: A disjunction from nothing)), but only after reaching for LEM, and nothing in Chapter 3 proved that a derivation would be there to find. We want a theorem that promises it in advance, for every tautology and every valid sequent.

We are going to prove:

If Γ is a list of formulas and Γ⊨ψ, then Γ⊢ψ.

The plan has two ideas, one per row and one for all the rows together.

  1. One row gives one derivation. Fix a row of the truth table, that is, a valuation v. Write each atom as it stands in that row: p if v makes p true, ¬p if v makes it false. From these signed atoms we will derive the formula ψ if ψ is true in the row, and ¬ψ if it is false. The derivation climbs the parse tree of ψ, one connective at a time.
  2. The rows are glued by excluded middle. If Γ⊨ψ, the first idea gives ψ from Γ and the signed atoms of each row. Two rows that differ only at the atom p have derivations from “…,p” and from “…,¬p”. The rule ∨E applied to p∨¬p merges them into one derivation that no longer mentions p. Removing the atoms one at a time leaves a derivation from Γ alone.

We keep the premises Γ throughout, and we isolate the two ingredients as lemmas so that each can be checked on its own. Before either, we need a little bookkeeping about derivations.

Second readingWhere the route comes from

The first idea is known as Kalmár’s lemma, and gluing rows by excluded middle is the standard way to finish; the route is the classical one.

4.8.2. Bookkeeping: adding premises and chaining derivations

In Chapter 2 we learned to use a proved sequent as a single line (Definition 2.3.1), and Section 2.3 proved what that gives, Lemma 2.3.3: (a) extra premises never hurt; (b) a statement already derived may be used as a premise; (c) a sequent already proved may be applied to statements already derived. The completeness proof uses (a) and (c) dozens of times. They also made Step 1 of the proof of Theorem 4.7.2 honest: for whole derivations, part (c) is the precise form of “abbreviates”.

Quick check. Suppose Γ⊢α and Γ⊢¬α. Which part of Lemma 2.3.3, applied to which proved sequent, gives Γ⊢χ for every formula χ?

Solution. Part (c) with m=2, α1=α, α2=¬α and β=χ, applied to Proposition 2.1.1, P,¬P⊢Q, with α for P and χ for Q.

4.8.3. The rules prove their own truth tables

Each line of the truth table of a connective says something like “with α true and β false, α→β comes out false”. Read with signs, that line is a sequent: from α and ¬β, conclude ¬(α→β). If every such sequent is derivable, then the rules know the truth tables. This is the key to the first idea of the plan. Section 4.4 began by reading the tables off the rules; the lemma below makes that reading exact: every line of every table is a derivable sequent.

Lemma 4.8.1 (The Rules Prove the Truth Tables)

For all formulas α and β, the following sequents are derivable, by derivations that do not use RAA.

  • (i) (¬1) α⊢¬¬α, and (⊥1) ⊢¬⊥.
  • (ii) (∧1) α,β⊢α∧β; (∧2) ¬α⊢¬(α∧β); (∧3) ¬β⊢¬(α∧β).
  • (iii) (∨1) α⊢α∨β; (∨2) β⊢α∨β; (∨3) ¬α,¬β⊢¬(α∨β).
  • (iv) (→1) ¬α⊢α→β; (→2) β⊢α→β; (→3) α,¬β⊢¬(α→β).
  • (v) (↔1) α,β⊢α↔β; (↔2) ¬α,¬β⊢α↔β; (↔3) α,¬β⊢¬(α↔β); (↔4) ¬α,β⊢¬(α↔β).

Here are the tables of Definition 4.4.2 again, with each row tagged by the sequent of the lemma that derives it from the signed parts. Where two sequents fit a row, the tag is the one the proof of the next lemma uses.

α β α∧β α∨β α→β α↔β
T T T (∧1) T (∨1) T (→2) T (↔1)
T F F (∧3) T (∨1) F (→3) F (↔3)
F T F (∧2) T (∨2) T (→1) F (↔4)
F F F (∧2) F (∨3) T (→1) T (↔2)

Beside it: α T gives ¬α F, tagged (¬1); α F gives ¬α T, and no sequent is needed, since the signed part ¬α is already the signed whole; ⊥ is always F, tagged (⊥1).

Each sequent has as premises only the parts it needs, each as itself or negated. For instance, α∧β is false as soon as α is false, whatever β is, and (∧2) has the single premise ¬α. This economy will matter: when the proof of the next lemma uses a row, it needs to know something only about the parts the row mentions.

Idea. Most of the sequents are already in the book: rules of Chapter 1, or results of Chapter 2 with α and β put in for the letters. The others are short derivations of the kinds Chapter 2 practiced: a box that repeats a premise, or a ¬I box that reaches a clash. The only thing to watch is that no step, and no cited result, uses RAA.

The derivations, with a check that none uses RAA, are in the fold below.

Second readingThe fifteen derivations

Proof. The table lists, for each sequent, the rows of the truth table it covers (by Definition 4.4.2) and where its derivation comes from. The letters of the Chapter 2 results are replaced by α and β, as Definition 2.3.1 allows.

Tag Rows covered Sequent Derivation
(¬1) α T, so ¬α F α⊢¬¬α Example (Two negations from one premise) (a)
(⊥1) ⊥ is always F ⊢¬⊥ printed below
(∧1) T, T give T α,β⊢α∧β ∧I (Definition 1.2.5)
(∧2) F, anything give F ¬α⊢¬(α∧β) ∨I gives ¬α∨¬β, then Proposition 2.5.5 (c)
(∧3) anything, F give F ¬β⊢¬(α∧β) ∨I gives ¬α∨¬β, then Proposition 2.5.5 (c)
(∨1) T, anything give T α⊢α∨β ∨I (Definition 1.5.1)
(∨2) anything, T give T β⊢α∨β ∨I
(∨3) F, F give F ¬α,¬β⊢¬(α∨β) ∧I gives ¬α∧¬β, then Proposition 2.5.5 (b)
(→1) F, anything give T ¬α⊢α→β Proposition 2.1.2
(→2) anything, T give T β⊢α→β printed below
(→3) T, F give F α,¬β⊢¬(α→β) printed below
(↔1) T, T give T α,β⊢α↔β printed below
(↔2) F, F give T ¬α,¬β⊢α↔β printed below
(↔3) T, F give F α,¬β⊢¬(α↔β) printed below
(↔4) F, T give F ¬α,β⊢¬(α↔β) printed below

In the second column, “F, anything give F” means: if α is F, then α∧β is F whatever the value of β.

The seven printed derivations follow. First (→2) and (→3) (the first is the derivation of Exercise (B2: An assumption that is not used) (a), printed again because a proof does not rest on an exercise): an implication whose conclusion we already have, and the refutation of an implication by a true hypothesis with a false conclusion.

1β
2αasm, for →I
3βR 1
4α→β→I 2–3
1α
2¬β
3α→βasm, for ¬I
4β→E 3, 1
5⊥¬E 4, 2
6¬(α→β)¬I 3–5

Next (↔1) and (↔2). In the first, each box repeats the premise it needs; in the second, each box reaches a clash and closes by ⊥E.

1α
2β
3αasm, for ↔I
4βR 2
5βasm, for ↔I
6αR 1
7α↔β↔I 3–4, 5–6
1¬α
2¬β
3αasm, for ↔I
4⊥¬E 3, 1
5β⊥E 4
6βasm, for ↔I
7⊥¬E 6, 2
8α⊥E 7
9α↔β↔I 3–5, 6–8

Then (↔3), (↔4) and (⊥1). The first two assume the biconditional and use it in the direction that clashes with a premise; the last is a box whose assumption ⊥ is already the ⊥ that ¬I asks for, the degenerate box of Section 2.2.

1α
2¬β
3α↔βasm, for ¬I
4β↔E 3, 1
5⊥¬E 4, 2
6¬(α↔β)¬I 3–5
1¬α
2β
3α↔βasm, for ¬I
4α↔E 3, 2
5⊥¬E 4, 1
6¬(α↔β)¬I 3–5
1⊥asm, for ¬I
2¬⊥¬I 1–1

None of these derivations uses RAA: their boxes close by →I, ¬I and ↔I. Nor do the cited results: Proposition 2.1.2 and Example (Two negations from one premise) come from Sections 2.1 and 2.2, before RAA was introduced, and Chapter 2 derived De Morgan’s laws (b) and (c) without it (it says so right after the derivations of Proposition 2.5.5). This proves the lemma.

The ¬ connective needs only one sequent. When α is false, ¬α is true, and the “sequent” ¬α⊢¬α is a one-line derivation; only the other row, (¬1), needs a proof.

Warning. The sequents of Lemma 4.8.1 go from the parts to the whole. Read backwards they are false. For instance α∨β⊢α is not derivable in general: the row p=F, q=T makes p∨q true and p false, so p∨q⊬p by Corollary 4.7.3. A row of a table tells us the value of the whole from the values of the parts, never the other way round.

Quick check. Which tagged sequent covers α F, β T for →? And for ↔?

Solution. (→1), ¬α⊢α→β. (The row also fits (→2).) For ↔: (↔4), ¬α,β⊢¬(α↔β).

4.8.4. One row, one derivation

A row of a truth table can be written as a list of premises: each atom as it stands in the row, itself if true, negated if false.

p q r the row, as premises
T F T p, ¬q, r

We now name the formulas that “write down a row”.

A signed formula is a formula as it stands in one row: itself if the row makes it true, its negation if the row makes it false.

For a valuation v and a formula φ, the signed formula φv is φv:={φif v(φ)=T,¬φif v(φ)=F. The superscript v is a label naming the row, not an exponent. In particular, for an atom p, the signed atom pv is p or ¬p. For example, if v(p)=T and v(q)=F, then pv=p, qv=¬q, (p→q)v=¬(p→q) and (q→p)v=q→p. Whatever v is, v(φv)=T: the signed formula is always the true one of φ and ¬φ, by the clause for ¬ in Definition 4.4.2.

The signed atoms p1v,…,pnv describe the row of v completely, as far as p1,…,pn go. The next lemma says they are enough premises to derive the signed version of any formula built from these atoms.

Lemma 4.8.2 (One Row of the Truth Table Is Derivable)

Let φ be a formula, let p1,…,pn (n≥0) be atoms among which are all the atoms of φ, and let v be a valuation. Then p1v,…,pnv⊢φv.

In words: in each row of the truth table of φ, the value of φ can be derived from the values of its atoms, where “value T” is written as the formula and “value F” as its negation.

Idea. Climb the parse tree. At an atom, φv is one of the premises. At a connective, the induction hypothesis gives the signed parts αv, βv, and Lemma 4.8.1 has a sequent from (some of) those signed parts to the signed whole. So structural induction (Theorem 4.3.1), with Lemma 2.3.3 (c) to chain, does the whole job. The only care is to pick, for each pair of values, the row whose premises are the signs we actually have.

Proof. Fix the atoms p1,…,pn and the valuation v, and write Σ for the list p1v,…,pnv. We prove, by structural induction (Theorem 4.3.1), that every formula φ has the property

if every atom of φ is among p1,…,pn, then Σ⊢φv.

Every atom of an immediate part α or β of a formula is an atom of the formula itself, so when φ satisfies the “if”, so do its immediate parts, and the induction hypothesis applies to them.

Atoms. Let φ be an atom among p1,…,pn, say φ=pi. Then φv=piv is a member of Σ, and the one-line derivation whose only line is the premise piv shows Σ⊢φv.

The formula ⊥. By Definition 4.4.2, v(⊥)=F, so ⊥v=¬⊥. By (⊥1) of Lemma 4.8.1, ⊢¬⊥, and weakening (Lemma 2.3.3 (a)) gives Σ⊢¬⊥.

Negation. Let φ=¬α, and assume Σ⊢αv.

  • Case v(α)=T. Then αv=α, and v(¬α)=F, so φv=¬¬α. From Σ⊢α and (¬1), α⊢¬¬α, chaining (Lemma 2.3.3 (c)) gives Σ⊢¬¬α.
  • Case v(α)=F. Then αv=¬α, and v(¬α)=T, so φv=¬α=αv. The hypothesis is already the claim.

Conjunction. Let φ=α∧β, and assume Σ⊢αv and Σ⊢βv. By Definition 4.4.2, v(α∧β)=T exactly when v(α)=v(β)=T.

  • Case v(α)=v(β)=T. Then φv=α∧β, αv=α, βv=β. Chaining Σ⊢α and Σ⊢β with (∧1), α,β⊢α∧β, gives Σ⊢α∧β.
  • Case v(α)=F. Then φv=¬(α∧β) and αv=¬α. Chaining Σ⊢¬α with (∧2), ¬α⊢¬(α∧β), gives Σ⊢¬(α∧β). The hypothesis for β is not used.
  • Case v(α)=T, v(β)=F. Then φv=¬(α∧β) and βv=¬β, and chaining Σ⊢¬β with (∧3) gives Σ⊢¬(α∧β).

Implication. Let φ=α→β, and assume Σ⊢αv and Σ⊢βv. By Definition 4.4.2, v(α→β)=F exactly when v(α)=T and v(β)=F.

  • Case v(α)=F. Then φv=α→β and αv=¬α. Chaining Σ⊢¬α with (→1), ¬α⊢α→β, gives Σ⊢α→β.
  • Case v(α)=T, v(β)=T. Then φv=α→β and βv=β. Chaining Σ⊢β with (→2), β⊢α→β, gives Σ⊢α→β.
  • Case v(α)=T, v(β)=F. Then φv=¬(α→β), αv=α and βv=¬β. Chaining Σ⊢α and Σ⊢¬β with (→3), α,¬β⊢¬(α→β), gives Σ⊢¬(α→β).

Disjunction and biconditional. These go as for implication. For each pair of values of α and β, the table in the proof of Lemma 4.8.1 names a sequent whose premises are among αv, βv and whose conclusion is φv: for ∨, (∨1) if v(α)=T, (∨2) if v(α)=F and v(β)=T, (∨3) if both are F; for ↔, (↔1) to (↔4) for the value pairs T T, F F, T F, F T. Chaining the induction hypotheses for those premises with that sequent gives Σ⊢φv.

The atoms and ⊥ have the property, and each formation clause preserves it, so by Theorem 4.3.1 every formula has it. This proves the lemma.

Each case used the induction hypothesis only for the parts named in the premises of its sequent: the conjunction case with α false never looked at β. That is the economy of Lemma 4.8.1 at work. The disjunction and biconditional cases are written out in Exercise (C1: The remaining cases).

Here is the lemma run on one formula, with every chained sequent written as a line.

Example (Deriving one row)

Let φ=p→(q∧¬p) and let v(p)=v(q)=T. Find φv, and write the derivation of pv,qv⊢φv that the proof of Lemma 4.8.2 produces.

Solution. Compute up the parse tree: v(¬p)=F, so v(q∧¬p)=F, and since v(p)=T, v(φ)=F. So φv=¬(p→(q∧¬p)), and the premises are pv=p and qv=q.

The proof climbs the same tree. At ¬p with v(p)=T, it is the negation case with α true: (¬1) gives ¬¬p. At q∧¬p, the values are T and F: (∧3) gives ¬(q∧¬p) from (¬p)v=¬¬p. At the root, the values are T and F: (→3) gives the goal from p and ¬(q∧¬p). Written as a derivation, with each sequent of Lemma 4.8.1 cited as a derived rule:

1p
2q
3¬¬p(¬1) 1
4¬(q∧¬p)(∧3) 3
5¬(p→(q∧¬p))(→3) 1, 4

The premise q is never cited. It was used only in computing which case applies: the ∧ case with β=¬p false needs only β’s sign, not q’s. A derivation need not use every premise (Definition 1.2.3).

Quick check. Let φ=p→¬q and v(p)=v(q)=T. What sequent does Lemma 4.8.2 provide, and which sequent of Lemma 4.8.1 does the proof use at the root?

Solution. Here v(¬q)=F, so v(φ)=F, and the lemma gives p,q⊢¬(p→¬q). At the root the values are T and F, so the proof uses (→3), α,¬β⊢¬(α→β), with α=p and β=¬q. Its premise ¬β=¬¬q comes from the negation case below it: q⊢¬¬q, by (¬1).

4.8.5. Gluing the rows: splitting on an atom

Lemma 4.8.2 derives a formula from the signed atoms of one row. A sequent Γ⊢ψ mentions no row at all. The signed atoms must be removed, and the tool for that is excluded middle.

Lemma 4.8.3 (Splitting on an Atom)

Let Δ be a list of formulas, p an atom and ψ a formula. If Δ,p⊢ψ and Δ,¬p⊢ψ, then Δ⊢ψ.

Idea. This is proof by cases on p∨¬p. Proposition 2.5.3 gives p∨¬p with no premises, and ∨E (Definition 1.6.1) needs a box that reaches ψ from p and a box that reaches ψ from ¬p. The two given derivations are exactly the contents of those boxes, once their premise p (or ¬p) is replaced by the box’s assumption.

Before reading on: this is the only place in the completeness proof where a classical rule enters. Where exactly, and why could the ¬I of Chapter 2 not do the job?

Proof. Let D be a derivation of ψ with premises in Δ,p, and E one with premises in Δ,¬p. Build a list of lines as follows.

  1. As premises, every premise of D or of E that is a member of Δ.
  2. The line p∨¬p, justified by Proposition 2.5.3 (LEM) with p for P; it cites nothing.
  3. A box that opens with the assumption p, followed by the lines of D that are not premises, with their boxes. A citation of a premise of D that is in Δ now cites the premise line of step 1; a citation of the premise p now cites the assumption. If the last line of D is itself a premise, the box is shorter: if that premise is p, the box is the assumption alone, which is then its last line; otherwise the box is the assumption followed by ψ, by R, citing the premise line carrying ψ.
  4. A second box, built from E in the same way, opening with the assumption ¬p.
  5. The line ψ, by ∨E, citing line 2 of this list and the two boxes.

This is a derivation (Definition 1.4.2). The premises lie in no box and come first, so they are available everywhere. Inside the first box, the lines of D keep their boxes, which now sit inside the new box, and they cite the same lines and boxes as before, or a premise line, or the assumption, which is available at every line of its own box. As in the proof of Lemma 2.3.3, each line is still an instance of its rule. The last line of the first box is ψ, and it is a line of that box itself and not of a box inside it: it was the last line of D, which lies in no box of D (or it is the assumption itself, or the repetition line). The same holds for the second box. Both boxes and the line p∨¬p lie in no box, and neither does the last line, so they are available at it. Hence the last line is an instance of ∨E, and the list is a derivation of ψ whose premises are all in Δ. So Δ⊢ψ.

Here is its shape, with Δ standing for the premise lines:

hΔ
ip∨¬pLEM
apasm, for ∨E
⋮
bψ
c¬pasm, for ∨E
⋮
dψ
kψ∨E i, a–b, c–d

The answer to the prompt: the classical rule enters at line i. Proposition 2.5.3 was derived in Chapter 2 with RAA, and nothing else in the proof of this lemma is classical. ¬I could not replace it: ¬I produces a negation, and here we need a disjunction with no premises to split on. Nothing in the proof uses that p is an atom; the lemma holds for any formula in place of p, but atoms are all we shall split on.

4.8.6. The completeness theorem

Now the plan of the opening can be carried out.

Theorem 4.8.4 (Completeness)

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

A list is finite, as in Definition 1.2.3. That matters: the proof works with the atoms that occur in Γ and ψ, and it needs them to be finitely many.

Idea. Step roadmap. ① List the atoms p1,…,pn of Γ and ψ. ② Claim: for every valuation v, Γ,p1v,…,pnv⊢ψ. If v makes all of Γ true, then ψ is true in that row, and Lemma 4.8.2 derives it. If v makes some premise γ false, the lemma derives ¬γ, which clashes with the premise γ. ③ Remove the signed atoms one at a time, the last first, by Lemma 4.8.3: an induction on the number of atoms removed. To remove pj we need derivations from both pj and ¬pj with the same other signed atoms: two rows that differ only at pj. That is why the Claim must hold for every valuation, not just one.

Let us run the method of the roadmap on the tautology of the opening.

Example (The method on a tautology)

Run the roadmap of Theorem 4.8.4 on ⊨(p→q)∨(q→p), and write the derivation it produces, citing the sequents of Lemma 4.8.1 as derived rules.

Solution. Write χ for (p→q)∨(q→p). The list Γ is empty and the atoms are p1=p, p2=q. Every valuation makes χ true (if v(q)=T the left side is true; otherwise the right side is), so the Claim ② always falls in its first case (the row makes the premises, here none, true), and Lemma 4.8.2 produces four short derivations, one per row:

  • p,q⊢χ: p→q by (→2) from q, then ∨I;
  • p,¬q⊢χ: q→p by (→1) from ¬q, then ∨I;
  • ¬p,q⊢χ and ¬p,¬q⊢χ: p→q by (→1) from ¬p, then ∨I.

(In the row p=F, q=T, both (→1) and (→2) would do; the proof of Lemma 4.8.2 uses (→1) whenever α is false.) ③ first splits on q=p2, twice: once with p and once with ¬p among the premises. Then it splits on p=p1, once. Three uses of Lemma 4.8.3 in two rounds. Pasting as in its proof, the last split is the outermost:

Diagram. Labels: q, neg q, p, neg p, vdash chi : line 20, veeE on line 1, box 2--10, box 4--6:\\ (to 2), veeI, box 7--9:\\ (to 1), veeI, box 11--19, box 13--15:\\ (to 1), veeI, box 16--18:\\ (to 1), veeI

Each leaf is one row of the table; each inner node is one use of Lemma 4.8.3.

1p∨¬pLEM
2pasm, for ∨E
3q∨¬qLEM
4qasm, for ∨E
5p→q(→2) 4
6(p→q)∨(q→p)∨I 5
7¬qasm, for ∨E
8q→p(→1) 7
9(p→q)∨(q→p)∨I 8
10(p→q)∨(q→p)∨E 3, 4–6, 7–9
11¬pasm, for ∨E
12q∨¬qLEM
13qasm, for ∨E
14p→q(→1) 11
15(p→q)∨(q→p)∨I 14
16¬qasm, for ∨E
17p→q(→1) 11
18(p→q)∨(q→p)∨I 17
19(p→q)∨(q→p)∨E 12, 13–15, 16–18
20(p→q)∨(q→p)∨E 1, 2–10, 11–19

The derivation has 20 lines. The one found by search in Exercise (C2: A disjunction from nothing) has 13, and splits only once. Here the split on q inside the box of ¬p (lines 12–19) is wasted: both of its boxes do the same thing, because in the rows with p false the value of q does not matter. The proof is a method that always works, not a recipe for short derivations; to find a short one, search as in Section 3.1.

Quick check. In the tree, which two leaves do the same thing, and why?

Solution. The boxes 13–15 and 16–18. Both write p→q by (→1) from ¬p on line 11, because in a row with p false, p→q is true whatever q is.

Proof. Step 1. The list Γ is finite and each formula has finitely many symbols, so only finitely many atoms occur in Γ or ψ. List them without repetition as p1,…,pn, where n≥0.

Step 2.

Claim. For every valuation v,  Γ,p1v,…,pnv⊢ψ.

Proof of Claim. Let v be a valuation, and write Σ for p1v,…,pnv.

Case 1: v(γ)=T for every member γ of Γ. Since Γ⊨ψ, by Definition 4.5.3 v(ψ)=T, so ψv=ψ. Every atom of ψ is among p1,…,pn, so Lemma 4.8.2 gives Σ⊢ψ, and weakening (Lemma 2.3.3 (a)) gives Γ,Σ⊢ψ.

Case 2: v(γ)=F for some member γ of Γ. Then γv=¬γ. Every atom of γ is among p1,…,pn, so Lemma 4.8.2 gives Σ⊢¬γ, and by weakening Γ,Σ⊢¬γ. Also Γ,Σ⊢γ, by the one-line derivation whose only line is the premise γ. By Proposition 2.1.1, γ,¬γ⊢ψ. Chaining (Lemma 2.3.3 (c)) gives Γ,Σ⊢ψ.

Step 3. For each integer j with 0≤j≤n, let S(j) be the statement for every valuation v,Γ,p1v,…,pjv⊢ψ, where for j=0 the list of signed atoms is empty. The Claim is S(n).

Claim. If 1≤j≤n and S(j) holds, then S(j−1) holds.

Proof of Claim. Let v be a valuation. Let v+ be the valuation that agrees with v at every atom except that v+(pj)=T, and v− the one that agrees with v except that v−(pj)=F; by Definition 4.4.1, a valuation may assign any value to each atom, so both exist. The atoms p1,…,pj−1 are different from pj, so v+ and v− agree with v on them, and piv+=piv−=piv for i<j. Also pjv+=pj and pjv−=¬pj. Applying S(j) to v+ and to v− gives, with Δ standing for the list Γ,p1v,…,pj−1v, Δ,pj⊢ψandΔ,¬pj⊢ψ. By Lemma 4.8.3, Δ⊢ψ. Since v was arbitrary, this is S(j−1).

Step 2 is S(n). Applying the Claim with j=n, then j=n−1, and so on down to j=1, removes the signed atoms one at a time and reaches S(0). This descent is an induction on the number of atoms removed; the fold after the proof writes it out.

Step 4. S(0) says that Γ⊢ψ, for every valuation v; there is at least one valuation (for instance the one making every atom true), so Γ⊢ψ. This proves the theorem.

Second readingThe descent, as an induction

It remains to go down from S(n) to S(0), which takes n applications of the Claim. We count the applications made: for m∈N, let T(m) say “if m≤n, then S(n−m) holds”. T(0) says that S(n) holds, which is Step 2. Suppose T(m) holds, and let m+1≤n. Then m≤n, so S(n−m) holds by T(m); and j:=n−m satisfies 1≤j≤n, because 0≤m≤n−1. The Claim gives S(j−1)=S(n−(m+1)), which is T(m+1). By Axiom 4.2.1, T(m) holds for every m∈N, and T(n) is S(0).

If n=0, the formulas of Γ and ψ are built from ⊥ alone, and Step 3 does nothing: S(0) is the Claim itself.

Warning. Completeness promises a derivation, not a short one. For a sequent with n atoms, the proof builds 2n row derivations and glues them with 2n−1 splittings: with n=10 atoms, that is 1024 row derivations and 1023 uses of LEM. The theorem answers “is there a derivation?”, not “how short is the shortest?”.

With soundness, completeness closes the circle.

Corollary 4.8.5 (Derivable Means Valid)

For every list of formulas Γ and every formula ψ, Γ⊢ψ⟺Γ⊨ψ. In particular, whether Γ⊢ψ holds can be decided by checking the 2n rows of a truth table, where n is the number of atoms occurring in Γ and ψ.

Proof. (⇒) is Theorem 4.7.2 and (⇐) is Theorem 4.8.4. For the second sentence, let p1,…,pn be the atoms occurring in Γ and ψ. By Lemma 4.4.1, the values of the members of Γ and of ψ under a valuation depend only on its values at p1,…,pn, so Γ⊨ψ holds exactly when it holds in each of the 2n rows of the joint truth table. That is a finite check, and by the first sentence it decides Γ⊢ψ.

So a question that looks as if it needs a search through infinitely many possible derivations can be settled by a finite table. The search for a derivation may still be the quicker way to a yes, and one row is the quickest way to a no (Corollary 4.7.3), but neither is needed.

Consistent and satisfiable coincide. Section 4.7 showed that a satisfiable list is consistent. Completeness gives the converse. If Δ is unsatisfiable, no row makes Δ true, so Δ⊨⊥ (there is no row to check), and Δ⊢⊥ by Theorem 4.8.4: Δ is inconsistent. So a finite list is consistent exactly when it is satisfiable. The word of Section 3.2 and the word of Section 4.5 pick out the same lists, though one speaks of derivations and the other of rows; Section 3.2’s task “derive ⊥” and Section 4.6’s search on a list always give the same answer.

Second readingWhy two definitions of ‘follows’ are enough

Before Chapter 1, “ψ follows from Γ” had only an informal meaning: whatever a careful mathematician accepts as a valid inference, by any means. That is not a definition, but two things about it are clear for propositional forms. If Γ⊢ψ, then ψ follows informally: each rule is an inference every mathematician accepts, and a chain of accepted inferences is accepted. If ψ follows informally from Γ by form alone, then Γ⊨ψ: an inference valid by its form cannot have a row, which is one way of reading the atoms, making the premises true and the conclusion false. So the informal notion is squeezed between ⊢ and ⊨, and completeness makes the two ends meet: for propositional forms, the informal notion coincides with both. An argument of this shape is due to Georg Kreisel.

Second readingInfinitely many premises

We defined Γ⊢ψ only for a list, that is, for finitely many premises. One may allow an infinite collection Γ of premises and say Γ⊢ψ when ψ is derivable from finitely many members of Γ (a derivation has finitely many lines, so it can only use finitely many). The equivalence with Γ⊨ψ still holds for infinite Γ (completeness for infinitely many premises); together with the finiteness of derivations it gives the compactness theorem of propositional logic. The optional Section 4.10 proves both; nothing in the core depends on them. Our proof does not reach infinite Γ: Step 1 needs finitely many atoms.

4.8.7. Two columns that agree

Section 4.5 set the two meanings of “follows” side by side. Here is the full table, now that both theorems are proved: they agree row by row (Corollary 4.8.5 and the paragraph on consistency above).

Notion In terms of derivations In terms of rows
follows Γ⊢ψ (Definition 1.2.3, Section 1.2) Γ⊨ψ (Definition 4.5.3, Section 4.5)
true by form alone a theorem, ⊢φ a tautology, ⊨φ (Definition 4.5.1)
say the same provably equivalent (Definition 2.4.2, Section 2.4) semantically equivalent (Definition 4.5.4)
cannot hold together inconsistent, Γ⊢⊥ (Definition 3.2.1, Section 3.2) unsatisfiable (Definition 4.5.2)
shown to hold by one derivation every row, or a closed search tree (Proposition 4.6.1)
shown to fail by one refuting row (Corollary 4.7.3) one refuting row
more premises, cut Lemma 2.3.3 (Section 2.3): chaining and cut are why a derived rule may be cited Section 4.5’s structural properties: one line about rows each
tied together by soundness, ⊢⇒⊨ (Theorem 4.7.2) completeness, ⊨⇒⊢ (Theorem 4.8.4)

4.8.8. Two roads to every answer

We now have two independent ways to settle any question “is Γ⊢ψ?”. One is to search for a derivation, as in Section 3.1. The other is to check a table, and Corollary 4.8.5 says the two always agree. Here are two of Chapter 2’s classical laws settled by the table first.

De Morgan’s law (d). Is ¬(p∧q)⊨¬p∨¬q? The four rows: pq¬(p∧q)¬p∨¬qTTFFTFTTFTTTFFTT In every row where the premise is T, so is the conclusion. So ¬(p∧q)⊨¬p∨¬q, and by Theorem 4.8.4, ¬(p∧q)⊢¬p∨¬q.

Peirce’s law. Is (p→q)→p⊨p? Work backwards from F (Section 4.4). A refuting row would need p false. Then p→q is true, so (p→q)→p is “true implies false”, which is false. So no row makes the premise true and the conclusion false: (p→q)→p⊨p, and by Theorem 4.8.4, (p→q)→p⊢p.

Both answers came before anyone found a derivation. Chapter 2 found both by hand (Proposition 2.5.5 (d), and Proposition 2.5.4, whose ⊢((P→Q)→P)→P gives the sequent by →E), and the derivations there use RAA. Completeness explains why a search had to succeed; it does not say how.

Second readingWhat the proof used

A common alternative route first turns Γ⊨ψ into a single tautology, ⊨γ1→(γ2→⋯→(γk→ψ)), proves completeness for tautologies, and then unpacks the implications with →E. Keeping Γ as premises, as Step 2 does, costs one extra case (a false premise) and saves that detour.

Section 4.5 remarked that the tables do not see which of Chapter 2’s laws needed RAA. Now we can say why they cannot. A table decides Γ⊨ψ, and by Corollary 4.8.5 that is the same as derivability with all the rules, RAA included. A table has no column recording which rules a derivation uses. Whether a sequent can be derived without RAA is a question about a shorter list of rules, and for that list the completeness theorem is false, as the next paragraph explains. So no truth-table check can tell the laws that need RAA from those that do not.

Which rules did the proof of completeness itself use? Lemma 2.3.3 only pastes derivations. Lemma 4.8.1 uses no RAA, as its proof checks. Lemma 4.8.2 and the Claim chain those sequents, together with Proposition 2.1.1, which Chapter 2 derived before RAA appeared. The one classical step is the line p∨¬p of Lemma 4.8.3. So the theorem is really about the full list of rules, RAA included. Without RAA the list is sound but not complete, as the optional Theorem 4.7.4 shows for ⊢p∨¬p and ¬¬p⊢p; the proof above breaks exactly at the splitting.

Warning. Completeness does not say that a tautology has a derivation without RAA. It says there is a derivation from the rules of Chapters 1 and 2, all of them. The formula (p→q)∨(q→p) is a tautology, and every derivation found for it so far uses LEM or RAA. Whether a particular tautology can do without them is a different question, and a table cannot answer it.

4.8.9. A truth-table step: TAUT

Completeness has a practical consequence. Any step from earlier lines to a new one that a truth table confirms can be filled in by a derivation, so the step may be written as one line and the filling left to the theorem.

Definition 4.8.1 (The Step TAUT)

In a derivation of formulas of Definition 4.1.1, a line ψ may be justified by TAUT, citing lines i1,…,im (m≥0) available at it, if φi1,…,φim⊨ψ: every row that makes the cited lines true makes ψ true. For m=0, ψ must be a tautology.

A TAUT line abbreviates a derivation in the rules of Chapters 1 and 2: by Corollary 4.8.5, φi1,…,φim⊢ψ, and that derivation is pasted in as a derived rule’s is (Definition 2.3.1; Lemma 2.3.3 for a line in no box). So TAUT derives nothing new, and Theorem 4.7.2 holds for derivations that use it. A TAUT line is checked by a table, not found by a search; its justification reads “TAUT” with the cited lines.

Convention. TAUT is a license, not a style. It is used only for a step that a written proof would pass over without comment, such as a rearrangement of connectives (“so if p, then q”), never to hide the step an argument is about.

Example (One line for twelve)

Derive ¬(p→q)⊢p∧¬q with TAUT, and say what the step abbreviates.

Solution.

1¬(p→q)
2p∧¬qTAUT 1

The check: the premise is true only in the row p=T, q=F, since an implication is false only there, and p∧¬q is true in that row. Written out with the rules of Chapter 2, the derivation takes twelve lines (fold below). It is a step a written proof passes over (“an implication fails only with a true hypothesis and a false conclusion”), so the convention allows it.

Second readingThe step written out

An RAA box on ¬p, in which Proposition 2.1.2 (VI) gives p→q, clashing with line 1, gives p. A ¬I box on q, in which an inner box gives p→q again, gives ¬q. Then ∧I. The proof that a TAUT line can always be written out builds a longer derivation still, by the method of Theorem 4.8.4; this one was found by search.

1¬(p→q)
2¬pasm, for RAA
3p→qVI 2
4⊥¬E 3, 1
5pRAA 2–4
6qasm, for ¬I
7pasm, for →I
8qR 6
9p→q→I 7–8
10⊥¬E 9, 1
11¬q¬I 6–10
12p∧¬q∧I 5, 11

Quick check. May line 3 be justified by TAUT: 1 p∨q; 2 p→r; 3 r∨q, TAUT 1, 2?

Solution. Yes. In a row making lines 1 and 2 true, either p is true, and then r is, or p is false, and then q is; either way r∨q is true.

Warning (Not allowed: TAUT). The first three steps break a clause of Definition 4.8.1, named in the tag; the fourth is legal and breaks the convention.

  • “q→p, TAUT 1”, with line 1 p→q. The row p=F, q=T makes line 1 true and the new line false. Clause “every row that makes the cited lines true”.
  • Citing by TAUT a line inside a box that has closed. Clause “available”: the scope rule of Definition 1.4.2.
  • TAUT on a line that is not a formula of Definition 4.1.1, such as “for every x, x2≥0”. Clause “formulas of Definition 4.1.1”.
  • “¬p, TAUT 1, 2”, with lines p→q and ¬q, in a proof whose point is that contrapositive step. Convention: legal by the definition, but it hides the step the argument is about; write MT (Proposition 2.3.1) or the derivation.

Remark (Looking ahead). Chapter 6 extends TAUT to formulas with quantifiers, reading each quantified part as a letter; Chapter 8 names the steps a written proof passes over without comment.

4.8.10. Exercises

A. Check your understanding

Exercise (A1)

These questions are about Lemma 4.8.2 and Theorem 4.8.4.

  • (a) In the conjunction case of the proof of Lemma 4.8.2, suppose v(α)=F and v(β)=T. Which sequent of Lemma 4.8.1 is used, and which induction hypotheses?
  • (b) Where is RAA used in the proof of Theorem 4.8.4, including inside the results it cites?
  • (c) State the idea of the proof of Theorem 4.8.4 in two sentences.
  • (d) Run Step 2 of the proof for Γ=p, ψ=p∨q and the valuation with v(p)=F, v(q)=T: which case applies, and which sequent does it prove?
  • (e) Step 1 lists the atoms without repetition. Where in the proof is that used?
  • (f) Which step of the proof fails if Γ is allowed to be an infinite collection of formulas, each with its own atoms?

Solution. (a) (∧2), ¬α⊢¬(α∧β), and only the hypothesis for α, Σ⊢¬α. The hypothesis for β is not needed, because α∧β is false once α is.

(b) Only inside Lemma 4.8.3, at the line p∨¬p: Proposition 2.5.3 was derived with RAA. The sequents of Lemma 4.8.1 are derived without it, Lemma 2.3.3 only pastes derivations, and Proposition 2.1.1 comes before RAA in Chapter 2.

(c) Each row of the truth table gives a derivation of the conclusion from the premises and that row’s signed atoms: by Lemma 4.8.2 if the row makes every premise true, and from a clash with a false premise otherwise. Two rows that differ at one atom are merged by excluded middle and proof by cases, and after all the atoms are merged the signed atoms are gone.

(d) The valuation makes the premise p false, so Case 2 applies with γ=p. Lemma 4.8.2 gives ¬p,q⊢¬p (the atom case), the premise gives p, and Proposition 2.1.1 gives p∨q. The sequent proved is p,¬p,q⊢p∨q.

(e) In the Claim of Step 3: v+ and v− change only the value at pj, and they agree with v on p1,…,pj−1 only because those atoms differ from pj. If pj also appeared as some pi with i<j, then piv+=pj and piv−=¬pj would differ, and the two sequents would not share the list Δ that Lemma 4.8.3 needs.

(f) Step 1. Infinitely many atoms may occur, so there is no finite list p1,…,pn: the Claim would need infinitely many signed atoms as premises, which is not a list, and Step 3’s descent from S(n) has no n to start from.

Exercise (A2: Drill)

The parts run from signed formulas and the steps of the proof, through consistency and the two columns, to judging TAUT lines.

  • (a) v(p)=F, v(q)=T. Write pv, qv, (p→q)v, (q→p)v.
  • (b) φ=¬p∧q, v(p)=v(q)=T. Which sequent does Lemma 4.8.2 give?
  • (c) In (b), which tagged sequent does the proof use at the root, and where does its premise come from?
  • (d) A sequent has three atoms. How many row derivations and how many uses of Lemma 4.8.3 does the method build?
  • (e) In the step from S(j) to S(j−1), which signed atom disappears?
  • (f) Γ=q, ψ=p∨q, v(p)=v(q)=F. Which case of the Claim of Step 2 applies?
  • (g) Is this TAUT line legal: 2 p∨q; 3 ¬p; 5 q, TAUT 2, 3?
  • (h) Is this one legal: 1 p→q; 4 q→p, TAUT 1?
  • (i) Is the list p∨q, ¬p, ¬q consistent?
  • (j) In the table “Two columns that agree”, what is the twin of “a theorem”?
  • (k) May ¬(p∧¬p) be written by TAUT citing no line?
  • (l) A list is satisfiable. What does completeness add to what soundness already says about it?

Solution.

  • (a) ¬p, q, p→q, ¬(q→p).

  • (b) p,q⊢¬(¬p∧q).

  • (c) (∧2) with α=¬p: ¬¬p⊢¬(¬p∧q). The premise ¬¬p comes from p by (¬1).

  • (d) 8 and 7.

  • (e) pjv.

  • (f) Case 2, with γ=q, which v makes false.

  • (g) Yes: every row making p∨q and ¬p true makes q true.

  • (h) No: the row p=F, q=T makes line 1 true and line 4 false.

  • (i) No. It is unsatisfiable, so inconsistent (“Consistent and satisfiable coincide”); directly, ∨E on p∨q with ¬E in each box gives ⊥.

  • (j) A tautology.

  • (k) Yes: it is a tautology (m=0).

  • (l) Nothing about this list: soundness already makes it consistent. Completeness speaks of unsatisfiable lists: they are inconsistent.

B. Practice

Exercise (B1: Three rows from the primitive rules)

The table in the proof of Lemma 4.8.1 obtains (∧2), (∧3) and (∨3) from De Morgan’s laws. Derive ¬α⊢¬(α∧β),¬β⊢¬(α∧β),¬α,¬β⊢¬(α∨β) directly from the primitive rules, and say which of your derivations use RAA.

Solution. Each goal is a negation, so each derivation opens a ¬I box on the unnegated formula and hunts for a clash.

1¬α
2α∧βasm, for ¬I
3α∧E 2
4⊥¬E 3, 1
5¬(α∧β)¬I 2–4
1¬β
2α∧βasm, for ¬I
3β∧E 2
4⊥¬E 3, 1
5¬(α∧β)¬I 2–4

For the disjunction, the assumption α∨β is used by ∨E with the goal ⊥, and each case clashes with one premise.

1¬α
2¬β
3α∨βasm, for ¬I
4αasm, for ∨E
5⊥¬E 4, 1
6βasm, for ∨E
7⊥¬E 6, 2
8⊥∨E 3, 4–5, 6–7
9¬(α∨β)¬I 3–8

The three derivations have 5, 5 and 9 lines, and none uses RAA: every box closes by ¬I or ∨E.

Exercise (B2: The method on modus ponens)

Apply the method of Theorem 4.8.4 to p, p→q⊨q: list the four rows and the case of Step 2 that each falls under, and write the derivation that the proof produces, citing LEM and the sequents of Lemma 4.8.1 as single lines. (It is long; that is expected, and the usual length of an exercise answer does not apply.) Compare it with the derivation by →E.

Solution. The atoms are p1=p and p2=q. The rows:

  • p=T, q=T: both premises true, Case 1; qv=q is itself a premise.
  • p=T, q=F: the premise p→q is false, Case 2 with γ=p→q; Lemma 4.8.2 gives p,¬q⊢¬(p→q) by (→3).
  • p=F, q either value: the premise p is false, Case 2 with γ=p; the lemma gives ¬p (an atom case).

In Case 2, the clash is ¬E followed by ⊥E, which is the derivation of Proposition 2.1.1 written out. Splitting on q inside each case of a split on p, the derivation has this shape:

Diagram. Labels: q, neg q, p, neg p, line 21, veeE on line 3, box 4--11\\ (veeE at 11 on line 5), box 6--6:\\ the goal is\\ the assumption, box 7--10: (to 3),\\ clash with line 2,\\ botE, box 12--20\\ (veeE at 20 on line 13), box 14--16:\\ clash of lines\\ 1 and 12, botE, box 17--19:\\ the same clash

Written out:

1p
2p→q
3p∨¬pLEM
4pasm, for ∨E
5q∨¬qLEM
6qasm, for ∨E
7¬qasm, for ∨E
8¬(p→q)(→3) 4, 7
9⊥¬E 2, 8
10q⊥E 9
11q∨E 5, 6–6, 7–10
12¬pasm, for ∨E
13q∨¬qLEM
14qasm, for ∨E
15⊥¬E 1, 12
16q⊥E 15
17¬qasm, for ∨E
18⊥¬E 1, 12
19q⊥E 18
20q∨E 13, 14–16, 17–19
21q∨E 3, 4–11, 12–20

The box at line 6 has one line: in the row p=q=T the goal q is the signed atom itself, so, as in the proof of Lemma 4.8.3, the box is its assumption alone. The result has 21 lines. The derivation by →E has 3: the two premises and q by →E citing lines 2 and 1. The method is uniform, not short: it does the same thing for every valid sequent, and pays for that with a split on every atom.

Exercise (B3: Table first, then a derivation)

Decide by a truth table whether ¬(p↔q)⊨¬p↔q. If it holds, find a derivation of ¬(p↔q)⊢¬p↔q by search, where you may cite the sequents of Lemma 4.8.1 as derived rules. Which rule of your derivation is classical?

Solution. The table: pq¬(p↔q)¬p↔qTTFFTFTTFTTTFFFF The premise is true in rows 2 and 3, and so is the conclusion. So the entailment holds, and by Theorem 4.8.4 a derivation exists.

The search: the goal is a biconditional, so two boxes, one from ¬p to q and one from q to ¬p. In the second, the goal ¬p is a negation: a box on p, and p, q give p↔q by (↔1), which clashes with the premise. In the first, the goal q is an atom, the only premise is a negation, and nothing else applies: we are stuck, and assume ¬q. Then ¬p, ¬q give p↔q by (↔2), which clashes with the premise.

1¬(p↔q)
2¬pasm, for ↔I
3¬qasm, for RAA
4p↔q(↔2) 2, 3
5⊥¬E 4, 1
6qRAA 3–5
7qasm, for ↔I
8pasm, for ¬I
9p↔q(↔1) 8, 7
10⊥¬E 9, 1
11¬p¬I 8–10
12¬p↔q↔I 2–6, 7–11

The classical rule is the RAA at line 6. (Pasting in the derivations of the two cited sequents gives a derivation in the primitive rules of 22 lines.) Whether some other derivation could avoid RAA is a question the table cannot answer. In fact none can; we state that without proof, as Chapter 2 did for similar sequents, and nothing depends on it.

Exercise (B4: When TAUT is welcome)
  • (a) Derive p→(q∧r), ¬r⊢¬p twice: once with a single TAUT line, once with primitive rules.
  • (b) By the convention of this section, which is the better proof, and why?
  • (c) In a longer derivation, line 7 holds ¬(p∧¬q) and line 8 holds p→q. Justify line 8 by TAUT, and say why the convention allows it.

Solution.

  • (a) With TAUT, line 3 is justified because a row making both premises true has r false, so q∧r false, so p false. With primitive rules, a ¬I box on p:
    1p→(q∧r)
    2¬r
    3¬pTAUT 1, 2
    1p→(q∧r)
    2¬r
    3pasm, for ¬I
    4q∧r→E 1, 3
    5r∧E 4
    6⊥¬E 5, 2
    7¬p¬I 3–6
  • (b) The primitive one. The TAUT line hides the only idea of the argument, modus tollens through the conjunction, which is exactly what the convention forbids.

  • (c) 8 p→q, TAUT 7. The two formulas are equivalent (each is false exactly at p=T, q=F), and the step is a rearrangement a written proof makes without comment.

Marking scheme. (10 points)

  • 3: (a) the TAUT derivation, with the row check.
  • 2: (a) the primitive derivation.
  • 3: (b) the primitive one, because the TAUT line hides the argument’s only idea.
  • 2: (c) the TAUT line, with why the convention allows it.
Exercise (B5: Consistent or not)

Decide whether each list is consistent. Justify “consistent” by a row and the result that makes it a proof; justify “inconsistent” by a derivation of ⊥, or by a search and the result that makes it a proof.

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

Solution.

  • (a) Inconsistent:
    1p→q
    2q→r
    3p
    4¬r
    5q→E 1, 3
    6r→E 2, 5
    7⊥¬E 6, 4
  • (b) Inconsistent. A search closes: p↔q gives p,q or ¬p,¬q; under the first, ¬p∨¬q closes both ways; under the second, p∨q closes both ways. So the list is unsatisfiable (Proposition 4.6.1), hence inconsistent, by Theorem 4.8.4 (“Consistent and satisfiable coincide”).

  • (c) Consistent. The row with p, q, r all false makes all three members true (false hypotheses), so the list is satisfiable, hence consistent (Section 4.7, by Theorem 4.7.2).

Marking scheme. (10 points)

  • 3: (a) the verdict (1) and the derivation of ⊥ (2).
  • 4: (b) the verdict (1) and the closed search with the results that make it a proof (3).
  • 3: (c) the verdict (1) and the row with the theorem it rests on (2).

C. Going deeper

Exercise (C1: The remaining cases)

Write out in full the disjunction case and the biconditional case of the proof of Lemma 4.8.2, in the style of the implication case.

Solution. Throughout, Σ is p1v,…,pnv, and the induction hypotheses are Σ⊢αv and Σ⊢βv. “Chaining” is Lemma 2.3.3 (c).

Disjunction, φ=α∨β. By Definition 4.4.2, v(α∨β)=F exactly when v(α)=v(β)=F.

  • Case v(α)=T. Then φv=α∨β and αv=α. Chaining Σ⊢α with (∨1), α⊢α∨β, gives Σ⊢α∨β.
  • Case v(α)=F, v(β)=T. Then φv=α∨β and βv=β. Chaining Σ⊢β with (∨2) gives Σ⊢α∨β.
  • Case v(α)=v(β)=F. Then φv=¬(α∨β), αv=¬α and βv=¬β. Chaining both hypotheses with (∨3), ¬α,¬β⊢¬(α∨β), gives Σ⊢¬(α∨β).

Biconditional, φ=α↔β. By Definition 4.4.2, v(α↔β)=T exactly when v(α)=v(β). Each case uses both hypotheses.

  • Case T, T. φv=α↔β; chain Σ⊢α, Σ⊢β with (↔1).
  • Case F, F. φv=α↔β; chain Σ⊢¬α, Σ⊢¬β with (↔2).
  • Case T, F. φv=¬(α↔β); chain Σ⊢α, Σ⊢¬β with (↔3).
  • Case F, T. φv=¬(α↔β); chain Σ⊢¬α, Σ⊢β with (↔4).

The cases cover all four pairs of values, so in each the property holds for φ.

Marking scheme. (10 points)

  • 4: the ∨ case: the three value cases, each with the right sequent of Lemma 4.8.1 and only the hypotheses its premises need.
  • 4: the ↔ case: the four value cases, each with the right sequent and both hypotheses.
  • 1: names chaining (Lemma 2.3.3 (c)) as the step that combines the hypotheses with the sequent.
  • 1: says that the cases cover every pair of values.

Fatal errors (0 for the step): using a sequent whose premises are not the signed parts αv, βv of that case.

Exercise (C2: Exit check: completeness)

Close the section first, and write from memory.

  • (a) Prove Lemma 4.8.3: if Δ,p⊢ψ and Δ,¬p⊢ψ, then Δ⊢ψ.
  • (b) Prove Step 3 of the proof of Theorem 4.8.4 in full: from the Claim of Step 2, for every valuation v, Γ,p1v,…,pnv⊢ψ, deduce Γ⊢ψ. State the statement you prove by induction, and say which principle of induction you use.

Solution (Hint 1). For (a): excluded middle and proof by cases. For (b): remove the signed atoms from the end of the list, one at a time.

Solution (Hint 2). For (b): let S(j) say “for every valuation v, Γ,p1v,…,pjv⊢ψ”, and show that S(j) implies S(j−1) for 1≤j≤n.

Solution. (a) Let D derive ψ from premises in Δ,p, and E from premises in Δ,¬p. Write, as premises, those of D and E that lie in Δ; then p∨¬p by LEM (Proposition 2.5.3, a derived rule with no premises); then a box opening with p containing the non-premise lines of D, in which citations of the premise p now cite the assumption and citations of premises in Δ cite the premise lines; then a box opening with ¬p, built from E in the same way; then ψ by ∨E, citing the line p∨¬p and the two boxes. (If D or E ends on a premise, its box is the assumption alone when that premise is the assumption’s formula, and otherwise the assumption followed by ψ by R.) Every copied line keeps its boxes, now inside the new box, and cites lines still available to it. The last line of each box is ψ, as a line of that box itself, because the last line of D or E lay in no box. The two boxes and the LEM line lie in no box, so they are available at the final line. So the result is a derivation of ψ from premises in Δ, and Δ⊢ψ.

(b) For 0≤j≤n, let S(j) be: for every valuation v, Γ,p1v,…,pjv⊢ψ. The Claim of Step 2 is S(n).

The step. Let 1≤j≤n and assume S(j). Let v be any valuation, and let v+, v− agree with v except that v+(pj)=T and v−(pj)=F. Since the pi are distinct, both agree with v on p1,…,pj−1. By S(j) for v+ and for v−, with Δ:=Γ,p1v,…,pj−1v: Δ,pj⊢ψ and Δ,¬pj⊢ψ. By (a), Δ⊢ψ. As v was arbitrary, S(j−1) holds.

The induction. We use Axiom 4.2.1 on m∈N with the statement T(m): “if m≤n, then S(n−m)”. T(0) is S(n). If T(m) holds and m+1≤n, then S(n−m) holds and j=n−m lies between 1 and n, so the step gives S(n−m−1), which is T(m+1). Hence T(n), which is S(0): for every valuation, Γ⊢ψ. Valuations exist, so Γ⊢ψ.

(Inducting downwards on j, or on the number of atoms removed, is the same argument; either earns full marks.)

Marking scheme. (10 points)

  • 3: (a) builds one derivation from the two given ones with premises in Δ (for instance by pasting them into the two boxes of a ∨E on p∨¬p, or by an RAA box on ¬ψ), with each premise p or ¬p replaced by an available line, and says why every citation is still available.
  • 1: (a) names the classical step (LEM, Proposition 2.5.3, or RAA).
  • 3: (b) sets up an induction on the number of atoms removed (or downward on j) with a statement quantified over every valuation, and names the induction principle.
  • 2: (b) in the step, applies the hypothesis to both valuations that differ at pj, and notes that they agree with v on the other atoms.
  • 1: (b) concludes Γ⊢ψ from S(0).

Fatal errors (0 for the step): splitting on an atom using the Claim for a single valuation only; an induction statement that fixes v before the induction, so that the two valuations of the step are not covered by the hypothesis.

Exercise (C3: Exit check: deciding sequents)

For each sequent, decide whether it holds. If it does, justify this by a derivation, or by a truth table and the theorem that turns the table into a derivation; if it does not, give a refuting row and say which theorem turns the row into a proof that no derivation exists.

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

Solution. (a) Derivable. The goal is an implication: a box on p, with the goal q∨r; the premise is a disjunction, used by ∨E inside the box; in each case →E with p gives one side, and ∨I gives the goal.

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

(b) Not derivable. In the row p=T, q=F, r=F, the premise is true (p→q is F, so (p→q)→r is T) and the conclusion p→r is F. By Corollary 4.7.3, (p→q)→r⊬p→r.

(c) Not derivable. In the row p=T, q=T, r=F (the value of q does not matter), the premise is true because p is, and the conclusion is false because r is. By Corollary 4.7.3, the sequent fails.

(d) Derivable. Split the premise by ∧E, then use p∨q by ∨E: the case p clashes with ¬p and closes by ⊥E; the case q gives the goal by ∨I.

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

Neither derivation uses RAA. As the problem allows, (a) and (d) may instead be justified by a table (or backwards from F) showing the entailment, followed by Theorem 4.8.4.

Marking scheme. (10 points; 2.5 per sequent)

  • 1 per sequent: the correct verdict.
  • 1.5 per sequent: its justification: a derivation in which every line is justified and every citation available, or a table check with Theorem 4.8.4; or a row that makes every premise true and the conclusion false, checked, with Corollary 4.7.3 (or Theorem 4.7.2) cited.

Fatal errors (0 for the sequent’s justification): a “refuting row” that makes some premise false; a derivation citing a line that is not available.

Exercise (C4: Challenge: Strike out ∨I)

Strike ∨I from the primitive rules.

  • (a) Which sequents of Lemma 4.8.1 lose the derivations given in its proof (the table of the fold “The fifteen derivations”), and which step of the proof of Theorem 4.8.4 also uses ∨I, through a result of Chapter 2?
  • (b) Read ∨ as ∧: a valuation now makes φ∨ψ true exactly when it makes both parts true; every other clause stays. Show that every remaining primitive rule is sound for this reading.
  • (c) Deduce that neither p⊢p∨q nor ⊢p∨¬p is derivable without ∨I (and without derived rules derived with it), although both are valid: the shorter list of rules is sound but not complete.

Solution.

  • (a) (∨1) and (∨2) are ∨I itself; (∧2) and (∧3) are derived by ∨I and then Proposition 2.5.5 (c). And Lemma 4.8.3 uses Proposition 2.5.3, whose derivation in Section 2.5 uses ∨I twice; that is Step 3 of the proof, where Lemma 4.8.3 removes the signed atoms.

  • (b) Only the cases ∨I and ∨E of the proof of Theorem 4.7.2 use the clause for ∨, and ∨I is gone. ∨E: if a valuation makes Γk true, it makes φ∨ψ true, hence, in the new reading, both φ and ψ; by the first box it makes χ true. Every other case is unchanged.

  • (c) The valuation with p true and q false makes p true and, in the new reading, p∨q false; every valuation makes p∨¬p false in the new reading, since p and ¬p are never both true. By (b), and Step 1 of the proof of Theorem 4.7.2 (a derived rule derived without ∨I expands, by that step, into a pasted derivation in the remaining primitive rules), neither sequent has a derivation without ∨I and the derived rules that use it, such as Proposition 2.5.3. Both are valid in the ordinary tables.

Marking scheme. (10 points)

  • 3: (a), all four sequents and the excluded-middle step.
  • 4: (b), with the ∨E case argued and the other cases said to be unchanged.
  • 3: (c), both valuations and the conclusion, with Step 1’s restriction to derived rules derived without ∨I.

Fatal errors (0 for the step): in (c), using the ordinary tables.

Exercise (C5: Challenge: From a closed tree to a derivation)

Let a search tree (Section 4.6) for Γ,¬ψ have every branch closed. For a node X, the path list of X is the list of formulas on the path from the root down to X, X included.

  • (a) Prove, by induction on the number of nodes below X, that if every branch through X is closed, then Δ⊢⊥, where Δ is the path list of X. Treat a closed leaf and each rule of the table of search rules, naming the derivable sequents you use.
  • (b) Deduce Γ⊢ψ.
  • (c) Explain why (a), (b) and Proposition 4.6.1 give a second proof of Theorem 4.8.4, and where it uses RAA or LEM.

Solution (Hint 1). A one-way rule: derive the added formulas from the used one, then chain (Lemma 2.3.3). A two-way rule: join the two derivations of ⊥.

Solution (Hint 2). For φ→ψ, split as ¬φ or ψ: with Δ the path list of X, from Δ,¬φ⊢⊥ get Δ⊢φ by RAA.

Solution.

  • (a) We use Theorem 4.2.2 on the number of nodes below X. Write Δ for the path list of X.

    A closed leaf. Δ holds φ and ¬φ (one ¬E line) or ⊥ (the premise itself): Δ⊢⊥.

    An inner node. Its children were added by the rule of some χ in Δ. Every branch through each child is closed, and each child has fewer nodes below it, so the hypothesis gives Δ,α1⊢⊥ (or Δ,α1,α2⊢⊥) for the formulas α that each child adds.

    One-way rules. It suffices to show Δ⊢α for each added α, and then chain (Lemma 2.3.3 (c), after weakening). φ∧ψ: ∧E. ¬(φ∨ψ)⊢¬φ: a ¬I box on φ, ∨I, ¬E; likewise ¬ψ. ¬(φ→ψ)⊢φ: an RAA box on ¬φ, in which Proposition 2.1.2 gives φ→ψ, then ¬E. ¬(φ→ψ)⊢¬ψ: a ¬I box on ψ, in which an inner box gives φ→ψ by R and →I, then ¬E. ¬¬φ⊢φ: Proposition 2.5.1.

    Two-way rules. φ∨ψ: ∨E on the line φ∨ψ, with the two derivations of ⊥ pasted into the boxes as in the proof of Lemma 4.8.3. ¬(φ∧ψ): from Δ,¬φ⊢⊥, Δ⊢φ by RAA; likewise Δ⊢ψ; then ∧I, and ¬E with ¬(φ∧ψ). φ→ψ: Δ⊢φ by RAA from the first child; →E gives ψ; cut with Δ,ψ⊢⊥. φ↔ψ: from Δ,φ,ψ⊢⊥ and Δ,φ⊢ψ (by ↔E), cut gives Δ,φ⊢⊥; from Δ,¬φ,¬ψ⊢⊥ and Δ,¬φ⊢¬ψ (a ¬I box on ψ: φ by ↔E, clash), cut gives Δ,¬φ⊢⊥; join the two by Lemma 4.8.3, which holds for any formula in place of the atom (the remark after its proof). ¬(φ↔ψ): Δ,φ⊢¬ψ (a ¬I box on ψ: φ↔ψ by ↔I with two two-line boxes, each closed by R, then the clash with ¬(φ↔ψ)), so Δ,φ⊢⊥ by cut with the first child; Δ,¬φ⊢ψ (an RAA box on ¬ψ: φ↔ψ by ↔I, each box closing by a clash and ⊥E, then the clash with ¬(φ↔ψ)), so Δ,¬φ⊢⊥ by cut with the second child; join by Lemma 4.8.3.

  • (b) At the root, Γ,¬ψ⊢⊥; an RAA box on ¬ψ holding that derivation gives Γ⊢ψ (Proposition 3.2.2 (b)).

  • (c) If Γ⊨ψ, a search tree for Γ,¬ψ can be continued until every branch is closed or finished (Proposition 4.6.1 (a)), and it has no open finished branch, since by (c) of that proposition its row would refute Γ⊨ψ. So every branch is closed, and (a), (b) give Γ⊢ψ. RAA enters in the cases ¬(φ→ψ), ¬¬φ, ¬(φ∧ψ), φ→ψ, ¬(φ↔ψ) and at the root; LEM in the two biconditional cases. The derivation follows the tree, so it is often far shorter than the 2n rows of the first proof.

Marking scheme. (10 points)

  • 1: the closed leaf.
  • 2: the four one-way cases.
  • 5: the five two-way cases (1 each).
  • 1: (b).
  • 1: (c), with the classical steps located.

Fatal errors (0 for the step): treating a split by assuming one side only.

R. Review

Exercise (R1)

Find a derivation of p∨q, ¬(p∧r), r⊢q.

Solution. The method of Section 3.1 (Example (Proof by cases, found by the method) shows it on a proof by cases). The goal q is an atom, so no introduction rule applies; the premise p∨q is a disjunction, so we use it by ∨E, with the goal q in both boxes. The case q is the goal. In the case p, nothing gives q directly, so we look for a clash: p and the premise r build p∧r by ∧I, which clashes with ¬(p∧r), and ⊥E closes the impossible case (Example (Manufacturing the other half of a clash)).

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

The second box is its assumption alone, which is already the goal. No RAA is used.

Exercise (R2)

Let m and n be integers, and consider the argument: “m+n is even only if m and n are both even or both odd. m is even and n is odd. Therefore m+n is not even.” Translate it into a sequent, using atoms e: “m+n is even”, a: “m is even”, b: “n is even”, and decide whether the premises entail the conclusion.

Solution. “P only if Q” is P→Q (Section 1.1, and Exercise (C1: “Only if” and “unless”, used later)). “Both odd” is ¬a∧¬b, since an integer is odd exactly when it is not even. So the sequent is e→((a∧b)∨(¬a∧¬b)),  a∧¬b ⊨ ¬e. Work backwards from F. A refuting row needs ¬e false, so e=T, and the second premise true, so a=T, b=F. In that row a∧b and ¬a∧¬b are both F, so the first premise is T→F, which is F. So no row makes both premises true and the conclusion false: the entailment holds. By Theorem 4.8.4, the sequent is also derivable. (The eight-row table gives the same answer; working backwards found the only candidate row at once.)

Exercise (R3)

Is (p∧(q∨r))→((p∧q)∨r) a tautology? Is it derivable without RAA?

Solution. A tautology. Work backwards from F (Section 4.4). The formula is false only if p∧(q∨r) is true and (p∧q)∨r is false. The second needs r false and p∧q false; the first needs p true and q∨r true, so with r false, q true. But then p∧q is true. No row makes the formula false, so it is a tautology (Definition 4.5.1).

Derivable without RAA. Completeness (Theorem 4.8.4) says it is derivable, but not how, and its proof uses LEM in Lemma 4.8.3, so it does not answer the second question. A search does: the goal is an implication, so a box on p∧(q∨r); split it by ∧E and use q∨r by ∨E.

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

No RAA is used: the boxes close by ∨E and →I. The tools: truth values (Definition 4.4.2) for the first question, the search of Chapter 3 for the second. The look-alike tool, completeness, answers only “derivable with all the rules”.