Skip to content
LeanLearn
Level 1~35 minLean 4

Natural deduction: the rules of proof

Build proofs move by move with introduction and elimination rules, see the classic proof tree, and watch Lean accept the very same proof.

You will be able to
  • Explain the difference between an introduction rule and an elimination rule.
  • Build natural-deduction proofs for implication, conjunction, disjunction and negation.
  • Track which assumptions are available, and when they are discharged.
  • Match each rule to the Lean tactic or term that performs it.

Recommended first: Truth tables, tautologies and equivalence, Reading formulas: symbols and grouping. You can start anyway. Nothing is locked.

EncounterActivity 1 of 12

Proofs are games with fair moves

A truth table checks every situation at once. That works for a handful of letters, but it cannot scale to statements about all numbers. Mathematicians instead build arguments from small steps that are obviously safe. Natural deduction is a precise list of those steps.

Every connective has two kinds of rule:

Introduction: how to prove itElimination: how to use itLean
A→BA \to Bassume AA, prove BBfrom A→BA \to B and AA, get BBintro / apply
A∧BA \land Bprove AA and prove BBfrom A∧BA \land B, get AA (or BB)constructor / h.1
A∨BA \lor Bprove AA (or BB)from A∨BA \lor B, prove the goal in both casesleft / rcases
¬A\neg Aassume AA, reach ⊥\botfrom AA and ¬A\neg A, get ⊥\botintro / exact hn ha
⊥\bot(no introduction)from ⊥\bot, get anythingexfalso

⊥\bot ("bottom") is the statement that is always false: a contradiction.

Here you will work backwards from the goal, exactly like Lean: choose a rule, and the builder shows the new goals that rule leaves you. Close a goal by pointing at a hypothesis that says exactly the same thing.