Reading preferences

Optional display controls need JavaScript. All reading content and navigation work without it.

How to use Read

This page follows Axiomatic Deduction in source order. Its 475 formula occurrences remain native, unflattened MathML. Five printed derivations retain every line and formula segment; all eight source exercises remain unsolved.

Rules and derivation

Definition of an axiomatic derivation from Gamma

Derivability

If Γ\Gammasource 25 is a set of formulas of L\Lang Lsource 25 then a derivation from Γ\Gammasource 26 is a finite sequence A1!A_1source 26, …, An!A_nsource 27 of formulas where for each ini \le nsource 27 one of the following holds:

  1. AiΓ!A_i \in \Gammasource 30; or

  2. Ai!A_isource 31 is an axiom; or

  3. Ai!A_isource 32 follows from some Aj!A_jsource 32 (and Ak!A_ksource 32) with j<ij < isource 32 (and k<ik < isource 33) by a rule of inference.

source 24

What counts as a correct derivation depends on which inference rules we allow (and of course what we take to be axioms). And an inference rule is an if-then statement that tells us that, under certain conditions, a step AiA_isource 40 in a derivation is a correct inference step.

Definition of a rule of inference

Rule of inference

A rule of inference gives a sufficient condition for what counts as a correct inference step in a derivation from Γ\Gammasource 45.

source 43

For instance, since any one-element sequence A!Asource 48 with AΓ!A \in \Gammasource 48 trivially counts as a derivation, the following might be a very simple rule of inference:

If AΓ!A \in \Gammasource 52, then A!Asource 52 is always a correct inference step in any derivation from Γ\Gammasource 53.

Similarly, if A!Asource 55 is one of the axioms, then A!Asource 55 by itself is a derivation, and so this is also a rule of inference:

If A!Asource 58 is an axiom, then A!Asource 58 is a correct inference step.

It gets more interesting if the rule of inference appeals to formulas that appear before the step considered. The following rule is called modus ponens:

If BA!B \lif !Asource 64 and B!Bsource 64 occur higher up in the derivation, then A!Asource 65 is a correct inference step.

If this is the only rule of inference, then our definition of derivation above amounts to this: A1!A_1source 68, …, An!A_nsource 68 is a derivation iff for each ini \le nsource 69 one of the following holds:

  1. AiΓ!A_i \in \Gammasource 71; or

  2. Ai!A_isource 72 is an axiom; or

  3. for some j<ij < isource 73, Aj!A_jsource 73 is BAi!B \lif !A_isource 73, and for some k<ik < isource 73, Ak!A_ksource 74 is B!Bsource 74.

The last clause says that Ai!A_isource 76 follows from Aj!A_jsource 76 (BAi!B \lif !A_isource 76) and Ak!A_ksource 76 (B!Bsource 77) by modus ponens. If we can go from 11source 77 to nnsource 77, and each time we find a formula Ai!A_isource 78 that is either in Γ\Gammasource 78, an axiom, or which a rule of inference tells us that it is a correct inference step, then the entire sequence counts as a correct derivation.

Definition of derivability in Rules and derivations

Derivability

A formula A!Asource 84 is derivable from Γ\Gammasource 84, written ΓA\Gamma \Proves !Asource 85, if there is a derivation from Γ\Gammasource 85 ending in A!Asource 86.

source 83

Definition of theoremhood in Rules and derivations

Theorems

A formula A!Asource 90 is a theorem if there is a derivation of A!Asource 91 from the empty set. We write A\Proves !Asource 91 if A!Asource 91 is a theorem and A\Proves/ !Asource 92 if it is not.

source 89

Axioms and Rules for the Propositional Connectives

Definition of the propositional axiom set

Axioms

The set of Ax0\PAxsource 16 of axioms for the propositional connectives comprises all formulas of the following forms:

The fourteen propositional axiom schemes

The display lists fourteen schemes in source order: three for conjunction, three for disjunction, two for the conditional, two for negation, one for truth, two for falsity, and double-negation elimination.

  1. (AB)A(AB)BA(B(AB))A(AB)A(BA)(AC)((BC)((AB)C))A(BA)(A(BC))((AB)(AC))(AB)((A¬B)¬A)¬A(AB)A(A)¬A¬¬AA& (!A \land !B) \lif !A \ollabel{ax:land1}\\ & (!A \land !B) \lif !B \ollabel{ax:land2}\\ & !A \lif (!B \lif (!A \land !B)) \ollabel{ax:land3}\\ & !A \lif (!A \lor !B) \ollabel{ax:lor1}\\ & !A \lif (!B \lor !A) \ollabel{ax:lor2}\\ & (!A \lif !C) \lif ((!B \lif !C) \lif ((!A \lor !B) \lif !C)) \ollabel{ax:lor3}\\ & !A \lif (!B \lif !A) \ollabel{ax:lif1}\\ & (!A \lif (!B \lif !C)) \lif ((!A \lif !B) \lif (!A \lif !C)) \ollabel{ax:lif2}\\ & (!A \lif !B) \lif ((!A \lif \lnot !B) \lif \lnot !A) \ollabel{ax:lnot1}\\ & \lnot !A \lif (!A \lif !B) \ollabel{ax:lnot2}\\ & \ltrue \ollabel{ax:ltrue}\\ & \lfalse \lif !A \ollabel{ax:lfalse1}\\ & (!A \lif \lfalse) \lif \lnot !A \ollabel{ax:lfalse2}\\ & \lnot\lnot !A \lif !A \ollabel{ax:dne}source 18

source 18

source 15

Definition of modus ponens

Modus ponens

If B!Bsource 37 and BA!B \lif !Asource 37 already occur in a derivation, then A!Asource 37 is a correct inference step.

source 36

We'll abbreviate the rule modus ponens as “modus ponens.”

Axioms and Rules for Quantifiers

Definition of the two quantifier axiom schemes

Axioms for quantifiers

The axioms governing quantifiers are all instances of the following:

The universal and existential quantifier axiom display

The nested display gives the two quantifier schemes in source order: universal instantiation first and existential introduction second.

  1. quantifier axiom onex(B)B(t)quantifier axiom twoB(t)x(B)\ollabel{ax:q1} & \lforall[x][!B] \lif !B(t), \\ \ollabel{ax:q2} & !B(t) \lif \lexists[x][!B].source 16

source 16

for any closed term ttsource 20.

source 13

Definition of the two quantifier inference rules

Rules for quantifiers

  1. If BA(a)!B \lif !A(a)source 24 already occurs in the derivation and aasource 24 does not occur in Γ\Gammasource 25 or B!Bsource 25, then Bx(A(x))!B \lif \lforall[x][!A(x)]source 25 is a correct inference step.

  2. If A(a)B!A(a) \lif !Bsource 27 already occurs in the derivation and aasource 27 does not occur in Γ\Gammasource 28 or B!Bsource 28, then x(A(x))B\lexists[x][!A(x)] \lif !Bsource 28 is a correct inference step.

source 23

We'll abbreviate either of these by “quantifier rule.”

Examples of derivation

Example deriving the conditional from not D or E to the conditional from D to E

Suppose we want to prove (¬DE)(DE)(\lnot !D \lor !E) \lif (!D \lif !E)source 17. Clearly, this is not an instance of any of our axioms, so we have to use the modus ponens rule to derive it. Our only rule is MP, which given A!Asource 20 and AB!A \lif !Bsource 20 allows us to justify B!Bsource 20. One strategy would be to use Reference to the third disjunction axiom scheme with A!Asource 21 being ¬D\lnot !Dsource 21, B!Bsource 22 being E!Esource 22, and C!Csource 22 being DE!D \lif !Esource 22, i.e., the instance (¬D(DE))((E(DE))((¬DE)(DE))).(\lnot !D \lif (!D \lif !E)) \lif ((!E \lif (!D \lif !E)) \lif ((\lnot !D \lor !E) \lif (!D \lif !E))).source 23 Why? Two applications of MP yield the last part, which is what we want. And we easily see that ¬D(DE)\lnot !D \lif (!D \lif !E)source 28 is an instance of Reference to the second negation axiom scheme, and E(DE)!E \lif (!D \lif !E)source 29 is an instance of Reference to the first conditional axiom scheme. So our derivation is:

Five-line derivation from not D or E to D implies E

The derivation uses three named propositional axiom schemes and two applications of modus ponens. A long formula on line two is split across two printed rows and is preserved as two ordered source segments.

  1. Printed line 1. Justification: the second negation axiom scheme.

    1. ¬D(DE)\lnot !D \lif (!D \lif !E)source 32
  2. Printed line 2. Justification: the third disjunction axiom scheme.

    1. (¬D(DE))continued on the next display line(\lnot !D \lif (!D \lif !E)) \lif {}source 33
    2. ((E(DE))((¬DE)(DE)))((!E \lif (!D \lif !E)) \lif ((\lnot !D \lor !E) \lif (!D \lif !E)))source 34
  3. Printed line 3. Justification: modus ponens from lines one and two.

    1. (E(DE))((¬DE)(DE))(!E \lif (!D \lif !E)) \lif ((\lnot !D \lor !E) \lif (!D \lif !E))source 35
  4. Printed line 4. Justification: the first conditional axiom scheme.

    1. E(DE)!E \lif (!D \lif !E)source 36
  5. Printed line 5. Justification: modus ponens from lines three and four.

    1. (¬DE)(DE)(\lnot !D \lor !E) \lif (!D \lif !E)source 37
Resolved references
  1. Reference to the second negation axiom scheme
  2. Reference to the third disjunction axiom scheme
  3. Reference to the first conditional axiom scheme

source 31

source 16

Example deriving the identity conditional

Let's try to find a derivation of DD!D \lif !Dsource 42. It is not an instance of an axiom, so we have to use modus ponens to derive it. Reference to the first conditional axiom scheme is an axiom of the form AB!A \lif !Bsource 44 to which we could apply modus ponens. To be useful, of course, the B!Bsource 45 which modus ponens would justify as a correct step in this case would have to be DD!D \lif !Dsource 46, since this is what we want to derive. That means A!Asource 47 would also have to be D!Dsource 48, i.e., we might look at this instance of Reference to the first conditional axiom scheme: D(DD)!D \lif (!D \lif !D)source 50 In order to apply modus ponens, we would also need to justify the corresponding second premise, namely A!Asource 54. But in our case, that would be D!Dsource 54, and we won't be able to derive D!Dsource 55 by itself. So we need a different strategy.

The other axiom involving just \lifsource 58 is Reference to the second conditional axiom scheme, i.e., (A(BC))((AB)(AC))(!A \lif (!B \lif !C)) \lif ((!A \lif !B) \lif (!A \lif !C))source 59 We could get to the last nested conditional by applying modus ponens twice. Again, that would mean that we want an instance of Reference to the second conditional axiom scheme where AC!A \lif !Csource 64 is DD!D \lif !Dsource 64, the formula we are aiming for. Then of course, A!Asource 65 and C!Csource 65 are both D!Dsource 65. How should we pick B!Bsource 66 so that both A(BC)!A \lif (!B \lif !C)source 66 and AB!A \lif !Bsource 66, i.e., in our case D(BD)!D \lif (!B \lif !D)source 67 and DB!D \lif !Bsource 67, are also derivable? Well, the first of these is already an instance of Reference to the first conditional axiom scheme, whatever we decide B!Bsource 69 to be. And DB!D \lif !Bsource 69 would be another instance of Reference to the first conditional axiom scheme if B!Bsource 70 were (DD)(!D \lif !D)source 70. So, our derivation is:

Five-line derivation of D implies D

The derivation uses three conditional-axiom instances and two applications of modus ponens. Its second line is preserved as two ordered printed formula segments.

  1. Printed line 1. Justification: the first conditional axiom scheme.

    1. D((DD)D)!D \lif ((!D \lif !D) \lif !D)source 73
  2. Printed line 2. Justification: the second conditional axiom scheme.

    1. (D((DD)D))continued on the next display line(!D \lif ((!D \lif !D) \lif !D)) \lif {}source 74
    2. ((D(DD))(DD))((!D \lif (!D \lif !D)) \lif (!D \lif !D))source 75
  3. Printed line 3. Justification: modus ponens from lines one and two.

    1. (D(DD))(DD)(!D \lif (!D \lif !D)) \lif (!D \lif !D)source 76
  4. Printed line 4. Justification: the first conditional axiom scheme.

    1. D(DD)!D \lif (!D \lif !D)source 77
  5. Printed line 5. Justification: modus ponens from lines three and four.

    1. DD!D \lif !Dsource 78
Resolved references
  1. Reference to the first conditional axiom scheme
  2. Reference to the second conditional axiom scheme
  3. Reference to the first conditional axiom scheme

source 72

source 41

Example chaining two conditionals

Sometimes we want to show that there is a derivation of some formula from some other formulas Γ\Gammasource 84. For instance, let's show that we can derive AC!A \lif !Csource 85 from Γ={AB,BC}\Gamma = \{!A \lif !B, !B \lif !C\}source 85.

Seven-line derivation chaining A implies B and B implies C

The seven-line derivation begins with two hypotheses, adds instances of the two conditional axiom schemes, and applies modus ponens three times. Its fifth line spans two printed formula segments.

  1. Printed line 1. Justification: hypothesis.

    1. AB!A \lif !Bsource 88
  2. Printed line 2. Justification: hypothesis.

    1. BC!B \lif !Csource 89
  3. Printed line 3. Justification: the first conditional axiom scheme.

    1. (BC)(A(BC))(!B \lif !C) \lif (!A \lif (!B \lif !C))source 90
  4. Printed line 4. Justification: modus ponens from lines two and three.

    1. A(BC)!A \lif (!B \lif !C)source 91
  5. Printed line 5. Justification: the second conditional axiom scheme.

    1. (A(BC))continued on the next display line(!A \lif (!B \lif !C)) \lif {}source 92
    2. ((AB)(AC))((!A \lif !B) \lif (!A \lif !C))source 93
  6. Printed line 6. Justification: modus ponens from lines four and five.

    1. ((AB)(AC))((!A \lif !B) \lif (!A \lif !C))source 94
  7. Printed line 7. Justification: modus ponens from lines one and six.

    1. AC!A \lif !Csource 95
Resolved references
  1. Reference to the first conditional axiom scheme
  2. Reference to the second conditional axiom scheme

source 87

The lines labelled “hypothesis” (for “hypothesis”) indicate that the formula on that line is a element of Γ\Gammasource 98.

source 82

Proposition: chaining derivable conditionals

If ΓAB\Gamma \Proves !A \lif !Bsource 102 and ΓBC\Gamma \Proves !B \lif !Csource 102, then ΓAC\Gamma \Proves !A \lif !Csource 103

source 101

Proof

Suppose ΓAB\Gamma \Proves !A \lif !Bsource 107 and ΓBC\Gamma \Proves !B \lif !Csource 107. Then there is a derivation of AB!A \lif !Bsource 108 from Γ\Gammasource 108; and a derivation of BC!B \lif !Csource 109 from Γ\Gammasource 109 as well. Combine these into a single derivation by concatenating them. Now add lines 3–7 of the derivation in the preceding example. This is a derivation of AC!A \lif !Csource 112—which is the last line of the new derivation—from Γ\Gammasource 113. Note that the justifications of lines 4 and 7 remain valid if the reference to line number 1 is replaced by reference to the last line of the derivation of AB!A \lif !Bsource 115, and reference to line number 2 by reference to the last line of the derivation of BC!B \lif !Csource 117.

End of proof.

Exercise: three derivations from the propositional axioms

Show that the following hold by exhibiting derivations from the axioms:

  1. (AB)(BA)(!A \land !B) \lif (!B \land !A)source 124

  2. ((AB)C)(A(BC))((!A \land !B) \lif !C) \lif (!A \lif (!B \lif !C))source 125

  3. ¬(AB)¬A\lnot(!A \lor !B) \lif \lnot !Asource 126

source 120

derivation with Quantifiers

Example deriving a conjunction of universal formulas pointwise

Let us give a derivation of (x(A(x))y(B(y)))x((A(x)B(x)))(\lforall[x][!A(x)] \land \lforall[y][!B(y)]) \lif \lforall[x][(!A(x) \land !B(x))]source 14.

First, note that

Source-ordered quantified derivation display

The display records the complete source-order argument from the conjunction of two universal formulas to the universal closure of their pointwise conjunction, including every intermediate conditional.

  1. formula row one(x(A(x))y(B(y)))x(A(x))is an instance of the first conjunction axiom, andformula row twox(A(x))A(a)of the universal-instantiation axiom. So, by the chain proposition, we know thatformula row three(x(A(x))y(B(y)))A(a)is derivable. Likewise, sinceformula row four(x(A(x))y(B(y)))y(B(y))formula row fivey(B(y))B(a)are instances of the second conjunction axiom and the universal-instantiation axiom, respectivelyformula row six(x(A(x))y(B(y)))B(a)is derivable by the chain proposition. Using an appropriate instance of the conjunction-introduction axiom and two applications of modus ponens, we see thatformula row seven(x(A(x))y(B(y)))(A(a)B(a))is derivable. We can now apply the quantifier rule to obtainformula row eight(x(A(x))y(B(y)))x((A(x)B(x)))(\lforall[x][!A(x)] \land \lforall[y][!B(y)]) & \lif \lforall[x][!A(x)]\\ \intertext{is an instance of \olref[prp]{ax:land1}, and} \lforall[x][!A(x)] & \lif !A(a) \\ \intertext{of \olref[qua]{ax:q1}. So, by \olref[pro]{prop:chain}, we know that} (\lforall[x][!A(x)] \land \lforall[y][!B(y)]) & \lif !A(a) \\ \intertext{is !!{derivable}. Likewise, since} (\lforall[x][!A(x)] \land \lforall[y][!B(y)]) & \lif \lforall[y][!B(y)] \qquad\text{and}\\ \lforall[y][!B(y)] & \lif !B(a)\\ \intertext{are instances of \olref[prp]{ax:land2} and \olref[qua]{ax:q1}, respectively,} (\lforall[x][!A(x)] \land \lforall[y][!B(y)]) & \lif !B(a)\\ \intertext{is derivable by \olref[pro]{prop:chain}. Using an appropriate instance of \olref[prp]{ax:land3} and two applications of~\MP, we see that} (\lforall[x][!A(x)] \land \lforall[y][!B(y)]) & \lif (!A(a) \land !B(a))\\ \intertext{is derivable. We can now apply \QR{} to obtain} (\lforall[x][!A(x)] \land \lforall[y][!B(y)]) & \lif \lforall[x][(!A(x) \land !B(x))].source 18
Resolved references
  1. Reference to the first conjunction axiom scheme
  2. Reference to the universal-instantiation axiom scheme
  3. Reference to the proposition chaining derivable conditionals
  4. Reference to the second conjunction axiom scheme
  5. Reference to the universal-instantiation axiom scheme
  6. Reference to the proposition chaining derivable conditionals
  7. Reference to the third conjunction axiom scheme

source 18

source 13

Proof-Theoretic Notions

Definition of derivability in Proof-Theoretic Notions

Derivability

A formula A!Asource 27 is derivable from Γ\Gammasource 27, written ΓA\Gamma \Proves !Asource 28, if there is a derivation from Γ\Gammasource 28 ending in A!Asource 29.

source 26

Definition of theoremhood in Proof-Theoretic Notions

Theorems

A formula A!Asource 33 is a theorem if there is a derivation of A!Asource 34 from the empty set. We write A\Proves !Asource 34 if A!Asource 34 is a theorem and A\Proves/ !Asource 35 if it is not.

source 32

Definition of consistency

Consistency

A set Γ\Gammasource 39 of formulas is consistent if and only if Γ\Gamma\Proves/ \lfalsesource 40; it is inconsistent otherwise.

source 38

Proposition: reflexivity of derivability

Reflexivity

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

source 43

Proof

The formula A!Asource 49 by itself is a derivation of A!Asource 49 from Γ\Gammasource 49.

End of proof.

Proposition: monotonicity of derivability

Monotonicity

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

source 52

Proof

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

End of proof.

Proposition: transitivity of derivability

Transitivity

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

source 63

Proof

Suppose {A}ΔB\{!A\} \cup \Delta \Proves !Bsource 70. Then there is a derivation B1!B_1source 71, …, Bl=B!B_l = !Bsource 71 from {A}Δ\{!A\} \cup \Deltasource 71. Some of the steps in that derivation will be correct because of a rule which refers to a prior line Bi=A!B_i = !Asource 73. By hypothesis, there is a derivation of A!Asource 74 from Γ\Gammasource 74, i.e., a derivation A1!A_1source 75, …, Ak=A!A_k = !Asource 75 where every Ai!A_isource 75 is an axiom, a element of Γ\Gammasource 76, or correct by a rule of inference. Now consider the sequence A1,,Ak=A,B1,,Bl=B.!A_1, \dots, !A_k = !A, !B_1, \dots, !B_l = !B.source 78 This is a correct derivation of B!Bsource 81 from ΓΔ\Gamma \cup \Deltasource 81 since every Bi=AB_i = !Asource 82 is now justified by the same rule which justifies Ak=A!A_k = !Asource 83.

End of proof.

Note that this means that in particular if ΓA\Gamma \Proves !Asource 86 and AB!A \Proves !Bsource 86, then ΓB\Gamma \Proves !Bsource 87. It follows also that if A1,,AnB!A_1, \dots, !A_n \Proves !Bsource 87 and ΓAi\Gamma \Proves !A_isource 88 for each iisource 88, then ΓB\Gamma \Proves !Bsource 89.

Proposition: inconsistency and derivability of every formula

Γ\Gammasource 93 is inconsistent iff ΓA\Gamma \Proves !Asource 93 for every A!Asource 93.

source 91

Proof

Exercise.

End of proof.

Exercise: prove the first-order inconsistency characterization

Prove Reference to the proposition characterizing inconsistency by derivability.

source 101

Proposition: compactness of axiomatic derivability

Compactness

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

  2. If every finite subset of Γ\Gammasource 117 is consistent, then Γ\Gammasource 118 is consistent.

source 112

Proof

  1. If ΓA\Gamma \Proves !Asource 124, then there is a finite sequence of formulas A1!A_1source 125, …, An!A_nsource 125 so that AAn!A \ident !A_nsource 125 and each Ai!A_isource 126 is either a logical axiom, a element of Γ\Gammasource 126 or follows from previous formulas by modus ponens. Take Γ0\Gamma_0source 128 to be those Ai!A_isource 128 which are in Γ\Gammasource 128. Then the derivation is likewise a derivation from Γ0\Gamma_0source 129, and so Γ0A\Gamma_0 \Proves !Asource 130.

  2. This is the contrapositive of (1) for the special case A!A \ident \lfalsesource 131.

End of proof.

The Deduction Theorem

As we've seen, giving derivations in an axiomatic system is cumbersome, and derivations may be hard to find. Rather than actually write out long lists of formulas, it is generally easier to argue that such derivations exist, by making use of a few simple results. We've already established three such results: Reference to the reflexivity proposition for derivability says we can always assert that ΓA\Gamma \Proves !Asource 23 when we know that AΓ!A \in \Gammasource 24. Reference to the monotonicity proposition for derivability says that if ΓA\Gamma \Proves !Asource 25 then also Γ{B}A\Gamma \cup \{!B\} \Proves !Asource 26. And Reference to the transitivity proposition for derivability implies that if ΓA\Gamma \Proves !Asource 27 and AB!A \Proves !Bsource 28, then ΓB\Gamma \Proves !Bsource 28. Here's another simple result, a “meta”-version of modus ponens:

Proposition: meta-level modus ponens

If ΓA\Gamma \Proves !Asource 32 and ΓAB\Gamma \Proves !A \lif !Bsource 32, then ΓB\Gamma \Proves !Bsource 33.

source 31

Proof

We have that {A,AB}B\{!A, !A \lif !B\} \Proves !Bsource 37:

Three-line derivation by modus ponens

The derivation takes A and the conditional from A to B as hypotheses, then obtains B by modus ponens.

  1. Printed line 1. Justification: hypothesis.

    1. A!Asource 39
  2. Printed line 2. Justification: hypothesis.

    1. AB!A \lif !Bsource 40
  3. Printed line 3. Justification: modus ponens from lines one and two.

    1. B!Bsource 41

source 38

By Reference to the transitivity proposition for derivability, ΓB\Gamma \Proves !Bsource 43.

End of proof.

The most important result we'll use in this context is the deduction theorem:

The Deduction Theorem

Deduction Theorem

Γ{A}B\Gamma \cup \{!A\} \Proves !Bsource 50 if and only if ΓAB\Gamma \Proves !A \lif !Bsource 51.

source 49

Proof

The “if” direction is immediate. If ΓAB\Gamma \Proves !A \lif !Bsource 55 then also Γ{A}AB\Gamma \cup \{!A\} \Proves !A \lif !Bsource 56 by Reference to the monotonicity proposition for derivability. Also, Γ{A}A\Gamma \cup \{!A\} \Proves !Asource 57 by Reference to the reflexivity proposition for derivability. So, by Reference to the meta-level modus ponens proposition, Γ{A}B\Gamma \cup \{!A\} \Proves !Bsource 58.

For the “only if” direction, we proceed by induction on the length of the derivation of B!Bsource 62 from Γ{A}\Gamma \cup \{!A\}source 62.

For the induction basis, we prove the claim for every derivation of length 11source 65. A derivation of B!Bsource 65 from Γ{A}\Gamma \cup \{!A\}source 65 of length 11source 66 consists of B!Bsource 66 by itself; and if it is correct B!Bsource 66 is either BΓ{A}\in \Gamma \cup \{!A\}source 67 or is an axiom. If BΓ!B \in \Gammasource 67 or is an axiom, then ΓB\Gamma \Proves !Bsource 68. We also have that ΓB(AB)\Gamma \Proves !B \lif (!A \lif !B)source 68 by Reference to the first conditional axiom scheme, and Reference to the meta-level modus ponens proposition gives ΓAB\Gamma \Proves !A \lif !Bsource 70. If B{A}!B \in \{ !A\}source 70 then ΓAB\Gamma \Proves !A \lif !Bsource 71 because the last sentence AB!A \lif !Bsource 71 is the same as AA!A \lif !Asource 72, and we have derived that in Reference to the example deriving the identity conditional.

For the inductive step, suppose a derivation of B!Bsource 75 from Γ{A}\Gamma \cup \{!A\}source 76 ends with a step B!Bsource 76 which is justified by modus ponens. (If it is not justified by modus ponens, BΓ!B \in \Gammasource 77, BA!B \ident !Asource 77, or B!Bsource 78 is an axiom, and the same reasoning as in the induction basis applies.) Then some previous steps in the derivation are CB!C \lif !Bsource 80 and C!Csource 80, for some formula C!Csource 80, i.e., Γ{A}CB\Gamma \cup \{!A\} \Proves !C \lif !Bsource 81 and Γ{A}C\Gamma \cup \{!A\} \Proves !Csource 81, and the respective derivations are shorter, so the inductive hypothesis applies to them. We thus have both:

The two induction-hypothesis consequences

The display records the two consequences supplied by the induction hypothesis in the proof of the Deduction Theorem, preserving their printed order.

  1. ΓA(CB);ΓAC.& \Gamma \Proves !A \lif (!C \lif !B); \\ & \Gamma \Proves !A \lif !C.source 84

source 84

But also Γ(A(CB))((AC)(AB)),\Gamma \Proves (!A \lif (!C \lif !B)) \lif ((!A\lif !C) \lif (!A \lif !B)),source 89 by Reference to the second conditional axiom scheme, and two applications of Reference to the meta-level modus ponens proposition give ΓAB\Gamma \Proves !A \lif !Bsource 94, as required.

End of proof.

Notice how Reference to the first conditional axiom scheme and Reference to the second conditional axiom scheme were chosen precisely so that the Deduction Theorem would hold.

The following are some useful facts about derivability, which we leave as exercises.

Proposition: five useful derivability facts

  1. (AB)((BC)(AC))\Proves (!A \lif !B) \lif ((!B \lif !C) \lif (!A \lif !C)source 106;

  2. If Γ{¬A}¬B\Gamma \cup \{ \lnot !A\} \Proves \lnot !Bsource 108 then Γ{B}A\Gamma \cup \{ !B\} \Proves !Asource 109 (Contraposition);

  3. {A,¬A}B\{ !A, \lnot!A\} \Proves !Bsource 111 (Ex Falso Quodlibet, Explosion);

  4. {¬¬A}A\{ \lnot\lnot!A\} \Proves !Asource 113 (Double Negation Elimination);

  5. If Γ¬¬A\Gamma \Proves \lnot\lnot!Asource 115 then ΓA\Gamma \Proves !Asource 115;

source 103

Exercise: prove the five first-order derivability facts

Prove Reference to the proposition listing five derivability facts

source 121

The Deduction Theorem with Quantifiers

The Deduction Theorem with quantifiers

Deduction Theorem

If Γ{A}B\Gamma \cup \{!A\} \Proves !Bsource 14, then ΓAB\Gamma \Proves !A \lif !Bsource 15.

source 13

Proof

We again proceed by induction on the length of the derivation of B!Bsource 20 from Γ{A}\Gamma \cup \{!A\}source 20.

The proof of the induction basis is identical to that in the proof of Reference to the Deduction Theorem.

For the inductive step, suppose again that the derivation of B!Bsource 25 from Γ{A}\Gamma \cup \{!A\}source 26 ends with a step B!Bsource 26 which is justified by an inference rule. If the inference rule is modus ponens, we proceed as in the proof of Reference to the Deduction Theorem. If the inference rule is quantifier rule, we know that B=uivCx(D(x))!B \ident !C \lif \lforall[x][!D(x)]source 29 and a formula of the form CD(a)!C \lif !D(a)source 30 appears earlier in the derivation, where aasource 31 does not occur in C!Csource 31, A!Asource 31, or Γ\Gammasource 31. We thus have that

Quantifier-rule induction case for the Deduction Theorem

The display follows the universal-quantifier rule case of the induction. It moves from the shorter derivation through conjunction with the discharged assumption, applies the quantifier rule, and recovers the required nested conditional.

  1. formula row oneΓ{A}CD(a)and the induction hypothesis applies, that is, we have thatformula row twoΓA(CD(a))Byformula row three(A(CD(a)))((AC)D(a))and modus ponens we getformula row fourΓ(AC)D(a)Since the eigenvariable condition still applies, we can add a step to this derivation justified by the quantifier rule, and getformula row fiveΓ(AC)x(D(x))We also haveformula row six((AC)x(D(x)))(A(Cx(D(x))))so by modus ponensformula row sevenΓA(Cx(D(x)))\Gamma \cup \{!A\} & \Proves !C \lif !D(a),\\ \intertext{and the induction hypothesis applies, i.e., we have that} \Gamma & \Proves !A \lif (!C \lif !D(a)).\\ \intertext{By} & \Proves (!A \lif (!C \lif !D(a))) \lif ((!A \land !C) \lif !D(a))\\ \intertext{and modus ponens we get} \Gamma & \Proves (!A \land !C) \lif !D(a).\\ \intertext{Since the eigenvariable condition still applies, we can add a step to this !!{derivation} justified by \QR, and get} \Gamma & \Proves (!A \land !C) \lif \lforall[x][!D(x)].\\ \intertext{We also have} & \Proves ((!A \land !C) \lif \lforall[x][!D(x)]) \lif (!A \lif (!C \lif \lforall[x][!D(x)]),\\ \intertext{so by modus ponens,} \Gamma & \Proves !A \lif (!C \lif \lforall[x][!D(x)]),source 33

source 33

i.e., ΓB\Gamma \Proves !Bsource 48.

We leave the case where B!Bsource 50 is justified by the rule quantifier rule, but is of the form x(D(x))C\lexists[x][!D(x)] \lif !Csource 51, as an exercise.

End of proof.

Exercise: complete the existential quantifier-rule case

Complete the proof of Reference to the quantified Deduction Theorem.

source 54

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: removing a provable assumption from an inconsistency

If ΓA\Gamma \Proves !Asource 20 and Γ{A}\Gamma \cup \{!A\}source 20 is inconsistent, then Γ\Gammasource 21 is inconsistent.

source 19

Proof

If Γ{A}\Gamma \cup \{!A\}source 25 is inconsistent, then Γ{A}\Gamma \cup \{!A\} \Proves \lfalsesource 25. By Reference to the reflexivity proposition for derivability, ΓB\Gamma \Proves !Bsource 26 for every BΓ!B \in \Gammasource 27. Since also ΓA\Gamma \Proves !Asource 27 by hypothesis, ΓB\Gamma \Proves !Bsource 28 for every BΓ{A}!B \in \Gamma \cup \{!A\}source 28. By Reference to the transitivity proposition for derivability, Γ\Gamma \Proves \lfalsesource 29, i.e., Γ\Gammasource 30 is inconsistent.

End of proof.

Proposition: derivability characterized by inconsistency with a negation

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

source 33

Proof

First suppose ΓA\Gamma \Proves !Asource 39. Then Γ{¬A}A\Gamma \cup \{\lnot !A\} \Proves !Asource 39 by Reference to the monotonicity proposition for derivability. Γ{¬A}¬A\Gamma \cup \{\lnot !A\} \Proves \lnot !Asource 40 by Reference to the reflexivity proposition for derivability. We also have ¬A(A)\Proves \lnot !A \lif (!A \lif \lfalse)source 42 by Reference to the second negation axiom scheme. So by two applications of Reference to the meta-level modus ponens proposition, we have Γ{¬A}\Gamma \cup \{\lnot !A\} \Proves \lfalsesource 43.

Now assume Γ{¬A}\Gamma \cup \{\lnot !A\}source 46 is inconsistent, i.e., Γ{¬A}\Gamma \cup \{\lnot !A\} \Proves \lfalsesource 46. By the deduction theorem, Γ¬A\Gamma \Proves \lnot !A \lif \lfalsesource 47. Γ(¬A)¬¬A\Gamma \Proves (\lnot !A \lif \lfalse) \lif \lnot\lnot !Asource 48 by Reference to the second falsity axiom scheme, so Γ¬¬A\Gamma \Proves \lnot\lnot !Asource 49 by Reference to the meta-level modus ponens proposition. Since Γ¬¬AA\Gamma \Proves \lnot\lnot !A \lif !Asource 50 (Reference to the double-negation-elimination axiom scheme), we have ΓA\Gamma \Proves !Asource 51 by Reference to the meta-level modus ponens proposition again.

End of proof.

Exercise: characterize derivability of a negation by inconsistency

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

source 55

Proposition: an explicit contradiction makes Gamma inconsistent

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

source 60

Proof

Γ¬A(A)\Gamma \Proves \lnot !A \lif (!A \lif \lfalse)source 66 by Reference to the second negation axiom scheme. Γ\Gamma \Proves \lfalsesource 67 by two applications of Reference to the meta-level modus ponens proposition.

End of proof.

Proposition: two inconsistent opposite extensions make Gamma inconsistent

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

source 71

Proof

Exercise.

End of proof.

Exercise: prove inconsistency from two opposite extensions

Prove Reference to the proposition about two inconsistent opposite extensions

source 81

derivability and the Propositional Connectives

Proposition: derivability principles for conjunction

  1. Both ABA!A \land !B \Proves !Asource 25 and ABB!A \land !B \Proves !Bsource 26

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

source 23

Proof

  1. From Reference to the first conjunction axiom scheme and Reference to the second conjunction axiom scheme by modus ponens.

  2. From Reference to the third conjunction axiom scheme by two applications of modus ponens.

End of proof.

Proposition: derivability principles for disjunction

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

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

source 41

Proof

  1. From Reference to the first negation axiom scheme we get ¬A(A)\Proves \lnot !A \lif (!A \lif \lfalse)source 50 and ¬B(B)\Proves \lnot !B \lif (!B \lif \lfalse)source 51. So by the deduction theorem, we have {¬A}A\{\lnot !A\} \Proves !A \lif \lfalsesource 52 and {¬B}B\{\lnot !B\} \Proves !B \lif \lfalsesource 53. From Reference to the third disjunction axiom scheme we get {¬A,¬B}(AB)\{\lnot !A, \lnot !B\} \Proves (!A \lor !B) \lif \lfalsesource 54. By the deduction theorem, {AB,¬A,¬B}\{!A \lor !B, \lnot !A, \lnot !B\} \Proves \lfalsesource 55.

  2. From Reference to the first disjunction axiom scheme and Reference to the second disjunction axiom scheme by modus ponens .

End of proof.

Proposition: derivability principles for the conditional

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

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

source 62

Proof

  1. We can derive:

    Three-line conditional-elimination derivation

    The derivation takes A and the conditional from A to B as hypotheses and obtains B by modus ponens.

    1. Printed line 1. Justification: hypothesis.

      1. A!Asource 74
    2. Printed line 2. Justification: hypothesis.

      1. AB!A \lif !Bsource 75
    3. Printed line 3. Justification: modus ponens from lines one and two.

      1. B!Bsource 76

    source 73

  2. By Reference to the second negation axiom scheme and Reference to the first conditional axiom scheme and the deduction theorem, respectively.

End of proof.

derivability and the Quantifiers

Strong Generalization Theorem

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 Γx(A(x))\Gamma \Proves \lforall[x][!A(x)]source 23.

source 21

Proof

By the deduction theorem, ΓA(c)\Gamma \Proves \ltrue \lif !A(c)source 28. Since ccsource 29 does not occur in Γ\Gammasource 29 or \topsource 29, we get Γx(A(x))\Gamma \Proves \ltrue \lif \lforall[x][!A(x)]source 29. By the deduction theorem again, Γx(A(x))\Gamma \Proves \lforall[x][!A(x)]source 30.

End of proof.

Proposition: derivability principles for the quantifiers

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

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

    source 34

    Proof

    By Reference to the existential-introduction axiom scheme and the deduction theorem. By Reference to the universal-instantiation axiom scheme and the deduction theorem.

      End of proof.

      Soundness

      Proposition: every first-order axiom is valid

      If A!Asource 35 is an axiom, then M,sA\Sat{M}{!A}[s]source 37 for each structure 𝔐\Struct{M}source 37 and assignment sssource 37.

      source 34

      Proof

      We have to verify that all the axioms are valid. For instance, here is the case for Reference to the universal-instantiation axiom scheme: suppose ttsource 43 is free for xxsource 44 in A!Asource 44, and assume M,sx(A)\Sat{M}{\lforall[x][!A]}[s]source 45. Then by definition of satisfaction, for each s=uivxs\varAssign{s'}{s}{x}source 46, also M,sA\Sat{M}{!A}[s']source 46, and in particular this holds when s(x)=tM,ss'(x) = \Value{t}{M}[s]source 47. By Reference to the substitution and assignment extension proposition, M,sA[t/x]\Sat{M}{\Subst{!A}{t}{x}}[s]source 49. This shows that M,s(x(A)A[t/x])\Sat{M}{(\lforall[x][!A] \lif \Subst{!A}{t}{x})}[s]source 50.

      End of proof.

      Theorem: soundness of axiomatic deduction

      Soundness

      If ΓA\Gamma \Proves !Asource 56 then ΓA\Gamma \Entails !Asource 56.

      source 54

      Proof

      By induction on the length of the derivation of A!Asource 60 from Γ\Gammasource 61. If there are no steps justified by inferences, then all formulas in the derivation are either instances of axioms or are in Γ\Gammasource 63. By the previous proposition, all the axioms are valid, and hence if A!Asource 64 is an axiom then ΓA\Gamma \Entails !Asource 65. If AΓ!A \in \Gammasource 65, then trivially ΓA\Gamma \Entails !Asource 65.

      If the last step of the derivation of A!Asource 68 is justified by modus ponens, then there are formulas B!Bsource 69 and BA!B \lif !Asource 69 in the derivation, and the induction hypothesis applies to the part of the derivation ending in those formulas (since they contain at least one fewer step justified by an inference). So, by induction hypothesis, ΓB\Gamma \Entails !Bsource 73 and ΓBA\Gamma \Entails !B \lif !Asource 73. Then ΓA\Gamma \Entails !Asource 74 by Reference to the Semantic Deduction Theorem.

      Now suppose the last step is justified by quantifier rule. Then that step has the form Cx(B(x))!C \lif \lforall[x][B(x)]source 80 and there is a preceding step CB(c)!C \lif !B(c)source 81 with ccsource 81 not in Γ\Gammasource 81, C!Csource 82, or x(B(x))\lforall[x][B(x)]source 82. By induction hypothesis, ΓCB(c)\Gamma \Entails !C \lif !B(c)source 82. By Reference to the Semantic Deduction Theorem, Γ{C}B(c)\Gamma \cup \{!C\} \Entails !B(c)source 84.

      Consider some structure 𝔐\Struct{M}source 87 such that MΓ{C}\Sat{M}{\Gamma \cup \{!C\}}source 87. We need to show that Mx(B(x))\Sat{M}{\lforall[x][!B(x)]}source 88. Since x(B(x))\lforall[x][!B(x)]source 89 is a sentence, this means we have to show that for every variable assignment sssource 90, M,sB(x)\Sat{M}{!B(x)}[s]source 90 (Reference to the proposition characterizing satisfaction of quantified sentences). Since Γ{C}\Gamma \cup \{!C\}source 91 consists entirely of sentences, M,sD\Sat{M}{!D}[s]source 92 for all DΓ!D \in \Gammasource 92 by Reference to the definition of satisfaction. Let M\Struct{M'}source 93 be like 𝔐\Struct{M}source 94 except that cM=s(x)\Assign{c}{M'} = s(x)source 94. Since ccsource 94 does not occur in Γ\Gammasource 95 or C!Csource 95, MΓ{C}\Sat{M'}{\Gamma \cup \{!C\}}source 95 by Reference to the sentence extensionality corollary. Since Γ{C}B(c)\Gamma \cup \{!C\} \Entails !B(c)source 96, MB(c)\Sat{M'}{B(c)}source 97. Since B(c)!B(c)source 97 is a sentence, M,sB(c)\Sat{M'}{!B(c)}[s]source 98 by Reference to the proposition relating sentence truth to satisfaction under assignments. M,sB(x)\Sat{M'}{!B(x)}[s]source 99 iff M,sB(c)\Sat{M'}{!B(c)}[s]source 100 by Reference to the substitution and assignment extension proposition (recall that B(c)!B(c)source 101 is just B(x)[c/x]\Subst{!B(x)}{c}{x}source 101). So, M,sB(x)\Sat{M'}{!B(x)}[s]source 102. Since ccsource 102 does not occur in B(x)!B(x)source 102, by Reference to the extensionality proposition, M,sB(x)\Sat{M}{!B(x)}[s]source 103. But sssource 103 was an arbitrary variable assignment, so Mx(B(x))\Sat{M}{\lforall[x][!B(x)]}source 105. Thus Γ{C}x(B(x))\Gamma \cup \{!C\} \Entails \lforall[x][!B(x)]source 105. By Reference to the Semantic Deduction Theorem, ΓCx(B(x))\Gamma \Entails !C \lif \lforall[x][!B(x)]source 106.

      The case where A!Asource 109 is justified by quantifier rule but is of the form x(B(x))C\lexists[x][!B(x)] \lif !Csource 110 is left as an exercise.

      End of proof.

      Exercise: complete the existential quantifier soundness case

      Complete the proof of Reference to the soundness theorem for axiomatic deduction.

      source 114

      Corollary: every first-order theorem is valid

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

      source 119

      Corollary: every satisfiable premise set is consistent

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

      source 124

      Proof

      We prove the contrapositive. Suppose that Γ\Gammasource 130 is not consistent. Then Γ\Gamma \Proves \lfalsesource 131, i.e., there is a derivation of \lfalsesource 132 from Γ\Gammasource 132. By Reference to the soundness theorem for axiomatic deduction, any structure 𝔐\Struct{M}source 133 that satisfies Γ\Gammasource 134 must satisfy \lfalsesource 134. Since M\Sat/{M}{\lfalse}source 135 for every structure 𝔐\Struct{M}source 136, no 𝔐\Struct{M}source 138 can satisfy Γ\Gammasource 138, i.e., Γ\Gammasource 139 is not satisfiable.

      End of proof.

      derivation with identity

      In order to accommodate =\eqsource 13 in derivations, we simply add new axiom schemas. The definition of derivation and \Provessource 14 remains the same, we just also allow the new axioms.

      Definition of the identity axiom schemes

      Axioms for identity

      The two identity axiom schemes

      The display lists identity reflexivity first and the substitution-of-identicals conditional second, for closed terms.

      1. identity axiom onet=tidentity axiom twot1=t2(B(t1)B(t2))\ollabel{ax:id1} & \eq[t][t], \\ \ollabel{ax:id2} & \eq[t_1][t_2] \lif (!B(t_1) \lif !B(t_2)),source 18

      source 18

      for any closed terms ttsource 23, t1t_1source 23, t2t_2source 23.

      source 17

      Proposition: validity of the identity axioms

      The axioms Reference to the reflexive identity axiom scheme and Reference to the substitution-of-identicals axiom scheme are valid.

      source 26

      Proof

      Exercise.

      End of proof.

      Exercise: prove validity of the identity axioms

      Prove Reference to the proposition that the identity axioms are valid.

      source 34

      Proposition: derivability of reflexive identity

      Γt=t\Gamma \Proves \eq[t][t]source 39, for any term ttsource 39 and set Γ\Gammasource 39.

      source 38

      Proposition: derivable substitution of identicals

      If ΓA(t1)\Gamma \Proves !A(t_1)source 43 and Γt1=t2\Gamma \Proves \eq[t_1][t_2]source 43, then ΓA(t2)\Gamma \Proves !A(t_2)source 44.

      source 42

      Proof

      The formula (t1=t2(A(t1)A(t2)))(\eq[t_1][t_2] \lif (!A(t_1) \lif !A(t_2)))source 49 is an instance of Reference to the substitution-of-identicals axiom scheme. The conclusion follows by two applications of modus ponens.

      End of proof.