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.

source 26

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 “[A]n\Discharge{!A}{n}source 43.”

It is customary to consider rules for all the operators \landsource 48, \lorsource 48, \lifsource 48, ¬\lnotsource 48, and \lfalsesource 48, even if some of those are defined.

Propositional Rules

Rules for \landsource 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.

  1. Premise: A!Asource 19
  2. Premise: B!Bsource 20
  3. conjunction introduction rule: AB!A \land !Bsource 22

source 23

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.

  1. Cell 1: A and B
  2. Cell 2: formula A
  3. Cell 3: A and B
  4. Cell 4: formula B

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.

  1. Premise: AB!A \land !Bsource 26
  2. conjunction elimination rule: A!Asource 28

source 29

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.

  1. Premise: AB!A \land !Bsource 31
  2. conjunction elimination rule: B!Bsource 33

source 34

source 25

source 18

Rules for \lorsource 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.

  1. Cell 1: formula A
  2. Cell 2: A or B
  3. Cell 3: formula B
  4. Cell 4: A or B

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.

  1. Premise: A!Asource 42
  2. disjunction introduction rule: AB!A \lor !Bsource 44

source 45

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.

  1. Premise: B!Bsource 47
  2. disjunction introduction rule: AB!A \lor !Bsource 49

source 50

source 41

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.

  1. Premise: AB!A \lor !Bsource 53
  2. Premise: [A]n\Discharge{!A}{n}source 54
  3. Subderivation conclusion: C!Csource 55
  4. Premise: [B]n\Discharge{!B}{n}source 56
  5. Subderivation conclusion: C!Csource 57
  6. disjunction elimination rule: C!Csource 59

source 60

source 40

Rules for \lifsource 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.

  1. Premise: [A]n\Discharge{!A}{n}source 66
  2. Subderivation conclusion: B!Bsource 67
  3. conditional introduction rule: AB!A \lif !Bsource 69

source 70

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.

  1. Premise: AB!A \lif !Bsource 72
  2. Premise: A!Asource 73
  3. conditional elimination rule: B!Bsource 75

source 76

source 65

Rules for ¬\lnotsource 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.

  1. Premise: [A]n\Discharge{!A}{n}source 82
  2. Subderivation conclusion: \lfalsesource 84
  3. negation introduction rule: ¬A\lnot !Asource 86

source 87

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.

  1. Premise: ¬A\lnot !Asource 89
  2. Premise: A!Asource 90
  3. negation elimination rule: \lfalsesource 92

source 93

source 81

Rules for \lfalsesource 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.

  1. Premise: \lfalsesource 99
  2. falsehood elimination rule: A!Asource 101

source 102

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.

  1. Premise: [¬A]n\Discharge{\lnot !A}{n}source 104
  2. Subderivation conclusion: \lfalsesource 105
  3. classical contradiction rule: A!Asource 107

source 108

source 98

Note that ¬Intro\Intro{\lnot}source 111 and C\FalseClsource 111 are very similar: The difference is that ¬Intro\Intro{\lnot}source 112 derives a negated sentence ¬A\lnot !Asource 113 but C\FalseClsource 113 a positive sentence A!Asource 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 Intro\Intro{\lif}source 117 rule, we may discharge any number of assumptions of the form A!Asource 118 in the derivation of the premise B!Bsource 118, including zero.

Quantifier Rules

Rules for \lforallsource 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.

  1. Premise: A(a)!A(a)source 16
  2. universal quantifier introduction rule: xA(x)\lforall[x][\Atom{!A}{x}]source 18

source 19

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.

  1. Premise: xA(x)\lforall[x][\Atom{!A}{x}]source 21
  2. universal quantifier elimination rule: A(t)!A(t)source 23

source 24

source 15

In the rules for \lforallsource 27, ttsource 27 is a closed term (a term that does not contain any variables), and aasource 28 is a constant which does not occur in the conclusion xA(x)\lforall[x][!A(x)]source 29, or in any assumption which is undischarged in the derivation ending with the premise A(a)!A(a)source 31. We call aasource 31 the eigenvariable of the universal quantifier introduction rule inference.We use the term “eigenvariable” even though aasource 33 in the above rule is a constant. This has historical reasons.

Rules for \lexistssource 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.

  1. Premise: A(t)\Atom{!A}{t}source 39
  2. existential quantifier introduction rule: xA(x)\lexists[x][\Atom{!A}{x}]source 41

source 42

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.

  1. Premise: xA(x)\lexists[x][\Atom{!A}{x}]source 44
  2. Marked premise: A(a)\Atom{!A}{a}source 45 n^nsource 45
  3. Subderivation conclusion: C!Csource 46
  4. existential quantifier elimination rule: C!Csource 48

source 49

source 38

Again, ttsource 52 is a closed term, and aasource 52 is a constant which does not occur in the premise xA(x)\lexists[x][!A(x)]source 53, in the conclusion C!Csource 53, or any assumption which is undischarged in the derivations ending with the two premises (other than the assumptions A(a)!A(a)source 55). We call aasource 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 A!Asource 24 from assumptions Γ\Gammasource 25 is a finite tree of sentences satisfying the following conditions:

  1. The topmost sentences of the tree are either in Γ\Gammasource 28 or are discharged by an inference in the tree.

  2. The bottommost sentence of the tree is A!Asource 30.

  3. Every sentence in the tree except the sentence A!Asource 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 A!Asource 36 is the conclusion of the derivation and Γ\Gammasource 37 its undischarged assumptions.

If a derivation of A!Asource 39 from Γ\Gammasource 39 exists, we say that A!Asource 39 is derivable from Γ\Gammasource 40, or in symbols: ΓA\Gamma \Proves !Asource 40. If there is a derivation of A!Asource 41 in which every assumption is discharged, we write A\Proves !Asource 42.

source 23

Example 1

Every assumption on its own is a derivation. So, e.g., A!Asource 46 by itself is a derivation, and so is B!Bsource 47 by itself. We can obtain a new derivation from these by applying, say, the Intro\Intro{\land}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.

  1. Premise: A!Asource 51
  2. Premise: B!Bsource 52
  3. conjunction introduction rule: AB!A \land !Bsource 54

source 50

These rules are meant to be general: we can replace the A!Asource 56 and B!Bsource 56 in it with any sentences, e.g., by C!Csource 57 and D!Dsource 57. Then the conclusion would be CD!C \land !Dsource 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.

  1. Premise: C!Csource 60
  2. Premise: D!Dsource 61
  3. conjunction introduction rule: CD!C \land !Dsource 63

source 59

is a correct derivation. Of course, we can also switch the assumptions, so that D!Dsource 66 plays the role of A!Asource 66 and C!Csource 66 that of B!Bsource 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.

  1. Premise: D!Dsource 69
  2. Premise: C!Csource 70
  3. conjunction introduction rule: DC!D \land !Csource 72

source 68

is also a correct derivation.

We can now apply another rule, say, Intro\Intro{\lif}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.

  1. Premise: C!Csource 88
  2. Premise: [D]1\Discharge{!D}{1}source 89
  3. conjunction introduction rule: CD!C \land !Dsource 91
  4. conditional introduction rule: D(CD)!D \lif (!C \land !D)source 93

source 87

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.

  1. Premise: [C]1\Discharge{!C}{1}source 81
  2. Premise: D!Dsource 82
  3. conjunction introduction rule: CD!C \land !Dsource 84
  4. conditional introduction rule: C(CD)!C \lif (!C \land !D)source 86

source 80

They show, respectively, that DC(CD)!D \Proves !C \lif (!C \land !D)source 95 and CD(CD)!C \Proves !D \lif (!C \land !D)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 A!Asource 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.

  1. Premise: B!Bsource 104
  2. conditional introduction rule: AB!A \lif !Bsource 106

source 103

source 45

Examples of derivation

Example 2

Let's give a derivation of the sentence (AB)A(!A \land !B) \lif !Asource 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.

  1. Premise
  2. inference rule: (AB)A(!A\land !B) \lif !Asource 22

source 20

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 \lifsource 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.

  1. Premise: [AB]1\Discharge{!A \land !B}{1}source 33
  2. Subderivation conclusion: A!Asource 34
  3. conditional introduction rule: (AB)A(!A\land !B) \lif !Asource 36

source 32

We now need to fill in the steps from the assumption AB!A \land !Bsource 39 to A!Asource 39. Since we only have one connective to deal with, \landsource 40, we must use the \landsource 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.

  1. Premise: [AB]1\Discharge{!A \land !B}{1}source 43
  2. conjunction elimination rule: A!Asource 45
  3. conditional introduction rule: (AB)A(!A\land !B) \lif !Asource 47

source 42

We now have a correct derivation of (AB)A(!A \land !B) \lif !Asource 49.

source 15

Example 3

Now let's give a derivation of (¬AB)(AB)(\lnot !A \lor !B) \lif (!A \lif !B)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.

  1. Premise
  2. inference rule: (¬AB)(AB)(\lnot !A \lor !B) \lif (!A \lif !B)source 61

source 59

To find a logical rule that could give us this conclusion, we look at the logical connectives in the conclusion: ¬\lnotsource 64, \lorsource 65, and \lifsource 65. We only care at the moment about the first occurrence of \lifsource 66 because it is the main operator of the sentence in the end-sequent, while ¬\lnotsource 67, \lorsource 67 and the second occurrence of \lifsource 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.

  1. Premise: [¬AB]1\Discharge{\lnot !A \lor !B}{1}source 72
  2. Subderivation conclusion: AB!A \lif !Bsource 73
  3. conditional introduction rule: (¬AB)(AB)(\lnot !A \lor !B) \lif (!A \lif !B)source 75

source 71

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 ¬AB\lnot !A \lor !Bsource 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 AB!A \lif !Bsource 83, but each may be derived in turn from another assumption, namely one of the two disjuncts of ¬AB\lnot !A \lor !Bsource 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.

  1. Premise: [¬AB]1\Discharge{\lnot !A \lor !B}{1}source 87
  2. Premise: [¬A]2\Discharge{\lnot !A}{2}source 88
  3. Subderivation conclusion: AB!A \lif !Bsource 89
  4. Premise: [B]2\Discharge{!B}{2}source 90
  5. Subderivation conclusion: AB!A \lif !Bsource 91
  6. disjunction elimination rule: AB!A \lif !Bsource 93
  7. conditional introduction rule: (¬AB)(AB)(\lnot !A \lor !B) \lif (!A \lif !B)source 95

source 86

In each of the two branches on the right, we want to derive AB!A \lif !Bsource 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.

  1. Premise: [¬AB]1\Discharge{\lnot !A \lor !B}{1}source 101
  2. Premise: [¬A]2,[A]3\Discharge{\lnot !A}{2}, \Discharge{!A}{3}source 102
  3. Subderivation conclusion: B!Bsource 103
  4. conditional introduction rule: AB!A \lif !Bsource 105
  5. Premise: [B]2,[A]4\Discharge{!B}{2}, \Discharge{!A}{4}source 106
  6. Subderivation conclusion: B!Bsource 107
  7. conditional introduction rule: AB!A \lif !Bsource 109
  8. disjunction elimination rule: AB!A \lif !Bsource 111
  9. conditional introduction rule: (¬AB)(AB)(\lnot !A \lor !B) \lif (!A \lif !B)source 113

source 100

For the two missing parts of the derivation, we need derivations of B!Bsource 117 from ¬A\lnot !Asource 117 and A!Asource 117 in the middle, and from A!Asource 118 and B!Bsource 118 on the left. Let's take the former first. ¬A\lnot !Asource 118 and A!Asource 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.

  1. Premise: [¬A]2\Discharge{\lnot !A}{2}source 121
  2. Premise: [A]3\Discharge{!A}{3}source 122
  3. negation elimination rule: \lfalsesource 124
  4. Subderivation conclusion: B!Bsource 125

source 120

By using falsehood elimination rule, we can obtain B!Bsource 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.

  1. Premise: [¬AB]1\Discharge{\lnot !A \lor !B}{1}source 130
  2. Premise: [¬A]2\Discharge{\lnot !A}{2}source 131
  3. Premise: [A]3\Discharge{!A}{3}source 132
  4. falsehood introduction rule: \lfalsesource 134
  5. falsehood elimination rule: B!Bsource 136
  6. conditional introduction rule: AB!A \lif !Bsource 138
  7. Premise: [B]2,[A]4\Discharge{!B}{2}, \Discharge{!A}{4}source 139
  8. Subderivation conclusion: B!Bsource 140
  9. conditional introduction rule: AB!A \lif !Bsource 142
  10. disjunction elimination rule: AB!A \lif !Bsource 144
  11. conditional introduction rule: (¬AB)(AB)(\lnot !A \lor !B) \lif (!A \lif !B)source 146

source 129

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 B!Bsource 152 from one of the assumptions A!Asource 152 and B!Bsource 152 without using the other, that's ok. And to derive B!Bsource 153 from B!Bsource 153 is trivial: B!Bsource 154 by itself is such a derivation, and no inferences are needed. So we can simply delete the assumption A!Asource 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.

  1. Premise: [¬AB]1\Discharge{\lnot !A \lor !B}{1}source 157
  2. Premise: [¬A]2\Discharge{\lnot !A}{2}source 158
  3. Premise: [A]3\Discharge{!A}{3}source 159
  4. negation elimination rule: \lfalsesource 161
  5. falsehood elimination rule: B!Bsource 163
  6. conditional introduction rule: AB!A \lif !Bsource 165
  7. Premise: [B]2\Discharge{!B}{2}source 166
  8. conditional introduction rule: AB!A \lif !Bsource 168
  9. disjunction elimination rule: AB!A \lif !Bsource 170
  10. conditional introduction rule: (¬AB)(AB)(\lnot !A \lor !B) \lif (!A \lif !B)source 172

source 156

Note that in the finished derivation, the rightmost conditional introduction rule inference does not actually discharge any assumptions.

source 53

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 A¬A!A \lor \lnot !Asource 186. Our usual strategy would be to attempt to derive A¬A!A \lor \lnot !Asource 187 using Intro\Intro{\lor}source 187. But this would require us to derive either A!Asource 188 or ¬A\lnot !Asource 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.

  1. Premise: [¬(A¬A)]1\Discharge{\lnot(!A \lor \lnot !A)}{1}source 191
  2. Subderivation conclusion: \lfalsesource 192
  3. classical contradiction rule: A¬A!A \lor \lnot !Asource 194

source 190

Now we're looking for a derivation of \lfalsesource 196 from ¬(A¬A)\lnot(!A \lor \lnot !A)source 196. Since \lfalsesource 197 is the conclusion of ¬Elim\Elim{\lnot}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.

  1. Premise: [¬(A¬A)]1\Discharge{\lnot(!A \lor \lnot !A)}{1}source 200
  2. Subderivation conclusion: ¬A\lnot !Asource 201
  3. Premise: [¬(A¬A)]1\Discharge{\lnot(!A \lor \lnot !A)}{1}source 202
  4. Subderivation conclusion: A!Asource 203
  5. negation elimination rule: \lfalsesource 205
  6. classical contradiction rule: A¬A!A \lor \lnot !Asource 207

source 199

Our strategy for finding a derivation of ¬A\lnot !Asource 209 calls for an application of ¬Intro\Intro{\lnot}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.

  1. Premise: [¬(A¬A)]1,[A]2\Discharge{\lnot(!A \lor \lnot !A)}{1}, \Discharge{!A}{2}source 212
  2. Subderivation conclusion: \lfalsesource 213
  3. negation introduction rule: ¬A\lnot !Asource 215
  4. Premise: [¬(A¬A)]1\Discharge{\lnot(!A \lor \lnot !A)}{1}source 216
  5. Subderivation conclusion: A!Asource 217
  6. negation elimination rule: \lfalsesource 219
  7. classical contradiction rule: A¬A!A \lor \lnot !Asource 221

source 211

Here, we can get \lfalsesource 223 easily by applying ¬Elim\Elim{\lnot}source 223 to the assumption ¬(A¬A)\lnot(!A \lor \lnot !A)source 224 and A¬A!A \lor \lnot !Asource 224 which follows from our new assumption A!Asource 225 by Intro\Intro{\lor}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.

  1. Premise: [¬(A¬A)]1\Discharge{\lnot(!A \lor \lnot !A)}{1}source 227
  2. Premise: [A]2\Discharge{!A}{2}source 228
  3. disjunction introduction rule: A¬A!A \lor \lnot !Asource 230
  4. negation elimination rule: \lfalsesource 232
  5. negation introduction rule: ¬A\lnot !Asource 234
  6. Premise: [¬(A¬A)]1\Discharge{\lnot(!A \lor \lnot !A)}{1}source 235
  7. Subderivation conclusion: A!Asource 236
  8. negation elimination rule: \lfalsesource 238
  9. classical contradiction rule: A¬A!A \lor \lnot !Asource 240

source 226

On the right side we use the same strategy, except we get A!Asource 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.

  1. Premise: [¬(A¬A)]1\Discharge{\lnot(!A \lor \lnot !A)}{1}source 244
  2. Premise: [A]2\Discharge{!A}{2}source 245
  3. disjunction introduction rule: A¬A!A \lor \lnot !Asource 247
  4. negation elimination rule: \lfalsesource 249
  5. negation introduction rule: ¬A\lnot !Asource 251
  6. Premise: [¬(A¬A)]1\Discharge{\lnot(!A \lor \lnot !A)}{1}source 252
  7. Premise: [¬A]3\Discharge{\lnot !A}{3}source 253
  8. disjunction introduction rule: A¬A!A \lor \lnot !Asource 255
  9. negation elimination rule: \lfalsesource 257
  10. classical contradiction rule: A!Asource 259
  11. negation elimination rule: \lfalsesource 261
  12. classical contradiction rule: A¬A!A \lor \lnot !Asource 263

source 243

source 178

Problem 1

Give derivations that show the following:

  1. A(BC)(AB)C!A \land (!B \land !C) \Proves (!A \land !B) \land !Csource 270.

  2. A(BC)(AB)C!A \lor (!B \lor !C) \Proves (!A \lor !B) \lor !Csource 271.

  3. A(BC)B(AC)!A \lif (!B \lif !C) \Proves !B \lif (!A \lif !C)source 272.

  4. A¬¬A!A \Proves \lnot\lnot !Asource 273.

source 267

Problem 2

Give derivations that show the following:

  1. (AB)CAC(!A \lor !B) \lif !C \Proves !A \lif !Csource 280.

  2. (AC)(BC)(AB)C(!A \lif !C) \land (!B \lif !C) \Proves (!A \lor !B) \lif !Csource 281.

  3. ¬(A¬A)\Proves \lnot(!A \land \lnot !A)source 282.

  4. BA¬A¬B!B \lif !A \Proves \lnot !A \lif \lnot !Bsource 283.

  5. (A¬A)¬A\Proves (!A \lif \lnot !A) \lif \lnot !Asource 284.

  6. ¬(AB)¬B\Proves \lnot(!A \lif !B) \lif \lnot !Bsource 285.

  7. AC¬(A¬C)!A \lif !C \Proves \lnot (!A \land \lnot !C)source 286.

  8. A¬C¬(AC)!A \land \lnot !C \Proves \lnot (!A \lif !C)source 287.

  9. AB,¬BA!A \lor !B, \lnot !B \Proves !Asource 288.

  10. ¬A¬B¬(AB)\lnot !A \lor \lnot !B \Proves \lnot(!A \land !B)source 289.

  11. (¬A¬B)¬(AB)\Proves (\lnot !A \land \lnot !B) \lif\lnot(!A \lor !B)source 290.

  12. ¬(AB)(¬A¬B)\Proves \lnot(!A \lor !B) \lif (\lnot !A \land \lnot !B)source 291.

source 277

Problem 3

Give derivations that show the following:

  1. ¬(AB)A\lnot(!A \lif !B) \Proves !Asource 298.

  2. ¬(AB)¬A¬B\lnot(!A \land !B) \Proves \lnot !A \lor \lnot !Bsource 299.

  3. AB¬AB!A \lif !B \Proves \lnot !A \lor !Bsource 300.

  4. ¬¬AA\Proves \lnot \lnot !A \lif !Asource 301.

  5. AB,¬ABB!A \lif !B, \lnot !A \lif !B \Proves !Bsource 302.

  6. (AB)C(AC)(BC)(!A \land !B) \lif !C \Proves (!A \lif !C) \lor (!B \lif !C)source 303.

  7. (AB)AA(!A \lif !B) \lif !A \Proves !Asource 304.

  8. (AB)(BC)\Proves (!A \lif !B) \lor (!B \lif !C)source 305.

(These all require the C\FalseClsource 307 rule.)

source 295

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 x¬A(x)¬xA(x)\lexists[x][\lnot !A(x)] \lif \lnot \lforall[x][!A(x)]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.

  1. Premise
  2. inference rule: x¬A(x)¬xA(x)\lexists[x][\lnot !A(x)]\lif \lnot \lforall[x][!A(x)]source 25

source 23

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.

  1. Premise: [x¬A(x)]1\Discharge{\lexists[x][\lnot !A(x)]}{1}source 30
  2. Subderivation conclusion: ¬xA(x)\lnot \lforall[x][!A(x)]source 31
  3. conditional introduction rule: x¬A(x)¬xA(x)\lexists[x][\lnot !A(x)]\lif \lnot \lforall[x][!A(x)]source 33

source 29

Since there is no obvious rule to apply to ¬xA(x)\lnot \lforall[x][!A(x)]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 xA(x)\lexists[x][!A(x)]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.

  1. Premise: [x¬A(x)]1\Discharge{\lexists[x][\lnot !A(x)]}{1}source 42
  2. Premise: [¬A(a)]2\Discharge{\lnot !A(a)}{2}source 43
  3. Subderivation conclusion: ¬xA(x)\lnot \lforall[x][!A(x)]source 44
  4. existential quantifier elimination rule: ¬xA(x)\lnot \lforall[x][!A(x)]source 46
  5. conditional introduction rule: x¬A(x)¬xA(x)\lexists[x][\lnot !A(x)] \lif \lnot \lforall[x][!A(x)]source 48

source 41

In order to derive ¬xA(x)\lnot \lforall[x][!A(x)]source 50, we will attempt to use the negation introduction rule rule: this requires that we derive a contradiction, possibly using xA(x)\lforall[x][!A(x)]source 52 as an additional assumption. Of course, this contradiction may involve the assumption ¬A(a)\lnot !A(a)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.

  1. Premise: [x¬A(x)]1\Discharge{\lexists[x][\lnot !A(x)]}{1}source 57
  2. Premise: [¬A(a)]2,[xA(x)]3\Discharge{\lnot !A(a)}{2}, \Discharge{\lforall[x][!A(x)]}{3}source 58
  3. Subderivation conclusion: \lfalsesource 59
  4. negation introduction rule: ¬xA(x)\lnot \lforall[x][!A(x)]source 61
  5. existential quantifier elimination rule: ¬xA(x)\lnot \lforall[x][!A(x)]source 63
  6. conditional introduction rule: x¬A(x)¬xA(x)\lexists[x][\lnot !A(x)]\lif \lnot \lforall[x][!A(x)]source 65

source 56

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 xxsource 70, it makes the most sense to continue using aasource 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.

  1. Premise: [x¬A(x)]1\Discharge{\lexists[x][\lnot !A(x)]}{1}source 73
  2. Premise: [¬A(a)]2\Discharge{\lnot !A(a)}{2}source 74
  3. Premise: [xA(x)]3\Discharge{\lforall[x][!A(x)]}{3}source 75
  4. universal quantifier elimination rule: A(a)!A(a)source 77
  5. negation elimination rule: \lfalsesource 79
  6. negation introduction rule: ¬xA(x)\lnot \lforall[x][!A(x)]source 81
  7. existential quantifier elimination rule: ¬xA(x)\lnot \lforall[x][!A(x)]source 83
  8. conditional introduction rule: x¬A(x)¬xA(x)\lexists[x][\lnot !A(x)]\lif \lnot \lforall[x][!A(x)]source 85

source 72

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 aasource 91 does not occur in any assumptions it depends on, this is a correct derivation.

source 13

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 xC(x,b)\lexists[x][!C(x,b)]source 103 from the assumptions x(A(x)B(x))\lexists[x][(!A(x) \land !B(x))]source 103 and x(B(x)C(x,b))\lforall[x][(!B(x) \lif !C(x,b))]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.

  1. Premise
  2. inference rule: xC(x,b)\lexists[x][!C(x,b)]source 109

source 107

We have two premises to work with. To use the first, i.e., try to find a derivation of xC(x,b)\lexists[x][!C(x, b)]source 113 from x(A(x)B(x))\lexists[x][(!A(x) \land !B(x))]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.

  1. Premise: x(A(x)B(x))\lexists[x][(!A(x) \land !B(x))]source 118
  2. Premise: [A(a)B(a)]1\Discharge{!A(a) \land !B(a)}{1}source 119
  3. Subderivation conclusion: xC(x,b)\lexists[x][!C(x,b)]source 120
  4. existential quantifier elimination rule: xC(x,b)\lexists[x][!C(x,b)]source 122

source 117

The two assumptions we are working with share B!Bsource 124. It may be useful at this point to apply conjunction elimination rule to separate out B(a)!B(a)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.

  1. Premise: x(A(x)B(x))\lexists[x][(!A(x) \land !B(x)])source 127
  2. Premise: [A(a)B(a)]1\Discharge{!A(a) \land !B(a)}{1}source 128
  3. conjunction elimination rule: B(a)!B(a)source 131
  4. Subderivation conclusion: xC(x,b)\lexists[x][!C(x,b)]source 132
  5. existential quantifier elimination rule: xC(x,b)\lexists[x][!C(x,b)]source 134

source 126

The second assumption we have to work with is x(B(x)C(x,b))\lforall[x][(!B(x) \lif !C(x,b))]source 137. Since there is no eigenvariable condition we can instantiate xxsource 139 with the constant aasource 139 using universal quantifier elimination rule to get B(a)C(a,b)!B(a) \lif !C(a, b)source 140. We now have both B(a)C(a,b)!B(a) \lif !C(a,b)source 140 and B(a)!B(a)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.

  1. Premise: x(A(x)B(x))\lexists[x][(!A(x) \land !B(x))]source 144
  2. Premise: x(B(x)C(x,b))\lforall[x][(!B(x) \lif !C(x,b))]source 145
  3. universal quantifier elimination rule: B(a)C(a,b)!B(a) \lif !C(a,b)source 147
  4. Premise: [A(a)B(a)]1\Discharge{!A(a) \land !B(a)}{1}source 148
  5. conjunction elimination rule: B(a)!B(a)source 151
  6. conditional elimination rule: C(a,b)!C(a,b)source 153
  7. Subderivation conclusion: xC(x,b)\lexists[x][!C(x,b)]source 154
  8. existential quantifier elimination rule: xC(x,b)\lexists[x][!C(x,b)]source 157

source 143

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.

  1. Premise: x(A(x)B(x))\lexists[x][(!A(x) \land !B(x))]source 162
  2. Premise: x(B(x)C(x,b))\lforall[x][(!B(x) \lif !C(x,b))]source 163
  3. universal quantifier elimination rule: B(a)C(a,b)!B(a) \lif !C(a,b)source 165
  4. Premise: [A(a)B(a)]1\Discharge{!A(a) \land !B(a)}{1}source 166
  5. conjunction elimination rule: B(a)!B(a)source 169
  6. conditional elimination rule: C(a,b)!C(a,b)source 171
  7. existential quantifier introduction rule: xC(x,b)\lexists[x][!C(x,b)]source 173
  8. existential quantifier elimination rule: xC(x,b)\lexists[x][!C(x,b)]source 176

source 161

Since we ensured at each step that the eigenvariable conditions were not violated, we can be confident that this is a correct derivation.

source 96

Example 7

Give a derivation of the formula ¬xA(x)\lnot\lforall[x][!A(x)]source 185 from the assumptions xA(x)yB(y)\lforall[x][!A(x)] \lif \lexists[y][!B(y)]source 185 and ¬yB(y)\lnot\lexists[y][!B(y)]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.

  1. Premise
  2. inference rule: ¬xA(x)\lnot\lforall[x][!A(x)]source 190

source 188

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.

  1. Premise: [xA(x)]1\Discharge{\lforall[x][!A(x)]}{1}source 196
  2. Subderivation conclusion: \lfalsesource 197
  3. negation introduction rule: ¬xA(x)\lnot\lforall[x][!A(x)]source 199

source 195

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. xA(x)yB(y)\lforall[x][!A(x)] \lif \lexists[y][!B(y)]source 203 together with xA(x)\lforall[x][!A(x)]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.

  1. Premise: xA(x)yB(y)\lforall[x][!A(x)] \lif \lexists[y][!B(y)]source 206
  2. Premise: [xA(x)]1\Discharge{\lforall[x][!A(x)]}{1}source 207
  3. conditional elimination rule: yB(y)\lexists[y][!B(y)]source 209
  4. Subderivation conclusion: \lfalsesource 210
  5. negation introduction rule: ¬xA(x)\lnot\lforall[x][!A(x)]source 212

source 205

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.

  1. Premise: ¬yB(y)\lnot\lexists[y][!B(y)]source 218
  2. Premise: xA(x)yB(y)\lforall[x][!A(x)] \lif \lexists[y][!B(y)]source 219
  3. Premise: [xA(x)]1\Discharge{\lforall[x][!A(x)]}{1}source 220
  4. conditional elimination rule: yB(y)\lexists[y][!B(y)]source 222
  5. negation elimination rule: \lfalsesource 224
  6. negation introduction rule: ¬xA(x)\lnot\lforall[x][!A(x)]source 226

source 217

source 183

Problem 4

Give derivations that show the following:

  1. (xA(x)yB(y))z(A(z)B(z))\Proves (\lforall[x][!A(x)] \land \lforall[y][!B(y)]) \lif \lforall[z][(!A(z) \land !B(z))]source 233.

  2. (xA(x)yB(y))z(A(z)B(z))\Proves (\lexists[x][!A(x)] \lor \lexists[y][!B(y)]) \lif \lexists[z][(!A(z) \lor !B(z))]source 235.

  3. x(A(x)B)yA(y)B\lforall[x][(!A(x) \lif !B)] \Proves \lexists[y][!A(y)] \lif !Bsource 237.

  4. x¬A(x)¬xA(x)\lforall[x][\lnot !A(x)] \Proves \lnot\lexists[x][!A(x)]source 238.

  5. ¬xA(x)x¬A(x)\Proves \lnot\lexists[x][!A(x)] \lif \lforall[x][\lnot !A(x)]source 239.

  6. ¬xy(A(x,y)¬A(y,y)¬A(y,y)A(x,y))\Proves \lnot\lexists[x][\lforall[y][((!A(x,y) \lif \lnot !A(y,y)) \land (\lnot !A(y,y) \lif !A(x,y)))]]source 240.

source 230

Problem 5

Give derivations that show the following:

  1. ¬xA(x)x¬A(x)\Proves \lnot\lforall[x][!A(x)] \lif \lexists[x][\lnot!A(x)]source 248.

  2. (xA(x)B)y(A(y)B)(\lforall[x][!A(x)] \lif !B) \Proves \lexists[y][(!A(y) \lif !B)]source 249.

  3. x(A(x)yA(y))\Proves \lexists[x][(!A(x) \lif \lforall[y][!A(y)])]source 250.

(These all require the C\FalseClsource 252 rule.)

source 245

Proof-Theoretic Notions

Definition 10: Theorems

Theorems

A sentence A!Asource 33 is a theorem if there is a derivation of A!Asource 34 in natural deduction in which all assumptions are discharged. We write A\Proves !Asource 35 if A!Asource 35 is a theorem and A\Proves/ !Asource 36 if it is not.

source 32

Definition 11: Derivability

Derivability

A sentence A!Asource 40 is derivable from a set of sentences Γ\Gammasource 41, ΓA\Gamma \Proves !Asource 41, if there is a derivation with conclusion A!Asource 42 and in which every assumption is either discharged or is in Γ\Gammasource 43. If A!Asource 43 is not derivable from Γ\Gammasource 44 we write ΓA\Gamma \Proves/ !Asource 44.

source 39

Definition 12: Consistency

Consistency

A set of sentences Γ\Gammasource 48 is inconsistent iff Γ\Gamma \Proves \lfalsesource 48. If Γ\Gammasource 49 is not inconsistent, i.e., if Γ\Gamma \Proves/ \lfalsesource 50, we say it is consistent.

source 47

Proposition 1: Reflexivity

Reflexivity

If AΓ!A \in \Gammasource 55, then ΓA\Gamma \Proves !Asource 55.

source 53

Proof

The assumption A!Asource 59 by itself is a derivation of A!Asource 59 where every undischarged assumption (i.e., A!Asource 60) is in Γ\Gammasource 60.

End of proof.

Proposition 2: Monotonicity

Monotonicity

If ΓΔ\Gamma \subseteq \Deltasource 66 and ΓA\Gamma \Proves !Asource 66, then ΔA\Delta \Proves !Asource 66.

source 64

Proof

Any derivation of A!Asource 71 from Γ\Gammasource 71 is also a derivation of A!Asource 72 from Δ\Deltasource 72.

End of proof.

Proposition 3: Transitivity

Transitivity

If ΓA\Gamma \Proves !Asource 77 and {A}ΔB\{!A\} \cup \Delta \Proves !Bsource 77, then ΓΔB\Gamma \cup \Delta \Proves !Bsource 78.

source 75

Proof

If ΓA\Gamma \Proves !Asource 82, there is a derivation δ0\delta_0source 82 of A!Asource 82 with all undischarged assumptions in Γ\Gammasource 83. If {A}ΔB\{!A\} \cup \Delta \Proves !Bsource 83, then there is a derivation δ1\delta_1source 84 of B!Bsource 84 with all undischarged assumptions in {A}Δ\{!A\} \cup \Deltasource 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.

  1. Premise: Δ,[A]1\Delta, \Discharge{!A}{1}source 88
  2. Subderivation label: δ1\delta_1source 89
  3. Subderivation conclusion: B!Bsource 90
  4. conditional introduction rule: AB!A \lif !Bsource 92
  5. Premise: Γ\Gammasource 93
  6. Subderivation label: δ0\delta_0source 94
  7. Subderivation conclusion: A!Asource 95
  8. conditional elimination rule: B!Bsource 97

source 87

The undischarged assumptions are now all among ΓΔ\Gamma \cup \Deltasource 99, so this shows ΓΔB\Gamma \cup \Delta \Proves !Bsource 100.

End of proof.

When Γ={A1,A2,,Ak}\Gamma = \{!A_1, !A_2, \ldots, !A_k\}source 103 is a finite set we may use the simplified notation A1,A2,,AkB!A_1,!A_2,\ldots,!A_k \Proves !Bsource 103 for ΓB\Gamma \Proves !Bsource 103, in particular AB!A \Proves !Bsource 103 means that {A}B\{!A\} \Proves !Bsource 103.

Note that if ΓA\Gamma \Proves !Asource 105 and AB!A \Proves !Bsource 105, then ΓB\Gamma \Proves !Bsource 106. It follows also that if A1,,AnB!A_1, \dots, !A_n \Proves !Bsource 106 and ΓAi\Gamma \Proves !A_isource 107 for each iisource 107, then ΓB\Gamma \Proves !Bsource 108.

Proposition 4

The following are equivalent.

  1. Γ\Gammasource 114 is inconsistent.

  2. ΓA\Gamma \Proves {!A}source 115 for every sentence A{!A}source 115.

  3. ΓA\Gamma \Proves {!A}source 116 and Γ¬A\Gamma \Proves \lnot {!A}source 116 for some sentence A{!A}source 116.

source 110

Proof

Exercise.

End of proof.

Problem 6

Prove the proposition characterizing inconsistency by derivability of every sentence

source 125

Proposition 5: Compactness

Compactness

  1. If ΓA\Gamma \Proves !Asource 139 then there is a finite subset Γ0Γ\Gamma_0 \subseteq \Gammasource 139 such that Γ0A\Gamma_0 \Proves !Asource 140.

  2. If every finite subset of Γ\Gammasource 141 is consistent, then Γ\Gammasource 142 is consistent.

source 136

Proof

  1. If ΓA\Gamma \Proves !Asource 148, then there is a derivation δ\deltasource 149 of A!Asource 149 from Γ\Gammasource 149. Let Γ0\Gamma_0source 149 be the set of undischarged assumptions of δ\deltasource 150. Since any derivation is finite, Γ0\Gamma_0source 151 can only contain finitely many sentences. So, δ\deltasource 152 is a derivation of A!Asource 153 from a finite Γ0Γ\Gamma_0 \subseteq \Gammasource 153.

  2. This is the contrapositive of (1) for the special case A!A \ident \lfalsesource 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 ΓA\Gamma \Proves !Asource 20 and Γ{A}\Gamma \cup \{!A\}source 20 is inconsistent, then Γ\Gammasource 21 is inconsistent.

source 19

Proof

Let the derivation of A!Asource 25 from Γ\Gammasource 25 be δ1\delta_1source 25 and the derivation of \lfalsesource 26 from Γ{A}\Gamma \cup \{!A\}source 26 be δ2\delta_2source 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.

  1. Premise: Γ,[A]1\Gamma, \Discharge{!A}{1}source 29
  2. Subderivation label: δ2\delta_2source 30
  3. Subderivation conclusion: \lfalsesource 31
  4. negation introduction rule: ¬A\lnot !Asource 33
  5. Premise: Γ\Gammasource 34
  6. Subderivation label: δ1\delta_1source 35
  7. Subderivation conclusion: A!Asource 36
  8. negation elimination rule: \lfalsesource 38

source 28

In the new derivation, the assumption A!Asource 40 is discharged, so it is a derivation from Γ\Gammasource 41.

End of proof.

Proposition 7

ΓA\Gamma \Proves !Asource 46 iff Γ{¬A}\Gamma \cup \{\lnot !A\}source 46 is inconsistent.

source 44

Proof

First suppose ΓA\Gamma \Proves !Asource 50, i.e., there is a derivation δ0\delta_0source 51 of A!Asource 51 from undischarged assumptions Γ\Gammasource 52. We obtain a derivation of \lfalsesource 52 from Γ{¬A}\Gamma \cup \{\lnot !A\}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.

  1. Premise: ¬A\lnot !Asource 55
  2. Premise: Γ\Gammasource 56
  3. Subderivation label: δ0\delta_0source 57
  4. Subderivation conclusion: A!Asource 58
  5. negation elimination rule: \lfalsesource 60

source 54

Now assume Γ{¬A}\Gamma \cup \{\lnot !A\}source 63 is inconsistent, and let δ1\delta_1source 64 be the corresponding derivation of \lfalsesource 64 from undischarged assumptions in Γ{¬A}\Gamma \cup \{\lnot !A\}source 65. We obtain a derivation of A!Asource 66 from Γ\Gammasource 66 alone by using C\FalseClsource 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.

  1. Premise: Γ,[¬A]1\Gamma, \Discharge{\lnot !A}{1}source 68
  2. Subderivation label: δ1\delta_1source 69
  3. Subderivation conclusion: \lfalsesource 70
  4. classical contradiction rule: A!Asource 73

source 67

End of proof.

Problem 7

Prove that Γ¬A\Gamma \Proves \lnot !Asource 78 iff Γ{A}\Gamma \cup \{!A\}source 78 is inconsistent.

source 77

Proposition 8

If ΓA\Gamma \Proves !Asource 83 and ¬AΓ\lnot !A \in \Gammasource 83, then Γ\Gammasource 83 is inconsistent.

source 82

Proof

Suppose ΓA\Gamma \Proves !Asource 88 and ¬AΓ\lnot !A \in \Gammasource 88. Then there is a derivation δ\deltasource 89 of A!Asource 89 from Γ\Gammasource 89. Consider this simple application of the ¬Elim\Elim{\lnot}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.

  1. Premise: ¬A\lnot !Asource 92
  2. Premise: Γ\Gammasource 93
  3. Subderivation label: δ\deltasource 94
  4. Subderivation conclusion: A!Asource 95
  5. negation elimination rule: \lfalsesource 97

source 91

Since ¬AΓ\lnot !A \in \Gammasource 99, all undischarged assumptions are in Γ\Gammasource 100, this shows that Γ\Gamma \Proves \lfalsesource 100.

End of proof.

Proposition 9

If Γ{A}\Gamma \cup \{!A\}source 104 and Γ{¬A}\Gamma \cup \{\lnot !A\}source 104 are both inconsistent, then Γ\Gammasource 105 is inconsistent.

source 103

Proof

There are derivations δ1\delta_1source 109 and δ2\delta_2source 109 of \lfalsesource 109 from Γ{A}\Gamma \cup \{ !A \}source 110 and \lfalsesource 110 from Γ{¬A}\Gamma \cup \{ \lnot !A \}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.

  1. Premise: Γ,[¬A]2\Gamma, \Discharge{\lnot !A}{2}source 113
  2. Subderivation label: δ2\delta_2source 114
  3. Subderivation conclusion: \lfalsesource 115
  4. negation introduction rule: ¬¬A\lnot \lnot !Asource 117
  5. Premise: Γ,[A]1\Gamma, \Discharge{!A}{1}source 118
  6. Subderivation label: δ1\delta_1source 119
  7. Subderivation conclusion: \lfalsesource 120
  8. negation introduction rule: ¬A\lnot !Asource 122
  9. negation elimination rule: \lfalsesource 124

source 112

Since the assumptions A!Asource 126 and ¬A\lnot !Asource 126 are discharged, this is a derivation of \lfalsesource 127 from Γ\Gammasource 127 alone. Hence Γ\Gammasource 127 is inconsistent.

End of proof.

derivability and the Propositional Connectives

Proposition 10

  1. Both ABA!A \land !B \Proves !Asource 28 and ABB!A \land !B \Proves !Bsource 29

  2. A,BAB!A, !B \Proves !A \land !Bsource 30.

source 26

Proof

  1. 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.

    1. Premise: AB!A \land !Bsource 42
    2. conjunction elimination rule: B!Bsource 44

    source 41

    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.

    1. Premise: AB!A \land !Bsource 38
    2. conjunction elimination rule: A!Asource 40

    source 37

  2. 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.

    1. Premise: A!Asource 48
    2. Premise: B!Bsource 49
    3. conjunction introduction rule: AB!A \land !Bsource 51

    source 47

End of proof.

Proposition 11

  1. AB,¬A,¬B!A \lor !B, \lnot !A, \lnot !Bsource 59 is inconsistent.

  2. Both AAB!A \Proves !A \lor !Bsource 60 and BAB!B \Proves !A \lor !Bsource 60.

source 57

Proof

  1. 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.

    1. Premise: AB!A \lor !Bsource 68
    2. Premise: ¬A\lnot !Asource 69
    3. Premise: [A]1\Discharge{!A}{1}source 70
    4. negation elimination rule: \lfalsesource 72
    5. Premise: ¬B\lnot !Bsource 73
    6. Premise: [B]1\Discharge{!B}{1}source 74
    7. negation elimination rule: \lfalsesource 76
    8. disjunction elimination rule: \lfalsesource 78

    source 67

    This is a derivation of \lfalsesource 80 from undischarged assumptions AB!A \lor !Bsource 81, ¬A\lnot !Asource 81, and ¬B\lnot !Bsource 81.

  2. 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.

    1. Premise: B!Bsource 88
    2. disjunction introduction rule: AB!A \lor !Bsource 90

    source 87

    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.

    1. Premise: A!Asource 84
    2. disjunction introduction rule: AB!A \lor !Bsource 86

    source 83

End of proof.

Proposition 12

  1. A,ABB!A, !A \lif !B \Proves !Bsource 97.

  2. Both ¬AAB\lnot !A \Proves !A \lif !Bsource 99 and BAB!B \Proves !A \lif !Bsource 99.

source 95

Proof

  1. 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.

    1. Premise: AB!A \lif !Bsource 107
    2. Premise: A!Asource 108
    3. conditional elimination rule: B!Bsource 110

    source 106

  2. 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.

    1. Premise: B!Bsource 124
    2. conditional introduction rule: AB!A \lif !Bsource 126

    source 123

    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.

    1. Premise: ¬A\lnot !Asource 115
    2. Premise: [A]1\Discharge{!A}{1}source 116
    3. negation elimination rule: \lfalsesource 118
    4. falsehood elimination rule: B!Bsource 120
    5. conditional introduction rule: AB!A \lif !Bsource 122

    source 114

    Note that Intro\Intro{\lif}source 128 may, but does not have to, discharge the assumption A!Asource 129.

End of proof.

derivability and the Quantifiers

Theorem 1

If ccsource 22 is a constant not occurring in Γ\Gammasource 23 or A(x)!A(x)source 23 and ΓA(c)\Gamma \Proves !A(c)source 23, then ΓxA(x)\Gamma \Proves \lforall[x][!A(x)]source 23.

source 21

Proof

Let δ\deltasource 28 be a derivation of A(c)!A(c)source 28 from Γ\Gammasource 28. By adding a universal quantifier introduction rule inference, we obtain a derivation of xA(x)\lforall[x][!A(x)]source 30. Since ccsource 30 does not occur in Γ\Gammasource 30 or A(x)!A(x)source 30, the eigenvariable condition is satisfied.

End of proof.

Proposition 13

A(t)xA(x)!A(t) \Proves \lexists[x][!A(x)]source 37.

xA(x)A(t)\lforall[x][!A(x)] \Proves !A(t)source 39.

    source 34

    Proof

    The following is a derivation of xA(x)\lexists[x][!A(x)]source 46 from A(t)!A(t)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.

    1. Premise: A(t)!A(t)source 48
    2. existential quantifier introduction rule: xA(x)\lexists[x][!A(x)]source 50

    source 47

    The following is a derivation of A(t)!A(t)source 53 from xA(x)\lforall[x][!A(x)]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.

    1. Premise: xA(x)\lforall[x][!A(x)]source 56
    2. universal quantifier elimination rule: A(t)!A(t)source 58

    source 55

      End of proof.

      Soundness

      Theorem 2: Soundness

      Soundness

      If A!Asource 35 is derivable from the undischarged assumptions Γ\Gammasource 36, then ΓA\Gamma \Entails !Asource 36.

      source 33

      Proof

      Let δ\deltasource 40 be a derivation of A!Asource 40. We proceed by induction on the number of inferences in δ\deltasource 41.

      For the induction basis we show the claim if the number of inferences is 00source 44. In this case, δ\deltasource 44 consists only of a single sentence A!Asource 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 M\Struct{M}source 48 that satisfies all of the undischarged assumptions of the proof also satisfies A!Asource 50.

      Now for the inductive step. Suppose that δ\deltasource 52 contains nnsource 52 inferences. The premise(s) of the lowermost inference are derived using sub-derivations, each of which contains fewer than nnsource 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 A!Asource 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.

      1. 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.

        1. Premise: Γ,[A]n\Gamma, \Discharge{!A}{n}source 68
        2. Subderivation label: δ1\delta_1source 69
        3. Subderivation conclusion: \lfalsesource 70
        4. negation introduction rule: ¬A\lnot !Asource 72

        source 67

        By inductive hypothesis, \lfalsesource 74 follows from the undischarged assumptions Γ{A}\Gamma \cup \{!A\}source 75 of δ1\delta_1source 75. Consider a structure M\Struct{M}source 76. We need to show that, if MΓ\Sat{M}{\Gamma}source 77, then M¬A\Sat{M}{\lnot !A}source 78. Suppose for reductio that MΓ\Sat{M}{\Gamma}source 79, but M¬A\Sat/{M}{\lnot !A}source 80, i.e., MA\Sat{M}{!A}source 81. This would mean that MΓ{A}\Sat{M}{\Gamma \cup \{!A\}}source 82. This is contrary to our inductive hypothesis. So, M¬A\Sat{M}{\lnot !A}source 84.

      2. The last inference is conjunction elimination rule: There are two variants: A!Asource 86 or B!Bsource 87 may be inferred from the premise AB!A \land !Bsource 87. Consider the first case. The derivation δ\deltasource 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.

        1. Premise: Γ\Gammasource 90
        2. Subderivation label: δ1\delta_1source 91
        3. Subderivation conclusion: AB!A \land !Bsource 92
        4. conjunction elimination rule: A!Asource 94

        source 89

        By inductive hypothesis, AB!A \land !Bsource 96 follows from the undischarged assumptions Γ\Gammasource 97 of δ1\delta_1source 97. Consider a structure M\Struct{M}source 98. We need to show that, if MΓ\Sat{M}{\Gamma}source 99, then MA\Sat{M}{!A}source 100. Suppose MΓ\Sat{M}{\Gamma}source 101. By our inductive hypothesis (ΓAB\Gamma \Entails !A \land !Bsource 102), we know that MAB\Sat{M}{!A \land !B}source 103. By definition, MAB\Sat{M}{!A \land !B}source 104 iff MA\Sat{M}{!A}source 105 and MB\Sat{M}{!B}source 106. (The case where B!Bsource 106 is inferred from AB!A \land !Bsource 107 is handled similarly.)

      3. The last inference is disjunction introduction rule: There are two variants: AB!A \lor !Bsource 109 may be inferred from the premise A!Asource 110 or the premise B!Bsource 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.

        1. Premise: Γ\Gammasource 113
        2. Subderivation label: δ1\delta_1source 114
        3. Subderivation conclusion: A!Asource 115
        4. disjunction introduction rule: AB!A \lor !Bsource 117

        source 112

        By inductive hypothesis, A!Asource 119 follows from the undischarged assumptions Γ\Gammasource 120 of δ1\delta_1source 120. Consider a structure M\Struct{M}source 121. We need to show that, if MΓ\Sat{M}{\Gamma}source 122, then MAB\Sat{M}{!A \lor !B}source 123. Suppose MΓ\Sat{M}{\Gamma}source 124; then MA\Sat{M}{!A}source 125 since ΓA\Gamma \Entails !Asource 125 (the inductive hypothesis). So it must also be the case that MAB\Sat{M}{!A \lor !B}source 127. (The case where AB!A \lor !Bsource 127 is inferred from B!Bsource 128 is handled similarly.)

      4. The last inference is conditional introduction rule: AB!A \lif !Bsource 130 is inferred from a subproof with assumption A!Asource 131 and conclusion B!Bsource 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.

        1. Premise: Γ,[A]n\Gamma, \Discharge{!A}{n}source 133
        2. Subderivation label: δ1\delta_1source 134
        3. Subderivation conclusion: B!Bsource 135
        4. conditional introduction rule: AB!A \lif !Bsource 137

        source 132

        By inductive hypothesis, B!Bsource 139 follows from the undischarged assumptions of δ1\delta_1source 140, i.e., Γ{A}B\Gamma \cup \{!A\} \Entails !Bsource 140. Consider a structure M\Struct{M}source 142. The undischarged assumptions of δ\deltasource 143 are just Γ\Gammasource 143, since A!Asource 144 is discharged at the last inference. So we need to show that ΓAB\Gamma \Entails !A \lif !Bsource 145. For reductio, suppose that for some structure M\Struct{M}source 146, MΓ\Sat{M}{\Gamma}source 147 but MAB\Sat/{M}{!A \lif !B}source 148. So, MA\Sat{M}{!A}source 149 and MB\Sat/{M}{!B}source 150. But by hypothesis, B!Bsource 150 is a consequence of Γ{A}\Gamma \cup \{!A\}source 151, i.e., MB\Sat{M}{!B}source 152, which is a contradiction. So, ΓAB\Gamma \Entails !A \lif !Bsource 153.

      5. The last inference is falsehood elimination rule: Here, δ\deltasource 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.

        1. Premise: Γ\Gammasource 157
        2. Subderivation label: δ1\delta_1source 158
        3. Subderivation conclusion: \lfalsesource 159
        4. falsehood elimination rule: A!Asource 161

        source 156

        By induction hypothesis, Γ\Gamma \Entails \lfalsesource 163. We have to show that ΓA\Gamma \Entails !Asource 164. Suppose not; then for some M\Struct{M}source 165 we have MΓ\Sat{M}{\Gamma}source 166 and MA\Sat/{M}{!A}source 167. But we always have M\Sat/{M}{\lfalse}source 168, so this would mean that Γ\Gamma \Entails/ \lfalsesource 169, contrary to the induction hypothesis.

      6. The last inference is classical contradiction rule: Exercise.

      7. The last inference is universal quantifier introduction rule: Then δ\deltasource 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.

        1. Premise: Γ\Gammasource 177
        2. Subderivation label: δ1\delta_1source 178
        3. Subderivation conclusion: A(a)!A(a)source 179
        4. universal quantifier introduction rule: xA(x)\lforall[x][!A(x)]source 181

        source 176

        The premise A(a)!A(a)source 183 is a consequence of the undischarged assumptions Γ\Gammasource 184 by induction hypothesis. Consider some structure, M\Struct{M}source 185, such that MΓ\Sat{M}{\Gamma}source 185. We need to show that MxA(x)\Sat{M}{\lforall[x][!A(x)]}source 186. Since xA(x)\lforall[x][!A(x)]source 186 is a sentence, this means we have to show that for every variable assignment sssource 188, M,sA(x)\Sat{M}{!A(x)}[s]source 188 (the proposition giving the satisfaction clauses for quantifiers). Since Γ\Gammasource 189 consists entirely of sentences, M,sB\Sat{M}{!B}[s]source 190 for all BΓ!B \in \Gammasource 190 by the definition of satisfaction for first-order formulas. Let M\Struct{M'}source 191 be like M\Struct{M}source 192 except that aM=s(x)\Assign{a}{M'} = s(x)source 192. Since aasource 192 does not occur in Γ\Gammasource 193, MΓ\Sat{M'}{\Gamma}source 193 by the corollary that sentence satisfaction is independent of assignments. Since ΓA(a)\Gamma \Entails !A(a)source 194, MA(a)\Sat{M'}{!A(a)}source 195. Since A(a)!A(a)source 195 is a sentence, M,sA(a)\Sat{M'}{!A(a)}[s]source 196 by the proposition equating sentence satisfaction with truth in a structure. M,sA(x)\Sat{M'}{!A(x)}[s]source 197 iff MA(a)\Sat{M'}{!A(a)}source 198 by the proposition on extensionality of formulas under agreeing assignments (recall that A(a)!A(a)source 199 is just A(x)[a/x]\Subst{!A(x)}{a}{x}source 199). So, M,sA(x)\Sat{M'}{!A(x)}[s]source 200. Since aasource 200 does not occur in A(x)!A(x)source 200, by the extensionality proposition for term values and formula satisfaction, M,sA(x)\Sat{M}{!A(x)}[s]source 201. But sssource 201 was an arbitrary variable assignment, so MxA(x)\Sat{M}{\lforall[x][!A(x)]}source 203.

      8. The last inference is existential quantifier introduction rule: Exercise.

      9. 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.

      1. The last inference is conjunction introduction rule. AB!A \land !Bsource 216 is inferred from the premises A!Asource 217 and B!Bsource 217 and δ\deltasource 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.

        1. Premise: Γ1\Gamma_1source 219
        2. Subderivation label: δ1\delta_1source 220
        3. Subderivation conclusion: A!Asource 221
        4. Premise: Γ2\Gamma_2source 222
        5. Subderivation label: δ2\delta_2source 223
        6. Subderivation conclusion: B!Bsource 224
        7. conjunction introduction rule: AB!A \land !Bsource 226

        source 218

        By induction hypothesis, A!Asource 228 follows from the undischarged assumptions Γ1\Gamma_1source 229 of δ1\delta_1source 229 and B!Bsource 229 follows from the undischarged assumptions Γ2\Gamma_2source 230 of δ2\delta_2source 230. The undischarged assumptions of δ\deltasource 231 are Γ1Γ2\Gamma_1 \cup \Gamma_2source 231, so we have to show that Γ1Γ2AB\Gamma_1 \cup \Gamma_2 \Entails !A \land !Bsource 232. Consider a structure M\Struct{M}source 234 with MΓ1Γ2\Sat{M}{\Gamma_1 \cup \Gamma_2}source 235. Since MΓ1\Sat{M}{\Gamma_1}source 236, it must be the case that MA\Sat{M}{!A}source 237 as Γ1A\Gamma_1 \Entails !Asource 237, and since MΓ2\Sat{M}{\Gamma_2}source 238, MB\Sat{M}{!B}source 239 since Γ2B\Gamma_2 \Entails !Bsource 239. Together, MAB\Sat{M}{!A \land !B}source 240.

      2. The last inference is disjunction elimination rule: Exercise.

      3. The last inference is conditional elimination rule. B!Bsource 244 is inferred from the premises AB!A \lif !Bsource 245 and A!Asource 245. The derivation δ\deltasource 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.

        1. Premise: Γ1\Gamma_1source 247
        2. Subderivation label: δ1\delta_1source 248
        3. Subderivation conclusion: AB!A \lif !Bsource 249
        4. Premise: Γ2\Gamma_2source 250
        5. Subderivation label: δ2\delta_2source 251
        6. Subderivation conclusion: A!Asource 252
        7. conditional elimination rule: B!Bsource 254

        source 246

        By induction hypothesis, AB!A \lif !Bsource 256 follows from the undischarged assumptions Γ1\Gamma_1source 257 of δ1\delta_1source 257 and A!Asource 257 follows from the undischarged assumptions Γ2\Gamma_2source 258 of δ2\delta_2source 259. Consider a structure M\Struct{M}source 260. We need to show that, if MΓ1Γ2\Sat{M}{\Gamma_1 \cup \Gamma_2}source 261, then MB\Sat{M}{!B}source 262. Suppose MΓ1Γ2\Sat{M}{\Gamma_1 \cup \Gamma_2}source 263. Since Γ1AB\Gamma_1 \Entails !A \lif !Bsource 264, MAB\Sat{M}{!A \lif !B}source 264. Since Γ2A\Gamma_2 \Entails !Asource 265, we have MA\Sat{M}{!A}source 266. This means that MB\Sat{M}{!B}source 267 (For if MB\Sat/{M}{!B}source 268, since MA\Sat{M}{!A}source 269, we'd have MAB\Sat/{M}{!A \lif !B}source 270, contradicting MAB\Sat{M}{!A \lif !B}source 271).

      4. 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.

      source 280

      Corollary 1

      If A\Proves !Asource 293, then A!Asource 293 is valid.

      source 291

      Corollary 2

      If Γ\Gammasource 298 is satisfiable, then it is consistent.

      source 296

      Proof

      We prove the contrapositive. Suppose that Γ\Gammasource 302 is not consistent. Then Γ\Gamma \Proves \lfalsesource 303, i.e., there is a derivation of \lfalsesource 304 from undischarged assumptions in Γ\Gammasource 304. By the soundness theorem for natural deduction, any structure M\Struct{M}source 306 that satisfies Γ\Gammasource 307 must satisfy \lfalsesource 307. Since M\Sat/{M}{\lfalse}source 308 for every structure M\Struct{M}source 309, no M\Struct{M}source 310 can satisfy Γ\Gammasource 310, i.e., Γ\Gammasource 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.

      1. Premise
      2. identity introduction rule: t=t\eq[t][t]source 18

      source 19

      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.

      1. Cell 1: t one equals t two
      2. Cell 2: A of t one
      3. Cell 3: A of t two
      4. Cell 4: t one equals t two
      5. Cell 5: A of t two
      6. 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.

      1. Premise: t1=t2\eq[t_1][t_2]source 22
      2. Premise: A(t1)!A(t_1)source 23
      3. identity elimination rule: A(t2)!A(t_2)source 25

      source 26

      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.

      1. Premise: t1=t2\eq[t_1][t_2]source 28
      2. Premise: A(t2)!A(t_2)source 29
      3. identity elimination rule: A(t1)!A(t_1)source 31

      source 32

      source 21

      source 15

      In the above rules, ttsource 36, t1t_1source 36, and t2t_2source 36 are closed terms. The identity introduction rule rule allows us to derive any identity statement of the form t=t\eq[t][t]source 38 outright, from no assumptions.

      Example 8

      If sssource 41 and ttsource 41 are closed terms, then A(s),s=tA(t)!A(s), \eq[s][t] \Proves !A(t)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.

      1. Premise: s=t\eq[s][t]source 43
      2. Premise: A(s)!A(s)source 44
      3. identity elimination rule: =Elim\Elim{\eq}source 45 A(t)!A(t)source 46

      source 42

      This may be familiar as the “principle of substitutability of identicals,” or Leibniz' Law.

      source 40

      Problem 9

      Prove that ==source 53 is both symmetric and transitive, i.e., give derivations of xy(x=yy=x)\lforall[x][\lforall[y][(\eq[x][y] \lif \eq[y][x])]]source 54 and xyz((x=yy=z)x=z)\lforall[x][\lforall[y][\lforall[z]((\eq[x][y] \land \eq[y][z]) \lif \eq[x][z])]]source 55

      source 52

      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.

      xy((A(x)A(y))x=y)from the sentencexy(A(y)y=x)& \lforall[x][\lforall[y][((!A(x) \land !A(y)) \lif \eq[x][y])]] \intertext{from the !!{sentence}} & \lexists[x][\lforall[y][(!A(y) \lif \eq[y][x])]]source 61

      source 61

      We 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.

      1. Premise: xy(A(y)y=x),[A(a)A(b)]1\lexists[x][\lforall[y][(!A(y) \lif \eq[y][x])]] \quad \Discharge{!A(a) \land !A(b)}{1}source 68
      2. Subderivation conclusion: a=b\eq[a][b]source 70
      3. conditional introduction rule: ((A(a)A(b))a=b)((!A(a) \land !A(b)) \lif \eq[a][b])source 72
      4. universal quantifier introduction rule: y((A(a)A(y))a=y)\lforall[y][((!A(a) \land !A(y)) \lif \eq[a][y])]source 74
      5. universal quantifier introduction rule: xy((A(x)A(y))x=y)\lforall[x][\lforall[y][((!A(x) \land !A(y)) \lif \eq[x][y])]]source 76

      source 67

      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 a=b\eq[a][b]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.

      1. Premise: xy(A(y)y=x)\lexists[x][\lforall[y][(!A(y) \lif \eq[y][x])]]source 82
      2. Premise: [y(A(y)y=c)]2\Discharge{\lforall[y][(!A(y) \lif \eq[y][c]])}{2}source 83
      3. Marked premise: [A(a)A(b)]1\Discharge{!A(a) \land !A(b)}{1}source 85
      4. Subderivation conclusion: a=b\eq[a][b]source 86
      5. existential quantifier elimination rule: a=b\eq[a][b]source 88
      6. conditional introduction rule: ((A(a)A(b))a=b)((!A(a) \land !A(b)) \lif \eq[a][b])source 90
      7. universal quantifier introduction rule: y((A(a)A(y))a=y)\lforall[y][((!A(a) \land !A(y)) \lif \eq[a][y])]source 92
      8. universal quantifier introduction rule: xy((A(x)A(y))x=y)\lforall[x][\lforall[y][((!A(x) \land !A(y)) \lif \eq[x][y])]]source 94

      source 81

      The sub-derivation on the top right is completed by using its assumptions to show that a=c\eq[a][c]source 97 and b=c\eq[b][c]source 97. This requires two separate derivations. The derivation for a=c\eq[a][c]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.

      1. Premise: [y(A(y)y=c)]2\Discharge{\lforall[y][(!A(y) \lif \eq[y][c]])}{2}source 101
      2. universal quantifier elimination rule: A(a)a=c!A(a) \lif \eq[a][c]source 103
      3. Premise: [A(a)A(b)]1\Discharge{!A(a) \land !A(b)}{1}source 104
      4. conjunction elimination rule: A(a)!A(a)source 106
      5. conditional elimination rule: a=c\eq[a][c]source 108

      source 100

      From a=c\eq[a][c]source 110 and b=c\eq[b][c]source 110 we derive a=b\eq[a][b]source 110 by identity elimination rule.

      source 59

      Problem 10

      Give derivations of the following formulas:

      1. xy((x=yA(x))A(y))\lforall[x][\lforall[y][((\eq[x][y] \land !A(x)) \lif !A(y))]]source 117

      2. (xA(x)yz((A(y)A(z))y=z))x(A(x)y(A(y)y=x))\lexists[x][!A(x)] \land \lforall[y][\lforall[z][((!A(y) \land !A(z)) \lif \eq[y][z])]] \lif \lexists[x][(!A(x) \land \lforall[y][(!A(y) \lif \eq[y][x])])]source 118

      source 114

      Soundness with identity

      Proposition 14

      Natural deduction with rules for =\eqsource 14 is sound.

      source 13

      Proof

      Any formula of the form t=t\eq[t][t]source 18 is valid, since for every structure M\Struct Msource 19, Mt=t\Sat{M}{\eq[t][t]}source 19. (Note that we assume the term ttsource 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.

      1. Premise: Γ1\Gamma_1source 26
      2. Subderivation label: δ1\delta_1source 27
      3. Subderivation conclusion: t1=t2\eq[t_1][t_2]source 28
      4. Premise: Γ2\Gamma_2source 29
      5. Subderivation label: δ2\delta_2source 30
      6. Subderivation conclusion: A(t1)!A(t_1)source 31
      7. identity elimination rule: A(t2)!A(t_2)source 33

      source 25

      The premises t1=t2\eq[t_1][t_2]source 35 and A(t1)!A(t_1)source 35 are derived from undischarged assumptions Γ1\Gamma_1source 36 and Γ2\Gamma_2source 36, respectively. We want to show that A(t2)!A(t_2)source 37 follows from Γ1Γ2\Gamma_1 \cup \Gamma_2source 37. Consider a structure M\Struct{M}source 38 with MΓ1Γ2\Sat{M}{\Gamma_1 \cup \Gamma_2}source 38. By induction hypothesis, MA(t1)\Sat{M}{!A(t_1)}source 39 and Mt1=t2\Sat{M}{\eq[t_1][t_2]}source 40. Therefore, ValM(t1)=ValM(t2)\Value{t_1}{M} = \Value{t_2}{M}source 40. Let sssource 41 be any variable assignment, and m=ValM(t1)=ValM(t2)m = \Value{t_1}{M} = \Value{t_2}{M}source 41. By the proposition on extensionality of formulas under agreeing assignments, M,sA(t1)\Sat{M}{!A(t_1)}[s]source 42 iff M,s[m/x]A(x)\Sat{M}{!A(x)}[\Subst{s}{m}{x}]source 43 iff M,sA(t2)\Sat{M}{!A(t_2)}[s]source 43. Since MA(t1)\Sat{M}{!A(t_1)}source 44, we have MA(t2)\Sat{M}{!A(t_2)}source 44.

      End of proof.