cs.thefarshad
medium

Natural Deduction

Prove conclusions step by step with introduction/elimination rules and subderivations.

Truth tables tell you that an argument is valid; natural deduction shows why, by deriving the conclusion from the premises one justified step at a time. A derivation establishes P1,,PnCP_1, \dots, P_n \vdash C — ”CC is provable from the premises.” (Soundness and completeness guarantee \vdash and \models pick out exactly the same valid arguments.)

Step through a proof below — each line is highlighted with the earlier lines it was derived from.

GivenP → QQ → R
ProveP → R
Strategy: The goal is a conditional P → R, so assume P, derive R, then discharge with →I.
Try the derivation yourself first, then reveal the step-by-step proof.

Rules of inference

Each connective comes with an introduction rule (how to derive a formula with that main connective) and an elimination rule (how to use one). Modern names on the left; Teller’s primer writes \land as &\& and \rightarrow as \supset.

  • \landI / \landE — from XX and YY infer XYX \land Y; from XYX \land Y infer either part.
  • \rightarrowE (modus ponens) — from XYX \rightarrow Y and XX infer YY.
  • \lorI — from XX infer XYX \lor Y. \lorE (proof by cases) — see below.
  • \leftrightarrowI / \leftrightarrowE — build/break a biconditional via the two conditionals.
  • Reiteration — copy an earlier available line.

Subderivations

The powerful rules open a subderivation — an indented box (the vertical bars in the visualizer) that begins with an assumption you are free to make temporarily. Two subderivation rules do most of the work:

  • Conditional proof (\rightarrowI): assume XX; if you can derive YY inside the box, then XYX \rightarrow Y holds outside it (the assumption is discharged). The default proof above uses exactly this.
  • Reductio / negation introduction (¬\lnotI): assume XX; if you derive a contradiction (\bot), conclude ¬X\lnot X. Switch the visualizer to “Modus tollens” to watch a reductio.

The one rule: a line inside a box may use earlier lines from enclosing boxes, but once a box closes, its interior lines are sealed — you can only use what the subderivation rule hands back out.

Strategy

Work backwards from the goal: to prove a conditional, plan a conditional proof; to prove a negation, plan a reductio; to prove a conjunction, prove each part. Then work forwards from the premises to meet in the middle. The “Proof by cases” and “De Morgan” examples in the visualizer show these patterns on longer derivations.

Takeaways

  • A derivation proves P1,,PnCP_1,\dots,P_n \vdash C with justified steps; \vdash and \models agree (soundness + completeness).
  • Each connective has an introduction and an elimination rule.
  • Subderivations make a temporary assumption that must be discharged — by conditional proof (\rightarrowI) or reductio (¬\lnotI).
  • Strategy: plan backwards from the goal, derive forwards from the premises.

References

  • Paul Teller, A Modern Formal Logic Primer, Prentice Hall (1989) — free at tellerprimer.ucdavis.edu, which uses this Fitch-style rule set. Curriculum follows the primer; the proofs and explanations here are original.