The whole, before the parts

So far validity has been judged semantically — by truth tables or by hunting for countermodels. Proof theory takes the opposite road: it fixes a small stock of axioms and inference rules and treats a proof as a finite string of symbols built by those rules, so that checking a proof needs no understanding at all, only pattern matching. The one idea that carries the topic is the matched pair of questions this raises: does the machinery prove only what is really valid (soundness of the system), and does it prove everything that is (completeness)? For first-order logic the answer to both, remarkably, is yes. Citation needed

Terminology and core concepts

  1. The anatomy of a formal system

    A formal system fixes three things: a formal language (which strings of symbols count as well-formed formulas), axioms (formulas accepted outright), and inference rules (patterns for producing a new formula from old ones) — all defined by shape alone, never by meaning. Citation needed

    What does the formal language of a system fix?
    which symbol strings are well-formed formulas Citation needed
    What is an axiom's status inside the system?
    derivable with no premises — a free starting point Citation needed
    What does an inference rule license?
    writing a new formula given formulas of the right shape Citation needed
    What may a rule inspect about a formula?
    only its shape, never its meaning Citation needed
    Why must the axioms and rules be mechanically recognizable?
    so a machine can check any claimed proof Citation needed
  2. Derivations and theorems

    A derivation is a finite sequence of formulas in which each line is an axiom, a premise, or follows from earlier lines by a rule; a theorem of the system is any formula derivable from the axioms alone, written ⊢ A. Citation needed

    What may justify a line of a derivation?
    axiom, premise, or a rule applied to earlier lines Citation needed
    How long may a derivation be?
    any finite length Citation needed
    What does ⊢ A assert?
    A is derivable from the axioms alone Citation needed
    What does Γ ⊢ A assert?
    A is derivable from the premises in Γ Citation needed
    What skill does checking a derivation require?
    none but pattern matching, line by line Citation needed
  3. Syntax versus semantics

    Derivability (⊢) is a fact about symbol manipulation; logical consequence (⊨) — truth of the conclusion in every model of the premises — is a fact about meaning; proof theory lives in keeping the two notions separate and then asking how they relate. Citation needed

    Which side of the divide is ⊢ on?
    syntax — symbol manipulation Citation needed
    Which side is ⊨ on?
    semantics — truth in models Citation needed
    What does Γ ⊨ A say?
    every model of Γ makes A true Citation needed
    Could a badly chosen system derive a formula that is not a consequence?
    yes — nothing in syntax alone prevents it Citation needed
    What question does the ⊢/⊨ split make precise?
    whether proof and truth coincide Citation needed
  4. Soundness of a system

    A system is sound when everything derivable is a genuine consequence (⊢ implies ⊨) — a stricter cousin of the soundness of a single argument — and it is proved by showing each axiom valid and each rule truth-preserving, so validity passes down every derivation. Citation needed

    What does soundness of a system guarantee?
    whatever it derives is a real consequence Citation needed
    For a proof system to be sound, what must be true of its axioms?
    they are valid Citation needed
    For a proof system to be sound, what must its inference rules preserve?
    truth Citation needed
    Why does checking rules one at a time suffice?
    derivations are built one rule application at a time Citation needed
    What would one derivable non-consequence show?
    the system is unsound Citation needed
    What does soundness imply about deriving a contradiction?
    impossible — so the system is consistent Citation needed
  5. Completeness

    A system is complete when every genuine consequence is derivable (⊨ implies ⊢); Gödel's completeness theorem says first-order predicate logic has a sound and complete proof system, so for it, derivability and consequence are one relation seen from two sides. Citation needed

    What does completeness of a system guarantee?
    every real consequence has a derivation Citation needed
    Which direction is soundness, ⊢ to ⊨ or ⊨ to ⊢?
    ⊢ to ⊨ Citation needed
    What did Gödel's completeness theorem establish?
    first-order logic has a sound, complete proof system Citation needed
    Given both properties, when does a valid formula lack a proof?
    never Citation needed
    Is the completeness theorem the same as Gödel's incompleteness results?
    no — a different theorem about a different question Citation needed
  6. Consistency and its price

    A system is consistent when it never derives both a formula and its negation; the price of failure is total, because from a contradiction the standard rules derive every formula whatsoever — the principle of explosion. Citation needed

    What does an inconsistent system derive?
    everything Citation needed
    What is the principle of explosion?
    from a contradiction, any formula follows Citation needed
    Why is an inconsistent system useless rather than half-useful?
    its theorems no longer distinguish anything Citation needed
    How does explosion run, from p ∧ ¬p to arbitrary q?
    from p infer p ∨ q; with ¬p, infer q Citation needed
    What is the semantic twin of consistency?
    satisfiability — having at least one model Citation needed
  7. Natural deduction

    Natural deduction trades long axiom lists for paired introduction and elimination rules per connective, plus the device of a subproof — assume A temporarily, derive B, discharge the assumption, and conclude A → B. Citation needed

    In natural deduction, which kind of rule establishes a compound statement?
    an introduction rule Citation needed
    In natural deduction, which kind of rule uses a compound statement to derive consequences?
    an elimination rule Citation needed
    What does the →-introduction rule do with an assumption?
    discharges it into the conditional's antecedent Citation needed
    What is modus ponens, in this vocabulary?
    the elimination rule for → Citation needed
    How does proof by contradiction run as a subproof?
    assume ¬A, derive a contradiction, conclude A Citation needed
    Why "natural"?
    its rules mirror how mathematicians actually argue Citation needed
  8. What a decision procedure is, and who has one

    A decision procedure is a mechanical method guaranteed to answer, in finite time, whether any given formula is valid; propositional logic has one (truth tables), and whether richer systems do is a genuine open question at this point in the sequence, settled in the next topic. Citation needed

    What must a decision procedure guarantee?
    a correct yes/no answer in finite time, always Citation needed
    What is propositional logic's decision procedure?
    the truth table Citation needed
    Is searching for a derivation a decision procedure?
    no — failure to find one never terminates the question Citation needed
    What does completeness guarantee about a valid first-order formula?
    a proof exists and search will find it Citation needed
    What does completeness not guarantee for an invalid formula?
    that any search will ever come back and say so Citation needed

Problems that prove it

  1. In natural deduction, derive p → r from the premises p → q and q → r.

    Drills: subproofs and discharging an assumption with →-introduction.

    Derivation steps
    1. Premise 1: p → q. Premise 2: q → r.
    2. Open a subproof: assume p.
    3. →-elimination on premise 1 with p: get q.
    4. →-elimination on premise 2 with q: get r.
    5. Close the subproof, discharging p: conclude p → r.

    Citation needed

  2. Derive ¬p from the premises p → q and ¬q, using a subproof ending in contradiction.

    Drills: proof by contradiction as a formal rule, not a trick.

    Derivation steps
    1. Premises: p → q and ¬q.
    2. Open a subproof: assume p.
    3. →-elimination: get q.
    4. q with premise ¬q is a contradiction.
    5. Close the subproof: the assumption is to blame, so conclude ¬p.
    6. This derivation is exactly modus tollens, now built from smaller rules.

    Citation needed

  3. Walk the principle of explosion: derive an arbitrary q from the premises p and ¬p.

    Drills: why one contradiction costs the whole system.

    Derivation steps
    1. Premise: p.
    2. ∨-introduction: from p, infer p ∨ q (weakening is always allowed).
    3. Premise: ¬p.
    4. Disjunctive syllogism on p ∨ q and ¬p: infer q.
    5. q was arbitrary — any formula at all is derivable once both p and ¬p are.

    Citation needed

  4. Sketch the soundness argument for a system whose only rule is modus ponens and whose axioms are all tautologies.

    Drills: soundness as induction along the derivation.

    Derivation steps
    1. Claim: every derivable formula is a tautology.
    2. Base case: line 1 of any derivation is an axiom, hence a tautology by assumption.
    3. Inductive step: suppose every earlier line is a tautology, and a new line B comes by modus ponens from earlier lines A and A → B.
    4. In any row of a truth table, A is true and A → B is true, so B cannot be false in that row.
    5. So B is true in every row — a tautology — and the property passes down the whole derivation.
    6. Hence nothing non-valid is ever derivable: the system is sound.

    Citation needed

  5. A friend claims their new system derives p → q from q → p. Without reading the derivation, show something must be wrong with the system.

    Drills: using semantics to audit syntax — soundness in reverse.

    Derivation steps
    1. If the system is sound, every derivable-from relation is a genuine consequence.
    2. Test the claimed consequence with a valuation: p = T, q = F.
    3. Premise q → p: antecedent false, so true.
    4. Conclusion p → q: T → F, so false.
    5. Premise true, conclusion false: not a consequence. So the system is unsound — some axiom or rule fails to preserve truth.

    Citation needed

Sources

  • Dirk van Dalen, Logic and Structure — natural deduction with full soundness and completeness proofs.
  • Herbert Enderton, A Mathematical Introduction to Logic — the careful statement of ⊢ versus ⊨ and the completeness theorem.
  • Douglas Hofstadter, Gödel, Escher, Bach — what a formal system feels like from inside, via the MIU puzzle.

Learning path

Continue through Logic in order, using the concepts above to connect this topic to the next.