Double Dose of Double-Negation Translations Olivier Hermant CRI, - - PowerPoint PPT Presentation

double dose of double negation translations
SMART_READER_LITE
LIVE PREVIEW

Double Dose of Double-Negation Translations Olivier Hermant CRI, - - PowerPoint PPT Presentation

Double Dose of Double-Negation Translations Olivier Hermant CRI, MINES ParisTech June 2, 2014 O. Hermant (Mines) Double Negations June 2, 2014 1 / 37 Double-Negation Translation: Five Ws The theory : automatic theorem proving: classical


slide-1
SLIDE 1

Double Dose of Double-Negation Translations

Olivier Hermant

CRI, MINES ParisTech

June 2, 2014

  • O. Hermant (Mines)

Double Negations June 2, 2014 1 / 37

slide-2
SLIDE 2

Double-Negation Translation: Five Ws

The theory:

◮ automatic theorem proving: classical logic ◮ other logics existing: need for translations ◮ in particular: proof-assistants ◮ related to the grounds: ⋆ cut-elimination for sequent calculus ⋆ extensions to Deduction Modulo

The practice:

◮ a shallow encoding of classical into intuitionistic logic ◮ Zenon modulo’s backend for Dedukti ◮ existing translations: Kolmogorov’s (1925), Gentzen-Gödel’s (1933),

Kuroda’s (1951), Krivine’s (1990), · · ·

  • O. Hermant (Mines)

Double Negations June 2, 2014 2 / 37

slide-3
SLIDE 3

Double-Negation Translation: Five Ws

Objective, minimization:

◮ turns more formulæ into themselves; ◮ shifts a classical proof into an intuitionistic proof of the same formula.

Today:

◮ first-order (classical) logic ◮ the principle of excluded-middle ◮ intuitionistic logic ◮ double-negation translations ◮ minimization ◮ if you’re still alive: ⋆ extension to Deduction modulo ⋆ semantic Double-Negation translations ⋆ cut elimination

  • O. Hermant (Mines)

Double Negations June 2, 2014 3 / 37

slide-4
SLIDE 4

Theorem Proving

What do we prove ?

[Definition] Formula in Propositional Logic

◮ atomic formula: P, Q, · · · ◮ special constants: ⊥, ⊤ ◮ assume A, B are formulæ: A ∧ B, A ∨ B, A ⇒ B, ¬A

Example: P ⇒ Q, P ∧ Q, Q ∨ ¬Q, ⊥ ⇒ (¬⊥), · · ·

  • O. Hermant (Mines)

Double Negations June 2, 2014 4 / 37

slide-5
SLIDE 5

Theorem Proving

What do we prove ?

[Definition] Formula in Propositional Logic

◮ atomic formula: P, Q, · · · ◮ special constants: ⊥, ⊤ ◮ assume A, B are formulæ: A ∧ B, A ∨ B, A ⇒ B, ¬A

Example: P ⇒ Q, P ∧ Q, Q ∨ ¬Q, ⊥ ⇒ (¬⊥), · · ·

[Definition] Formula in First-order Logic

◮ atomic formula: P(t), Q(t, u), · · · ◮ connectives ∧, ∨, ⇒, ¬, ⊥, ⊤ ◮ quantifiers ∀ and ∃. Assume A is a formula and x a variable: ∀xA,

∃xA

◮ new category: terms (denoted a, b, c, t, u) and variables (x, y).

Example: f(x), g(f(c), g(a, c)), · · ·

◮ Example: (∀xP(x)) ⇒ P(f(a)), ∃y(D(y) ⇒ ∀xD(x))

  • O. Hermant (Mines)

Double Negations June 2, 2014 4 / 37

slide-6
SLIDE 6

Theorem Proving

What do we prove ? – Part 2

◮ a theorem/specification is usually formulated as:

assume A, B and C. Then D follows.

  • O. Hermant (Mines)

Double Negations June 2, 2014 5 / 37

slide-7
SLIDE 7

Theorem Proving

What do we prove ? – Part 2

◮ a theorem/specification is usually formulated as:

assume A, B and C. Then D follows.

[Definition] Sequent

A sequent is a set of formulæ A1, · · · , An (the assumptions) denoted Γ, together with a formula B (the conclusion). Notation: Γ ⊢ B

  • O. Hermant (Mines)

Double Negations June 2, 2014 5 / 37

slide-8
SLIDE 8

Theorem Proving

What do we prove ? – Part 2

◮ a theorem/specification is usually formulated as:

assume A, B and C. Then D follows.

[Definition] Sequent

A sequent is a set of formulæ A1, · · · , An (the assumptions) denoted Γ, together with a formula B (the conclusion). Notation: Γ ⊢ B

◮ examples: ⋆ A ⊢ A is a (hopefully provable) sequent ⋆ P(a) ⊢ ∀xP(x) is a (hopefully unprovable) sequent ⋆ A, B ⊢ A ∧ B, A ⊢, A ⊢ ⊥

  • O. Hermant (Mines)

Double Negations June 2, 2014 5 / 37

slide-9
SLIDE 9

Theorem Proving

What do we prove ? – Part 2

◮ a theorem/specification is usually formulated as:

assume A, B and C. Then D follows.

[Definition] Sequent

A sequent is a set of formulæ A1, · · · , An (the assumptions) denoted Γ, together with a formula B (the conclusion). Notation: Γ ⊢ B

◮ examples: ⋆ A ⊢ A is a (hopefully provable) sequent ⋆ P(a) ⊢ ∀xP(x) is a (hopefully unprovable) sequent ⋆ A, B ⊢ A ∧ B, A ⊢, A ⊢ ⊥ ◮ classical logic needs multiconclusion sequent

[Definition] Classical Sequent

A classical sequent is a pair of sets of formulæ, denoted Γ ⊢ ∆

⋆ the sequent A, B ⊢ C, D must be understood as: Assume A and B.

Then C or D

  • O. Hermant (Mines)

Double Negations June 2, 2014 5 / 37

slide-10
SLIDE 10

Theorem Proving

How do we prove ?

◮ we have the formulæ and the statements (sequents), let’s prove them ◮ many proof systems (even for classical FOL) ◮ today: sequent calculus (Gentzen (1933))

  • O. Hermant (Mines)

Double Negations June 2, 2014 6 / 37

slide-11
SLIDE 11

Theorem Proving

How do we prove ?

◮ we have the formulæ and the statements (sequents), let’s prove them ◮ many proof systems (even for classical FOL) ◮ today: sequent calculus (Gentzen (1933))

The shape of rules: premiss/antecedent premiss/antecedent ↑ read this way, please conclusion/consequent

◮ in order for the consequent to hold · · · ◮ · · · we must show that the antecedent(s) hold

Endless process ?

  • O. Hermant (Mines)

Double Negations June 2, 2014 6 / 37

slide-12
SLIDE 12

Theorem Proving

How do we prove ?

◮ we have the formulæ and the statements (sequents), let’s prove them ◮ many proof systems (even for classical FOL) ◮ today: sequent calculus (Gentzen (1933))

The shape of rules: premiss/antecedent premiss/antecedent ↑ read this way, please conclusion/consequent

◮ in order for the consequent to hold · · · ◮ · · · we must show that the antecedent(s) hold

Endless process ? The axiom rule The

⇒R rule

ax A ⊢ A A ⊢ B

⇒R ⊢ A ⇒ B

  • O. Hermant (Mines)

Double Negations June 2, 2014 6 / 37

slide-13
SLIDE 13

Theorem Proving

How do we prove ?

◮ we have the formulæ and the statements (sequents), let’s prove them ◮ many proof systems (even for classical FOL) ◮ today: sequent calculus (Gentzen (1933))

The shape of rules: premiss/antecedent premiss/antecedent ↑ read this way, please conclusion/consequent

◮ in order for the consequent to hold · · · ◮ · · · we must show that the antecedent(s) hold

Endless process ? The axiom rule The

⇒R rule

ax A ⊢ A A ⊢ B

⇒R ⊢ A ⇒ B

◮ First example of proof:

ax A ⊢ A

⇒R ⊢ A ⇒ A

  • O. Hermant (Mines)

Double Negations June 2, 2014 6 / 37

slide-14
SLIDE 14

Theorem Proving

How do we prove ?

◮ we have the formulæ and the statements (sequents), let’s prove them ◮ many proof systems (even for classical FOL) ◮ today: sequent calculus (Gentzen (1933))

The shape of rules: premiss/antecedent premiss/antecedent ↑ read this way, please conclusion/consequent

◮ in order for the consequent to hold · · · ◮ · · · we must show that the antecedent(s) hold

Endless process ? The real axiom rule The real ⇒R rule ax

Γ, A ⊢ A, ∆ Γ, A ⊢ B, ∆ ⇒R Γ ⊢ A ⇒ B, ∆

◮ First example of proof:

ax A ⊢ A

⇒R ⊢ A ⇒ A

  • O. Hermant (Mines)

Double Negations June 2, 2014 6 / 37

slide-15
SLIDE 15

The Classical Sequent Calculus (LK)

ax Γ, A ⊢ A, ∆ Γ, A, B ⊢ ∆ ∧L Γ, A ∧ B ⊢ ∆ Γ ⊢ A, ∆ Γ ⊢ B, ∆ ∧R Γ ⊢ A ∧ B, ∆ Γ, A ⊢ ∆ Γ, B ⊢ ∆ ∨L Γ, A ∨ B ⊢ ∆ Γ ⊢ A, B, ∆ ∨R Γ ⊢ A ∨ B, ∆ Γ ⊢ A, ∆ Γ, B ⊢ ∆ ⇒L Γ, A ⇒ B ⊢ ∆ Γ, A ⊢ B, ∆ ⇒R Γ ⊢ A ⇒ B, ∆ Γ ⊢ A, ∆ ¬L Γ, ¬A ⊢ ∆ Γ, A ⊢ ∆ ¬R Γ ⊢ ¬A, ∆ Γ, A[c/x] ⊢ ∆ ∃L Γ, ∃xA ⊢ ∆ Γ ⊢ A[t/x], ∆ ∃R Γ ⊢ ∃xA, ∆ Γ, A[t/x] ⊢ ∆ ∀L Γ, ∀xA ⊢ ∆ Γ ⊢ A[c/x], ∆ ∀R Γ ⊢ ∀xA, ∆

  • O. Hermant (Mines)

Double Negations June 2, 2014 7 / 37

slide-16
SLIDE 16

Basic Examples

◮ commutativity of the conjunction:

A ∧ B ⊢ B ∧ A

  • O. Hermant (Mines)

Double Negations June 2, 2014 8 / 37

slide-17
SLIDE 17

Basic Examples

◮ commutativity of the conjunction:

A, B ⊢ B ∧ A

∧L

A ∧ B ⊢ B ∧ A

  • O. Hermant (Mines)

Double Negations June 2, 2014 8 / 37

slide-18
SLIDE 18

Basic Examples

◮ commutativity of the conjunction:

A, B ⊢ B A, B ⊢ A ∧R A, B ⊢ B ∧ A

∧L

A ∧ B ⊢ B ∧ A

  • O. Hermant (Mines)

Double Negations June 2, 2014 8 / 37

slide-19
SLIDE 19

Basic Examples

◮ commutativity of the conjunction:

ax A, B ⊢ B A, B ⊢ A ∧R A, B ⊢ B ∧ A

∧L

A ∧ B ⊢ B ∧ A

  • O. Hermant (Mines)

Double Negations June 2, 2014 8 / 37

slide-20
SLIDE 20

Basic Examples

◮ commutativity of the conjunction:

ax A, B ⊢ B ax A, B ⊢ A ∧R A, B ⊢ B ∧ A

∧L

A ∧ B ⊢ B ∧ A

  • O. Hermant (Mines)

Double Negations June 2, 2014 8 / 37

slide-21
SLIDE 21

Basic Examples

◮ commutativity of the conjunction:

ax A, B ⊢ B ax A, B ⊢ A ∧R A, B ⊢ B ∧ A

∧L

A ∧ B ⊢ B ∧ A

◮ an alternative proof:

A ∧ B ⊢ A ∧R A ∧ B ⊢ B ∧ A

  • O. Hermant (Mines)

Double Negations June 2, 2014 8 / 37

slide-22
SLIDE 22

Basic Examples

◮ commutativity of the conjunction:

ax A, B ⊢ B ax A, B ⊢ A ∧R A, B ⊢ B ∧ A

∧L

A ∧ B ⊢ B ∧ A

◮ an alternative proof:

ax A, B ⊢ A

∧L

A ∧ B ⊢ A ∧R A ∧ B ⊢ B ∧ A

  • O. Hermant (Mines)

Double Negations June 2, 2014 8 / 37

slide-23
SLIDE 23

Basic Examples

◮ commutativity of the conjunction:

ax A, B ⊢ B ax A, B ⊢ A ∧R A, B ⊢ B ∧ A

∧L

A ∧ B ⊢ B ∧ A

◮ an alternative proof:

ax A, B ⊢ B

∧L A ∧ B ⊢ B

ax A, B ⊢ A

∧L

A ∧ B ⊢ A ∧R A ∧ B ⊢ B ∧ A

  • O. Hermant (Mines)

Double Negations June 2, 2014 8 / 37

slide-24
SLIDE 24

Basic Examples

◮ commutativity of the conjunction:

ax A, B ⊢ B ax A, B ⊢ A ∧R A, B ⊢ B ∧ A

∧L

A ∧ B ⊢ B ∧ A

◮ an alternative proof:

ax A, B ⊢ B

∧L A ∧ B ⊢ B

ax A, B ⊢ A

∧L

A ∧ B ⊢ A ∧R A ∧ B ⊢ B ∧ A

◮ this is an example of the liberty allowed by Sequent Calculus

  • O. Hermant (Mines)

Double Negations June 2, 2014 8 / 37

slide-25
SLIDE 25

Basic Examples

◮ commutativity of the conjunction:

ax A, B ⊢ B ax A, B ⊢ A ∧R A, B ⊢ B ∧ A

∧L

A ∧ B ⊢ B ∧ A

◮ an alternative proof:

ax A, B ⊢ B

∧L A ∧ B ⊢ B

ax A, B ⊢ A

∧L

A ∧ B ⊢ A ∧R A ∧ B ⊢ B ∧ A

◮ this is an example of the liberty allowed by Sequent Calculus ◮ excluded-middle:

ax A ⊢ A

¬R ⊢ A, ¬A ∨R ⊢ A ∨ ¬A

  • O. Hermant (Mines)

Double Negations June 2, 2014 8 / 37

slide-26
SLIDE 26

More interesting examples

◮ uniform continuity implies continuity:

ax P(x, y) ⊢ P(x, y)

∃R (with y)

P(x, y) ⊢ ∃yP(x, y)

∀L (with x) ∀xP(x, y) ⊢ ∃yP(x, y) ∀R (x fresh) ∀xP(x, y) ⊢ ∀x∃yP(x, y) ∃L (y fresh) ∃y∀xP(x, y) ⊢ ∀x∃yP(x, y)

◮ the converse is fortunately not provable:

stuck

∃yP(x, y) ⊢ ∀xP(x, y) ∃R (with y) ∃yP(x, y) ⊢ ∃y∀xP(x, y) ∀L (with x) ∀x∃yP(x, y) ⊢ ∃y∀xP(x, y)

  • O. Hermant (Mines)

Double Negations June 2, 2014 9 / 37

slide-27
SLIDE 27

The Excluded Middle

[Theorem] Drinker’s Principle

In every bar, there is a person that, if s/he drinks, then everybody drinks.

◮ paradoxical ? let’s prove it:

ax D(t0), D(x) ⊢ D(x), ∀xD(x) ⇒R D(t0) ⊢ D(x), D(x)⇒∀xD(x) ∃R (with x !) D(t0) ⊢ D(x), ∃y(D(y) ⇒ ∀xD(x)) ∀R (x fresh) D(t0) ⊢ ∀xD(x), ∃y(D(y) ⇒ ∀xD(x)) ⇒R ⊢ D(t0)⇒∀xD(x), ∃y(D(y) ⇒ ∀xD(x)) ∃R ⊢ ∃y(D(y) ⇒ ∀xD(x)), ∃y(D(y) ⇒ ∀xD(x)) structural rule ⊢ ∃y(D(y) ⇒ ∀xD(x))

  • O. Hermant (Mines)

Double Negations June 2, 2014 10 / 37

slide-28
SLIDE 28

The Excluded Middle

[Theorem] Drinker’s Principle

In every bar, there is a person that, if s/he drinks, then everybody drinks.

◮ paradoxical ? let’s prove it:

ax D(t0), D(x) ⊢ D(x), ∀xD(x) ⇒R D(t0) ⊢ D(x), D(x)⇒∀xD(x) ∃R (with x !) D(t0) ⊢ D(x), ∃y(D(y) ⇒ ∀xD(x)) ∀R (x fresh) D(t0) ⊢ ∀xD(x), ∃y(D(y) ⇒ ∀xD(x)) ⇒R ⊢ D(t0)⇒∀xD(x), ∃y(D(y) ⇒ ∀xD(x)) ∃R ⊢ ∃y(D(y) ⇒ ∀xD(x)), ∃y(D(y) ⇒ ∀xD(x)) structural rule ⊢ ∃y(D(y) ⇒ ∀xD(x))

◮ basically: either someone does not drink or everybody drinks.

  • O. Hermant (Mines)

Double Negations June 2, 2014 10 / 37

slide-29
SLIDE 29

The Excluded Middle

[Theorem] Drinker’s Principle

In every bar, there is a person that, if s/he drinks, then everybody drinks.

◮ paradoxical ? let’s prove it:

ax D(t0), D(x) ⊢ D(x), ∀xD(x) ⇒R D(t0) ⊢ D(x), D(x)⇒∀xD(x) ∃R (with x !) D(t0) ⊢ D(x), ∃y(D(y) ⇒ ∀xD(x)) ∀R (x fresh) D(t0) ⊢ ∀xD(x), ∃y(D(y) ⇒ ∀xD(x)) ⇒R ⊢ D(t0)⇒∀xD(x), ∃y(D(y) ⇒ ∀xD(x)) ∃R ⊢ ∃y(D(y) ⇒ ∀xD(x)), ∃y(D(y) ⇒ ∀xD(x)) structural rule ⊢ ∃y(D(y) ⇒ ∀xD(x))

◮ basically: either someone does not drink or everybody drinks. ◮ not informative: ⋆ no constructive witness (the “best man”) ⋆ “Fermat’s theorem is true” or not “Fermat’s theorem is true”

  • O. Hermant (Mines)

Double Negations June 2, 2014 10 / 37

slide-30
SLIDE 30

The Excluded Middle

[Theorem] Drinker’s Principle

In every bar, there is a person that, if s/he drinks, then everybody drinks.

◮ paradoxical ? let’s prove it:

ax D(t0), D(x) ⊢ D(x), ∀xD(x) ⇒R D(t0) ⊢ D(x), D(x)⇒∀xD(x) ∃R (with x !) D(t0) ⊢ D(x), ∃y(D(y) ⇒ ∀xD(x)) ∀R (x fresh) D(t0) ⊢ ∀xD(x), ∃y(D(y) ⇒ ∀xD(x)) ⇒R ⊢ D(t0)⇒∀xD(x), ∃y(D(y) ⇒ ∀xD(x)) ∃R ⊢ ∃y(D(y) ⇒ ∀xD(x)), ∃y(D(y) ⇒ ∀xD(x)) structural rule ⊢ ∃y(D(y) ⇒ ∀xD(x))

◮ basically: either someone does not drink or everybody drinks. ◮ not informative: ⋆ no constructive witness (the “best man”) ⋆ “Fermat’s theorem is true” or not “Fermat’s theorem is true” ◮ PEM (A ∨ ¬A for free) rejected by Brouwer, Heyting, Kolmogorov

(and all the constructivists).

⋆ bad also for the “proof-as-program” correpondence (Curry-Howard

correspondence) until very recent advances (control operators)

  • O. Hermant (Mines)

Double Negations June 2, 2014 10 / 37

slide-31
SLIDE 31

The Classical Sequent Calculus (LK)

ax Γ, A ⊢ A, ∆ Γ, A, B ⊢ ∆ ∧L Γ, A ∧ B ⊢ ∆ Γ ⊢ A, ∆ Γ ⊢ B, ∆ ∧R Γ ⊢ A ∧ B, ∆ Γ, A ⊢ ∆ Γ, B ⊢ ∆ ∨L Γ, A ∨ B ⊢ ∆ Γ ⊢ A, B, ∆ ∨R Γ ⊢ A ∨ B, ∆ Γ ⊢ A, ∆ Γ, B ⊢ ∆ ⇒L Γ, A ⇒ B ⊢ ∆ Γ, A ⊢ B, ∆ ⇒R Γ ⊢ A ⇒ B, ∆ Γ ⊢ A, ∆ ¬L Γ, ¬A ⊢ ∆ Γ, A ⊢ ∆ ¬R Γ ⊢ ¬A, ∆ Γ, A[c/x] ⊢ ∆ ∃L Γ, ∃xA ⊢ ∆ Γ ⊢ A[t/x], ∆ ∃R Γ ⊢ ∃xA, ∆ Γ, A[t/x] ⊢ ∆ ∀L Γ, ∀xA ⊢ ∆ Γ ⊢ A[c/x], ∆ ∀R Γ ⊢ ∀xA, ∆

  • O. Hermant (Mines)

Double Negations June 2, 2014 11 / 37

slide-32
SLIDE 32

The Intuitionistic Sequent Calculus (LJ)

ax Γ, A ⊢ A Γ, A, B ⊢ ∆ ∧L Γ, A ∧ B ⊢ ∆ Γ ⊢ A Γ ⊢ B ∧R Γ ⊢ A ∧ B Γ, A ⊢ ∆ Γ, B ⊢ ∆ ∨L Γ, A ∨ B ⊢ ∆ Γ ⊢ A ∨R1 Γ ⊢ A ∨ B Γ ⊢ B ∨R2 Γ ⊢ A ∨ B Γ ⊢ A Γ, B ⊢ ∆ ⇒L Γ, A ⇒ B ⊢ ∆ Γ, A ⊢ B ⇒R Γ ⊢ A ⇒ B Γ ⊢ A ¬L Γ, ¬A ⊢ ∆ Γ, A ⊢ ¬R Γ ⊢ ¬A Γ, A[c/x] ⊢ ∆ ∃L Γ, ∃xA ⊢ ∆ Γ ⊢ A[t/x] ∃R Γ ⊢ ∃xA Γ, A[t/x] ⊢ ∆ ∀L Γ, ∀xA ⊢ ∆ Γ ⊢ A[c/x] ∀R Γ ⊢ ∀xA

  • O. Hermant (Mines)

Double Negations June 2, 2014 12 / 37

slide-33
SLIDE 33

Example of Proof

◮ commutativity of the disjunction. Attempt #1:

A ∨ B ⊢ B ∨ A

  • O. Hermant (Mines)

Double Negations June 2, 2014 13 / 37

slide-34
SLIDE 34

Example of Proof

◮ commutativity of the disjunction. Attempt #1:

A ∨ B ⊢ B

∨R1

A ∨ B ⊢ B ∨ A

  • O. Hermant (Mines)

Double Negations June 2, 2014 13 / 37

slide-35
SLIDE 35

Example of Proof

◮ commutativity of the disjunction. Attempt #1:

??? A ⊢ B ax B ⊢ B ∨L A ∨ B ⊢ B

∨R1

A ∨ B ⊢ B ∨ A

  • O. Hermant (Mines)

Double Negations June 2, 2014 13 / 37

slide-36
SLIDE 36

Example of Proof

◮ commutativity of the disjunction. Attempt #2:

A ∨ B ⊢ B ∨ A

  • O. Hermant (Mines)

Double Negations June 2, 2014 13 / 37

slide-37
SLIDE 37

Example of Proof

◮ commutativity of the disjunction. Attempt #2:

A ∨ B ⊢ A

∨R2

A ∨ B ⊢ B ∨ A

  • O. Hermant (Mines)

Double Negations June 2, 2014 13 / 37

slide-38
SLIDE 38

Example of Proof

◮ commutativity of the disjunction. Attempt #2:

ax A ⊢ A

???

B ⊢ A ∨L A ∨ B ⊢ A

∨R2

A ∨ B ⊢ B ∨ A

  • O. Hermant (Mines)

Double Negations June 2, 2014 13 / 37

slide-39
SLIDE 39

Example of Proof

◮ commutativity of the disjunction. Attempt #3:

A ∨ B ⊢ B ∨ A

  • O. Hermant (Mines)

Double Negations June 2, 2014 13 / 37

slide-40
SLIDE 40

Example of Proof

◮ commutativity of the disjunction. Attempt #3:

A ⊢ B ∨ A B ⊢ B ∨ A ∨L A ∨ B ⊢ B ∨ A

  • O. Hermant (Mines)

Double Negations June 2, 2014 13 / 37

slide-41
SLIDE 41

Example of Proof

◮ commutativity of the disjunction. Attempt #3:

ax A ⊢ A

∨R2 A ⊢ B ∨ A

ax B ⊢ B

∨R1

B ⊢ B ∨ A ∨L A ∨ B ⊢ B ∨ A

  • O. Hermant (Mines)

Double Negations June 2, 2014 13 / 37

slide-42
SLIDE 42

Example of Proof

◮ commutativity of the disjunction. Attempt #3:

ax A ⊢ A

∨R2 A ⊢ B ∨ A

ax B ⊢ B

∨R1

B ⊢ B ∨ A ∨L A ∨ B ⊢ B ∨ A

◮ compare with proofs in classical logic:

ax B ⊢ B, A ∨R B ⊢ B ∨ A ax A ⊢ B, A ∨R A ⊢ B ∨ A ∨L A ∨ B ⊢ B ∨ A ax A ⊢ B, A ax B ⊢ B, A ∨L A ∨ B ⊢ B, A ∨R A ∨ B ⊢ B ∨ A

◮ in particular, no intuitionistic proof of ⊢ A ∨ ¬A: does it begins with

∨R1, or with ∨R2 ?

  • O. Hermant (Mines)

Double Negations June 2, 2014 13 / 37

slide-43
SLIDE 43

Weakening the statements

The excluded-middle (A ∨ ¬A):

◮ is not universal: the world is not Manichean ! (“with us, or against us”)

  • O. Hermant (Mines)

Double Negations June 2, 2014 14 / 37

slide-44
SLIDE 44

Weakening the statements

The excluded-middle (A ∨ ¬A):

◮ is not universal: the world is not Manichean ! (“with us, or against us”) ◮ Equivalent to double-negation principle: ¬¬A ⇒ A.

Double-Negation Principle ¬¬A (“A is not inconsistent”) is equivalent to A

  • O. Hermant (Mines)

Double Negations June 2, 2014 14 / 37

slide-45
SLIDE 45

Weakening the statements

The excluded-middle (A ∨ ¬A):

◮ is not universal: the world is not Manichean ! (“with us, or against us”) ◮ Equivalent to double-negation principle: ¬¬A ⇒ A.

Double-Negation Principle ¬¬A (“A is not inconsistent”) is equivalent to A

⋆ Still controversial: “If you are not innocent, then you are guilty” ⋆ Exercises: Show, in classical logic, that ⊢ A ⇒ (¬¬A) and ⊢ (¬¬A) ⇒ A.

Harder: show ⊢ A ∨ ¬A in intuitionistic logic + DN principle.

  • O. Hermant (Mines)

Double Negations June 2, 2014 14 / 37

slide-46
SLIDE 46

Weakening the statements

The excluded-middle (A ∨ ¬A):

◮ is not universal: the world is not Manichean ! (“with us, or against us”) ◮ Equivalent to double-negation principle: ¬¬A ⇒ A.

Double-Negation Principle ¬¬A (“A is not inconsistent”) is equivalent to A

⋆ Still controversial: “If you are not innocent, then you are guilty” ⋆ Exercises: Show, in classical logic, that ⊢ A ⇒ (¬¬A) and ⊢ (¬¬A) ⇒ A.

Harder: show ⊢ A ∨ ¬A in intuitionistic logic + DN principle.

◮ from an intuitionistic point of view, ¬¬B is weaker than B:

ax A ⊢ A ∨R1 A ⊢ A ∨ ¬A ¬L ¬(A ∨ ¬A), A ⊢ ¬R ¬(A ∨ ¬A) ⊢ ¬A ∨R2 ¬(A ∨ ¬A) ⊢ A ∨ ¬A ¬L ¬(A ∨ ¬A), ¬(A ∨ ¬A) ⊢ structural rule ¬(A ∨ ¬A) ⊢ ¬R ⊢ ¬¬(A ∨ ¬A) The principle of excluded-middle is not inconsistent

  • O. Hermant (Mines)

Double Negations June 2, 2014 14 / 37

slide-47
SLIDE 47

Double-Negation Translations

This drives us to try to systematically “weaken” classical formulæ to turn them into intuitionistically provable formulæ: Kolmogorov’s Translation PKo = ¬¬P (atoms)

(B ∧ C)Ko = ¬¬(BKo ∧ CKo) (B ∨ C)Ko = ¬¬(BKo ∨ CKo) (B ⇒ C)Ko = ¬¬(BKo ⇒ CKo) (∀xA)Ko = ¬¬(∀xAKo) (∃xA)Ko = ¬¬(∃xAKo) Theorem Γ ⊢ ∆ is provable in LK iff ΓKo, ∆Ko ⊢ is provable in LJ. Antinegation

is an operator, such that:

◮ ¬A = A; ◮ B = ¬B otherwise.

  • O. Hermant (Mines)

Double Negations June 2, 2014 15 / 37

slide-48
SLIDE 48

How does it work ?

Let us turn a (classical) proof of into a proof of its translation:

ax A ⊢ A ⇒R ⊢ A ⇒ A ←→ ←→ ax

¬A ⊢ ¬A ¬L ¬¬A, ¬A ⊢ ¬R ¬¬A ⊢ ¬¬A

⇒R ⊢ (¬¬A) ⇒ (¬¬A)

¬L ¬((¬¬A) ⇒ (¬¬A)) ⊢

Negation is bouncing:

◮ systematically: go from left to right, apply the same rule, and go from

right to left

  • O. Hermant (Mines)

Double Negations June 2, 2014 16 / 37

slide-49
SLIDE 49

How does it work ?

Let us turn a (classical) proof of into a proof of its translation:

ax A ⊢ A ⇒R ⊢ A ⇒ A ←→ ←→ ax

¬A ⊢ ¬A ¬L ¬¬A, ¬A ⊢ ¬R ¬¬A ⊢ ¬¬A

⇒R ⊢ (¬¬A) ⇒ (¬¬A)

¬L ¬((¬¬A) ⇒ (¬¬A)) ⊢

Negation is bouncing:

◮ systematically: go from left to right, apply the same rule, and go from

right to left

◮ many double negations are superflous: in the previous case, almost

each of them (not hard to see that ⊢ A ⇒ A has an intuitionistic proof)

  • O. Hermant (Mines)

Double Negations June 2, 2014 16 / 37

slide-50
SLIDE 50

How does it work ?

Let us turn a (classical) proof of into a proof of its translation:

ax A ⊢ A ⇒R ⊢ A ⇒ A ←→ ←→ ax

¬A ⊢ ¬A ¬L ¬¬A, ¬A ⊢ ¬R ¬¬A ⊢ ¬¬A

⇒R ⊢ (¬¬A) ⇒ (¬¬A)

¬L ¬((¬¬A) ⇒ (¬¬A)) ⊢

Negation is bouncing:

◮ systematically: go from left to right, apply the same rule, and go from

right to left

◮ many double negations are superflous: in the previous case, almost

each of them (not hard to see that ⊢ A ⇒ A has an intuitionistic proof)

◮ Congratulations ! This is the topic of this talk

The Problem

Have the least possible ¬¬ in the translated formula.

◮ what do we gain ? We preserve the strength of theorems.

  • O. Hermant (Mines)

Double Negations June 2, 2014 16 / 37

slide-51
SLIDE 51

Remarks on LK and LJ

◮ left-rules seem very similar in both cases ◮ so, lhs formulæ can be translated by themselves ◮ this accounts for polarizing the translations

Positive and Negative occurrences

◮ An occurrence of A in B is positive if: ⋆ B = A ⋆ B = C ⋆ D [⋆ = ∧, ∨] and the occurrence of A is in C or in D and

positive

⋆ B = C ⇒ D and the occurrence of A is in C (resp. in D) and negative

(resp. positive)

⋆ B = Qx C [Q = ∀, ∃] and the occurrence of A is in C and is positive ◮ Dually for negative occurrences.

  • O. Hermant (Mines)

Double Negations June 2, 2014 17 / 37

slide-52
SLIDE 52

The Classical Sequent Calculus (LK)

ax Γ, A ⊢ A, ∆ Γ, A, B ⊢ ∆ ∧L Γ, A ∧ B ⊢ ∆ Γ ⊢ A, ∆ Γ ⊢ B, ∆ ∧R Γ ⊢ A ∧ B, ∆ Γ, A ⊢ ∆ Γ, B ⊢ ∆ ∨L Γ, A ∨ B ⊢ ∆ Γ ⊢ A, B, ∆ ∨R Γ ⊢ A ∨ B, ∆ Γ ⊢ A, ∆ Γ, B ⊢ ∆ ⇒L Γ, A ⇒ B ⊢ ∆ Γ, A ⊢ B, ∆ ⇒R Γ ⊢ A ⇒ B, ∆ Γ ⊢ A, ∆ ¬L Γ, ¬A ⊢ ∆ Γ, A ⊢ ∆ ¬R Γ ⊢ ¬A, ∆ Γ, A[c/x] ⊢ ∆ ∃L Γ, ∃xA ⊢ ∆ Γ ⊢ A[t/x], ∆ ∃R Γ ⊢ ∃xA, ∆ Γ, A[t/x] ⊢ ∆ ∀L Γ, ∀xA ⊢ ∆ Γ ⊢ A[c/x], ∆ ∀R Γ ⊢ ∀xA, ∆

  • O. Hermant (Mines)

Double Negations June 2, 2014 18 / 37

slide-53
SLIDE 53

The Intuitionistic Sequent Calculus (LJ)

ax Γ, A ⊢ A Γ, A, B ⊢ ∆ ∧L Γ, A ∧ B ⊢ ∆ Γ ⊢ A Γ ⊢ B ∧R Γ ⊢ A ∧ B Γ, A ⊢ ∆ Γ, B ⊢ ∆ ∨L Γ, A ∨ B ⊢ ∆ Γ ⊢ A ∨R1 Γ ⊢ A ∨ B Γ ⊢ B ∨R2 Γ ⊢ A ∨ B Γ ⊢ A Γ, B ⊢ ∆ ⇒L Γ, A ⇒ B ⊢ ∆ Γ, A ⊢ B ⇒R Γ ⊢ A ⇒ B Γ ⊢ A ¬L Γ, ¬A ⊢ ∆ Γ, A ⊢ ¬R Γ ⊢ ¬A Γ, A[c/x] ⊢ ∆ ∃L Γ, ∃xA ⊢ ∆ Γ ⊢ A[t/x] ∃R Γ ⊢ ∃xA Γ, A[t/x] ⊢ ∆ ∀L Γ, ∀xA ⊢ ∆ Γ ⊢ A[c/x] ∀R Γ ⊢ ∀xA

  • O. Hermant (Mines)

Double Negations June 2, 2014 19 / 37

slide-54
SLIDE 54

Light Kolmogorov’s Translation

Moving negation from connectives to formulæ [DowekWerner]: BK

= B

(atoms)

(B ∧ C)K = (¬¬BK ∧ ¬¬CK ) (B ∨ C)K = (¬¬BK ∨ ¬¬CK ) (B ⇒ C)K = (¬¬BK ⇒ ¬¬CK ) (∀xA)K = ∀x¬¬AK (∃xA)K = ∃x¬¬AK Theorem Γ ⊢ ∆ is provable in LK iff ΓK , ¬∆K ⊢ is provable in LJ. Correspondence

AKo = ¬¬AK

  • O. Hermant (Mines)

Double Negations June 2, 2014 20 / 37

slide-55
SLIDE 55

Polarizing Light Kolmogorov’s translation

Warming-up. Consider left-hand and right-hand side formulæ: LHS RHS BK

= B

BK

= B (B ∧ C)K = (¬¬BK ∧ ¬¬CK ) (B ∧ C)K = (¬¬BK ∧ ¬¬CK ) (B ∨ C)K = (¬¬BK ∨ ¬¬CK ) (B ∨ C)K = (¬¬BK ∨ ¬¬CK ) (B ⇒ C)K = (¬¬BK ⇒ ¬¬CK ) (B ⇒ C)K = (¬¬BK ⇒ ¬¬CK ) (∀xA)K = ∀x¬¬AK (∀xA)K = ∀x¬¬AK (∃xA)K = ∃x¬¬AK (∃xA)K = ∃x¬¬AK Example of translation ((A ∨ B) ⇒ C)K is ¬¬(¬¬A ∨ ¬¬B) ⇒ ¬¬C ((A ∨ B) ⇒ C)K is ¬¬(¬¬A ∨ ¬¬B) ⇒ ¬¬C

  • O. Hermant (Mines)

Double Negations June 2, 2014 21 / 37

slide-56
SLIDE 56

Polarizing Light Kolmogorov’s Translation

Warming-up. Consider left-hand and right-hand side formulæ: LHS RHS BK+ = B BK− = B

(B ∧ C)K+ = (

BK+ ∧ CK+)

(B ∧ C)K− = (¬¬BK− ∧ ¬¬CK−) (B ∨ C)K+ = (

BK+ ∨ CK+)

(B ∨ C)K− = (¬¬BK− ∨ ¬¬CK−) (B ⇒ C)K+ = (¬¬BK− ⇒

CK+)

(B ⇒ C)K− = (

BK+ ⇒ ¬¬CK−)

(∀xA)K+ = ∀xAK+ (∀xA)K− = ∀x¬¬AK− (∃xA)K+ = ∃xAK+ (∃xA)K− = ∃x¬¬AK− Example of translation ((A ∨ B) ⇒ C)K+ is ¬¬(¬¬A ∨ ¬¬B) ⇒ C ((A ∨ B) ⇒ C)K− is (A ∨ B) ⇒ ¬¬C

  • O. Hermant (Mines)

Double Negations June 2, 2014 22 / 37

slide-57
SLIDE 57

Results on Polarized Kolmogorov’s Translation

Theorem

If Γ ⊢ ∆ is provable in LK, then ΓK+, ¬∆K− ⊢ is provable in LJ. Proof: by induction. Negation is still bouncing. Example:

π1 Γ ⊢ A, ∆ π2 Γ ⊢ B, ∆ ∧R Γ ⊢ A ∧ B, ∆

is turned into:

π′

1

ΓK+, ¬AK−, ¬∆K− ⊢ π′

2

ΓK+, ¬BK−, ¬∆K− ⊢ ∧R ΓK+, ¬(¬¬AK− ∧ ¬¬BK−), ¬∆K− ⊢

  • O. Hermant (Mines)

Double Negations June 2, 2014 23 / 37

slide-58
SLIDE 58

Results on Polarized Kolmogorov’s Translation

Theorem

If Γ ⊢ ∆ is provable in LK, then ΓK+, ¬∆K− ⊢ is provable in LJ. Proof: by induction. Negation is still bouncing. Example:

π1 Γ ⊢ A, ∆ π2 Γ ⊢ B, ∆ ∧R Γ ⊢ A ∧ B, ∆

is turned into:

π′

1

ΓK+, ¬AK−, ¬∆K− ⊢ π′

2

ΓK+, ¬BK−, ¬∆K− ⊢ ∧R ΓK+, ¬∆K− ⊢ ¬¬AK− ∧ ¬¬BK− ¬L ΓK+, ¬(¬¬AK− ∧ ¬¬BK−), ¬∆K− ⊢

  • O. Hermant (Mines)

Double Negations June 2, 2014 23 / 37

slide-59
SLIDE 59

Results on Polarized Kolmogorov’s Translation

Theorem

If Γ ⊢ ∆ is provable in LK, then ΓK+, ¬∆K− ⊢ is provable in LJ. Proof: by induction. Negation is still bouncing. Example:

π1 Γ ⊢ A, ∆ π2 Γ ⊢ B, ∆ ∧R Γ ⊢ A ∧ B, ∆

is turned into:

π′

1

ΓK+, ¬AK−, ¬∆K− ⊢ ΓK+, ¬∆K− ⊢ ¬¬AK− π′

2

ΓK+, ¬BK−, ¬∆K− ⊢ ΓK+, ¬∆K− ⊢ ¬¬BK− ∧R ΓK+, ¬∆K− ⊢ ¬¬AK− ∧ ¬¬BK− ¬L ΓK+, ¬(¬¬AK− ∧ ¬¬BK−), ¬∆K− ⊢

  • O. Hermant (Mines)

Double Negations June 2, 2014 23 / 37

slide-60
SLIDE 60

Results on Polarized Kolmogorov’s Translation

Theorem

If Γ ⊢ ∆ is provable in LK, then ΓK+, ¬∆K− ⊢ is provable in LJ. Proof: by induction. Negation is still bouncing. Example:

π1 Γ ⊢ A, ∆ π2 Γ ⊢ B, ∆ ∧R Γ ⊢ A ∧ B, ∆

is turned into:

π′

1

ΓK+, ¬AK−, ¬∆K− ⊢ ¬R ΓK+, ¬∆K− ⊢ ¬¬AK− π′

2

ΓK+, ¬BK−, ¬∆K− ⊢ ¬R ΓK+, ¬∆K− ⊢ ¬¬BK− ∧R ΓK+, ¬∆K− ⊢ ¬¬AK− ∧ ¬¬BK− ¬L ΓK+, ¬(¬¬AK− ∧ ¬¬BK−), ¬∆K− ⊢

  • O. Hermant (Mines)

Double Negations June 2, 2014 23 / 37

slide-61
SLIDE 61

Results on Polarized Kolmogorov’s Translation

Theorem

If Γ ⊢ ∆ is provable in LK, then ΓK+, ¬∆K− ⊢ is provable in LJ. Proof: by induction. Negation is bouncing. Example: π1 Γ ⊢ A, ∆ π2 Γ ⊢ B, ∆ ∧R

becomes Γ ⊢ A ∧ B, ∆ π′

1

ΓK+, ¬A K−, ¬∆K− ⊢ ¬R ΓK+, ¬∆K− ⊢ ¬¬A K− π′

2

ΓK+, ¬BK−, ¬∆K− ⊢ ¬R ΓK+, ¬∆K− ⊢ ¬¬BK− ∧R ΓK+, ¬∆K− ⊢ ¬¬A K− ∧ ¬¬BK− ¬L ΓK+, ¬(¬¬A K− ∧ ¬¬BK−), ¬∆K− ⊢

Theorem

If ΓK+, ¬∆K− ⊢ is provable in LJ, then Γ ⊢ ∆ is provable in LK. Proof: ad-hoc generalization.

  • O. Hermant (Mines)

Double Negations June 2, 2014 24 / 37

slide-62
SLIDE 62

Gödel-Gentzen Translation

Disjunctions and existential quantifiers (the only problematic ones) are replaced by their De Morgan duals: LHS RHS Bgg = ¬¬B Bgg = ¬¬B

(A ∧ B)gg = Agg ∧ Bgg (A ∧ B)gg = Agg ∧ Bgg (A ∨ B)gg = ¬(¬Agg ∧ ¬Bgg) (A ∨ B)gg = ¬(¬Agg ∧ ¬Bgg) (A ⇒ B)gg = Agg ⇒ Bgg (A ⇒ B)gg = Agg ⇒ Bgg (∀xA)gg = ∀xAgg (∀xA)gg = ∀xAgg (∃xA)gg = ¬∀x¬Agg (∃xA)gg = ¬∀x¬Agg Example of translation ((A ∨ B) ⇒ C)gg is (¬(¬¬¬A ∧ ¬¬¬B)) ⇒ ¬¬C Theorem Γ ⊢ ∆ is provable in LK iff Γgg, ∆gg ⊢ is provable in LJ.

  • O. Hermant (Mines)

Double Negations June 2, 2014 25 / 37

slide-63
SLIDE 63

Polarizing Gödel-Gentzen translation

Let us apply the same idea on this translation: LHS RHS Bp

=

B Bn

= ¬¬B (B ∧ C)p =

Bp ∧ Cp

(B ∧ C)n =

Bn ∧ Cn

(B ∨ C)p =

Bp ∨ Cp

(B ∨ C)n = ¬(¬Bn ∧ ¬Cn) (B ⇒ C)p =

Bn ⇒ Cp

(B ⇒ C)n =

Bp ⇒ Cn

(∀xB)p = ∀xBp (∀xB)n = ∀xBn (∃xB)p = ∃xBp (∃xB)n = ¬∀x¬Bn Example of translation ((A ∨ B) ⇒ C)p is (¬(¬¬¬A ∧ ¬¬¬B)) ⇒ C ((A ∨ B) ⇒ C)n is ((A ∨ B) ⇒ ¬¬C Theorem ? Γ ⊢ ∆ is provable in LK iff Γgg, ∆gg ⊢ is provable in LJ.

  • O. Hermant (Mines)

Double Negations June 2, 2014 26 / 37

slide-64
SLIDE 64

A Focus on LK → LJ

◮ less negations imposes more discipline. Example:

π1 Γ ⊢ A, ∆ π2 Γ ⊢ B, ∆ ∧R

becomes

Γ ⊢ A ∧ B, ∆ π′

1

Γp, An, ∆n ⊢

?? ..................

Γp, ∆n ⊢ An π′

2

Γp, Bn, ∆n ⊢

.................. ??

Γp, ∆n ⊢ Bn ∧R Γp, ∆n ⊢ An ∧ Bn ¬L Γp, ¬(An ∧ Bn), ∆n ⊢

◮ when An introduces negations (∃, ∨, ¬ and atomic cases) ?? can be

¬R due to the behavior of An

◮ otherwise An remains of the rhs in the LJ proof.

  • O. Hermant (Mines)

Double Negations June 2, 2014 27 / 37

slide-65
SLIDE 65

A Focus on LK → LJ

◮ less negations imposes more discipline. Example:

π1 Γ ⊢ A, ∆ π2 Γ ⊢ B, ∆ ∧R

becomes

Γ ⊢ A ∧ B, ∆ π′

1

Γp, An, ∆n ⊢

?? ..................

Γp, ∆n ⊢ An π′

2

Γp, Bn, ∆n ⊢

.................. ??

Γp, ∆n ⊢ Bn ∧R Γp, ∆n ⊢ An ∧ Bn ¬L Γp, ¬(An ∧ Bn), ∆n ⊢

◮ when An introduces negations (∃, ∨, ¬ and atomic cases) ?? can be

¬R due to the behavior of An

◮ otherwise An remains of the rhs in the LJ proof. ◮ the next rule in π1 and π2 must be on A (resp. B).

  • O. Hermant (Mines)

Double Negations June 2, 2014 27 / 37

slide-66
SLIDE 66

A Focus on LK → LJ

◮ less negations imposes more discipline. Example:

π1 Γ ⊢ A, ∆ π2 Γ ⊢ B, ∆ ∧R

becomes

Γ ⊢ A ∧ B, ∆ π′

1

Γp, An, ∆n ⊢

?? ..................

Γp, ∆n ⊢ An π′

2

Γp, Bn, ∆n ⊢

.................. ??

Γp, ∆n ⊢ Bn ∧R Γp, ∆n ⊢ An ∧ Bn ¬L Γp, ¬(An ∧ Bn), ∆n ⊢

◮ when An introduces negations (∃, ∨, ¬ and atomic cases) ?? can be

¬R due to the behavior of An

◮ otherwise An remains of the rhs in the LJ proof. ◮ the next rule in π1 and π2 must be on A (resp. B). ◮ the liberty of sequent calculus is a sin! How to constrain it ? ◮ use Kleene’s inversion lemma ◮ or ... this is exactly what focusing is about !

  • O. Hermant (Mines)

Double Negations June 2, 2014 27 / 37

slide-67
SLIDE 67

A Focused Classical Sequent Calculus

Sequent with focus

A focused sequent Γ ⊢ A; ∆ has three parts:

◮ Γ and ∆ ◮ A, the (possibly empty) stoup formula

Γ ⊢ .

  • stoup

; ∆

◮ when the stoup is not empty, the next rule must apply on its formula, ◮ under some conditions, it is possible to move/remove a formula

in/from the stoup.

  • O. Hermant (Mines)

Double Negations June 2, 2014 28 / 37

slide-68
SLIDE 68

A Focused Sequent Calculus

ax Γ, A ⊢ . ; A, ∆ Γ, A, B ⊢ . ; ∆ ∧L Γ, A ∧ B ⊢ . ; ∆ Γ ⊢ A ; ∆ Γ ⊢ B ; ∆ ∧R Γ ⊢ A ∧ B ; ∆ Γ, A ⊢ . ; ∆ Γ, B ⊢ . ; ∆ ∨L Γ, A ∨ B ⊢ . ; ∆ Γ ⊢ . ; A, B, ∆ ∨R Γ ⊢ . ; A ∨ B, ∆ Γ ⊢ A ; ∆ Γ, B ⊢ . ; ∆ ⇒L Γ, A ⇒ B ⊢ . ; ∆ Γ, A ⊢ B ; ∆ ⇒R Γ ⊢ A ⇒ B ; ∆ Γ, A[c/x] ⊢ . ; ∆ ∃L Γ, ∃xA ⊢ . ; ∆ Γ ⊢ . ; A[t/x], ∆ ∃R Γ ⊢ . ; ∃xA, ∆ Γ, A[t/x] ⊢ . ; ∆ ∀L Γ, ∀xA ⊢ . ; ∆ Γ ⊢ A[c/x] ; ∆ ∀R Γ ⊢ ∀xA ; ∆ Γ ⊢ A ; ∆ focus Γ ⊢ . ; A, ∆ Γ ⊢ . ; A, ∆ release Γ ⊢ A ; ∆

  • O. Hermant (Mines)

Double Negations June 2, 2014 29 / 37

slide-69
SLIDE 69

A Focused Sequent Calculus

Γ ⊢ A ; ∆

focus

Γ ⊢ . ; A, ∆ Γ ⊢ . ; A, ∆ release Γ ⊢ A ; ∆

Characteristics:

◮ in release, A is either atomic or of the form ∃xB, B ∨ C or ¬B; ◮ in focus, the converse holds: A must not be atomic, nor of the form

∃xB, B ∨ C nor ¬B.

◮ the synchronous (outside the stoup) right-rules are ∃R, ¬R, ∨R and

(atomic) axiom: the exact places where {.}n introduces negation

Theorem

If Γ ⊢ ∆ is provable in LK then Γ ⊢ .; ∆ is provable. Proof: use Kleene’s inversion lemma (holds for all connectives/quantifiers, except ∃R and ∀L).

  • O. Hermant (Mines)

Double Negations June 2, 2014 30 / 37

slide-70
SLIDE 70

Translating Focused Proofs in LJ

Γ ⊢ A ; ∆

focus

Γ ⊢ . ; A, ∆ Γ ⊢ . ; A, ∆ release Γ ⊢ A ; ∆ Theorem

If Γ ⊢ A; ∆ in focused LK, then Γp, ∆n ⊢ An in LJ

◮ release is translated by the ¬R rule ◮ focus is translated by the ¬L rule

  • O. Hermant (Mines)

Double Negations June 2, 2014 31 / 37

slide-71
SLIDE 71

Translating Focused Proofs in LJ

Γ ⊢ A ; ∆

focus

Γ ⊢ . ; A, ∆ Γ ⊢ . ; A, ∆ release Γ ⊢ A ; ∆ Theorem

If Γ ⊢ A; ∆ in focused LK, then Γp, ∆n ⊢ An in LJ

◮ release is translated by the ¬R rule ◮ focus is translated by the ¬L rule ◮ ∆n removes the trailing negation on ∃n (¬∀¬), ∨n (¬ ∧ ¬), ¬n (¬)

and atoms (¬¬)

◮ what a surprise: focus is forbidden on them, so rule on the lhs:

LK rule

∃R ¬R ∨R

ax. LJ rule

∀L

nop

∧L ¬L + ax.

  • O. Hermant (Mines)

Double Negations June 2, 2014 31 / 37

slide-72
SLIDE 72

Going further: Kuroda’s translation

Originating from Glivenko’s remark for propositional logic:

Theorem [Glivenko]

if ⊢ A in LK, then ⊢ ¬¬A in LJ. Kuroda’s ¬¬-translation: BKu = B (atoms)

(B ∧ C)Ku = BKu ∧ CKu (B ∨ C)Ku = BKu ∨ CKu (B ⇒ C)Ku = BKu ⇒ CKu (∀xA)Ku = ∀x¬¬AKu (∃xA)Ku = ∃xAKu Theorem [Kuroda] Γ ⊢ ∆ in LK iff ΓKu, ¬∆Ku ⊢ in LJ.

◮ restarts double-negation everytime we pass a universal quantifier.

  • O. Hermant (Mines)

Double Negations June 2, 2014 32 / 37

slide-73
SLIDE 73

Combining Kuroda’s and Gentzen-Gödel’s translations

◮ work of Frédéric Gilbert (2013), who noticed: 1

Kuroda’s translation of ∀x∀yA ∀x¬¬∀y¬¬A can be simplified: ∀x∀y¬¬A

2

¬¬A itself can be treated à la Gentzen-Gödel

3

and of course with polarization

Reminder: Gödel-Gentzen Kuroda

ϕ(P) = ¬¬P ψ(P) = P ϕ(A ∧ B) = ϕ(A) ∧ ϕ(B) ψ(A ∧ B) = ψ(A) ∧ ψ(B) ϕ(A ∨ B) = ¬¬(ϕ(A) ∨ ϕ(B)) ψ(A ∨ B) = ψ(A) ∨ ψ(B) ϕ(A ⇒ B) = ϕ(A) ⇒ ϕ(B) ψ(A ⇒ B) = ψ(A) ⇒ ψ(B) ϕ(∃xA) = ¬¬∃xϕ(A) ψ(∃xA) = ∃xψ(A) ϕ(∀xA) = ∀xϕ(A) ψ(∀xA) = ∀x¬¬ψ(A)

  • O. Hermant (Mines)

Double Negations June 2, 2014 33 / 37

slide-74
SLIDE 74

Combining Kuroda’s and Gentzen-Gödel’s translations

◮ How does it work ?

GG Kuroda ϕ(P) = ¬¬P ψ(P) = P ϕ(A ∧ B) = ϕ(A) ∧ ϕ(B) ψ(A ∧ B) = ψ(A) ∧ ψ(B) ϕ(A ∨ B) = ¬¬(ϕ(A) ∨ ϕ(B)) ψ(A ∨ B) = ψ(A) ∨ ψ(B) ϕ(A ⇒ B) = ϕ(A) ⇒ ϕ(B) ψ(A ⇒ B) = ψ(A) ⇒ ψ(B) ϕ(∃xA) = ¬¬∃xϕ(A) ψ(∃xA) = ∃xψ(A) ϕ(∀xA) = ∀xϕ(A) ψ(∀xA) = ∀x¬¬ψ(A)

  • O. Hermant (Mines)

Double Negations June 2, 2014 34 / 37

slide-75
SLIDE 75

Combining Kuroda’s and Gentzen-Gödel’s translations

◮ How does it work ?

RHS LHS Kuroda ϕ(P) = ¬¬P χ(P) = P ψ(P) = P ϕ(A ∧ B) = ϕ(A) ∧ ϕ(B) χ(A ∧ B) = χ(A) ∧ χ(B) ψ(A ∧ B) = ψ(A) ∧ ψ(B) ϕ(A ∨ B) = ¬¬ψ(A) ∨ ψ(B) χ(A ∨ B) = χ(A) ∨ χ(B) ψ(A ∨ B) = ψ(A) ∨ ψ(B) ϕ(A ⇒ B) = χ(A) ⇒ ϕ(B) χ(A ⇒ B) = ψ(A) ⇒ χ(B) ψ(A ⇒ B) = χ(A) ⇒ ψ(B) ϕ(∃xA) = ¬¬∃xψ(A) χ(∃xA) = ∃xχ(A) ψ(∃xA) = ∃xψ(A) ϕ(∀xA) = ∀xϕ(A) χ(∀xA) = ∀xχ(A) ψ(∀xA) = ∀xϕ(A)

◮ How to prove that ? Refine focusing into phases.

Example of translation χ((A ∨ B) ⇒ C) is (A ∨ B) ⇒ C ϕ((A ∨ B) ⇒ C) is (A ∨ B) ⇒ ¬¬C

  • O. Hermant (Mines)

Double Negations June 2, 2014 35 / 37

slide-76
SLIDE 76

ax Γ, A ⊢ . ; A, ∆ Γ, A, B ⊢ . ; ∆ ∧L Γ, A ∧ B ⊢ . ; ∆ Γ ⊢ A ; ∆ Γ ⊢ B ; ∆ ∧R Γ ⊢ A ∧ B ; ∆ Γ, A ⊢ . ; ∆ Γ, B ⊢ . ; ∆ ∨L Γ, A ∨ B ⊢ . ; ∆ Γ ⊢ . ; A, B, ∆ ∨R Γ ⊢ . ; A ∨ B, ∆ Γ ⊢ A ; ∆ Γ, B ⊢ . ; ∆ ⇒L Γ, A ⇒ B ⊢ . ; ∆ Γ, A ⊢ B ; ∆ ⇒R Γ ⊢ A ⇒ B ; ∆ Γ, A[c/x] ⊢ . ; ∆ ∃L Γ, ∃xA ⊢ . ; ∆ Γ ⊢ . ; A[t/x], ∆ ∃R Γ ⊢ . ; ∃xA, ∆ Γ, A[t/x] ⊢ . ; ∆ ∀L Γ, ∀xA ⊢ . ; ∆ Γ ⊢ A[c/x] ; ∆ ∀R Γ ⊢ ∀xA ; ∆ Γ ⊢ A ; ∆ focus Γ ⊢ . ; A, ∆ Γ ⊢ . ; A, ∆ release Γ ⊢ A ; ∆

  • O. Hermant (Mines)

Double Negations June 2, 2014 36 / 37

slide-77
SLIDE 77

Results

Theorem [Gilbert]

if Γ0, ¬Γ1 ⊢ A; ∆ in LK↑↓ then χ(Γ0), ¬ψ(Γ1), ¬ψ(∆) ⊢ ϕ(A) in LJ.

Theorem [Gilbert]

A → ϕ(A) is minimal among the ¬¬-translations.

◮ 58% of Zenon’s modulo proofs are secretly constructive ◮ polarizing the translation of rewrite rules in Deduction modulo: ⋆ problem with cut elimination: a rule is usable in the lhs and rhs ⋆ back to a non-polarized one ⋆ further work: use polarized Deduction modulo ◮ further work: polarize Krivine’s translation

What you hopefully should remember:

◮ Focusing is a perfect tool to remove double-negations; ◮ antinegation .

  • O. Hermant (Mines)

Double Negations June 2, 2014 37 / 37