Not Incompatible Logics Olivier Hermant MINES ParisTech, PSL - - PowerPoint PPT Presentation

not incompatible logics
SMART_READER_LITE
LIVE PREVIEW

Not Incompatible Logics Olivier Hermant MINES ParisTech, PSL - - PowerPoint PPT Presentation

Not Incompatible Logics Olivier Hermant MINES ParisTech, PSL Research University Inria October, 18th October, 18th O. Hermant Not Incompatible 1 / 10 Two Incompatible Logics Constructivism (BHK) first-order approximation:


slide-1
SLIDE 1

Not Incompatible Logics

Olivier Hermant

MINES ParisTech, PSL Research University Inria

October, 18th

  • O. Hermant

Not Incompatible October, 18th 1 / 10

slide-2
SLIDE 2

Two Incompatible Logics

◮ Constructivism (BHK) ⋆ first-order approximation: intuitionistic logic ◮ Classicism ⋆ first-order classical logic ◮ in particuliar, arithmetic: ⋆ Peano and Heyting versions ⋆ same axioms, differents inference rules

  • O. Hermant

Not Incompatible October, 18th 2 / 10

slide-3
SLIDE 3

Two Incompatible Logics

◮ Constructivism (BHK) ⋆ first-order approximation: intuitionistic logic ◮ Classicism ⋆ first-order classical logic ◮ in particuliar, arithmetic: ⋆ Peano and Heyting versions ⋆ same axioms, differents inference rules ◮ very pernicious conflict: ⋆ same syntax, different semantic ⋆ at least, sound ◮ two confronting schools for a long time: ⋆ incompatible properties ⋆ incompatible persons ◮ how can we conciliate them ?

  • O. Hermant

Not Incompatible October, 18th 2 / 10

slide-4
SLIDE 4

The Root of the Problem

Disjunction Property

A proof of ⊢i A ∨ B can be turned into a proof of ⊢i A or a proof of ⊢i B.

◮ in classical logic ⊢c A ∨ ¬A provable whatever is A ◮ another formulation: ⊢c ¬¬A ⇒ A ◮ similarly for the ∃ quantifier: ⋆ witness property ⋆ Drinker’s paradox ◮ lot of solutions ⋆ depends of what we are expecting ⋆ as discussed yesterday ⋆ and may be today

  • O. Hermant

Not Incompatible October, 18th 3 / 10

slide-5
SLIDE 5

Double Negation Translations

1

Kolmogorov (1925) BKo = ¬¬B (atoms)

(B ∧ C)Ko = ¬¬(BKo ∧ CKo) (B ∨ C)Ko = ¬¬(BKo ∨ CKo) (B ⇒ C)Ko = ¬¬(BKo ⇒ CKo) (∀xA)Ko = ¬¬(∀xAKo) (∃xA)Ko = ¬¬(∃xAKo) Theorem Γ ⊢ ∆ classical provable iff ΓKo, ¬∆Ko ⊢ intuitionistically provable.

  • O. Hermant

Not Incompatible October, 18th 4 / 10

slide-6
SLIDE 6

Double Negation Translations

1

Kolmogorov (1925)

2

Gödel and Gentzen (1931)

⋆ ∨ and ∃, are the conflicting connective/quantifiers ⋆ leave the rest unchanged

Bgg = ¬¬B (atoms)

(A ∧ B)gg =

Agg ∧ Bgg

(A ∨ B)gg = ¬(¬Agg ∧ ¬Bgg) (A ⇒ B)gg =

Agg ⇒ Bgg

(∀xA)gg = ∀xAgg (∃xA)gg = ¬∀x¬Agg Theorem Γ ⊢ ∆ classical provable iff Γgg, ¬∆gg ⊢ intuitionistically provable.

  • O. Hermant

Not Incompatible October, 18th 4 / 10

slide-7
SLIDE 7

Double Negation Translations

1

Kolmogorov (1925)

2

Gödel and Gentzen (1931)

⋆ ∨ and ∃, are the conflicting connective/quantifiers ⋆ leave the rest unchanged 3

Glivenko (1929): head negation enough in the propositional case

4

Kuroda (1951): extension to FO: reset after each ∀ quantifier BKu = B (atoms)

(A ∧ B)Ku =

AKu ∧ BKu

(A ∨ B)Ku =

AKu ∨ BKu

(A ⇒ B)Ku =

AKu ⇒ BKu

(∀xA)Ku = ∀x¬¬AKu (∃xA)Ku = ∀x AKu Theorem Γ ⊢ ∆ classical provable iff ΓKu, ¬∆Ku ⊢ intuitionistically provable.

  • O. Hermant

Not Incompatible October, 18th 4 / 10

slide-8
SLIDE 8

More Refinments

◮ left intuitionstic and classical sequent rules identical: ⋆ no need to translate anything on LHS of Γ ⊢c ∆ ⋆ applies to cut-free calculus. Most of the time enough

LHS RHS BKo = B BKo = B

(B ∧ C)Ko = (¬¬BKo ∧ ¬¬CKo) (B ∧ C)Ko = (¬¬BKo ∧ ¬¬CKo) (B ∨ C)Ko = (¬¬BKo ∨ ¬¬CKo) (B ∨ C)Ko = (¬¬BKo ∨ ¬¬CKo) (B ⇒ C)Ko = (¬¬BKo ⇒ ¬¬CKo) (B ⇒ C)Ko = (¬¬BKo ⇒ ¬¬CKo) (∀xA)Ko = ∀x¬¬AKo (∀xA)Ko = ∀x¬¬AKo (∃xA)Ko = ∃x¬¬AKo (∃xA)Ko = ∃x¬¬AKo

  • O. Hermant

Not Incompatible October, 18th 5 / 10

slide-9
SLIDE 9

More Refinments

◮ left intuitionstic and classical sequent rules identical: ⋆ no need to translate anything on LHS of Γ ⊢c ∆ ⋆ applies to cut-free calculus. Most of the time enough

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−

  • O. Hermant

Not Incompatible October, 18th 5 / 10

slide-10
SLIDE 10

More Refinments

◮ left intuitionstic and classical sequent rules identical: ⋆ no need to translate anything on LHS of Γ ⊢c ∆ ⋆ applies to cut-free calculus. Most of the time enough ◮ Gilbert: left/right + Kuroda + Gödel-Gentzen. ⋆ Minimal. End of Story ?

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

Theorem

Γ ⊢ C classically iff χ(Γ) ⊢ ϕ(C) intuitionistically.

  • O. Hermant

Not Incompatible October, 18th 5 / 10

slide-11
SLIDE 11

More Insights

◮ Chaudhuri, Clerc, Ilik, Miller: ⋆ bijections between proofs of focused calculi ⋆ generating a particular translation by choosing a polarity ◮ Friedman: ⋆ generalize: replace “¬” with “⇒ A” in translations ⋆ theorem:

Theorem

Γ ⊢ ∆ classical provable iff ΓKu, ¬∆Ku ⊢ ⊥ provable.

  • O. Hermant

Not Incompatible October, 18th 6 / 10

slide-12
SLIDE 12

More Insights

◮ Chaudhuri, Clerc, Ilik, Miller: ⋆ bijections between proofs of focused calculi ⋆ generating a particular translation by choosing a polarity ◮ Friedman: ⋆ generalize: replace “¬” with “⇒ A” in translations ⋆ theorem:

Theorem

Γ ⊢ ∆ classical provable iff ΓA, ∆A ⇒ A ⊢ A provable.

  • O. Hermant

Not Incompatible October, 18th 6 / 10

slide-13
SLIDE 13

More Insights

◮ Chaudhuri, Clerc, Ilik, Miller: ⋆ bijections between proofs of focused calculi ⋆ generating a particular translation by choosing a polarity ◮ Friedman: ⋆ generalize: replace “¬” with “⇒ A” in translations ⋆ theorem:

Theorem

Γ ⊢ ∆ classical provable iff ΓA, ∆A ⇒ A ⊢ A provable.

⋆ equiprovability of certain statements (Π0

2)

⋆ require decidability of some class of formulas ⋆ “Friedman’s trick”: take as A the statement itself.

  • O. Hermant

Not Incompatible October, 18th 6 / 10

slide-14
SLIDE 14

Mixed Logics

◮ “On the Unity of Logic”, Girard (1993) ◮ not the logic is classical/intuitionistic/... ◮ ... but the connectives ◮ problem: ⋆ usual translations negate atoms (no connective here)

BKo = ¬¬B (atoms)

(B ∧ C)Ko = ¬¬(BKo ∧ CKo) (B ∨ C)Ko = ¬¬(BKo ∨ CKo) (B ⇒ C)Ko = ¬¬(BKo ⇒ CKo) (∀xA)Ko = ¬¬(∀xAKo) (∃xA)Ko = ¬¬(∃xAKo) Theorem Γ ⊢ ∆ classical provable iff ΓKo, \∆Ko ⊢ provable.

  • O. Hermant

Not Incompatible October, 18th 7 / 10

slide-15
SLIDE 15

Mixed Logics

◮ “On the Unity of Logic”, Girard (1993) ◮ not the logic is classical/intuitionistic/... ◮ ... but the connectives ◮ problem: ⋆ usual translations negate atoms (no connective here) ⋆ “light” translations negate the whole (no connective there either)

BKo = B (atoms)

(B ∧ C)Ko = (¬¬BKo ∧ ¬¬CKo) (B ∨ C)Ko = (¬¬BKo ∨ ¬¬CKo) (B ⇒ C)Ko = (¬¬BKo ⇒ ¬¬CKo) (∀xA)Ko = ∀x¬¬AKo (∃xA)Ko = ∃x¬¬AKo Theorem Γ ⊢ ∆ classical provable iff ΓKo, ¬∆Ko ⊢ provable.

  • O. Hermant

Not Incompatible October, 18th 7 / 10

slide-16
SLIDE 16

Mixing Logics

◮ Dowek’s translation goes double

BDo = B (atoms)

(B ∧ C)Do = ¬¬(¬¬BDo ∧ ¬¬CDo) (B ∨ C)Do = ¬¬(¬¬BDo ∨ ¬¬CDo) (B ⇒ C)Do = ¬¬(¬¬BDo ⇒ ¬¬CDo) (∀xA)Do = ¬¬∀x¬¬ADo (∃xA)Do = ¬¬∃x¬¬ADo

  • O. Hermant

Not Incompatible October, 18th 8 / 10

slide-17
SLIDE 17

Mixing Logics

◮ Dowek’s translation goes double

BDo = B (atoms)

(B ∧ C)Do = ¬¬(¬¬BDo ∧ ¬¬CDo) (B ∨ C)Do = ¬¬(¬¬BDo ∨ ¬¬CDo) (B ⇒ C)Do = ¬¬(¬¬BDo ⇒ ¬¬CDo) (∀xA)Do = ¬¬∀x¬¬ADo (∃xA)Do = ¬¬∃x¬¬ADo

◮ gain: no negated atoms, no negated formulas ◮ definition of classical connectives and quantifiers

(B ∧c C) = ¬¬(¬¬B ∧i ¬¬C) (B ∨c C) = ¬¬(¬¬B ∨i ¬¬C) (B ⇒c C) = ¬¬(¬¬B ⇒i ¬¬C) (∀cxA) = ¬¬∀ix¬¬A (∃cxA) = ¬¬∃ix¬¬A

◮ intuitionistic calculus as a basis

  • O. Hermant

Not Incompatible October, 18th 8 / 10

slide-18
SLIDE 18

Mixing Logics

◮ Dowek’s translation goes double

BDo = B (atoms)

(B ∧ C)Do = ¬¬(¬¬BDo ∧ ¬¬CDo) (B ∨ C)Do = ¬¬(¬¬BDo ∨ ¬¬CDo) (B ⇒ C)Do = ¬¬(¬¬BDo ⇒ ¬¬CDo) (∀xA)Do = ¬¬∀x¬¬ADo (∃xA)Do = ¬¬∃x¬¬ADo

◮ gain: no negated atoms, no negated formulas ◮ definition of classical connectives and quantifiers

(B ∧c C) = ¬¬(¬¬B ∧i ¬¬C) (B ∨c C) = ¬¬(¬¬B ∨i ¬¬C) (B ⇒c C) = ¬¬(¬¬B ⇒i ¬¬C) (∀cxA) = ¬¬∀ix¬¬A (∃cxA) = ¬¬∃ix¬¬A

◮ intuitionistic calculus as a basis ◮ can be made lighter (De Morgan + Gödel-Gentzen ideas)

  • O. Hermant

Not Incompatible October, 18th 8 / 10

slide-19
SLIDE 19

We don’t care about theorems

We care about proofs!

◮ naïve translations look at inference steps ◮ less naïve translations permute/gather inference rules (cf. focusing) ◮ ee also Friedman’s translation ◮ that apply to all proofs ◮ Reverse Mathematics

  • O. Hermant

Not Incompatible October, 18th 9 / 10

slide-20
SLIDE 20

We don’t care about theorems

We care about proofs!

◮ naïve translations look at inference steps ◮ less naïve translations permute/gather inference rules (cf. focusing) ◮ ee also Friedman’s translation ◮ that apply to all proofs ◮ Reverse Mathematics ◮ Gilbert’s work ⋆ analyse every proof, encode in Dedukti ⋆ 54% of Zenon’s proofs are constructive ◮ Cauderlier’s work ⋆ encode in Dedukti, rewrite proofs terms with higher-order rewrite rules ⋆ 62% of Zenon’s proofs

  • O. Hermant

Not Incompatible October, 18th 9 / 10

slide-21
SLIDE 21

We don’t care about theorems

We care about proofs!

◮ naïve translations look at inference steps ◮ less naïve translations permute/gather inference rules (cf. focusing) ◮ ee also Friedman’s translation ◮ that apply to all proofs ◮ Reverse Mathematics ◮ Gilbert’s work ⋆ analyse every proof, encode in Dedukti ⋆ 54% of Zenon’s proofs are constructive ◮ Cauderlier’s work ⋆ encode in Dedukti, rewrite proofs terms with higher-order rewrite rules ⋆ 62% of Zenon’s proofs ◮ both combined: 82%

  • O. Hermant

Not Incompatible October, 18th 9 / 10

slide-22
SLIDE 22

Still Unsatisfied ?

◮ if we cannot be shallow, go deeper! ◮ express provability in logic X as a first-order theory, reason about it in

a constructively

  • O. Hermant

Not Incompatible October, 18th 10 / 10

slide-23
SLIDE 23

Still Unsatisfied ?

◮ if we cannot be shallow, go deeper! ◮ express provability in logic X as a first-order theory, reason about it in

a constructively

◮ Or change the rules of the game!

Definition

A constructive proof is a proof from which we can extract a program.

◮ Control operators and classical realizability ◮ Classical logic is a constructive logic: ⋆ but can change mind ⋆ “I say ¬A/A(0) and I defy you to show that I am wrong”

  • O. Hermant

Not Incompatible October, 18th 10 / 10