Deduction theorem


In mathematical logic, a deduction theorem is a metatheorem that justifies doing conditional proofs — to prove an implication AB, assume A as an hypothesis and then proceed to derive B — in systems that do not have an explicit inference rule for this. Deduction theorems exist for both propositional logic and first-order logic. The deduction theorem is an important tool in Hilbert-style deduction systems because it permits one to write more comprehensible and usually much shorter proofs than would be possible without it. In certain other formal proof systems the same conveniency is provided by an explicit inference rule; for example natural deduction calls it implication introduction.
In more detail, the propositional logic deduction theorem states that if a formula is deducible from a set of assumptions then the implication is deducible from ; in symbols, implies. In the special case where is the empty set, the deduction theorem claim can be more compactly written as: implies. The deduction theorem for predicate logic is similar, but comes with some extra constraints. In general a deduction theorem needs to take into account all logical details of the theory under consideration, so each logical system technically needs its own deduction theorem, although the differences are usually minor.
The deduction theorem holds for all first-order theories with the usual deductive systems for first-order logic. However, there are first-order systems in which new inference rules are added for which the deduction theorem fails. Most notably, the deduction theorem fails to hold in Birkhoff–von Neumann quantum logic, because the linear subspaces of a Hilbert space form a non-distributive lattice.

Examples of deduction

  1. "Prove" axiom 1:
  2. :*P 1. hypothesis
  3. :*Q 2. hypothesis
  4. :**P 3. reiteration of 1
  5. :*QP 4. deduction from 2 to 3
  6. :P→ 5. deduction from 1 to 4 QED
  7. "Prove" axiom 2:
  8. :*P→ 1. hypothesis
  9. :**PQ 2. hypothesis
  10. :***P 3. hypothesis
  11. :***Q 4. modus ponens 3,2
  12. :***QR 5. modus ponens 3,1
  13. :***R 6. modus ponens 4,5
  14. :**PR 7. deduction from 3 to 6
  15. :*→ 8. deduction from 2 to 7
  16. :→→) 9. deduction from 1 to 8 QED
  17. Using axiom 1 to show →R:
  18. :*→R 1. hypothesis
  19. :*P→ 2. axiom 1
  20. :*R 3. modus ponens 2,1
  21. :→R 4. deduction from 1 to 3 QED

    Virtual rules of inference

From the examples, you can see that we have added three virtual rules of inference to our normal axiomatic logic. These are "hypothesis", "reiteration", and "deduction". The normal rules of inference remain available.
1. Hypothesis is a step where one adds an additional premise to those already available. So, if your previous step S was deduced as:
then one adds another premise H and gets:
This is symbolized by moving from the n-th level of indentation to the n+1-th level and saying
2. Reiteration is a step where one re-uses a previous step. In practice, this is only necessary when one wants to take a hypothesis which is not the most recent hypothesis and use it as the final step before a deduction step.
3. Deduction is a step where one removes the most recent hypothesis and prefixes it to the previous step. This is shown by unindenting one level as follows:

Conversion from proof using the deduction meta-theorem to axiomatic proof

In axiomatic versions of propositional logic, one usually has among the axiom schemas :
These axiom schemas are chosen to enable one to derive the deduction theorem from them easily. So it might seem that we are begging the question. However, they can be justified by checking that they are tautologies using truth tables and that modus ponens preserves truth.
From these axiom schemas one can quickly deduce the theorem schema PP which is used below:
  1. )→) from axiom schema 2 with P,, P
  2. P→ from axiom schema 1 with P,
  3. → from modus ponens applied to step 2 and step 1
  4. P→ from axiom schema 1 with P, Q
  5. PP from modus ponens applied to step 4 and step 3
Suppose that we have that Γ and H prove C, and we wish to show that Γ proves HC. For each step S in the deduction which is a premise in Γ or an axiom, we can apply modus ponens to the axiom 1, S→, to get HS. If the step is H itself, we apply the theorem schema to get HH. If the step is the result of applying modus ponens to A and AS, we first make sure that these have been converted to HA and H→ and then we take the axiom 2, →→), and apply modus ponens to get → and then again to get HS. At the end of the proof we will have HC as required, except that now it only depends on Γ, not on H. So the deduction step will disappear, consolidated into the previous step which was the conclusion derived from H.
To minimize the complexity of the resulting proof, some preprocessing should be done before the conversion. Any steps which do not actually depend on H should be moved up before the hypothesis step and unindented one level. And any other unnecessary steps, such as reiterations which are not the conclusion, should be eliminated.
During the conversion, it may be useful to put all the applications of modus ponens to axiom 1 at the beginning of the deduction.
When converting a modus ponens, if A is outside the scope of H, then it will be necessary to apply axiom 1, A→, and modus ponens to get HA. Similarly, if AS is outside the scope of H, apply axiom 1, →, and modus ponens to get H→. It should not be necessary to do both of these, unless the modus ponens step is the conclusion, because if both are outside the scope, then the modus ponens should have been moved up before H and thus be outside the scope also.
Under the Curry–Howard correspondence, the above conversion process for the deduction meta-theorem is analogous to the conversion process from lambda calculus terms to terms of combinatory logic, where axiom 1 corresponds to the K combinator, and axiom 2 corresponds to the S combinator. Note that the I combinator corresponds to the theorem schema PP.

Helpful theorems

If one intends to convert a complicated proof using the deduction theorem to a straight-line proof not using the deduction theorem, then it would probably be useful to prove these theorems once and for all at the beginning and then use them to help with the conversion:
helps convert the hypothesis steps.
helps convert modus ponens when the major premise is not dependent on the hypothesis, replaces axiom 2 while avoiding a use of axiom 1.
helps convert modus ponens when the minor premise is not dependent on the hypothesis, replaces axiom 2 while avoiding a use of axiom 1.
These two theorems jointly can be used in lieu of axiom 2, although the converted proof would be more complicated:
Peirce's law is not a consequence of the deduction theorem, but it can be used with the deduction theorem to prove things which one might not otherwise be able to prove.
It can also be used to get the second of the two theorems which can used in lieu of axiom 2.

Proof of the deduction theorem

We prove the deduction theorem In a Hilbert-style deductive system of propositional calculus.
Let be a set of formulas and and formulas, such that. We want to prove that.
Since, there is a proof of from. We prove the theorem by induction on the proof length n; thus the induction hypothesis is that for any, and such that there is a proof of from of length up to n, holds.
If n = 1 then is member of the set of formulas. Thus either, in which case is simply which is derivable by substitution from p → p that is derivable from the axioms, hence also ; or is in, in which case ; it follows from axiom p → with substitution that and hence by modus ponens that.
Now let us assume the induction hypothesis for proofs of length up to n, and let be a formula provable from with a proof of length n+1. Then there are three possibilities:
  1. is member of the set of formulas ; in this case we proceed as for n=0.
  2. is arrived at by a substitution on a formula φ. Then φ is proven from with at most n steps, hence by the induction hypothesis, where we may write A and φ with different variables. But then we may arrive from at by the same substitution which is used to derive from φ; thus.
  3. is arrived at by using modus ponens. Then there is a formula C such that proves and, and modus ponens is then used to prove. The proofs of and are with at most n steps, and by the induction hypothesis we have and. By the axiom → → ) with substitution it follows that , and by using modus ponens twice we have.
Thus in all cases the theorem holds also for n+1, and by induction the deduction theorem is proven.

The deduction theorem in predicate logic

The deduction theorem is also valid in first-order logic in the following form:
Here, the symbol means "is a syntactical consequence of." We indicate below how the proof of this deduction theorem differs from that of the deduction theorem in propositional calculus.
In the most common versions of the notion of formal proof, there are, in addition to the axiom schemes
of propositional calculus, quantifier axioms, and in addition to modus ponens, one additional rule of inference, known as the rule of generalization: "From K, infer ∀vK."
In order to convert a proof of G from T∪ to one of FG from T, one deals
with steps of the proof of G which are axioms or result from application of modus ponens in the
same way as for proofs in propositional logic. Steps which result from application of the rule of
generalization are dealt with via the following quantifier axiom :
Since in our case F is assumed to be closed, we can take H to be F. This axiom allows
one to deduce F→∀vK from FK and generalization, which is just what is needed whenever
the rule of generalization is applied to some K in the proof of G.
In first-order logic, the restriction of that F be a closed formula can be relaxed given that the free variables in F has not been varied in the deduction of G from. In the case that a free variable v in F has been varied in the deduction, we write and the corresponding form of the deduction theorem is.

Example of conversion

To illustrate how one can convert a natural deduction to the axiomatic form of proof, we apply it to the tautology Q→. In practice, it is usually enough to know that we could do this. We normally use the natural-deductive form in place of the much longer axiomatic proof.
First, we write a proof using a natural-deduction like method:
Second, we convert the inner deduction to an axiomatic proof:
Third, we convert the outer deduction to an axiomatic proof:
These three steps can be stated succinctly using the Curry–Howard correspondence:
The deduction theorem described above holds in some versions of paraconsistent logic. Usually the classical deduction theorem does not hold in paraconsistent logic. However, the following "two-way deduction theorem" does hold in one form of paraconsistent logic:
that requires the contrapositive inference to hold in addition to the requirement of the classical deduction theorem.