Skip to main content
โšก Calmops

Natural Deduction Systems: Intuitive Proof Methods

Introduction

Natural deduction is a proof system designed to mirror the way mathematicians naturally construct proofs. Unlike resolution, which uses a single inference rule, natural deduction provides multiple inference rulesโ€”one for introducing each logical connective and one for eliminating it. This approach is more intuitive and closer to human mathematical reasoning.

This article explores natural deduction systems, proof construction, and applications in formal verification.

Historical Context

Natural deduction was developed independently by Gerhard Gentzen and Stanisล‚aw Jaล›kowski in the 1930s. Gentzen’s formulation, with introduction and elimination rules for each connective, became the standard. Natural deduction has become the preferred proof system in logic courses and proof assistants like Coq and Isabelle, because it closely mirrors human reasoning.

Core Principles

Introduction and Elimination Rules

Principle: For each logical connective, there are two types of rules:

  • Introduction Rule: How to prove a formula with that connective
  • Elimination Rule: How to use a formula with that connective

Example: For conjunction (โˆง)

  • Introduction: From P and Q, infer P โˆง Q
  • Elimination: From P โˆง Q, infer P (or Q)

Proof Structure

Proof: A tree of inferences with:

  • Leaves: Assumptions or axioms
  • Internal nodes: Inferences
  • Root: The conclusion

Assumption Discharge: Assumptions can be discharged (removed) by introduction rules

Propositional Natural Deduction

Conjunction (โˆง)

Introduction (โˆงI):

P    Q
โ”€โ”€โ”€โ”€โ”€โ”€
P โˆง Q

From P and Q, infer P โˆง Q

Elimination (โˆงE):

P โˆง Q        P โˆง Q
โ”€โ”€โ”€โ”€โ”€   or   โ”€โ”€โ”€โ”€โ”€
  P           Q

From P โˆง Q, infer P or Q

Disjunction (โˆจ)

Introduction (โˆจI):

P           Q
โ”€โ”€โ”€โ”€โ”€  or  โ”€โ”€โ”€โ”€โ”€
P โˆจ Q      P โˆจ Q

From P, infer P โˆจ Q (or from Q)

Elimination (โˆจE):

P โˆจ Q    [P]        [Q]
         โ‹ฎ          โ‹ฎ
         R          R
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
         R

From P โˆจ Q, if both P and Q lead to R, infer R

Implication (โ†’)

Introduction (โ†’I):

[P]
โ‹ฎ
Q
โ”€โ”€โ”€โ”€โ”€
P โ†’ Q

Assume P; if we can derive Q, then infer P โ†’ Q (discharge assumption)

Elimination (โ†’E, Modus Ponens):

P โ†’ Q    P
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
    Q

From P โ†’ Q and P, infer Q

Negation (ยฌ)

Introduction (ยฌI):

[P]
โ‹ฎ
โŠฅ
โ”€โ”€โ”€โ”€โ”€
ยฌP

Assume P; if we derive contradiction, infer ยฌP (discharge assumption)

Elimination (ยฌE):

ยฌP    P
โ”€โ”€โ”€โ”€โ”€โ”€โ”€
  โŠฅ

From ยฌP and P, infer contradiction

Contradiction (โŠฅ)

Elimination (โŠฅE):

โŠฅ
โ”€โ”€โ”€
 P

From contradiction, infer anything (ex falso quodlibet)

First-Order Natural Deduction

Universal Quantification (โˆ€)

Introduction (โˆ€I):

[x]
โ‹ฎ
P(x)
โ”€โ”€โ”€โ”€โ”€
โˆ€x P(x)

If P(x) holds for arbitrary x, infer โˆ€x P(x)

Restriction: x must not appear free in any undischarged assumption

Elimination (โˆ€E):

โˆ€x P(x)
โ”€โ”€โ”€โ”€โ”€โ”€โ”€
P(a)

From โˆ€x P(x), infer P(a) for any term a

Existential Quantification (โˆƒ)

Introduction (โˆƒI):

P(a)
โ”€โ”€โ”€โ”€โ”€
โˆƒx P(x)

From P(a), infer โˆƒx P(x)

Elimination (โˆƒE):

โˆƒx P(x)    [P(x)]
           โ‹ฎ
           Q
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
       Q

From โˆƒx P(x), if P(x) leads to Q (for arbitrary x), infer Q

Restriction: x must not appear free in Q or undischarged assumptions

Proof Examples

Example 1: Modus Ponens

Goal: Prove Q from {P โ†’ Q, P}

Proof:

1. P โ†’ Q    (assumption)
2. P        (assumption)
3. Q        (โ†’E, 1, 2)

Example 2: Hypothetical Syllogism

Goal: Prove P โ†’ R from {P โ†’ Q, Q โ†’ R}

Proof:

1. P โ†’ Q        (assumption)
2. Q โ†’ R        (assumption)
3. [P]          (assumption for โ†’I)
4. Q            (โ†’E, 1, 3)
5. R            (โ†’E, 2, 4)
6. P โ†’ R        (โ†’I, 3-5, discharge P)

Example 3: Proof by Contradiction

Goal: Prove P from {ยฌยฌP}

Proof:

1. ยฌยฌP          (assumption)
2. [ยฌP]         (assumption for ยฌI)
3. โŠฅ            (ยฌE, 1, 2)
4. P            (โŠฅE, 3)
5. ยฌยฌP โ†’ P      (โ†’I, 1-4)

Example 4: First-Order Logic

Goal: Prove โˆƒx Q(x) from {โˆ€x(P(x) โ†’ Q(x)), โˆƒx P(x)}

Proof:

1. โˆ€x(P(x) โ†’ Q(x))    (assumption)
2. โˆƒx P(x)            (assumption)
3. [P(a)]             (assumption for โˆƒE)
4. P(a) โ†’ Q(a)        (โˆ€E, 1)
5. Q(a)               (โ†’E, 4, 3)
6. โˆƒx Q(x)            (โˆƒI, 5)
7. โˆƒx Q(x)            (โˆƒE, 2, 3-6)

Proof Strategies

Forward Reasoning

Strategy: Start with assumptions, derive new facts

Advantages: Intuitive, follows logical flow Disadvantage: May explore irrelevant paths

Backward Reasoning

Strategy: Start with goal, work backward to assumptions

Advantages: Focused on goal, avoids irrelevant facts Disadvantage: Requires knowing what to assume

Mixed Strategy

Strategy: Combine forward and backward reasoning

Advantages: Efficient, flexible Disadvantage: Requires skill to balance

Normalization and Cut Elimination

Normal Form

Definition: A proof is in normal form if:

  • No introduction rule is immediately followed by elimination of the same connective
  • No detours through unnecessary steps

Example of Detour:

P โˆง Q
โ”€โ”€โ”€โ”€โ”€  (โˆงE)
  P
โ”€โ”€โ”€โ”€โ”€  (โˆงI with Q)
P โˆง Q

Cut Elimination

Cut: An inference that introduces and immediately eliminates a formula

Normalization: Process of removing cuts

Significance: Normalized proofs are more direct and often shorter

Comparison with Other Systems

Natural Deduction vs Resolution

Aspect Natural Deduction Resolution
Inference Rules Multiple (one per connective) Single rule
Proof Structure Tree Linear sequence
Intuitiveness High Low
Automation Harder Easier
Proof Length Often shorter Often longer

Natural Deduction vs Sequent Calculus

Aspect Natural Deduction Sequent Calculus
Assumptions Explicit in proof In sequent
Discharge Explicit Implicit
Symmetry Asymmetric Symmetric
Automation Moderate Better

Applications

Proof Assistants

Coq: Uses natural deduction-like tactics Isabelle: Supports natural deduction proofs Lean: Modern proof assistant with natural deduction

Mathematical Proofs

Textbooks: Natural deduction mirrors textbook proofs Education: Teaches logical reasoning naturally Verification: Formal verification of mathematics

Logic Programming

Prolog: Uses SLD resolution (related to natural deduction) Datalog: Logic programming with natural deduction

Glossary

Assumption: A formula assumed to be true (can be discharged)

Discharge: Remove an assumption from a proof

Elimination Rule: How to use a formula with a connective

Introduction Rule: How to prove a formula with a connective

Normal Form: Proof without detours or cuts

Proof Tree: Tree structure representing a proof

Sequent: Expression ฮ“ โŠข ฮ” (from ฮ“, derive ฮ”)

Tactic: A proof strategy in proof assistants

Practice Problems

Problem 1: Prove P โˆง Q from {P, Q} using natural deduction.

Solution:

1. P        (assumption)
2. Q        (assumption)
3. P โˆง Q    (โˆงI, 1, 2)

Problem 2: Prove (P โ†’ Q) โ†’ (ยฌQ โ†’ ยฌP) using natural deduction.

Solution:

1. [P โ†’ Q]              (assumption for โ†’I)
2. [ยฌQ]                 (assumption for โ†’I)
3. [P]                  (assumption for ยฌI)
4. Q                    (โ†’E, 1, 3)
5. โŠฅ                    (ยฌE, 2, 4)
6. ยฌP                   (ยฌI, 3-5)
7. ยฌQ โ†’ ยฌP              (โ†’I, 2-6)
8. (P โ†’ Q) โ†’ (ยฌQ โ†’ ยฌP)  (โ†’I, 1-7)

Problem 3: Prove โˆ€x P(x) from {โˆ€x(Q(x) โ†’ P(x)), โˆ€x Q(x)} using natural deduction.

Solution:

1. โˆ€x(Q(x) โ†’ P(x))    (assumption)
2. โˆ€x Q(x)            (assumption)
3. [x]                (arbitrary for โˆ€I)
4. Q(x) โ†’ P(x)        (โˆ€E, 1)
5. Q(x)               (โˆ€E, 2)
6. P(x)               (โ†’E, 4, 5)
7. โˆ€x P(x)            (โˆ€I, 3-6)

Conclusion

Natural deduction provides an intuitive, human-friendly approach to formal reasoning. By providing introduction and elimination rules for each logical connective, natural deduction mirrors the way mathematicians naturally construct proofs. This makes it ideal for education, mathematical reasoning, and proof assistants.

Understanding natural deduction is essential for anyone working with formal logic, proof assistants, or formal verification. Its close alignment with human reasoning makes it a powerful tool for both understanding logic and implementing automated reasoning systems.

The elegance of natural deductionโ€”combining intuitive reasoning with formal rigorโ€”demonstrates how logical systems can be both mathematically sound and practically useful.

Comments