Sequent Calculus Cut Elimination
Akim Demaille akim@lrde.epita.fr
EPITA — École Pour l’Informatique et les Techniques Avancées
June 14, 2016
Sequent Calculus Cut Elimination
1 Problems of Natural Deduction
2 Sequent Calculus
3 Natural Deduction in Sequent Calculus
A. Demaille Sequent Calculus, Cut Elimination 2 / 40
Preamble
The following slides are implicitly dedicated toclassical logic.
Problems of Natural Deduction
1 Problems of Natural Deduction
2 Sequent Calculus
3 Natural Deduction in Sequent Calculus
Normalization
A. Demaille Sequent Calculus, Cut Elimination 5 / 40
Proofs hard to find
Some elimination rules used formulas coming out of the blue.
··· A∨B
[A]··· C
[B]···
C ∨E C
A. Demaille Sequent Calculus, Cut Elimination 6 / 40
Negation is awkward Sequent Calculus
1 Problems of Natural Deduction
2 Sequent Calculus Syntax
LK — Classical Sequent Calculus Cut Elimination
3 Natural Deduction in Sequent Calculus
Gerhard Karl Erich Gentzen (1909–1945)
German logician and mathematician.
SA (1933)
An assistant of David Hilbert in Göttingen (1935–1939).
Joined the Nazi Party (1937).
Worked on the V2.
Died of malnutrition in a prison camp (August 4, 1945).
A. Demaille Sequent Calculus, Cut Elimination 9 / 40
Syntax
1 Problems of Natural Deduction
2 Sequent Calculus Syntax
LK — Classical Sequent Calculus Cut Elimination
3 Natural Deduction in Sequent Calculus
A. Demaille Sequent Calculus, Cut Elimination 10 / 40
Sequents
Sequent
Asequent is an expressionΓ`∆, where Γ,∆are (finite) sequences of formulas.
Variants:
Sets Γ,∆can be taken as (finite) sets.
Simplifies the structural group
Prevents close examination of. . . the structural rules Single Sided Sequents can be forced to be`Γ
Reading a Sequent
Γ`∆ If all the formulas of Γ are true, then one of the formulas of ∆is true.
Commas on the left hand side stand for “and”
Turnstile, `, stands for “implies”
Commas on the right hand side stand for “or”
Some Special Sequents
Γ`A A is true under the hypothesesΓ
`A A is true
Γ` Γ is in contradiction A` ¬A
` contradiction
A. Demaille Sequent Calculus, Cut Elimination 13 / 40
LK — Classical Sequent Calculus
1 Problems of Natural Deduction
2 Sequent Calculus Syntax
LK — Classical Sequent Calculus Cut Elimination
3 Natural Deduction in Sequent Calculus
A. Demaille Sequent Calculus, Cut Elimination 14 / 40
LK — Classical Sequent Calculus
LK — Gentzen 1934
logistischerklassischer Kalkül.
There are several possible exposures Different sets of inference rules We follow [Girard, 2011]
Identity Group
A`A Id
Γ`A,∆ Γ0,A`∆0 Γ,Γ0`∆,∆0 Cut
Gentzen’s Hauptsatz
The cut rule is redundant, i.e., any sequent provable with cuts is provable without.
Structural Group
Γ`∆
`X Γ`τ(∆)
Γ`∆ X` σ(Γ)`∆ Γ`∆
`W Γ`A,∆
Γ`∆ W` Γ,A`∆ Γ`A,A,∆
`C Γ`A,∆
Γ,A,A`∆ C` Γ,A`∆
A. Demaille Sequent Calculus, Cut Elimination 17 / 40
Logical Group: Negation
Γ,A`∆ Γ` ¬A,∆`¬
Γ`A,∆ Γ,¬A`∆¬`
A. Demaille Sequent Calculus, Cut Elimination 18 / 40
Logical Group: Conjunction
Γ`A,∆ Γ`B,∆ Γ`A∧B,∆ `∧
Γ,A`∆ l∧`
Γ,A∧B `∆ Γ,B `∆
r∧`
Γ,A∧B `∆
Additive˘
Γ`A,∆ Γ0`B,∆0 Γ,A,B `∆ Multiplicative
Logical Group: Disjunction
Γ`A,∆
`l∨ Γ`A∨B,∆
Γ`B,∆
`r∨ Γ`A∨B,∆
Γ,A`∆ Γ,B `∆ Γ,A∨B `∆ ∨`
Additive
⊕
Γ`A,B,∆ Γ,A`∆ Γ0,B `∆0 Multiplicative˙
Logical Group: Implication
Γ`∆,A Γ0,B `∆0 Γ,Γ0,A⇒B `∆,∆0 ⇒`
Γ,A`B,∆ Γ`A⇒B,∆`⇒
A. Demaille Sequent Calculus, Cut Elimination 21 / 40
Prove A ∧B ` A∧B
A`A l∧`
A∧B `A
B `B
r∧`
A∧B `B A∧B `A∧B `∧
A. Demaille Sequent Calculus, Cut Elimination 22 / 40
Prove A∧B ` A∨B
A`A l∧`
A∧B `A
`r∨ A∧B `A∨B
Prove A ∨B ` A∨B
A`A
`l∨ A`A∨B
B `B
`r∨ B `A∨B A∨B `A∨B ∨`
Prove the equivalence of the two ∧ rules
Additive Multiplicative Γ`A,∆ Γ`B,∆
` ∧+
Γ`A∧B,∆ ≡ Γ`A,∆ Γ0`B,∆0 Γ,Γ0`A∧B,∆,∆0 ` ∧×
Γ`A,∆ Γ`B,∆ Γ,Γ`A∧B,∆,∆ ` ∧×
==============`C Γ,Γ`A∧B,∆
============C` Γ`A∧B,∆
Γ`A,∆
=========W` Γ,Γ0`A,∆
============`W Γ,Γ0`A,∆,∆0
Γ0`B,∆0
=========W` Γ,Γ0`B,∆0
============`W Γ,Γ0`B,∆,∆0
` ∧+ Γ,Γ0`A∧B,∆,∆0
A. Demaille Sequent Calculus, Cut Elimination 25 / 40
Logical Group: Quantifiers
Γ`A,∆ Γ` ∀x·A,∆` ∀
Γ,A[t/x]`∆ Γ,∀x·A`∆ ∀ `
Γ`A[t/x],∆ Γ` ∃x·A,∆ ` ∃
Γ,A`∆ Γ,∃x·A`∆∃ ` In ` ∀and ∃ `,x 6∈FV(Γ,∆).
A. Demaille Sequent Calculus, Cut Elimination 26 / 40
Single Sided
Defining the Negation
Alternatively, one can define the negation as a notation instead of defining it by inference rules.
¬(¬p) := p
¬(A∧B) := ¬A∨ ¬B
¬(A∨B) := ¬A∧ ¬B
¬(∀x·A) := ∃x· ¬A
¬(∃x·A) := ∀x· ¬A
Single Sided
The Full Sequent Calculus
` ¬A,AId
`Γ,A ` ¬A,∆
`Γ,∆ Cut
`Γ
`σ(Γ)X
`Γ
`A,ΓW
`A,A,Γ
`A,Γ C
`A,∆ l∨
`A∨B,∆
`B,∆ r∨
`A∨B,∆
`A,∆ `B,∆
`A∧B,∆ ∧
Cut Elimination
1 Problems of Natural Deduction
2 Sequent Calculus Syntax
LK — Classical Sequent Calculus Cut Elimination
3 Natural Deduction in Sequent Calculus
A. Demaille Sequent Calculus, Cut Elimination 29 / 40
Subformula Property
What can be told from the last rule of a proof?
If the last rule is a cut,
Γ`A,∆ Γ0,A`∆0 Γ,Γ0`∆,∆0 Cut nothing can be said!
Otherwise. . .
Γ`A,∆ Γ`B,∆ Γ`A∧B,∆ ` ∧
Γ,A`∆
l∧ `
Γ,A∧B `∆ · · · premisses can only use subformulasof the conclusion!
A. Demaille Sequent Calculus, Cut Elimination 30 / 40
Cut Elimination
replace “complex” cuts by simpler cuts (smaller formulas) until the cut is on the simplest form, the identity
where it is not longer needed!
Cut Elimination
Logical Rules
Γ`A,∆ Γ`B,∆ Γ`A∧B,∆ ` ∧
Γ0,A`∆0
l∧ ` Γ0,A∧B `∆0 Γ,Γ0`∆,∆0 Cut
; Γ`A,∆ Γ0,A`∆0
Γ,Γ0`∆,∆0 Cut For all the connectives.
Cut Elimination
Removal of a Cut
Identity A`A
··· Γ,A`∆ Γ,A`∆ Cut
;
··· Γ,A`∆
A. Demaille Sequent Calculus, Cut Elimination 33 / 40
Cut Elimination
Commutations
Γ,B `A,∆ Γ,C `A,∆
Γ,B∨C `A,∆ ∨ ` Γ0,A`∆0 Γ,B∨C,Γ0`∆,∆0 Cut
; Γ,B `A,∆ Γ0,A`∆0
Γ,B,Γ0`∆,∆0 Cut
Γ,C `A,∆ Γ0,A`∆0 Γ,C,Γ0`∆,∆0 Cut Γ,B∨C,Γ0`∆,∆0 ∨ `
Beware of the duplication!
A. Demaille Sequent Calculus, Cut Elimination 34 / 40
Cut Elimination
Structural Rules: Weakening
Γ`∆
`W
Γ`A,∆ Γ0,A`∆0 Γ,Γ0`∆,∆0 Cut
; Γ`∆
=======W` Γ,Γ0`∆
Cut Elimination
Structural Rules: Contraction
Γ`A,A,∆
`C
Γ`A,∆ Γ0,A`∆0 Γ,Γ0`∆,∆0 Cut
; Γ`A,A,∆ Γ0,A`∆0
Γ,Γ0`A,∆,∆0 Cut Γ0,A`∆0
0 0 0 0 Cut
Nice!
but wrong might loop for ever
Cut Elimination
Structural Rules: Complications with Contractions
Γ`A,A,∆
`C Γ`A,∆
Γ0,A,A`∆0 C` Γ0,A`∆0 Γ,Γ0`∆,∆0 Cut
;
Γ`A,A,∆
Γ0,A,A`∆0 C` Γ0,A`∆0 Γ,Γ0`A,∆,∆0 Cut
Γ0,A,A`∆0 C` Γ0,A`∆0 Γ,Γ0,Γ0`∆,∆0,∆0 Cut
============== C Γ,Γ0`∆,∆0
A. Demaille Sequent Calculus, Cut Elimination 37 / 40
Natural Deduction in Sequent Calculus
1 Problems of Natural Deduction
2 Sequent Calculus
3 Natural Deduction in Sequent Calculus
A. Demaille Sequent Calculus, Cut Elimination 38 / 40
Recommended readings
[Girard et al., 1989], Chapters 5 & 13
A short (160p.) book addressing all the concerns of this course, and more (especially Linear Logic).
Easy and pleasant to read. Available for free.
Bibliography I
Girard, J.-Y. (2011).
The Blind Spot: Lectures on Logic.
European Mathematical Society.
https://books.google.fr/books?id=eVZZ0wtazo8C.
Girard, J.-Y., Lafont, Y., and Taylor, P. (1989).
Proofs and Types.
Cambridge University Press.
http://www.cs.man.ac.uk/~pt/stable/Proofs+Types.html.