KonkurStudy
همه کارت‌ها

Natural Deduction for Propositional Logic

Prove propositional formulas with introduction/elimination rules arranged into a derivation tree, discharging temporary assumptions via →I\to I; the system is both sound (only valid conclusions follow) and complete (every tautology is derivable).

کارت مفهوم کنکور ارشد علوم کامپیوتر

اهمیت
۰/۵

Definition and intuition

Natural deduction is a proof system in which each logical connective comes with two rules: an introduction rule (how to build a formula with that connective) and an elimination rule (how to use one). A proof is a tree: premises and discharged assumptions sit at the leaves, each horizontal bar applies one rule, and the conclusion is the formula at the root. We write Γ⊢φ\Gamma \vdash \varphi when φ\varphi is derivable from the set of assumptions Γ\Gamma.

The defining trick is the assumption: you may write any formula in brackets, e.g. [A][A], use it freely, and later discharge (close) it with an →I\to I step. A formula proved with no open assumptions is a theorem (⊢φ\vdash \varphi).

The core rules

Connective Introduction Elimination
∧\land ABA∧B ∧I\dfrac{A \quad B}{A \land B}\ \land I A∧BA ∧E\dfrac{A \land B}{A}\ \land E and A∧BB ∧E\dfrac{A \land B}{B}\ \land E
→\to [A] ⋮ BA→B →I\dfrac{[A]\ \vdots\ B}{A \to B}\ \to I A→BAB →E\dfrac{A \to B \quad A}{B}\ \to E (modus ponens)
∨\lor AA∨B ∨I\dfrac{A}{A \lor B}\ \lor I A∨B[A] ⋮ C[B] ⋮ CC ∨E\dfrac{A \lor B \quad [A]\ \vdots\ C \quad [B]\ \vdots\ C}{C}\ \lor E
⊥\bot — ⊥A ⊥E\dfrac{\bot}{A}\ \bot E (ex falso)

The →I\to I rule is the key one: to prove A→BA \to B, assume AA, derive BB, then discharge that assumption [A][A] and conclude A→BA \to B. The bracket is closed exactly at the →I\to I that introduces the implication.

Soundness and completeness

These two metatheorems tie syntax (derivations, ⊢\vdash) to semantics (truth tables, ⊨\models):

  • Soundness: if Γ⊢φ\Gamma \vdash \varphi then Γ⊨φ\Gamma \models \varphi. Every rule preserves truth, so anything you derive is genuinely a logical consequence — the system never proves a falsehood.
  • Completeness: if Γ⊨φ\Gamma \models \varphi then Γ⊢φ\Gamma \vdash \varphi. Every tautology (and every valid entailment) has a derivation. Together: Γ⊢φ  ⟺  Γ⊨φ\Gamma \vdash \varphi \iff \Gamma \models \varphi.

How to check a derivation

Konkur questions often show a finished proof tree and ask whether (or how many times) the rules were misused. The checklist:

  1. Match each bar to its rule schema. Read the rule label and confirm the premises above the bar and the conclusion below it fit that exact pattern (e.g. →E\to E needs both A→BA \to B and AA, and yields BB).
  2. Track assumptions. Every bracketed [A][A] is an open assumption until some →I\to I below it discharges it. At the root, no bracket may remain open for a theorem.
  3. Read bottom-up then top-down. Bottom-up tells you what is being introduced; top-down confirms each required premise is actually present in the tree.

Mini-example: ⊢(A→B)→(A→B)\vdash (A \to B) \to (A \to B)

Assume [A→B][A \to B] and, separately, [A][A]. Apply →E\to E to get BB, then →I\to I discharging [A][A] to get A→BA \to B, then →I\to I discharging [A→B][A \to B]:

[A→B][A]B →EA→B →I(A→B)→(A→B) →I\dfrac{\dfrac{\dfrac{[A \to B] \quad [A]}{B}\ \to E}{A \to B}\ \to I}{(A \to B) \to (A \to B)}\ \to I

Both brackets are discharged, no assumption stays open, and the conclusion is a tautology — a fully correct derivation.

Exam trick: Don't be intimidated by a tall proof tree. Read it bottom-up to see what each bar introduces, then top-down to confirm every premise the rule needs is actually present. The tell-tale sign of a correct conditional proof is that each bracketed assumption [A][A] lines up with exactly one →I\to I below it that discharges it — if every bracket closes and every bar matches its schema, the count of incorrect uses is 00.

فرمول‌های کلیدی

Conjunction introduction (∧I)
ABA∧B\dfrac{A \quad B}{A \land B}

From a proof of A and a proof of B, conclude A and B.

Conjunction elimination (∧E)
A∧BAA∧BB\dfrac{A \land B}{A} \qquad \dfrac{A \land B}{B}

From A and B, extract either conjunct.

Implication introduction (→I)
[A]  ⋮  BA→B\dfrac{[A] \;\vdots\; B}{A \to B}

Assume A, derive B, then discharge the assumption [A] to conclude A implies B.

Implication elimination / modus ponens (→E)
A→BAB\dfrac{A \to B \quad A}{B}

From A implies B together with A, conclude B.

Soundness and completeness
Γ⊢φ  ⟺  Γ⊨φ\Gamma \vdash \varphi \iff \Gamma \models \varphi

Derivability coincides with logical consequence: the proof system proves exactly the valid entailments.

#natural-deduction#propositional-logic#inference-rules#introduction-elimination#derivation-tree#discharge-assumption#modus-ponens#soundness#completeness#proof-checking

سوالات تمرینی