Reading preferences
Optional display controls need JavaScript. All reading content and navigation work without it.
How to use Read
This page follows the accepted First-order Natural Deduction projection in source order. All 963 formula occurrences use native, unflattened MathML. Eighty-six proof trees and three rule tables retain complete ordered semantic descriptions.
Rules and derivation
Definition 1: Assumption
Assumption
An assumption is any sentence in the topmost position of any branch.
Derivations in natural deduction are certain trees of sentences, where the topmost sentences are assumptions, and if a sentence stands below one, two, or three other sequents, it must follow correctly by a rule of inference. The sentences at the top of the inference are called the premises and the sentence below the conclusion of the inference. The rules come in pairs, an introduction and an elimination rule for each operator. They introduce a operator in the conclusion or remove a operator from a premise of the rule. Some of the rules allow an assumption of a certain type to be discharged. To indicate which assumption is discharged by which inference, we also assign labels to both the assumption and the inference. This is indicated by writing the assumption as “source 43.”
It is customary to consider rules for all the operators source 48, source 48, source 48, source 48, and source 48, even if some of those are defined.
Propositional Rules
Rules for source 16
Inference rules 2
Proof diagram: Natural-deduction proof tree at propositional-rules.tex, line 23
Step 1 states formula A as a premise. Step 2 states formula B as a premise. Step 3 applies the conjunction introduction rule to 1, 2 and concludes A and B. The final conclusion is A and B.
Rule table: Table at propositional-rules.tex, line 25
This is a visual layout table grouping rule diagrams, not a data table; the ordered formulas retain the printed rule order.
Natural-deduction proof tree at propositional-rules.tex, line 29
Step 1 states A and B as a premise. Step 2 applies the conjunction elimination rule to 1 and concludes formula A. The final conclusion is formula A.
Natural-deduction proof tree at propositional-rules.tex, line 34
Step 1 states A and B as a premise. Step 2 applies the conjunction elimination rule to 1 and concludes formula B. The final conclusion is formula B.
Rules for source 38
Inference rules 3
Rule table: Table at propositional-rules.tex, line 41
This is a visual layout table grouping rule diagrams, not a data table; the ordered formulas retain the printed rule order.
Natural-deduction proof tree at propositional-rules.tex, line 45
Step 1 states formula A as a premise. Step 2 applies the disjunction introduction rule to 1 and concludes A or B. The final conclusion is A or B.
Natural-deduction proof tree at propositional-rules.tex, line 50
Step 1 states formula B as a premise. Step 2 applies the disjunction introduction rule to 1 and concludes A or B. The final conclusion is A or B.
Proof diagram: Natural-deduction proof tree at propositional-rules.tex, line 60
Step 1 states A or B as a premise. Step 2 states assumption A, labeled n for discharge as a premise. Step 3 applies the subderivation to 2 and concludes formula C. Step 4 states assumption B, labeled n for discharge as a premise. Step 5 applies the subderivation to 4 and concludes formula C. Step 6 applies the disjunction elimination rule to 1, 3, 5 and concludes formula C. The final conclusion is formula C.
Rules for source 63
Inference rules 4
Proof diagram: Natural-deduction proof tree at propositional-rules.tex, line 70
Step 1 states assumption A, labeled n for discharge as a premise. Step 2 applies the subderivation to 1 and concludes formula B. Step 3 applies the conditional introduction rule to 2 and concludes if A, then B. The final conclusion is if A, then B.
Proof diagram: Natural-deduction proof tree at propositional-rules.tex, line 76
Step 1 states if A, then B as a premise. Step 2 states formula A as a premise. Step 3 applies the conditional elimination rule to 1, 2 and concludes formula B. The final conclusion is formula B.
Rules for source 79
Inference rules 5
Proof diagram: Natural-deduction proof tree at propositional-rules.tex, line 87
Step 1 states assumption A, labeled n for discharge as a premise. Step 2 applies the subderivation to 1 and concludes a contradiction. Step 3 applies the negation introduction rule to 2 and concludes not A. The final conclusion is not A.
Proof diagram: Natural-deduction proof tree at propositional-rules.tex, line 93
Step 1 states not A as a premise. Step 2 states formula A as a premise. Step 3 applies the negation elimination rule to 1, 2 and concludes a contradiction. The final conclusion is a contradiction.
Rules for source 96
Inference rules 6
Proof diagram: Natural-deduction proof tree at propositional-rules.tex, line 102
Step 1 states a contradiction as a premise. Step 2 applies the falsehood elimination rule to 1 and concludes formula A. The final conclusion is formula A.
- Premise: source 99
- falsehood elimination rule: source 101
Proof diagram: Natural-deduction proof tree at propositional-rules.tex, line 108
Step 1 states assumption not A, labeled n for discharge as a premise. Step 2 applies the subderivation to 1 and concludes a contradiction. Step 3 applies the classical contradiction rule to 2 and concludes formula A. The final conclusion is formula A.
- Premise: source 104
- Subderivation conclusion: source 105
- classical contradiction rule: source 107
Note that source 111 and source 111 are very similar: The difference is that source 112 derives a negated sentence source 113 but source 113 a positive sentence source 113.
Whenever a rule indicates that some assumption may be discharged, we take this to be a permission, but not a requirement. E.g., in the source 117 rule, we may discharge any number of assumptions of the form source 118 in the derivation of the premise source 118, including zero.
Quantifier Rules
Rules for source 13
Inference rules 7
Proof diagram: Natural-deduction proof tree at quantifier-rules.tex, line 19
Step 1 states A of a as a premise. Step 2 applies the universal quantifier introduction rule to 1 and concludes for every x, A of x. The final conclusion is for every x, A of x.
Proof diagram: Natural-deduction proof tree at quantifier-rules.tex, line 24
Step 1 states for every x, A of x as a premise. Step 2 applies the universal quantifier elimination rule to 1 and concludes A of t. The final conclusion is A of t.
In the rules for source 27, source 27 is a closed term (a term that does not contain any variables), and source 28 is a constant which does not occur in the conclusion source 29, or in any assumption which is undischarged in the derivation ending with the premise source 31. We call source 31 the eigenvariable of the universal quantifier introduction rule inference.We use the term “eigenvariable” even though source 33 in the above rule is a constant. This has historical reasons.
Rules for source 36
Inference rules 8
Proof diagram: Natural-deduction proof tree at quantifier-rules.tex, line 42
Step 1 states A of t as a premise. Step 2 applies the existential quantifier introduction rule to 1 and concludes there exists an x such that A of x. The final conclusion is there exists an x such that A of x.
Proof diagram: Natural-deduction proof tree at quantifier-rules.tex, line 49
Step 1 states there exists an x such that A of x as a premise. Step 2 states A of a as a premise marked discharge label n. Step 3 applies the subderivation to 2 and concludes formula C. Step 4 applies the existential quantifier elimination rule to 1, 3 and concludes formula C. The final conclusion is formula C.
Again, source 52 is a closed term, and source 52 is a constant which does not occur in the premise source 53, in the conclusion source 53, or any assumption which is undischarged in the derivations ending with the two premises (other than the assumptions source 55). We call source 56 the eigenvariable of the existential quantifier elimination rule inference.
The condition that an eigenvariable neither occur in the premises nor in any assumption that is undischarged in the derivations leading to the premises for the universal quantifier introduction rule or existential quantifier elimination rule inference is called the eigenvariable condition.
derivation
Definition 9: Derivation
Derivation
A derivation of a sentence source 24 from assumptions source 25 is a finite tree of sentences satisfying the following conditions:
The topmost sentences of the tree are either in source 28 or are discharged by an inference in the tree.
The bottommost sentence of the tree is source 30.
Every sentence in the tree except the sentence source 31 at the bottom is a premise of a correct application of an inference rule whose conclusion stands directly below that sentence in the tree.
We then say that source 36 is the conclusion of the derivation and source 37 its undischarged assumptions.
If a derivation of source 39 from source 39 exists, we say that source 39 is derivable from source 40, or in symbols: source 40. If there is a derivation of source 41 in which every assumption is discharged, we write source 42.
Example 1
Every assumption on its own is a derivation. So, e.g., source 46 by itself is a derivation, and so is source 47 by itself. We can obtain a new derivation from these by applying, say, the source 48 rule,
Proof diagram: Natural-deduction proof tree at derivations.tex, line 50
Step 1 states formula A as a premise. Step 2 states formula B as a premise. Step 3 applies the conjunction introduction rule to 1, 2 and concludes A and B. The final conclusion is A and B.
These rules are meant to be general: we can replace the source 56 and source 56 in it with any sentences, e.g., by source 57 and source 57. Then the conclusion would be source 58, and so
Proof diagram: Natural-deduction proof tree at derivations.tex, line 59
Step 1 states formula C as a premise. Step 2 states formula D as a premise. Step 3 applies the conjunction introduction rule to 1, 2 and concludes C and D. The final conclusion is C and D.
is a correct derivation. Of course, we can also switch the assumptions, so that source 66 plays the role of source 66 and source 66 that of source 67. Thus,
Proof diagram: Natural-deduction proof tree at derivations.tex, line 68
Step 1 states formula D as a premise. Step 2 states formula C as a premise. Step 3 applies the conjunction introduction rule to 1, 2 and concludes D and C. The final conclusion is D and C.
is also a correct derivation.
We can now apply another rule, say, source 76, which allows us to conclude a conditional and allows us to discharge any assumption that is identical to the antecedent of that conditional. So both of the following would be correct derivations:
Proof diagram: Natural-deduction proof tree at derivations.tex, line 87
Step 1 states formula C as a premise. Step 2 states assumption D, labeled one for discharge as a premise. Step 3 applies the conjunction introduction rule to 1, 2 and concludes C and D. Step 4 applies the conditional introduction rule to 3 and concludes if D, then C and D. The final conclusion is if D, then C and D.
Proof diagram: Natural-deduction proof tree at derivations.tex, line 80
Step 1 states assumption C, labeled one for discharge as a premise. Step 2 states formula D as a premise. Step 3 applies the conjunction introduction rule to 1, 2 and concludes C and D. Step 4 applies the conditional introduction rule to 3 and concludes if C, then C and D. The final conclusion is if C, then C and D.
They show, respectively, that source 95 and source 96.
Remember that discharging of assumptions is a permission, not a requirement: we don't have to discharge the assumptions. In particular, we can apply a rule even if the assumptions are not present in the derivation. For instance, the following is legal, even though there is no assumption source 102 to be discharged:
Proof diagram: Natural-deduction proof tree at derivations.tex, line 103
Step 1 states formula B as a premise. Step 2 applies the conditional introduction rule to 1 and concludes if A, then B. The final conclusion is if A, then B.
- Premise: source 104
- conditional introduction rule: source 106
Examples of derivation
Example 2
Let's give a derivation of the sentence source 16.
We begin by writing the desired conclusion at the bottom of the derivation.
Proof diagram: Natural-deduction proof tree at proving-things.tex, line 20
Step 1 has no printed premise. Step 2 applies the inference rule to 1 and concludes if A and B, then A. The final conclusion is if A and B, then A.
- Premise
- inference rule: source 22
Next, we need to figure out what kind of inference could result in a sentence of this form. The main operator of the conclusion is source 27, so we'll try to arrive at the conclusion using the conditional introduction rule rule. It is best to write down the assumptions involved and label the inference rules as you progress, so it is easy to see whether all assumptions have been discharged at the end of the proof.
Proof diagram: Natural-deduction proof tree at proving-things.tex, line 32
Step 1 states the single assumption that is the conjunction of A and B, labeled one for discharge as a premise. Step 2 applies the subderivation to 1 and concludes formula A. Step 3 applies the conditional introduction rule to 2 and concludes if A and B, then A. The final conclusion is if A and B, then A.
We now need to fill in the steps from the assumption source 39 to source 39. Since we only have one connective to deal with, source 40, we must use the source 41 elim rule. This gives us the following proof:
Proof diagram: Natural-deduction proof tree at proving-things.tex, line 42
Step 1 states the single assumption that is the conjunction of A and B, labeled one for discharge as a premise. Step 2 applies the conjunction elimination rule to 1 and concludes formula A. Step 3 applies the conditional introduction rule to 2 and concludes if A and B, then A. The final conclusion is if A and B, then A.
We now have a correct derivation of source 49.
Example 3
Now let's give a derivation of source 54.
We begin by writing the desired conclusion at the bottom of the derivation.
Proof diagram: Natural-deduction proof tree at proving-things.tex, line 59
Step 1 has no printed premise. Step 2 applies the inference rule to 1 and concludes if either not A or B, then if A, then B. The final conclusion is if either not A or B, then if A, then B.
- Premise
- inference rule: source 61
To find a logical rule that could give us this conclusion, we look at the logical connectives in the conclusion: source 64, source 65, and source 65. We only care at the moment about the first occurrence of source 66 because it is the main operator of the sentence in the end-sequent, while source 67, source 67 and the second occurrence of source 68 are inside the scope of another connective, so we will take care of those later. We therefore start with the conditional introduction rule rule. A correct application must look like this:
Proof diagram: Natural-deduction proof tree at proving-things.tex, line 71
Step 1 states the single assumption that is the disjunction of not A with B, labeled one for discharge as a premise. Step 2 applies the subderivation to 1 and concludes if A, then B. Step 3 applies the conditional introduction rule to 2 and concludes if either not A or B, then if A, then B. The final conclusion is if either not A or B, then if A, then B.
This leaves us with two possibilities to continue. Either we can keep working from the bottom up and look for another application of the conditional introduction rule rule, or we can work from the top down and apply a disjunction elimination rule rule. Let us apply the latter. We will use the assumption source 81 as the leftmost premise of disjunction elimination rule. For a valid application of disjunction elimination rule, the other two premises must be identical to the conclusion source 83, but each may be derived in turn from another assumption, namely one of the two disjuncts of source 84. So our derivation will look like this:
Proof diagram: Natural-deduction proof tree at proving-things.tex, line 86
Step 1 states the single assumption that is the disjunction of not A with B, labeled one for discharge as a premise. Step 2 states assumption not A, labeled two for discharge as a premise. Step 3 applies the subderivation to 2 and concludes if A, then B. Step 4 states assumption B, labeled two for discharge as a premise. Step 5 applies the subderivation to 4 and concludes if A, then B. Step 6 applies the disjunction elimination rule to 1, 3, 5 and concludes if A, then B. Step 7 applies the conditional introduction rule to 6 and concludes if either not A or B, then if A, then B. The final conclusion is if either not A or B, then if A, then B.
In each of the two branches on the right, we want to derive source 98, which is best done using conditional introduction rule.
Proof diagram: Natural-deduction proof tree at proving-things.tex, line 100
Step 1 states the single assumption that is the disjunction of not A with B, labeled one for discharge as a premise. Step 2 states assumptions not A labeled two, and A labeled three, for discharge as a premise. Step 3 applies the subderivation to 2 and concludes formula B. Step 4 applies the conditional introduction rule to 3 and concludes if A, then B. Step 5 states assumptions B labeled two, and A labeled four, for discharge as a premise. Step 6 applies the subderivation to 5 and concludes formula B. Step 7 applies the conditional introduction rule to 6 and concludes if A, then B. Step 8 applies the disjunction elimination rule to 1, 4, 7 and concludes if A, then B. Step 9 applies the conditional introduction rule to 8 and concludes if either not A or B, then if A, then B. The final conclusion is if either not A or B, then if A, then B.
- Premise: source 101
- Premise: source 102
- Subderivation conclusion: source 103
- conditional introduction rule: source 105
- Premise: source 106
- Subderivation conclusion: source 107
- conditional introduction rule: source 109
- disjunction elimination rule: source 111
- conditional introduction rule: source 113
For the two missing parts of the derivation, we need derivations of source 117 from source 117 and source 117 in the middle, and from source 118 and source 118 on the left. Let's take the former first. source 118 and source 119 are the two premises of negation elimination rule:
Proof diagram: Natural-deduction proof tree at proving-things.tex, line 120
Step 1 states assumption not A, labeled two for discharge as a premise. Step 2 states assumption A, labeled three for discharge as a premise. Step 3 applies the negation elimination rule to 1, 2 and concludes a contradiction. Step 4 applies the subderivation to 3 and concludes formula B. The final conclusion is formula B.
- Premise: source 121
- Premise: source 122
- negation elimination rule: source 124
- Subderivation conclusion: source 125
By using falsehood elimination rule, we can obtain source 127 as a conclusion and complete the branch.
Proof diagram: Natural-deduction proof tree at proving-things.tex, line 129
Step 1 states the single assumption that is the disjunction of not A with B, labeled one for discharge as a premise. Step 2 states assumption not A, labeled two for discharge as a premise. Step 3 states assumption A, labeled three for discharge as a premise. Step 4 applies the falsehood introduction rule to 2, 3 and concludes a contradiction. Step 5 applies the falsehood elimination rule to 4 and concludes formula B. Step 6 applies the conditional introduction rule to 5 and concludes if A, then B. Step 7 states assumptions B labeled two, and A labeled four, for discharge as a premise. Step 8 applies the subderivation to 7 and concludes formula B. Step 9 applies the conditional introduction rule to 8 and concludes if A, then B. Step 10 applies the disjunction elimination rule to 1, 6, 9 and concludes if A, then B. Step 11 applies the conditional introduction rule to 10 and concludes if either not A or B, then if A, then B. The final conclusion is if either not A or B, then if A, then B.
- Premise: source 130
- Premise: source 131
- Premise: source 132
- falsehood introduction rule: source 134
- falsehood elimination rule: source 136
- conditional introduction rule: source 138
- Premise: source 139
- Subderivation conclusion: source 140
- conditional introduction rule: source 142
- disjunction elimination rule: source 144
- conditional introduction rule: source 146
Let's now look at the rightmost branch. Here it's important to realize that the definition of derivation allows assumptions to be discharged but does not require them to be. In other words, if we can derive source 152 from one of the assumptions source 152 and source 152 without using the other, that's ok. And to derive source 153 from source 153 is trivial: source 154 by itself is such a derivation, and no inferences are needed. So we can simply delete the assumption source 155.
Proof diagram: Natural-deduction proof tree at proving-things.tex, line 156
Step 1 states the single assumption that is the disjunction of not A with B, labeled one for discharge as a premise. Step 2 states assumption not A, labeled two for discharge as a premise. Step 3 states assumption A, labeled three for discharge as a premise. Step 4 applies the negation elimination rule to 2, 3 and concludes a contradiction. Step 5 applies the falsehood elimination rule to 4 and concludes formula B. Step 6 applies the conditional introduction rule to 5 and concludes if A, then B. Step 7 states assumption B, labeled two for discharge as a premise. Step 8 applies the conditional introduction rule to 7 and concludes if A, then B. Step 9 applies the disjunction elimination rule to 1, 6, 8 and concludes if A, then B. Step 10 applies the conditional introduction rule to 9 and concludes if either not A or B, then if A, then B. The final conclusion is if either not A or B, then if A, then B.
- Premise: source 157
- Premise: source 158
- Premise: source 159
- negation elimination rule: source 161
- falsehood elimination rule: source 163
- conditional introduction rule: source 165
- Premise: source 166
- conditional introduction rule: source 168
- disjunction elimination rule: source 170
- conditional introduction rule: source 172
Note that in the finished derivation, the rightmost conditional introduction rule inference does not actually discharge any assumptions.
Example 4
So far we have not needed the classical contradiction rule rule. It is special in that it allows us to discharge an assumption that isn't a sub-formula of the conclusion of the rule. It is closely related to the falsehood elimination rule rule. In fact, the falsehood elimination rule rule is a special case of the classical contradiction rule rule—there is a logic called “intuitionistic logic” in which only falsehood elimination rule is allowed. The classical contradiction rule rule is a last resort when nothing else works. For instance, suppose we want to derive source 186. Our usual strategy would be to attempt to derive source 187 using source 187. But this would require us to derive either source 188 or source 188 from no assumptions, and this can't be done. classical contradiction rule to the rescue!
Proof diagram: Natural-deduction proof tree at proving-things.tex, line 190
Step 1 states assumption denying the whole disjunction A or not A, labeled one for discharge as a premise. Step 2 applies the subderivation to 1 and concludes a contradiction. Step 3 applies the classical contradiction rule to 2 and concludes A or not A. The final conclusion is A or not A.
- Premise: source 191
- Subderivation conclusion: source 192
- classical contradiction rule: source 194
Now we're looking for a derivation of source 196 from source 196. Since source 197 is the conclusion of source 197 we might try that:
Proof diagram: Natural-deduction proof tree at proving-things.tex, line 199
Step 1 states assumption denying the whole disjunction A or not A, labeled one for discharge as a premise. Step 2 applies the subderivation to 1 and concludes not A. Step 3 states assumption denying the whole disjunction A or not A, labeled one for discharge as a premise. Step 4 applies the subderivation to 3 and concludes formula A. Step 5 applies the negation elimination rule to 2, 4 and concludes a contradiction. Step 6 applies the classical contradiction rule to 5 and concludes A or not A. The final conclusion is A or not A.
- Premise: source 200
- Subderivation conclusion: source 201
- Premise: source 202
- Subderivation conclusion: source 203
- negation elimination rule: source 205
- classical contradiction rule: source 207
Our strategy for finding a derivation of source 209 calls for an application of source 210:
Proof diagram: Natural-deduction proof tree at proving-things.tex, line 211
Step 1 states two assumptions for discharge: the first denies the entire disjunction A or not A and is labeled one; the second is A and is labeled two as a premise. Step 2 applies the subderivation to 1 and concludes a contradiction. Step 3 applies the negation introduction rule to 2 and concludes not A. Step 4 states assumption denying the whole disjunction A or not A, labeled one for discharge as a premise. Step 5 applies the subderivation to 4 and concludes formula A. Step 6 applies the negation elimination rule to 3, 5 and concludes a contradiction. Step 7 applies the classical contradiction rule to 6 and concludes A or not A. The final conclusion is A or not A.
- Premise: source 212
- Subderivation conclusion: source 213
- negation introduction rule: source 215
- Premise: source 216
- Subderivation conclusion: source 217
- negation elimination rule: source 219
- classical contradiction rule: source 221
Here, we can get source 223 easily by applying source 223 to the assumption source 224 and source 224 which follows from our new assumption source 225 by source 225:
Proof diagram: Natural-deduction proof tree at proving-things.tex, line 226
Step 1 states assumption denying the whole disjunction A or not A, labeled one for discharge as a premise. Step 2 states assumption A, labeled two for discharge as a premise. Step 3 applies the disjunction introduction rule to 2 and concludes A or not A. Step 4 applies the negation elimination rule to 1, 3 and concludes a contradiction. Step 5 applies the negation introduction rule to 4 and concludes not A. Step 6 states assumption denying the whole disjunction A or not A, labeled one for discharge as a premise. Step 7 applies the subderivation to 6 and concludes formula A. Step 8 applies the negation elimination rule to 5, 7 and concludes a contradiction. Step 9 applies the classical contradiction rule to 8 and concludes A or not A. The final conclusion is A or not A.
- Premise: source 227
- Premise: source 228
- disjunction introduction rule: source 230
- negation elimination rule: source 232
- negation introduction rule: source 234
- Premise: source 235
- Subderivation conclusion: source 236
- negation elimination rule: source 238
- classical contradiction rule: source 240
On the right side we use the same strategy, except we get source 242 by classical contradiction rule:
Proof diagram: Natural-deduction proof tree at proving-things.tex, line 243
Step 1 states assumption denying the whole disjunction A or not A, labeled one for discharge as a premise. Step 2 states assumption A, labeled two for discharge as a premise. Step 3 applies the disjunction introduction rule to 2 and concludes A or not A. Step 4 applies the negation elimination rule to 1, 3 and concludes a contradiction. Step 5 applies the negation introduction rule to 4 and concludes not A. Step 6 states assumption denying the whole disjunction A or not A, labeled one for discharge as a premise. Step 7 states assumption not A, labeled three for discharge as a premise. Step 8 applies the disjunction introduction rule to 7 and concludes A or not A. Step 9 applies the negation elimination rule to 6, 8 and concludes a contradiction. Step 10 applies the classical contradiction rule to 9 and concludes formula A. Step 11 applies the negation elimination rule to 5, 10 and concludes a contradiction. Step 12 applies the classical contradiction rule to 11 and concludes A or not A. The final conclusion is A or not A.
- Premise: source 244
- Premise: source 245
- disjunction introduction rule: source 247
- negation elimination rule: source 249
- negation introduction rule: source 251
- Premise: source 252
- Premise: source 253
- disjunction introduction rule: source 255
- negation elimination rule: source 257
- classical contradiction rule: source 259
- negation elimination rule: source 261
- classical contradiction rule: source 263
Problem 1
Give derivations that show the following:
Problem 2
Give derivations that show the following:
Problem 3
Give derivations that show the following:
(These all require the source 307 rule.)
derivation with Quantifiers
Example 5
When dealing with quantifiers, we have to make sure not to violate the eigenvariable condition, and sometimes this requires us to play around with the order of carrying out certain inferences. In general, it helps to try and take care of rules subject to the eigenvariable condition first (they will be lower down in the finished proof).
Let's see how we'd give a derivation of the formula source 21. Starting as usual, we write
Proof diagram: Natural-deduction proof tree at proving-things-quant.tex, line 23
Step 1 has no printed premise. Step 2 applies the inference rule to 1 and concludes if there exists an x such that not A of x, then it is not the case that, for every x, A of x. The final conclusion is if there exists an x such that not A of x, then it is not the case that, for every x, A of x.
- Premise
- inference rule: source 25
We start by writing down what it would take to justify that last step using the conditional introduction rule rule.
Proof diagram: Natural-deduction proof tree at proving-things-quant.tex, line 29
Step 1 states assumption: there exists an x such that not A of x; labeled one for discharge as a premise. Step 2 applies the subderivation to 1 and concludes it is not the case that, for every x, A of x. Step 3 applies the conditional introduction rule to 2 and concludes if there exists an x such that not A of x, then it is not the case that, for every x, A of x. The final conclusion is if there exists an x such that not A of x, then it is not the case that, for every x, A of x.
Since there is no obvious rule to apply to source 35, we will proceed by setting up the derivation so we can use the existential quantifier elimination rule rule. Here we must pay attention to the eigenvariable condition, and choose a constant that does not appear in source 39 or any assumptions that it depends on. (Since no constants appear, however, any choice will do fine.)
Proof diagram: Natural-deduction proof tree at proving-things-quant.tex, line 41
Step 1 states assumption: there exists an x such that not A of x; labeled one for discharge as a premise. Step 2 states assumption not A of a, labeled two for discharge as a premise. Step 3 applies the subderivation to 2 and concludes it is not the case that, for every x, A of x. Step 4 applies the existential quantifier elimination rule to 1, 3 and concludes it is not the case that, for every x, A of x. Step 5 applies the conditional introduction rule to 4 and concludes if there exists an x such that not A of x, then it is not the case that, for every x, A of x. The final conclusion is if there exists an x such that not A of x, then it is not the case that, for every x, A of x.
In order to derive source 50, we will attempt to use the negation introduction rule rule: this requires that we derive a contradiction, possibly using source 52 as an additional assumption. Of course, this contradiction may involve the assumption source 53 which will be discharged by the existential quantifier elimination rule inference. We can set it up as follows:
Proof diagram: Natural-deduction proof tree at proving-things-quant.tex, line 56
Step 1 states assumption: there exists an x such that not A of x; labeled one for discharge as a premise. Step 2 states assumptions not A of a labeled two, and for every x, A of x labeled three, for discharge as a premise. Step 3 applies the subderivation to 2 and concludes a contradiction. Step 4 applies the negation introduction rule to 3 and concludes it is not the case that, for every x, A of x. Step 5 applies the existential quantifier elimination rule to 1, 4 and concludes it is not the case that, for every x, A of x. Step 6 applies the conditional introduction rule to 5 and concludes if there exists an x such that not A of x, then it is not the case that, for every x, A of x. The final conclusion is if there exists an x such that not A of x, then it is not the case that, for every x, A of x.
It looks like we are close to getting a contradiction. The easiest rule to apply is the universal quantifier elimination rule, which has no eigenvariable conditions. Since we can use any term we want to replace the universally quantified source 70, it makes the most sense to continue using source 71 so we can reach a contradiction.
Proof diagram: Natural-deduction proof tree at proving-things-quant.tex, line 72
Step 1 states assumption: there exists an x such that not A of x; labeled one for discharge as a premise. Step 2 states assumption not A of a, labeled two for discharge as a premise. Step 3 states assumption: for every x, A of x; labeled three for discharge as a premise. Step 4 applies the universal quantifier elimination rule to 3 and concludes A of a. Step 5 applies the negation elimination rule to 2, 4 and concludes a contradiction. Step 6 applies the negation introduction rule to 5 and concludes it is not the case that, for every x, A of x. Step 7 applies the existential quantifier elimination rule to 1, 6 and concludes it is not the case that, for every x, A of x. Step 8 applies the conditional introduction rule to 7 and concludes if there exists an x such that not A of x, then it is not the case that, for every x, A of x. The final conclusion is if there exists an x such that not A of x, then it is not the case that, for every x, A of x.
It is important, especially when dealing with quantifiers, to double check at this point that the eigenvariable condition has not been violated. Since the only rule we applied that is subject to the eigenvariable condition was existential quantifier elimination rule, and the eigenvariable source 91 does not occur in any assumptions it depends on, this is a correct derivation.
Example 6
Sometimes we may derive a formula from other formulas. In these cases, we may have undischarged assumptions. It is important to keep track of our assumptions as well as the end goal.
Let's see how we'd give a derivation of the formula source 103 from the assumptions source 103 and source 104. Starting as usual, we write the conclusion at the bottom.
Proof diagram: Natural-deduction proof tree at proving-things-quant.tex, line 107
Step 1 has no printed premise. Step 2 applies the inference rule to 1 and concludes there exists an x such that C of x and b. The final conclusion is there exists an x such that C of x and b.
- Premise
- inference rule: source 109
We have two premises to work with. To use the first, i.e., try to find a derivation of source 113 from source 113 we would use the existential quantifier elimination rule rule. Since it has an eigenvariable condition, we will apply that rule first. We get the following:
Proof diagram: Natural-deduction proof tree at proving-things-quant.tex, line 117
Step 1 states there exists an x such that both A of x and B of x as a premise. Step 2 states the single assumption that is the conjunction of A of a and B of a, labeled one for discharge as a premise. Step 3 applies the subderivation to 2 and concludes there exists an x such that C of x and b. Step 4 applies the existential quantifier elimination rule to 1, 3 and concludes there exists an x such that C of x and b. The final conclusion is there exists an x such that C of x and b.
- Premise: source 118
- Premise: source 119
- Subderivation conclusion: source 120
- existential quantifier elimination rule: source 122
The two assumptions we are working with share source 124. It may be useful at this point to apply conjunction elimination rule to separate out source 125.
Proof diagram: Natural-deduction proof tree at proving-things-quant.tex, line 126
Step 1 states there exists an x such that both A of x and B of x as a premise. Step 2 states the single assumption that is the conjunction of A of a and B of a, labeled one for discharge as a premise. Step 3 applies the conjunction elimination rule to 2 and concludes B of a. Step 4 applies the subderivation to 3 and concludes there exists an x such that C of x and b. Step 5 applies the existential quantifier elimination rule to 1, 4 and concludes there exists an x such that C of x and b. The final conclusion is there exists an x such that C of x and b.
- Premise: source 127
- Premise: source 128
- conjunction elimination rule: source 131
- Subderivation conclusion: source 132
- existential quantifier elimination rule: source 134
The second assumption we have to work with is source 137. Since there is no eigenvariable condition we can instantiate source 139 with the constant source 139 using universal quantifier elimination rule to get source 140. We now have both source 140 and source 141. Our next move should be a straightforward application of the conditional elimination rule rule.
Proof diagram: Natural-deduction proof tree at proving-things-quant.tex, line 143
Step 1 states there exists an x such that both A of x and B of x as a premise. Step 2 states for every x, if B of x, then C of x and b as a premise. Step 3 applies the universal quantifier elimination rule to 2 and concludes if B of a, then C of a and b. Step 4 states the single assumption that is the conjunction of A of a and B of a, labeled one for discharge as a premise. Step 5 applies the conjunction elimination rule to 4 and concludes B of a. Step 6 applies the conditional elimination rule to 3, 5 and concludes C of a and b. Step 7 applies the subderivation to 6 and concludes there exists an x such that C of x and b. Step 8 applies the existential quantifier elimination rule to 1, 7 and concludes there exists an x such that C of x and b. The final conclusion is there exists an x such that C of x and b.
- Premise: source 144
- Premise: source 145
- universal quantifier elimination rule: source 147
- Premise: source 148
- conjunction elimination rule: source 151
- conditional elimination rule: source 153
- Subderivation conclusion: source 154
- existential quantifier elimination rule: source 157
We are so close! One application of existential quantifier introduction rule and we have reached our goal.
Proof diagram: Natural-deduction proof tree at proving-things-quant.tex, line 161
Step 1 states there exists an x such that both A of x and B of x as a premise. Step 2 states for every x, if B of x, then C of x and b as a premise. Step 3 applies the universal quantifier elimination rule to 2 and concludes if B of a, then C of a and b. Step 4 states the single assumption that is the conjunction of A of a and B of a, labeled one for discharge as a premise. Step 5 applies the conjunction elimination rule to 4 and concludes B of a. Step 6 applies the conditional elimination rule to 3, 5 and concludes C of a and b. Step 7 applies the existential quantifier introduction rule to 6 and concludes there exists an x such that C of x and b. Step 8 applies the existential quantifier elimination rule to 1, 7 and concludes there exists an x such that C of x and b. The final conclusion is there exists an x such that C of x and b.
- Premise: source 162
- Premise: source 163
- universal quantifier elimination rule: source 165
- Premise: source 166
- conjunction elimination rule: source 169
- conditional elimination rule: source 171
- existential quantifier introduction rule: source 173
- existential quantifier elimination rule: source 176
Since we ensured at each step that the eigenvariable conditions were not violated, we can be confident that this is a correct derivation.
Example 7
Give a derivation of the formula source 185 from the assumptions source 185 and source 186. Starting as usual, we write the target formula at the bottom.
Proof diagram: Natural-deduction proof tree at proving-things-quant.tex, line 188
Step 1 has no printed premise. Step 2 applies the inference rule to 1 and concludes it is not the case that, for every x, A of x. The final conclusion is it is not the case that, for every x, A of x.
- Premise
- inference rule: source 190
The last line of the derivation is a negation, so let's try using negation introduction rule. This will require that we figure out how to derive a contradiction.
Proof diagram: Natural-deduction proof tree at proving-things-quant.tex, line 195
Step 1 states assumption: for every x, A of x; labeled one for discharge as a premise. Step 2 applies the subderivation to 1 and concludes a contradiction. Step 3 applies the negation introduction rule to 2 and concludes it is not the case that, for every x, A of x. The final conclusion is it is not the case that, for every x, A of x.
- Premise: source 196
- Subderivation conclusion: source 197
- negation introduction rule: source 199
So far so good. We can use universal quantifier elimination rule but it's not obvious if that will help us get to our goal. Instead, let's use one of our assumptions. source 203 together with source 204 will allow us to use the conditional elimination rule rule.
Proof diagram: Natural-deduction proof tree at proving-things-quant.tex, line 205
Step 1 states if, for every x, A of x, then there exists a y such that B of y as a premise. Step 2 states assumption: for every x, A of x; labeled one for discharge as a premise. Step 3 applies the conditional elimination rule to 1, 2 and concludes there exists a y such that B of y. Step 4 applies the subderivation to 3 and concludes a contradiction. Step 5 applies the negation introduction rule to 4 and concludes it is not the case that, for every x, A of x. The final conclusion is it is not the case that, for every x, A of x.
- Premise: source 206
- Premise: source 207
- conditional elimination rule: source 209
- Subderivation conclusion: source 210
- negation introduction rule: source 212
We now have one final assumption to work with, and it looks like this will help us reach a contradiction by using negation elimination rule.
Proof diagram: Natural-deduction proof tree at proving-things-quant.tex, line 217
Step 1 states it is not the case that there exists a y such that B of y as a premise. Step 2 states if, for every x, A of x, then there exists a y such that B of y as a premise. Step 3 states assumption: for every x, A of x; labeled one for discharge as a premise. Step 4 applies the conditional elimination rule to 2, 3 and concludes there exists a y such that B of y. Step 5 applies the negation elimination rule to 1, 4 and concludes a contradiction. Step 6 applies the negation introduction rule to 5 and concludes it is not the case that, for every x, A of x. The final conclusion is it is not the case that, for every x, A of x.
- Premise: source 218
- Premise: source 219
- Premise: source 220
- conditional elimination rule: source 222
- negation elimination rule: source 224
- negation introduction rule: source 226
Problem 4
Give derivations that show the following:
Problem 5
Give derivations that show the following:
(These all require the source 252 rule.)
Proof-Theoretic Notions
Definition 10: Theorems
Theorems
A sentence source 33 is a theorem if there is a derivation of source 34 in natural deduction in which all assumptions are discharged. We write source 35 if source 35 is a theorem and source 36 if it is not.
Definition 11: Derivability
Derivability
A sentence source 40 is derivable from a set of sentences source 41, source 41, if there is a derivation with conclusion source 42 and in which every assumption is either discharged or is in source 43. If source 43 is not derivable from source 44 we write source 44.
Definition 12: Consistency
Consistency
A set of sentences source 48 is inconsistent iff source 48. If source 49 is not inconsistent, i.e., if source 50, we say it is consistent.
Proposition 1: Reflexivity
Reflexivity
Proof
The assumption source 59 by itself is a derivation of source 59 where every undischarged assumption (i.e., source 60) is in source 60.
End of proof.
Proposition 2: Monotonicity
Monotonicity
Proof
Any derivation of source 71 from source 71 is also a derivation of source 72 from source 72.
End of proof.
Proposition 3: Transitivity
Transitivity
Proof
If source 82, there is a derivation source 82 of source 82 with all undischarged assumptions in source 83. If source 83, then there is a derivation source 84 of source 84 with all undischarged assumptions in source 85. Now consider:
Proof diagram: Natural-deduction proof tree at proof-theoretic-notions.tex, line 87
Step 1 states capital Delta together with assumption A, labeled one for discharge as a premise. Step 2 labels the subderivation delta one. Step 3 applies the subderivation to 1 and concludes formula B. Step 4 applies the conditional introduction rule to 3 and concludes if A, then B. Step 5 states Gamma as a premise. Step 6 labels the subderivation derivation delta zero. Step 7 applies the subderivation to 5 and concludes formula A. Step 8 applies the conditional elimination rule to 4, 7 and concludes formula B. The final conclusion is formula B.
The undischarged assumptions are now all among source 99, so this shows source 100.
End of proof.
When source 103 is a finite set we may use the simplified notation source 103 for source 103, in particular source 103 means that source 103.
Note that if source 105 and source 105, then source 106. It follows also that if source 106 and source 107 for each source 107, then source 108.
Proposition 4
The following are equivalent.
source 114 is inconsistent.
source 115 for every sentence source 115.
source 116 and source 116 for some sentence source 116.
Proof
Exercise.
End of proof.
Problem 6
Prove the proposition characterizing inconsistency by derivability of every sentence
Proposition 5: Compactness
Compactness
If source 139 then there is a finite subset source 139 such that source 140.
If every finite subset of source 141 is consistent, then source 142 is consistent.
Proof
If source 148, then there is a derivation source 149 of source 149 from source 149. Let source 149 be the set of undischarged assumptions of source 150. Since any derivation is finite, source 151 can only contain finitely many sentences. So, source 152 is a derivation of source 153 from a finite source 153.
This is the contrapositive of (1) for the special case source 154.
End of proof.
derivability and Consistency
We will now establish a number of properties of the derivability relation. They are independently interesting, but each will play a role in the proof of the completeness theorem.
Proposition 6
If source 20 and source 20 is inconsistent, then source 21 is inconsistent.
Proof
Let the derivation of source 25 from source 25 be source 25 and the derivation of source 26 from source 26 be source 27. We can then derive:
Proof diagram: Natural-deduction proof tree at provability-consistency.tex, line 28
Step 1 states the assumptions in Gamma, together with assumption A labeled one for discharge as a premise. Step 2 labels the subderivation delta two. Step 3 applies the subderivation to 1 and concludes a contradiction. Step 4 applies the negation introduction rule to 3 and concludes not A. Step 5 states Gamma as a premise. Step 6 labels the subderivation delta one. Step 7 applies the subderivation to 5 and concludes formula A. Step 8 applies the negation elimination rule to 4, 7 and concludes a contradiction. The final conclusion is a contradiction.
In the new derivation, the assumption source 40 is discharged, so it is a derivation from source 41.
End of proof.
Proposition 7
Proof
First suppose source 50, i.e., there is a derivation source 51 of source 51 from undischarged assumptions source 52. We obtain a derivation of source 52 from source 53 as follows:
Proof diagram: Natural-deduction proof tree at provability-consistency.tex, line 54
Step 1 states not A as a premise. Step 2 states Gamma as a premise. Step 3 labels the subderivation derivation delta zero. Step 4 applies the subderivation to 2 and concludes formula A. Step 5 applies the negation elimination rule to 1, 4 and concludes a contradiction. The final conclusion is a contradiction.
Now assume source 63 is inconsistent, and let source 64 be the corresponding derivation of source 64 from undischarged assumptions in source 65. We obtain a derivation of source 66 from source 66 alone by using source 66:
Proof diagram: Natural-deduction proof tree at provability-consistency.tex, line 67
Step 1 states the assumptions in Gamma, together with assumption not A labeled one for discharge as a premise. Step 2 labels the subderivation delta one. Step 3 applies the subderivation to 1 and concludes a contradiction. Step 4 applies the classical contradiction rule to 3 and concludes formula A. The final conclusion is formula A.
End of proof.
Problem 7
Proposition 8
Proof
Suppose source 88 and source 88. Then there is a derivation source 89 of source 89 from source 89. Consider this simple application of the source 90 rule:
Proof diagram: Natural-deduction proof tree at provability-consistency.tex, line 91
Step 1 states not A as a premise. Step 2 states Gamma as a premise. Step 3 labels the subderivation delta. Step 4 applies the subderivation to 2 and concludes formula A. Step 5 applies the negation elimination rule to 1, 4 and concludes a contradiction. The final conclusion is a contradiction.
Since source 99, all undischarged assumptions are in source 100, this shows that source 100.
End of proof.
Proposition 9
If source 104 and source 104 are both inconsistent, then source 105 is inconsistent.
Proof
There are derivations source 109 and source 109 of source 109 from source 110 and source 110 from source 110, respectively. We can then derive
Proof diagram: Natural-deduction proof tree at provability-consistency.tex, line 112
Step 1 states the assumptions in Gamma, together with assumption not A labeled two for discharge as a premise. Step 2 labels the subderivation delta two. Step 3 applies the subderivation to 1 and concludes a contradiction. Step 4 applies the negation introduction rule to 3 and concludes not not A. Step 5 states the assumptions in Gamma, together with assumption A labeled one for discharge as a premise. Step 6 labels the subderivation delta one. Step 7 applies the subderivation to 5 and concludes a contradiction. Step 8 applies the negation introduction rule to 7 and concludes not A. Step 9 applies the negation elimination rule to 4, 8 and concludes a contradiction. The final conclusion is a contradiction.
- Premise: source 113
- Subderivation label: source 114
- Subderivation conclusion: source 115
- negation introduction rule: source 117
- Premise: source 118
- Subderivation label: source 119
- Subderivation conclusion: source 120
- negation introduction rule: source 122
- negation elimination rule: source 124
Since the assumptions source 126 and source 126 are discharged, this is a derivation of source 127 from source 127 alone. Hence source 127 is inconsistent.
End of proof.
derivability and the Propositional Connectives
Proposition 10
Proof
We can derive both
Proof diagram: Natural-deduction proof tree at provability-propositional.tex, line 41
Step 1 states A and B as a premise. Step 2 applies the conjunction elimination rule to 1 and concludes formula B. The final conclusion is formula B.
Proof diagram: Natural-deduction proof tree at provability-propositional.tex, line 37
Step 1 states A and B as a premise. Step 2 applies the conjunction elimination rule to 1 and concludes formula A. The final conclusion is formula A.
We can derive:
Proof diagram: Natural-deduction proof tree at provability-propositional.tex, line 47
Step 1 states formula A as a premise. Step 2 states formula B as a premise. Step 3 applies the conjunction introduction rule to 1, 2 and concludes A and B. The final conclusion is A and B.
End of proof.
Proposition 11
Proof
Consider the following derivation:
Proof diagram: Natural-deduction proof tree at provability-propositional.tex, line 67
Step 1 states A or B as a premise. Step 2 states not A as a premise. Step 3 states assumption A labeled one for discharge as a premise. Step 4 applies the negation elimination rule to 2, 3 and concludes a contradiction. Step 5 states not B as a premise. Step 6 states assumption B labeled one for discharge as a premise. Step 7 applies the negation elimination rule to 5, 6 and concludes a contradiction. Step 8 applies the disjunction elimination rule to 1, 4, 7 and concludes a contradiction. The final conclusion is a contradiction.
This is a derivation of source 80 from undischarged assumptions source 81, source 81, and source 81.
We can derive both
Proof diagram: Natural-deduction proof tree at provability-propositional.tex, line 87
Step 1 states formula B as a premise. Step 2 applies the disjunction introduction rule to 1 and concludes A or B. The final conclusion is A or B.
Proof diagram: Natural-deduction proof tree at provability-propositional.tex, line 83
Step 1 states formula A as a premise. Step 2 applies the disjunction introduction rule to 1 and concludes A or B. The final conclusion is A or B.
End of proof.
Proposition 12
Proof
We can derive:
Proof diagram: Natural-deduction proof tree at provability-propositional.tex, line 106
Step 1 states if A, then B as a premise. Step 2 states formula A as a premise. Step 3 applies the conditional elimination rule to 1, 2 and concludes formula B. The final conclusion is formula B.
- Premise: source 107
- Premise: source 108
- conditional elimination rule: source 110
This is shown by the following two derivations:
Proof diagram: Natural-deduction proof tree at provability-propositional.tex, line 123
Step 1 states formula B as a premise. Step 2 applies the conditional introduction rule to 1 and concludes if A, then B. The final conclusion is if A, then B.
- Premise: source 124
- conditional introduction rule: source 126
Proof diagram: Natural-deduction proof tree at provability-propositional.tex, line 114
Step 1 states not A as a premise. Step 2 states assumption A labeled one for discharge as a premise. Step 3 applies the negation elimination rule to 1, 2 and concludes a contradiction. Step 4 applies the falsehood elimination rule to 3 and concludes formula B. Step 5 applies the conditional introduction rule to 4 and concludes if A, then B. The final conclusion is if A, then B.
- Premise: source 115
- Premise: source 116
- negation elimination rule: source 118
- falsehood elimination rule: source 120
- conditional introduction rule: source 122
Note that source 128 may, but does not have to, discharge the assumption source 129.
End of proof.
derivability and the Quantifiers
Theorem 1
If source 22 is a constant not occurring in source 23 or source 23 and source 23, then source 23.
Proof
Let source 28 be a derivation of source 28 from source 28. By adding a universal quantifier introduction rule inference, we obtain a derivation of source 30. Since source 30 does not occur in source 30 or source 30, the eigenvariable condition is satisfied.
End of proof.
Proposition 13
Proof
The following is a derivation of source 46 from source 46:
Proof diagram: Natural-deduction proof tree at provability-quantifiers.tex, line 47
Step 1 states A of t as a premise. Step 2 applies the existential quantifier introduction rule to 1 and concludes there exists an x such that A of x. The final conclusion is there exists an x such that A of x.
The following is a derivation of source 53 from source 54:
Proof diagram: Natural-deduction proof tree at provability-quantifiers.tex, line 55
Step 1 states for every x, A of x as a premise. Step 2 applies the universal quantifier elimination rule to 1 and concludes A of t. The final conclusion is A of t.
End of proof.
Soundness
Theorem 2: Soundness
Soundness
If source 35 is derivable from the undischarged assumptions source 36, then source 36.
Proof
Let source 40 be a derivation of source 40. We proceed by induction on the number of inferences in source 41.
For the induction basis we show the claim if the number of inferences is source 44. In this case, source 44 consists only of a single sentence source 45, i.e., an assumption. That assumption is undischarged, since assumptions can only be discharged by inferences, and there are no inferences. So, any structure source 48 that satisfies all of the undischarged assumptions of the proof also satisfies source 50.
Now for the inductive step. Suppose that source 52 contains source 52 inferences. The premise(s) of the lowermost inference are derived using sub-derivations, each of which contains fewer than source 54 inferences. We assume the induction hypothesis: The premises of the lowermost inference follow from the undischarged assumptions of the sub-derivations ending in those premises. We have to show that the conclusion source 58 follows from the undischarged assumptions of the entire proof.
We distinguish cases according to the type of the lowermost inference. First, we consider the possible inferences with only one premise.
Suppose that the last inference is negation introduction rule: The derivation has the form
Proof diagram: Natural-deduction proof tree at soundness.tex, line 67
Step 1 states Gamma together with assumption A, labeled n for discharge as a premise. Step 2 labels the subderivation delta one. Step 3 applies the subderivation to 1 and concludes a contradiction. Step 4 applies the negation introduction rule to 3 and concludes not A. The final conclusion is not A.
By inductive hypothesis, source 74 follows from the undischarged assumptions source 75 of source 75. Consider a structure source 76. We need to show that, if source 77, then source 78. Suppose for reductio that source 79, but source 80, i.e., source 81. This would mean that source 82. This is contrary to our inductive hypothesis. So, source 84.
The last inference is conjunction elimination rule: There are two variants: source 86 or source 87 may be inferred from the premise source 87. Consider the first case. The derivation source 88 looks like this:
Proof diagram: Natural-deduction proof tree at soundness.tex, line 89
Step 1 states Gamma as a premise. Step 2 labels the subderivation delta one. Step 3 applies the subderivation to 1 and concludes A and B. Step 4 applies the conjunction elimination rule to 3 and concludes formula A. The final conclusion is formula A.
By inductive hypothesis, source 96 follows from the undischarged assumptions source 97 of source 97. Consider a structure source 98. We need to show that, if source 99, then source 100. Suppose source 101. By our inductive hypothesis (source 102), we know that source 103. By definition, source 104 iff source 105 and source 106. (The case where source 106 is inferred from source 107 is handled similarly.)
The last inference is disjunction introduction rule: There are two variants: source 109 may be inferred from the premise source 110 or the premise source 111. Consider the first case. The derivation has the form
Proof diagram: Natural-deduction proof tree at soundness.tex, line 112
Step 1 states Gamma as a premise. Step 2 labels the subderivation delta one. Step 3 applies the subderivation to 1 and concludes formula A. Step 4 applies the disjunction introduction rule to 3 and concludes A or B. The final conclusion is A or B.
- Premise: source 113
- Subderivation label: source 114
- Subderivation conclusion: source 115
- disjunction introduction rule: source 117
By inductive hypothesis, source 119 follows from the undischarged assumptions source 120 of source 120. Consider a structure source 121. We need to show that, if source 122, then source 123. Suppose source 124; then source 125 since source 125 (the inductive hypothesis). So it must also be the case that source 127. (The case where source 127 is inferred from source 128 is handled similarly.)
The last inference is conditional introduction rule: source 130 is inferred from a subproof with assumption source 131 and conclusion source 131, i.e.,
Proof diagram: Natural-deduction proof tree at soundness.tex, line 132
Step 1 states Gamma together with assumption A, labeled n for discharge as a premise. Step 2 labels the subderivation delta one. Step 3 applies the subderivation to 1 and concludes formula B. Step 4 applies the conditional introduction rule to 3 and concludes if A, then B. The final conclusion is if A, then B.
- Premise: source 133
- Subderivation label: source 134
- Subderivation conclusion: source 135
- conditional introduction rule: source 137
By inductive hypothesis, source 139 follows from the undischarged assumptions of source 140, i.e., source 140. Consider a structure source 142. The undischarged assumptions of source 143 are just source 143, since source 144 is discharged at the last inference. So we need to show that source 145. For reductio, suppose that for some structure source 146, source 147 but source 148. So, source 149 and source 150. But by hypothesis, source 150 is a consequence of source 151, i.e., source 152, which is a contradiction. So, source 153.
The last inference is falsehood elimination rule: Here, source 155 ends in
Proof diagram: Natural-deduction proof tree at soundness.tex, line 156
Step 1 states Gamma as a premise. Step 2 labels the subderivation delta one. Step 3 applies the subderivation to 1 and concludes a contradiction. Step 4 applies the falsehood elimination rule to 3 and concludes formula A. The final conclusion is formula A.
- Premise: source 157
- Subderivation label: source 158
- Subderivation conclusion: source 159
- falsehood elimination rule: source 161
By induction hypothesis, source 163. We have to show that source 164. Suppose not; then for some source 165 we have source 166 and source 167. But we always have source 168, so this would mean that source 169, contrary to the induction hypothesis.
The last inference is classical contradiction rule: Exercise.
The last inference is universal quantifier introduction rule: Then source 175 has the form
Proof diagram: Natural-deduction proof tree at soundness.tex, line 176
Step 1 states Gamma as a premise. Step 2 labels the subderivation delta one. Step 3 applies the subderivation to 1 and concludes A of a. Step 4 applies the universal quantifier introduction rule to 3 and concludes for every x, A of x. The final conclusion is for every x, A of x.
- Premise: source 177
- Subderivation label: source 178
- Subderivation conclusion: source 179
- universal quantifier introduction rule: source 181
The premise source 183 is a consequence of the undischarged assumptions source 184 by induction hypothesis. Consider some structure, source 185, such that source 185. We need to show that source 186. Since source 186 is a sentence, this means we have to show that for every variable assignment source 188, source 188 (the proposition giving the satisfaction clauses for quantifiers). Since source 189 consists entirely of sentences, source 190 for all source 190 by the definition of satisfaction for first-order formulas. Let source 191 be like source 192 except that source 192. Since source 192 does not occur in source 193, source 193 by the corollary that sentence satisfaction is independent of assignments. Since source 194, source 195. Since source 195 is a sentence, source 196 by the proposition equating sentence satisfaction with truth in a structure. source 197 iff source 198 by the proposition on extensionality of formulas under agreeing assignments (recall that source 199 is just source 199). So, source 200. Since source 200 does not occur in source 200, by the extensionality proposition for term values and formula satisfaction, source 201. But source 201 was an arbitrary variable assignment, so source 203.
The last inference is existential quantifier introduction rule: Exercise.
The last inference is universal quantifier elimination rule: Exercise.
Now let's consider the possible inferences with several premises: disjunction elimination rule, conjunction introduction rule, conditional elimination rule, and existential quantifier elimination rule.
The last inference is conjunction introduction rule. source 216 is inferred from the premises source 217 and source 217 and source 217 has the form
Proof diagram: Natural-deduction proof tree at soundness.tex, line 218
Step 1 states Gamma one as a premise. Step 2 labels the subderivation delta one. Step 3 applies the subderivation to 1 and concludes formula A. Step 4 states Gamma two as a premise. Step 5 labels the subderivation delta two. Step 6 applies the subderivation to 4 and concludes formula B. Step 7 applies the conjunction introduction rule to 3, 6 and concludes A and B. The final conclusion is A and B.
- Premise: source 219
- Subderivation label: source 220
- Subderivation conclusion: source 221
- Premise: source 222
- Subderivation label: source 223
- Subderivation conclusion: source 224
- conjunction introduction rule: source 226
By induction hypothesis, source 228 follows from the undischarged assumptions source 229 of source 229 and source 229 follows from the undischarged assumptions source 230 of source 230. The undischarged assumptions of source 231 are source 231, so we have to show that source 232. Consider a structure source 234 with source 235. Since source 236, it must be the case that source 237 as source 237, and since source 238, source 239 since source 239. Together, source 240.
The last inference is disjunction elimination rule: Exercise.
The last inference is conditional elimination rule. source 244 is inferred from the premises source 245 and source 245. The derivation source 245 looks like this:
Proof diagram: Natural-deduction proof tree at soundness.tex, line 246
Step 1 states Gamma one as a premise. Step 2 labels the subderivation delta one. Step 3 applies the subderivation to 1 and concludes if A, then B. Step 4 states Gamma two as a premise. Step 5 labels the subderivation delta two. Step 6 applies the subderivation to 4 and concludes formula A. Step 7 applies the conditional elimination rule to 3, 6 and concludes formula B. The final conclusion is formula B.
- Premise: source 247
- Subderivation label: source 248
- Subderivation conclusion: source 249
- Premise: source 250
- Subderivation label: source 251
- Subderivation conclusion: source 252
- conditional elimination rule: source 254
By induction hypothesis, source 256 follows from the undischarged assumptions source 257 of source 257 and source 257 follows from the undischarged assumptions source 258 of source 259. Consider a structure source 260. We need to show that, if source 261, then source 262. Suppose source 263. Since source 264, source 264. Since source 265, we have source 266. This means that source 267 (For if source 268, since source 269, we'd have source 270, contradicting source 271).
The last inference is negation elimination rule: Exercise.
The last inference is existential quantifier elimination rule: Exercise.
End of proof.
Problem 8
Complete the proof of the soundness theorem for natural deduction.
Corollary 1
If source 293, then source 293 is valid.
Corollary 2
If source 298 is satisfiable, then it is consistent.
Proof
We prove the contrapositive. Suppose that source 302 is not consistent. Then source 303, i.e., there is a derivation of source 304 from undischarged assumptions in source 304. By the soundness theorem for natural deduction, any structure source 306 that satisfies source 307 must satisfy source 307. Since source 308 for every structure source 309, no source 310 can satisfy source 310, i.e., source 311 is not satisfiable.
End of proof.
derivation with identity
Derivations with identity require additional inference rules.
Inference rules 13
Proof diagram: Natural-deduction proof tree at identity.tex, line 19
Step 1 has no printed premise. Step 2 applies the identity introduction rule to 1 and concludes t equals t. The final conclusion is t equals t.
- Premise
- identity introduction rule: source 18
Rule table: Table at identity.tex, line 21
This is a visual layout table grouping rule diagrams, not a data table; the ordered formulas retain the printed rule order.
- Cell 1: t one equals t two
- Cell 2: A of t one
- Cell 3: A of t two
- Cell 4: t one equals t two
- Cell 5: A of t two
- Cell 6: A of t one
Natural-deduction proof tree at identity.tex, line 26
Step 1 states t one equals t two as a premise. Step 2 states A of t one as a premise. Step 3 applies the identity elimination rule to 1, 2 and concludes A of t two. The final conclusion is A of t two.
Natural-deduction proof tree at identity.tex, line 32
Step 1 states t one equals t two as a premise. Step 2 states A of t two as a premise. Step 3 applies the identity elimination rule to 1, 2 and concludes A of t one. The final conclusion is A of t one.
In the above rules, source 36, source 36, and source 36 are closed terms. The identity introduction rule rule allows us to derive any identity statement of the form source 38 outright, from no assumptions.
Example 8
If source 41 and source 41 are closed terms, then source 41:
Proof diagram: Natural-deduction proof tree at identity.tex, line 42
Step 1 states s equals t as a premise. Step 2 states A of s as a premise. Step 3 applies the identity elimination rule to 1, 2 and concludes A of t. The final conclusion is A of t.
This may be familiar as the “principle of substitutability of identicals,” or Leibniz' Law.
Problem 9
Prove that source 53 is both symmetric and transitive, i.e., give derivations of source 54 and source 55
Example 9
We derive the sentence
Display formula: Display Math at identity.tex, line 61
The alignment places the stated conclusion before the source phrase 'from the sentence' and then the premise.
source 61We develop the derivation backwards:
Proof diagram: Natural-deduction proof tree at identity.tex, line 67
Step 1 states the existential statement that there exists an x such that every A object equals x, together with the single conjunctive assumption that A holds of both a and b, carrying label one for discharge as a premise. Step 2 applies the subderivation to 1 and concludes a equals b. Step 3 applies the conditional introduction rule to 2 and concludes if both A of a and A of b, then a equals b. Step 4 applies the universal quantifier introduction rule to 3 and concludes for every y, if both A of a and A of y, then a equals y. Step 5 applies the universal quantifier introduction rule to 4 and concludes for every x and every y, if both A of x and A of y, then x equals y. The final conclusion is for every x and every y, if both A of x and A of y, then x equals y.
We'll now have to use the main assumption: since it is an existential formula, we use existential quantifier elimination rule to derive the intermediary conclusion source 80.
Proof diagram: Natural-deduction proof tree at identity.tex, line 81
Step 1 states there exists an x such that, for every y, if A of y, then y equals x as a premise. Step 2 states assumption: for every y, if A of y then y equals c; labeled two for discharge as a premise. Step 3 states the single assumption that is the conjunction of A of a with A of b, labeled one for discharge as a premise. Step 4 applies the subderivation to 3 and concludes a equals b. Step 5 applies the existential quantifier elimination rule to 1, 4 and concludes a equals b. Step 6 applies the conditional introduction rule to 5 and concludes if both A of a and A of b, then a equals b. Step 7 applies the universal quantifier introduction rule to 6 and concludes for every y, if both A of a and A of y, then a equals y. Step 8 applies the universal quantifier introduction rule to 7 and concludes for every x and every y, if both A of x and A of y, then x equals y. The final conclusion is for every x and every y, if both A of x and A of y, then x equals y.
The sub-derivation on the top right is completed by using its assumptions to show that source 97 and source 97. This requires two separate derivations. The derivation for source 98 is as follows:
Proof diagram: Natural-deduction proof tree at identity.tex, line 100
Step 1 states assumption: for every y, if A of y then y equals c; labeled two for discharge as a premise. Step 2 applies the universal quantifier elimination rule to 1 and concludes if A of a, then a equals c. Step 3 states the single assumption that is the conjunction of A of a with A of b, labeled one for discharge as a premise. Step 4 applies the conjunction elimination rule to 3 and concludes A of a. Step 5 applies the conditional elimination rule to 2, 4 and concludes a equals c. The final conclusion is a equals c.
- Premise: source 101
- universal quantifier elimination rule: source 103
- Premise: source 104
- conjunction elimination rule: source 106
- conditional elimination rule: source 108
From source 110 and source 110 we derive source 110 by identity elimination rule.
Problem 10
Give derivations of the following formulas:
Soundness with identity
Proposition 14
Natural deduction with rules for source 14 is sound.
Proof
Any formula of the form source 18 is valid, since for every structure source 19, source 19. (Note that we assume the term source 20 to be closed, i.e., it contains no variables, so variable assignments are irrelevant).
Suppose the last inference in a derivation is identity elimination rule, i.e., the derivation has the following form:
Proof diagram: Natural-deduction proof tree at soundness-identity.tex, line 25
Step 1 states Gamma one as a premise. Step 2 labels the subderivation delta one. Step 3 applies the subderivation to 1 and concludes t one equals t two. Step 4 states Gamma two as a premise. Step 5 labels the subderivation delta two. Step 6 applies the subderivation to 4 and concludes A of t one. Step 7 applies the identity elimination rule to 3, 6 and concludes A of t two. The final conclusion is A of t two.
The premises source 35 and source 35 are derived from undischarged assumptions source 36 and source 36, respectively. We want to show that source 37 follows from source 37. Consider a structure source 38 with source 38. By induction hypothesis, source 39 and source 40. Therefore, source 40. Let source 41 be any variable assignment, and source 41. By the proposition on extensionality of formulas under agreeing assignments, source 42 iff source 43 iff source 43. Since source 44, we have source 44.
End of proof.