In mathematical logic, a deduction theorem is a metatheorem that justifies doing conditional proofs from a hypothesis in systems that do not explicitly axiomatize that hypothesis, i.e. to prove an implication A→B, it is sufficient to assume A as a hypothesis and then proceed to derive B. 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 B is deducible from a set of assumptions Δ∪{A} then the implication A→B is deducible from Δ; in symbols, Δ∪{A}⊢B implies Δ⊢A→B. In the special case where Δ is the empty set, the deduction theorem claim can be more compactly written as: A⊢B implies ⊢A→B. The deduction theorem for predicate logic is similar, but comes with some extra constraints (that would for example be satisfied if A is a closed formula). 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 "Prove" axiom 1: P→(Q→P) P 1. hypothesis Q 2. hypothesis P 3. reiteration of 1 Q→P 4. deduction from 2 to 3 P→(Q→P) 5. deduction from 1 to 4 QED "Prove" axiom 2: (P→(Q→R))→((P→Q)→(P→R)) P→(Q→R) 1. hypothesis P→Q 2. hypothesis P 3. hypothesis Q 4. modus ponens 3,2 Q→R 5. modus ponens 3,1 R 6. modus ponens 4,5 P→R 7. deduction from 3 to 6 (P→Q)→(P→R) 8. deduction from 2 to 7 (P→(Q→R))→((P→Q)→(P→R)) 9. deduction from 1 to 8 QED Using axiom 1 to show ((P→(Q→P))→R)→R: (P→(Q→P))→R 1. hypothesis P→(Q→P) 2. axiom 1 R 3. modus ponens 2,1 ((P→(Q→P))→R)→R 4. deduction from 1 to 3 QED
Virtual rules of inference
From the examples, one can see that we have added three virtual (or extra and temporary) rules of inference to our normal axiomatic logic. These are "hypothesis", "reiteration", and "deduction". The normal rules of inference (i.e. "modus ponens" and the various axioms) remain available. 1. Hypothesis is a step where one adds an additional premise to those already available. So, if the previous step S was deduced as:
E1,E2,...,En−1,En⊢S, then one adds another premise H and gets:
E1,E2,...,En−1,En,H⊢H. This is symbolized by moving from the n-th level of indentation to the n+1-th level and saying
S previous step H hypothesis 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 that 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 (still available) and prefixes it to the previous step. This is shown by unindenting one level as follows:
H hypothesis ......... (other steps) C (conclusion drawn from H) H→C deduction
Conversion from proof using the deduction meta-theorem to axiomatic proof In axiomatic versions of propositional logic, one usually has among the axiom schemas (where P, Q, and R are replaced by any propositions):
Axiom 1 is: P→(Q→P) Axiom 2 is: (P→(Q→R))→((P→Q)→(P→R)) Modus ponens is: from P and P→Q infer Q 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 P→P (reflexivity of implication), which is used below:
… excerpt ends here. Continue reading the full article.