SEQUENT CALCULUS
Proofs as structured search
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.
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.
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
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.
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.
“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.