Deduction Theorem - Example of Conversion

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→((QR)→R). 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:

    • Q 1. hypothesis
      • QR 2. hypothesis
      • R 3. modus ponens 1,2
    • (QR)→R 4. deduction from 2 to 3
  • Q→((QR)→R) 5. deduction from 1 to 4 QED

Second, we convert the inner deduction to an axiomatic proof:

  • (QR)→(QR) 1. theorem schema (AA)
  • ((QR)→(QR))→(((QR)→Q)→((QR)→R)) 2. axiom 2
  • ((QR)→Q)→((QR)→R) 3. modus ponens 1,2
  • Q→((QR)→Q) 4. axiom 1
    • Q 5. hypothesis
    • (QR)→Q 6. modus ponens 5,4
    • (QR)→R 7. modus ponens 6,3
  • Q→((QR)→R) 8. deduction from 5 to 7 QED

Third, we convert the outer deduction to an axiomatic proof:

  • (QR)→(QR) 1. theorem schema (AA)
  • ((QR)→(QR))→(((QR)→Q)→((QR)→R)) 2. axiom 2
  • ((QR)→Q)→((QR)→R) 3. modus ponens 1,2
  • Q→((QR)→Q) 4. axiom 1
  • → 5. axiom 1
  • Q→(((QR)→Q)→((QR)→R)) 6. modus ponens 3,5
  • →(→) 7. axiom 2
  • → 8. modus ponens 6,7
  • Q→((QR)→R)) 9. modus ponens 4,8 QED

These three steps can be stated succinctly using the Curry–Howard correspondence:

  • first, in lambda calculus, the function f = λa. λb. b a has type q → (qr) → r
  • second, by lambda elimination on b, f = λa. s i (k a)
  • third, by lambda elimination on a, f = s (k (s i)) k

Read more about this topic:  Deduction Theorem

Famous quotes containing the word conversion:

    The conversion of a savage to Christianity is the conversion of Christianity to savagery.
    George Bernard Shaw (1856–1950)