sequent calculus vs. natural deductioncarstenfuehrmann.org/wp-content/uploads/2012/09/handout... ·...

14
Sequent calculus vs. natural deduction . – p.1/14

Upload: others

Post on 16-Aug-2020

4 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Sequent calculus vs. natural deductioncarstenfuehrmann.org/wp-content/uploads/2012/09/handout... · 2012-09-08 · Sequent calculus vs. natural deduction. – p.1/14. Sequent calculus

Sequent calculus vs. naturaldeduction

. – p.1/14

Page 2: Sequent calculus vs. natural deductioncarstenfuehrmann.org/wp-content/uploads/2012/09/handout... · 2012-09-08 · Sequent calculus vs. natural deduction. – p.1/14. Sequent calculus

Sequent calculus andND

Theorem. A sequent Γ ` A is derivable in the se-

quent calculus if and only if it is derivable in natu-

ral deduction.

. – p.2/14

Page 3: Sequent calculus vs. natural deductioncarstenfuehrmann.org/wp-content/uploads/2012/09/handout... · 2012-09-08 · Sequent calculus vs. natural deduction. – p.1/14. Sequent calculus

Sequent calculus andND

Let’s writeΓ `seq ∆

if some sequent Γ ` ∆ is derivable in the sequentcalculus, and

Γ `ND A

if some sequent Γ ` A is derivable in ND. So thetheorem states

Γ `seq A iff Γ `ND A.

. – p.3/14

Page 4: Sequent calculus vs. natural deductioncarstenfuehrmann.org/wp-content/uploads/2012/09/handout... · 2012-09-08 · Sequent calculus vs. natural deduction. – p.1/14. Sequent calculus

From ND to sequentcalculus

We show

Γ `seq A ⇐ Γ `ND A

by induction on the size of the proof ofΓ `ND A.

We proceed by case split on the last ruleused in the proof of Γ `ND A.

. – p.4/14

Page 5: Sequent calculus vs. natural deductioncarstenfuehrmann.org/wp-content/uploads/2012/09/handout... · 2012-09-08 · Sequent calculus vs. natural deduction. – p.1/14. Sequent calculus

AxiomsCase (1): the ND proof is

Ax .Γ, A `ND A

The sequent proof is

AxA `seq A

LW.Γ, A `seq A

. – p.5/14

Page 6: Sequent calculus vs. natural deductioncarstenfuehrmann.org/wp-content/uploads/2012/09/handout... · 2012-09-08 · Sequent calculus vs. natural deduction. – p.1/14. Sequent calculus

ND introduction rulesCase (2): the last rule of the ND proof is anintroduction rule:

→ i,∧i,∨i.

These cases are essentially handled by theright introduction rules

R →, R∧, R ∨ .

of the sequent calculus.

. – p.6/14

Page 7: Sequent calculus vs. natural deductioncarstenfuehrmann.org/wp-content/uploads/2012/09/handout... · 2012-09-08 · Sequent calculus vs. natural deduction. – p.1/14. Sequent calculus

Elimination rulesCase (3): the last rule of the ND proof is anelimination rule.

∧e,→ e,∨e,⊥e.

They are handled by left introduction rulesplus Cut (see lecture).

. – p.7/14

Page 8: Sequent calculus vs. natural deductioncarstenfuehrmann.org/wp-content/uploads/2012/09/handout... · 2012-09-08 · Sequent calculus vs. natural deduction. – p.1/14. Sequent calculus

Reductio adabsurdum

Case (4): the last rule of the ND proof is

Γ,¬A ` ⊥RAA.

Γ ` A

See lecture.

. – p.8/14

Page 9: Sequent calculus vs. natural deductioncarstenfuehrmann.org/wp-content/uploads/2012/09/handout... · 2012-09-08 · Sequent calculus vs. natural deduction. – p.1/14. Sequent calculus

From sequentcalculus to ND

We still have to show

Γ `seq A ⇒ Γ `ND A. (1)

One shows by (a tedious) induction on thesequent proof that

Γ `seq A1, . . . , Am ⇒ Γ,¬A1, . . . ,¬Am `ND ⊥

Then (??) follows from the case m = 1 byRAA.

. – p.9/14

Page 10: Sequent calculus vs. natural deductioncarstenfuehrmann.org/wp-content/uploads/2012/09/handout... · 2012-09-08 · Sequent calculus vs. natural deduction. – p.1/14. Sequent calculus

Soundness andcompleteness

Theorem. The sequent Γ ` ∆ is provable in thesequent calculus if and only if Γ |= ∆.

Proof. The claim follows from soundness &completeness for ND: suppose that∆ = A1, . . . , Am. Then

Γ `seq ∆ ⇐⇒ Γ,¬A1, . . . ,¬Am `ND ⊥

⇐⇒ Γ,¬A1, . . . ,¬Am |= ⊥

⇐⇒ Γ |= A1, . . . , Am.

. – p.10/14

Page 11: Sequent calculus vs. natural deductioncarstenfuehrmann.org/wp-content/uploads/2012/09/handout... · 2012-09-08 · Sequent calculus vs. natural deduction. – p.1/14. Sequent calculus

The subformulaproperty

Definition. An inference rule

Γ1 ` ∆1 . . . Γn ` ∆n

Γ ` ∆

has the subformula property if every formula inthe Γi or ∆j is a subformula of Γ or ∆.

The subformula property is nice, because itlimits the possible hypotheses of Γ ` ∆.

So it helps proof search.

. – p.11/14

Page 12: Sequent calculus vs. natural deductioncarstenfuehrmann.org/wp-content/uploads/2012/09/handout... · 2012-09-08 · Sequent calculus vs. natural deduction. – p.1/14. Sequent calculus

The cut rule

Γ2 ` ∆1, A, ∆3 Γ1, A, Γ3 ` ∆2Cut

Γ1, Γ2, Γ3 ` ∆1, ∆2, ∆3

Needed for translating ND proofs into sequentproofs.

Gentzen’s famous Hauptsatz (main theorem):

Theorem. Every sequent-proof of Γ ` ∆ can be

transformed into a proof of Γ ` ∆ that does not

contain Cut.. – p.12/14

Page 13: Sequent calculus vs. natural deductioncarstenfuehrmann.org/wp-content/uploads/2012/09/handout... · 2012-09-08 · Sequent calculus vs. natural deduction. – p.1/14. Sequent calculus

Sequent calculus forpredicate logic

The quantifier rules are

Γ, A[t/x] ` ∆L∀

Γ,∀x.A ` ∆Γ ` A, ∆

R∀Γ ` ∀x.A, ∆

Γ, A ` ∆L∃

Γ,∃x.A ` ∆Γ ` A[t/x], ∆

R∃,Γ ` ∃x.A, ∆

where in R∀ and L∃ it must hold that x 6∈

FV (Γ, ∆) and in L∀ and R∃ it must hold that t

is free for x in A.

. – p.13/14

Page 14: Sequent calculus vs. natural deductioncarstenfuehrmann.org/wp-content/uploads/2012/09/handout... · 2012-09-08 · Sequent calculus vs. natural deduction. – p.1/14. Sequent calculus

ExerciseShow how

L∀ can be used to express the ND rule ∀e;

L∃ can be used to express the ND rule ∃e.

. – p.14/14