double negation translations as morphisms
play

Double Negation Translations as Morphisms Olivier Hermant CRI, - PowerPoint PPT Presentation

Double Negation Translations as Morphisms Olivier Hermant CRI, MINES ParisTech December 1, 2014 UFRN, Natal O. Hermant (Mines) Double Negations December 1, 2014 1 / 24 Double-Negation Translations Double-Negation translations: a


  1. Double Negation Translations as Morphisms Olivier Hermant CRI, MINES ParisTech December 1, 2014 UFRN, Natal O. Hermant (Mines) Double Negations December 1, 2014 1 / 24

  2. Double-Negation Translations Double-Negation translations: ◮ a shallow way to encode classical logic into intuitionistic ◮ Zenon’s backend for Dedukti ◮ existing translations: Kolmogorov’s (1925), Gentzen-Gödel’s (1933), Kuroda’s (1951), Krivine’s (1990), · · · Minimizing the translations: ◮ turns more formulæ into themselves; ◮ shifts a classical proof into an intuitionistic proof of the same formula. O. Hermant (Mines) Double Negations December 1, 2014 2 / 24

  3. Morphisms ◮ A morphism preserves the operations between two structures: ( R ∗ , ∗ , 1 )  ( Z , + , 0 ) �→    h ( 0 ) Group morphism:  → 1    h ( a + b ) → h ( a ) ∗ h ( b )  ◮ a translation that is a morphism: h ( P ) = P h ( A ∧ B ) = h ( A ) ∧ h ( B ) h ( A ∨ B ) = h ( A ) ∨ h ( B ) h ( A ⇒ B ) = h ( A ) ⇒ h ( B ) h ( ∀ xA ) = ∀ x h ( A ) h ( ∃ xA ) = ∃ x h ( A ) (of course this is the identity) O. Hermant (Mines) Double Negations December 1, 2014 3 / 24

  4. Morphisms ◮ A morphism preserves the operations between two structures: ( R ∗ , ∗ , 1 )  ( Z , + , 0 ) �→    h ( 0 ) Group morphism:  → 1    h ( a + b ) → h ( a ) ∗ h ( b )  ◮ a more interesting translation that is a morphism: h ( P ) = P h ( A ∧ B ) = h ( A ) ∧ c h ( B ) h ( A ∨ B ) = h ( A ) ∨ c h ( B ) h ( A ⇒ B ) = h ( A ) ⇒ c h ( B ) h ( ∀ xA ) = ∀ c x h ( A ) h ( ∃ xA ) = ∃ c x h ( A ) two kinds of connectives: the classical and the intuitionistic ones. O. Hermant (Mines) Double Negations December 1, 2014 3 / 24

  5. Morphisms ◮ A morphism preserves the operations between two structures: ( R ∗ , ∗ , 1 )  ( Z , + , 0 ) �→    h ( 0 ) Group morphism:  → 1    h ( a + b ) → h ( a ) ∗ h ( b )  ◮ a more interesting translation that is a morphism: h ( P ) = P h ( A ∧ B ) = h ( A ) ∧ c h ( B ) h ( A ∨ B ) = h ( A ) ∨ c h ( B ) h ( A ⇒ B ) = h ( A ) ⇒ c h ( B ) h ( ∀ xA ) = ∀ c x h ( A ) h ( ∃ xA ) = ∃ c x h ( A ) two kinds of connectives: the classical and the intuitionistic ones. ◮ Design a unified logic, where we can reason both classically and intuitionistically: strange premises Γ ⊢ A Γ ⊢ A ∨ i B Γ ⊢ A ∨ c B O. Hermant (Mines) Double Negations December 1, 2014 3 / 24

  6. Translations that are Morphisms ◮ None of the previous translations is a morphism. ◮ Dowek has shown one, it is very verbose. ◮ We make it lighter. Plan: Classical and Intuitionistic Logic 1 Sequent Calculus 2 Double Negation Translations 3 Morphisms 4 O. Hermant (Mines) Double Negations December 1, 2014 4 / 24

  7. Classical vs. Intuitionistic ◮ The principle of excluded-middle. Should A ∨ ¬ A be provable ? Yes or no ? ◮ Yes. This is what is called classical logic. ◮ Wait a minute ! The Drinker’s Principle In a bar, there is somebody such that, if he drinks, then everybody drinks. Two Irrationals There exists i 1 , i 2 ∈ R \ Q such that i i 2 1 ∈ Q . A Manicchean World You are with us, or against us. Rashomon (A. Kurosawa). O. Hermant (Mines) Double Negations December 1, 2014 5 / 24

  8. Classical vs. Intuitionistic ◮ The principle of excluded-middle. Should A ∨ ¬ A be provable ? Yes or no ? ◮ No. This is the constructivist school (Brouwer, Heyting, Kolomogorov). ◮ Intuitionistic logic is one of those branches. It features the BHK interpretation of proofs: Witness Property A proof of ∃ xA (in the empty context) gives a witness t for the property A . Disjunction Property A proof of A ∨ B (in the empty context) reduces eventually either to a proof of A , or to a proof of B . O. Hermant (Mines) Double Negations December 1, 2014 6 / 24

  9. The Classical Sequent Calculus (LK) ax Γ , A ⊢ A , ∆ Γ , A , B ⊢ ∆ Γ ⊢ A , ∆ Γ ⊢ B , ∆ ∧ R ∧ L Γ , A ∧ B ⊢ ∆ Γ ⊢ A ∧ B , ∆ Γ , A ⊢ ∆ Γ , B ⊢ ∆ ∨ L Γ ⊢ A , B , ∆ ∨ R Γ , A ∨ B ⊢ ∆ Γ ⊢ A ∨ B , ∆ Γ ⊢ A , ∆ Γ , B ⊢ ∆ ⇒ L Γ , A ⊢ B , ∆ ⇒ R Γ , A ⇒ B ⊢ ∆ Γ ⊢ A ⇒ B , ∆ Γ ⊢ A , ∆ Γ , A ⊢ ∆ ¬ L ¬ R Γ , ¬ A ⊢ ∆ Γ ⊢ ¬ A , ∆ Γ , A [ c / x ] ⊢ ∆ ∃ L Γ ⊢ A [ t / x ] , ∆ ∃ R Γ , ∃ xA ⊢ ∆ Γ ⊢ ∃ xA , ∆ Γ , A [ t / x ] ⊢ ∆ ∀ L Γ ⊢ A [ c / x ] , ∆ ∀ R Γ , ∀ xA ⊢ ∆ Γ ⊢ ∀ xA , ∆ O. Hermant (Mines) Double Negations December 1, 2014 7 / 24

  10. The Intuitionistic Sequent Calculus (LJ) ax Γ , A ⊢ A Γ , A , B ⊢ ∆ Γ ⊢ A Γ ⊢ B ∧ L ∧ R Γ , A ∧ B ⊢ ∆ Γ ⊢ A ∧ B Γ , A ⊢ ∆ Γ , B ⊢ ∆ ∨ L Γ ⊢ A Γ ⊢ B ∨ R 1 ∨ R 2 Γ ⊢ A ∨ B Γ ⊢ A ∨ B Γ , A ∨ B ⊢ ∆ Γ ⊢ A Γ , B ⊢ ∆ ⇒ L Γ , A ⊢ B ⇒ R Γ , A ⇒ B ⊢ ∆ Γ ⊢ A ⇒ B Γ ⊢ A Γ , A ⊢ ¬ L ¬ R Γ , ¬ A ⊢ ∆ Γ ⊢ ¬ A Γ , A [ c / x ] ⊢ ∆ ∃ L Γ ⊢ A [ t / x ] ∃ R Γ , ∃ xA ⊢ ∆ Γ ⊢ ∃ xA Γ , A [ t / x ] ⊢ ∆ ∀ L Γ ⊢ A [ c / x ] ∀ R Γ , ∀ xA ⊢ ∆ Γ ⊢ ∀ xA O. Hermant (Mines) Double Negations December 1, 2014 8 / 24

  11. Note on Frameworks ◮ structural rules are not shown (contraction, weakening) ◮ left-rules seem very similar in both cases ◮ so, lhs formulæ can be translated by themselves ◮ this accounts for polarizing the translations ◮ another work [Boudard & H] : ⋆ does not behave well in presence of cuts ⋆ appeals to focusing techniques O. Hermant (Mines) Double Negations December 1, 2014 9 / 24

  12. Examples ◮ proofs that behave identically in classical/intuitionistic logic: ax ax A , B ⊢ B A , B ⊢ A ∧ L ⇒ R A ∧ B ⊢ B ∨ R A ⊢ B ⇒ A A ∧ B ⊢ B ∨ C ◮ proof of the excluded-middle: Classical Logic Intuitionistic Logic ax A ⊢ A ¬ R ⊢ A , ¬ A ∨ R ⊢ A ∨ ¬ A O. Hermant (Mines) Double Negations December 1, 2014 10 / 24

  13. Examples ◮ proofs that behave identically in classical/intuitionistic logic: ax ax A , B ⊢ B A , B ⊢ A ∧ L ⇒ R A ∧ B ⊢ B ∨ R A ⊢ B ⇒ A A ∧ B ⊢ B ∨ C ◮ proof of the excluded-middle: Classical Logic Intuitionistic Logic ax A ⊢ A ¬ R ?? ⊢ A , ¬ A ∨ R ⊢ A ∨ ¬ A ⊢ A ∨ ¬ A O. Hermant (Mines) Double Negations December 1, 2014 10 / 24

  14. The Excluded-Middle in Intuitionistic Logic ◮ is not provable. However, its negation is inconsistent. ax A ⊢ A ∨ R 1 A ⊢ A ∨ ¬ A ¬ L ¬ ( A ∨ ¬ A ) , A ⊢ ¬ R ¬ ( A ∨ ¬ A ) ⊢ ¬ A ∨ R 2 ¬ ( A ∨ ¬ A ) ⊢ A ∨ ¬ A ¬ L ¬ ( A ∨ ¬ A ) , ¬ ( A ∨ ¬ A ) ⊢ contraction ¬ ( A ∨ ¬ A ) ⊢ ◮ given a classical proof Γ ⊢ ∆ , store ∆ on the lhs, and translate: Clas. Int. Γ , ¬ A 1 , ¬ ∆ ⊢ Γ , ¬ A 2 , ¬ ∆ ⊢ O. Hermant (Mines) Double Negations December 1, 2014 11 / 24 ¬ R ¬ R

  15. The Excluded-Middle in Intuitionistic Logic ◮ is not provable. However, its negation is inconsistent. ◮ this suggests a scheme for a translation between int. and clas. logic: ax ax A ⊢ A A ⊢ A ∨ R 1 A ⊢ A ∨ ¬ A ¬ L ¬ ( A ∨ ¬ A ) , A ⊢ ¬ R ¬ R ¬ ( A ∨ ¬ A ) ⊢ ¬ A ⊢ A , ¬ A ∨ R 2 ¬ ( A ∨ ¬ A ) ⊢ A ∨ ¬ A ¬ L ¬ ( A ∨ ¬ A ) , ¬ ( A ∨ ¬ A ) ⊢ contr ∨ R ¬ ( A ∨ ¬ A ) ⊢ ⊢ A ∨ ¬ A ◮ given a classical proof Γ ⊢ ∆ , store ∆ on the lhs, and translate: Clas. Int. Γ , ¬ A 1 , ¬ ∆ ⊢ Γ , ¬ A 2 , ¬ ∆ ⊢ ¬ R ¬ R Γ ⊢ A 1 , ∆ Γ ⊢ A 2 , ∆ Γ , ¬ ∆ ⊢ ¬¬ A 1 Γ , ¬ ∆ ⊢ ¬¬ A 2 rule r rule r Γ ⊢ A , ∆ Γ , ¬ ∆ ⊢ A ¬ L Γ , ¬ ∆ , ¬ A ⊢ ◮ need: ¬¬ everywhere in ∆ (and Γ ) ◮ the proof of the “negation of the excluded middle” requires duplication (contraction), which partly explain why we allow several formulæ on the rhs in LK. O. Hermant (Mines) Double Negations December 1, 2014 11 / 24

  16. Kolmogorov’s Translation Kolmogorov’s ¬¬ -translation introduces ¬¬ everywhere: B Ko = ¬¬ B (atoms) ( B ∧ C ) Ko = ¬¬ ( B Ko ∧ C Ko ) ( B ∨ C ) Ko = ¬¬ ( B Ko ∨ C Ko ) ( B ⇒ C ) Ko = ¬¬ ( B Ko ⇒ C Ko ) ( ∀ xA ) Ko = ¬¬ ( ∀ xA Ko ) ( ∃ xA ) Ko = ¬¬ ( ∃ xA Ko ) 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 December 1, 2014 12 / 24

  17. Light Kolmogorov’s Translation Moving negation from connectives to formulæ [Dowek& Werner] : B K = B (atoms) = ( ¬¬ B K ∧ ¬¬ C K ) ( B ∧ C ) K = ( ¬¬ B K ∨ ¬¬ C K ) ( B ∨ C ) K = ( ¬¬ B K ⇒ ¬¬ C K ) ( B ⇒ C ) K ( ∀ xA ) K = ∀ x ¬¬ A K ( ∃ xA ) K = ∃ x ¬¬ A K Theorem Γ ⊢ ∆ is provable in LK iff Γ K , ¬ ∆ K ⊢ is provable in LJ. Correspondence A Ko = ¬¬ A K O. Hermant (Mines) Double Negations December 1, 2014 13 / 24

  18. How does the Translation Work ? Theorem Γ ⊢ ∆ is provable in LK iff Γ K , ¬ ∆ K ⊢ is provable in LJ. Proof: Induction on the LK proof. ¬ bounces. Example: rule ∧ R . π 1 π 2 Γ ⊢ A , ∆ Γ ⊢ B , ∆ ∧ R Γ ⊢ A ∧ B , ∆ is turned into: π ′ π ′ 1 2 Γ K , ¬ A K , ¬ ∆ K ⊢ Γ K , ¬ B K , ¬ ∆ K ⊢ ∧ R Γ K , ¬ ( ¬¬ A K ∧ ¬¬ B K ) , ¬ ∆ K ⊢ O. Hermant (Mines) Double Negations December 1, 2014 14 / 24

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend