SEQUENT CALCULUS

Proofs as structured search

L215 MINMATH & LOGIC
PREDICT

A sequent Γ ⊢ Δ claims: if everything on the left holds, something on the right holds. A premise closes by the axiom Ax when one formula sits on both sides. You search for a proof of A ∨ B ⊢ A. The rule ∨-L handles an or on the left by splitting the goal into two premises. What are they, and is the sequent provable?

A sequent Γ ⊢ Δ says: if everything on the left holds, something on the right holds. Each connective gets a left rule and a right rule. Proof search runs them backwards: pick a non-atomic formula, apply its rule, get simpler premises. A branch closes by Ax when one formula sits on both sides.

In the G3c rules every rule keeps its context and is invertible. Search never backtracks, and a stuck leaf of atoms is a countermodel.

▶ SIMULATION
goal—
✓ only valid sequents are proved (truth table)✓ a failed search yields a real countermodel
SCHEDULE
01[SEARCH]goal: A ∧ B ⊢ B ∧ A
02[SEARCH]apply a rule to the first open goal
03[SEARCH]apply a rule to the first open goal
04[SEARCH]apply a rule to the first open goal
05[SEARCH]apply a rule to the first open goal
06[CHECK]report, and check against the truth table
Start of proof: a ∧ b ⊢ b ∧ a scenario. 6 steps.
Sequent  Γ ⊢ Δ : if everything in Γ holds, something in Δ holds.
Rules of G3c, read bottom-up (conclusion ⇐ premises):

  Ax    Γ, P ⊢ P, Δ
  ∧-L   Γ, A ∧ B ⊢ Δ   ⇐  Γ, A, B ⊢ Δ
  ∧-R   Γ ⊢ A ∧ B, Δ   ⇐  Γ ⊢ A, Δ   and  Γ ⊢ B, Δ
  ∨-L   Γ, A ∨ B ⊢ Δ   ⇐  Γ, A ⊢ Δ   and  Γ, B ⊢ Δ
  ∨-R   Γ ⊢ A ∨ B, Δ   ⇐  Γ ⊢ A, B, Δ
  →-L   Γ, A → B ⊢ Δ   ⇐  Γ ⊢ A, Δ   and  Γ, B ⊢ Δ
  →-R   Γ ⊢ A → B, Δ   ⇐  Γ, A ⊢ B, Δ
  ¬-L   Γ, ¬A ⊢ Δ      ⇐  Γ ⊢ A, Δ
  ¬-R   Γ ⊢ ¬A, Δ      ⇐  Γ, A ⊢ Δ

Gentzen's LK splits ∧-L into ∧-L₁ (keep A) and ∧-L₂ (keep B),
and ∨-R into ∨-R₁ / ∨-R₂. Those force a choice; G3c keeps both
parts, so every rule is invertible and search never backtracks.

Unsound:  Γ, A ∨ B ⊢ Δ  ⇐  Γ, A ⊢ Δ        (forgot the B case)
  proves A ∨ B ⊢ A, which A=F, B=T falsifies.

A truth table sits beside the prover. The strip checks that everything proved is valid in every row, and that a failed search hands back a real countermodel. UNSOUND ∨-L proves A ∨ B ⊢ A and the first check turns red; NO PROOF fails on the same sequent and names A=F B=T.

BREAK IT NOT YET

This search correctly fails on A ∨ B ⊢ A. Enable the one-case ∨-L at a point where the prover ends up proving it.

GOAL: the prover proves a sequent the truth table rejects

FIX IT NOT YET

Finish prove(sequent) for propositional logic. Its ∨-L only checks the first case, so it proves things that are false. The grader compares your answer with a truth table on eleven sequents. Keep the depth limit.

Mental model:

a sequent proof is goal-directed search: every rule trades one goal for simpler ones until only axioms remain. A rule is sound only if its premises together imply its conclusion, so a case split must keep every case. When in doubt, a truth table is the referee: a prover that ever disagrees with it is wrong.

IN PRODUCTION

Tableau provers, proof assistants (Lean, Coq, Isabelle), type checkers (by Curry-Howard a typing rule is a proof rule), and policy and access engines that answer “is this request allowed” by proof search.

IN INTERVIEWS

“Write a prover for propositional logic” or “how do you know your rule engine is sound?” Give the rules for each connective, explain why ∨-L and →-L branch, and say you would test the prover against a truth table on random formulas.

RECALL CARDS Tap to flip. They join your review deck when you mark the lesson complete.
NEXT: GAME THEORY →