• Aucun résultat trouvé

Demaille Sequent Calculus, Cut Elimination 2 / 40 Preamble The following slides are implicitly dedicated toclassical logic

N/A
N/A
Protected

Academic year: 2022

Partager "Demaille Sequent Calculus, Cut Elimination 2 / 40 Preamble The following slides are implicitly dedicated toclassical logic"

Copied!
10
0
0

Texte intégral

(1)

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

(2)

Normalization

A. Demaille Sequent Calculus, Cut Elimination 5 / 40

Proofs hard to find

Some elimination rules used formulas coming out of the blue.

··· AB

[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

(3)

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”

(4)

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.

(5)

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, Γ`AB, `∧

Γ,A` l∧`

Γ,AB ` Γ,B `

r∧`

Γ,AB `

Additive˘

Γ`A,∆ Γ0`B,0 Γ,A,B ` Multiplicative

Logical Group: Disjunction

Γ`A,

`l Γ`AB,

Γ`B,

`r Γ`AB,

Γ,A`∆ Γ,B ` Γ,AB ` ∨`

Additive

Γ`A,B, Γ,A`∆ Γ0,B `0 Multiplicative˙

(6)

Logical Group: Implication

Γ`∆,A Γ0,B `0 Γ,Γ0,AB `∆,0 ⇒`

Γ,A`B, Γ`AB,`⇒

A. Demaille Sequent Calculus, Cut Elimination 21 / 40

Prove A B ` AB

A`A l∧`

AB `A

B `B

r∧`

AB `B AB `AB `∧

A. Demaille Sequent Calculus, Cut Elimination 22 / 40

Prove AB ` AB

A`A l∧`

AB `A

`r AB `AB

Prove A B ` AB

A`A

`l A`AB

B `B

`r B `AB AB `AB ∨`

(7)

Prove the equivalence of the two rules

Additive Multiplicative Γ`A,∆ Γ`B,

` ∧+

Γ`AB, Γ`A,∆ Γ0`B,0 Γ,Γ0`AB,∆,0 ` ∧×

Γ`A, Γ`B, Γ,Γ`AB,∆, ` ∧×

==============`C Γ,Γ`AB,

============C` Γ`AB,

Γ`A,

=========W` Γ,Γ0`A,

============`W Γ,Γ0`A,∆,0

Γ0`B,0

=========W` Γ,Γ0`B,0

============`W Γ,Γ0`B,∆,0

` ∧+ Γ,Γ0`AB,∆,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

¬(AB) := ¬A∨ ¬B

¬(AB) := ¬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

`AB,

`B, r

`AB,

`A, `B,

`AB,

(8)

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, Γ`AB, ` ∧

Γ,A`

l∧ `

Γ,AB ` · · · 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, Γ`AB, ` ∧

Γ0,A`0

l∧ ` Γ0,AB `0 Γ,Γ0`∆,0 Cut

; Γ`A,∆ Γ0,A`0

Γ,Γ0`∆,0 Cut For all the connectives.

(9)

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,

Γ,BC `A, ∨ ` Γ0,A`0 Γ,BC,Γ0`∆,0 Cut

; Γ,B `A,∆ Γ0,A`0

Γ,B,Γ0`∆,0 Cut

Γ,C `A,∆ Γ0,A`0 Γ,C,Γ0`∆,0 Cut Γ,BC,Γ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

(10)

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.

Références

Documents relatifs

We find 50 miRNAs with significant target enrichment among genes highly expressed in 3 or more tissues, suggesting a pattern of mutual exclusivity between miRNA and

In this paper, we propose a simple interpretation of the most standard focused presentation of MELL, showing how the structure of focused proofs can be described by refined

For example, intuitionistic logic was developed to rid (classical) logic of certain logical principles and model checking

Based on this result, models based on deterministic graph- ings – or equivalently on partial measured dynamical systems – can be defined based on realisability techniques using

We relate these two different views by giving a categorical version of the topological construction, yielding two benefits: on the one hand, we obtain canonical models of the

Es konnte auch gezeigt werden, dass eine TNF-Hem- mer-Therapie mit einer Verbesserung der Knochendichte bei M. Crohn

L'atmosphère est l'enveloppe gazeuse la plus externe de notre planète. Bien que dans la vie de tous les jours elle soit oubliée et parfois ignorée, elle est pourtant

Introduction/Objectifs : l’HbA1c a été approuvée en 2010 par l’ADA pour le diagnostic du diabète sucré. La CLHP d’échange cationique est l’une des méthodes certifiées