Sheet 09 of 22
Natural deduction
Needs sheet 07 for the valid forms and sheet 05 to check results.
A truth table proves validity by exhausting the cases. A proof does it by showing the steps. Tables get out of hand quickly, and they do not extend to quantifiers. Proofs do both. They are also closer to how a mathematician or a careful lawyer actually thinks: suppose this, see what follows, discharge the supposition.
Gerhard Gentzen and Stanisław Jaśkowski each developed such a system in the 1930s. Gentzen’s name for it, natürliches Schließen, gives us “natural deduction”. The layout used here, with lines marking the scope of each assumption, was popularised by Frederic Fitch.
Definition
Proof. A finite sequence of numbered lines, each one a premise, an assumption, or the result of applying a rule to earlier lines that are still available. The last line, outside all assumptions, is what has been proved.
Definition
Derivability. A, B ⊢ C means that C can be proved from premises A and B. The symbol is called the turnstile.
09.1 The rules
Each connective gets two kinds of rule: one saying how to bring it into a proof and one saying how to use it once it is there.
| Connective | Introduction | Elimination |
|---|---|---|
∧ (∧I, ∧E) | From A and B, write A ∧ B. | From A ∧ B, write A, or write B. |
∨ (∨I, ∨E) | From A, write A ∨ B. | From A ∨ B, a subproof from A to C, and a subproof from B to C, write C. |
→ (→I, →E) | From a subproof that assumes A and reaches B, write A → B. | From A → B and A, write B. |
¬ (¬I, ¬E) | From a subproof that assumes A and reaches ⊥, write ¬A. | From A and ¬A, write ⊥. |
↔ (↔I, ↔E) | From A → B and B → A, write A ↔ B. | From A ↔ B and one side, write the other. |
The symbol ⊥ means “contradiction”. Two further rules finish the system. Explosion (⊥E): from ⊥, write anything. Double negation elimination (DNE): from ¬¬A, write A. Finally, Reit lets you copy a line that is available.
Books differ on details and on names. Nothing depends on the choice. All the standard versions prove the same things.
09.2 Subproofs
The idea that makes the system work is the temporary assumption.
Definition
Subproof. A stretch of a proof that begins with an assumption and runs under that assumption. Lines inside it depend on the assumption. When it closes, its lines become unavailable. Only what the rule extracts survives.
The vertical bars below show which assumptions are live. An underlined formula is an assumption.
| Line | Formula | Justification |
|---|---|---|
| 1 | P → Q | Premise |
| 2 | Q → R | Premise |
| 3 | Inside subproof, depth 1. P | Assumption |
| 4 | Inside subproof, depth 1. Q | →E 1, 3 |
| 5 | Inside subproof, depth 1. R | →E 2, 4 |
| 6 | P → R | →I 3-5 |
Line 3 says “suppose P”. Nobody is claiming P. Lines 4 and 5 show what you would then be entitled to. Line 6 closes the supposition and banks the conditional, which holds whether or not P does. That is how anyone argues for an “if”. You suppose the if-part and work toward the then-part.
Negation works in the same way, and the rule ¬I is reductio in its official form.
| Line | Formula | Justification |
|---|---|---|
| 1 | P → Q | Premise |
| 2 | Inside subproof, depth 1. ¬Q | Assumption |
| 3 | Inside subproof, depth 2. P | Assumption |
| 4 | Inside subproof, depth 2. Q | →E 1, 3 |
| 5 | Inside subproof, depth 2. ⊥ | ¬E 2, 4 |
| 6 | Inside subproof, depth 1. ¬P | ¬I 3-5 |
| 7 | ¬Q → ¬P | →I 2-6 |
Here are subproofs nested inside each other. To prove a conditional, assume its antecedent. To prove a negation, assume the thing negated and aim for ⊥. Those two habits solve most of what you will meet.
The ∨ elimination rule is argument by cases, and it needs two subproofs. This proof shows that disjunctive syllogism, a primitive form on sheet 07, is not primitive here at all.
| Line | Formula | Justification |
|---|---|---|
| 1 | P ∨ Q | Premise |
| 2 | ¬P | Premise |
| 3 | Inside subproof, depth 1. P | Assumption |
| 4 | Inside subproof, depth 1. ⊥ | ¬E 2, 3 |
| 5 | Inside subproof, depth 1. Q | ⊥E 4 |
| 6 | Inside subproof, depth 1. Q | Assumption |
| 7 | Inside subproof, depth 1. Q | Reit 6 |
| 8 | Q | ∨E 1, 3-5, 6-7 |
In the first case P conflicts with line 2, and explosion gives Q. In the second case Q is already there. Both cases end in Q, so Q stands. Notice what this shows. Take ⊥E out of this proof and the first case has no way to reach Q. That is the point made at the end of sheet 02: the innocent-looking elimination of a disjunct and explosion are closely connected.
09.3 A longer one
| Line | Formula | Justification |
|---|---|---|
| 1 | ¬(P ∨ Q) | Premise |
| 2 | Inside subproof, depth 1. P | Assumption |
| 3 | Inside subproof, depth 1. P ∨ Q | ∨I 2 |
| 4 | Inside subproof, depth 1. ⊥ | ¬E 1, 3 |
| 5 | ¬P | ¬I 2-4 |
| 6 | Inside subproof, depth 1. Q | Assumption |
| 7 | Inside subproof, depth 1. P ∨ Q | ∨I 6 |
| 8 | Inside subproof, depth 1. ⊥ | ¬E 1, 7 |
| 9 | ¬Q | ¬I 6-8 |
| 10 | ¬P ∧ ¬Q | ∧I 5, 9 |
That is one direction of De Morgan’s second law. Line 1 is a negated disjunction, and nothing can be taken apart directly, so the proof attacks each conjunct of the goal in turn.
09.4 How to find a proof
Checking a proof is mechanical. Finding one takes some skill, though for propositional logic a short list of habits goes far. Work backwards from the goal first and only then forwards from the premises.
- Goal is
A → B: assumeA, aim forB. - Goal is
¬A: assumeA, aim for⊥. - Goal is
A ∧ B: prove each separately. - Goal is
A ∨ B: prove one side if you can. If neither is reachable, look for a disjunction in the premises and split into cases. - Nothing else works: assume the negation of the goal, get
⊥, then use ¬I and DNE.
Counterexample
A common mistake is using a line from a closed subproof. Below is a bogus derivation of Q from P → Q. Assume P at line 2; write Q at line 3 by →E; close the subproof; now cite line 3 at line 4 as if it were available. The form of every step looks right, but Q depended on the assumption, and the assumption has been discharged. Scope lines exist to catch this.
09.5 Excluded middle, and a dissent
Here is a proof of a formula with no premises at all. A formula provable from nothing is called a theorem.
| Line | Formula | Justification |
|---|---|---|
| 1 | Inside subproof, depth 1. ¬(P ∨ ¬P) | Assumption |
| 2 | Inside subproof, depth 2. P | Assumption |
| 3 | Inside subproof, depth 2. P ∨ ¬P | ∨I 2 |
| 4 | Inside subproof, depth 2. ⊥ | ¬E 1, 3 |
| 5 | Inside subproof, depth 1. ¬P | ¬I 2-4 |
| 6 | Inside subproof, depth 1. P ∨ ¬P | ∨I 5 |
| 7 | Inside subproof, depth 1. ⊥ | ¬E 1, 6 |
| 8 | ¬¬(P ∨ ¬P) | ¬I 1-7 |
| 9 | P ∨ ¬P | DNE 8 |
The law of excluded middle needs DNE in its last step, and that step is optional in a meaningful sense. Intuitionistic logic, which grew out of L. E. J. Brouwer’s view of mathematics and was formalised by Arend Heyting, drops DNE. For an intuitionist, asserting P ∨ ¬P requires a proof of one side, and to show that the negation of a claim is impossible falls short of constructing an example. Intuitionistic logic is a coherent system with applications in computer science, and it shows that the rules on this page are a choice. A strong and well-motivated choice, but a choice.
09.6 Why trust the rules
Two results tie proofs to tables. Write A ⊨ B for “every row making A true makes B true”, the semantic idea of sheet 05.
Definition
Soundness of a proof system. If A ⊢ B then A ⊨ B. Whatever can be proved is valid.
Definition
Completeness of a proof system. If A ⊨ B then A ⊢ B. Whatever is valid can be proved.
(That sense of sound belongs to proof systems, and the one on sheet 02 belongs to arguments. Logicians reuse words freely, as sheet 15 would complain.)
The system on this page has both properties, so proofs and tables always agree. Neither result is obvious. Soundness needs a check of each rule. Completeness took real work, and when the same question is asked of arithmetic, the answer changes dramatically, as sheet 21 explains.
Try to break this
Remove ⊥E from the system and keep everything else. It changes nothing, and you should be able to say why: from ⊥, assume ¬Q, close with ¬I to get ¬¬Q, and DNE hands you Q. So remove DNE as well. Can you still prove P ∨ Q, ¬P ⊢ Q? Can you prove P, ¬P ⊢ Q? You have just begun to invent minimal logic, a real system studied by Ingebrigt Johansson in the 1930s.
09.7 Exercises
Prove
P ∧ Q ⊢ Q ∧ Pin your head, naming the rules.Answer
Two uses of ∧E get
PandQon separate lines. One use of ∧I puts them together in the new order.Prove
P ⊢ Q → P. What should you assume?Answer
Assume
Q. Then copyPwith Reit from line 1 into the subproof, and close with →I. This is a small instance of the paradox on sheet 06: the assumption plays no part at all, and the rule allows that.What is wrong with this? 1.
P ∨ Q, premise. 2. AssumeP. 3.P, by Reit from line 2. 4. ConcludePby ∨E from lines 1 and 2-3.Answer
∨E needs two subproofs, one for each disjunct. The case in which
Qholds has not been handled, and it may not lead toP.Outline a proof of
¬P ∧ ¬Q ⊢ ¬(P ∨ Q). Which rule will give you the final line?Answer
The final line is a negation, so use ¬I: assume
P ∨ Qand aim for⊥. Split it by ∨E. IfP, then conflict with¬Pfrom ∧E. IfQ, then conflict with¬Q. Both cases give⊥, so ∨E gives⊥and ¬I closes the proof.Give a one-sentence explanation of why explosion can be derived from
Pand¬P.Answer
¬E takes them to
⊥, and ⊥E takes⊥to any formula you like. (As a table it is even shorter: no row has both premises true.)An intuitionist accepts
P → ¬¬Pbut not¬¬P → P. Why might a person who thinks of truth as “having a proof” accept one and not the other?Answer
If you have a proof of
P, then a refutation ofPis impossible, so¬¬Pholds. But the reverse goes from “a refutation is impossible” to an actual proof, and showing that something cannot be refuted does not hand you a proof of it.