introduction to linear logic
play

Introduction to linear logic Emmanuel Beffara IML, CNRS & - PowerPoint PPT Presentation

http://iml.univ-mrs.fr/~beffara/intro-ll.pdf Introduction to linear logic Emmanuel Beffara IML, CNRS & Universit dAix-Marseille Summmer school on linear logic and geometry of interaction Torino 27th August 2013 Lecture notes are


  1. Ξ“ ⊒ 𝐡, Ξ” Ξ“ ⊒ Ξ” Ξ“ ⊒ 𝐡, Ξ” Ξ“ ⊒ Ξ” Ξ“ ⊒ 𝐡 ∧ 𝐢, Ξ” Linearity in logic Classical sequent calculus has weakening and contraction of formulas, which allows using any hypothesis any number of times: Ξ“, 𝐡, 𝐡 ⊒ Ξ” cL Ξ“ ⊒ 𝐡, 𝐡, Ξ” cR wL wR Ξ“, 𝐡 ⊒ Ξ” Ξ“ ⊒ 𝐡, Ξ” Ξ“, 𝐡 ⊒ Ξ” Ξ“ ⊒ 𝐡, Ξ” These make the following rules equivalent: Ξ“ β€² ⊒ 𝐢, Ξ” β€² Ξ“ ⊒ 𝐢, Ξ” ∧ Ra ∧ Rm Ξ“, Ξ“ β€² ⊒ 𝐡 ∧ 𝐢, Ξ”, Ξ” β€² additive multiplicative And similarly for other connectives, left rules, etc. In the absence of weakening and contraction, these become different. Emmanuel Beffara (IML, Marseille) Introduction to linear logic Torino – 27/8/2013 14 / 84

  2. Sequent calculi Sequents in intuitionistic logic: 𝐡 1 , …, 𝐡 π‘œ ⊒ 𝐢 β€œFrom hypotheses 𝐡 1 , …, 𝐡 π‘œ deduce 𝐢 .” A proof of this is interpreted as a way to make a proof of 𝐢 from proofs of the 𝐡 𝑗 a function from 𝐡 1 Γ— β‹― Γ— 𝐡 π‘œ to 𝐢 Contraction and weakening are allowed on the left. Emmanuel Beffara (IML, Marseille) Introduction to linear logic Torino – 27/8/2013 15 / 84

  3. Sequent calculi Sequents in classical logic: 𝐡 1 , …, 𝐡 π‘œ ⊒ 𝐢 1 , …, 𝐢 π‘ž β€œFrom hypotheses 𝐡 1 , …, 𝐡 π‘œ deduce 𝐢 1 or … or 𝐢 π‘ž .” Contraction and weakening are allowed on both sides. Emmanuel Beffara (IML, Marseille) Introduction to linear logic Torino – 27/8/2013 15 / 84

  4. & β‹― 𝐢 π‘ž & Sequent calculi Sequents in linear logic: 𝐡 1 , …, 𝐡 π‘œ ⊒ 𝐢 1 , …, 𝐢 π‘ž β€œFrom hypotheses 𝐡 1 , …, 𝐡 π‘œ deduce 𝐢 1 or … or 𝐢 π‘ž linearly .” A proof of this is interpreted as a way to make a proof of 𝐢 from proofs of the 𝐡 𝑗 using each 𝐡 𝑗 exactly once a linear map from 𝐡 1 βŠ— β‹― βŠ— 𝐡 π‘œ to 𝐢 1 Contraction and weakening are not allowed. Emmanuel Beffara (IML, Marseille) Introduction to linear logic Torino – 27/8/2013 15 / 84

  5. Plan The proof-program correspondence Linear sequent calculus Multiplicative linear logic One-sided presentation Full linear logic The notion of fragment A bit of semantics A bit of proof theory Proof nets Emmanuel Beffara (IML, Marseille) Introduction to linear logic Torino – 27/8/2013 16 / 84

  6. We focus on MLL, the subsystem made only of multiplicative connectives and negation. Definition 𝐡 ⊸ 𝐢 is a notation for 𝐡 βŠ₯ 𝐢 . ! 𝐡, ?𝐡 𝐡, 𝐢 ∢= 𝛽 𝐡 βŠ₯ & 𝐡 βŠ— 𝐢, 𝐡 & 𝐢, 1, βŠ₯ 𝐡 & 𝐢, 𝐡 βŠ• 𝐢, ⊀, 0 Formulas and sequents In this talk we focus on the propositional structure: formulas propositional variable linear negation multiplicatives additives exponentials sequents with π‘œ, π‘ž β‰₯ 0 Ξ“, Ξ”, Θ ∢= 𝐡 1 , …, 𝐡 π‘œ ⊒ 𝐢 1 , …, 𝐢 π‘ž Emmanuel Beffara (IML, Marseille) Introduction to linear logic Torino – 27/8/2013 17 / 84

  7. & 𝐡, 𝐢 ∢= 𝛽 𝐡 βŠ₯ 𝐡 βŠ— 𝐢, 𝐡 & 𝐢, 1, βŠ₯ 𝐡 & 𝐢, 𝐡 βŠ• 𝐢, ⊀, 0 ! 𝐡, ?𝐡 Formulas and sequents In this talk we focus on the propositional structure: formulas propositional variable linear negation multiplicatives additives exponentials sequents with π‘œ, π‘ž β‰₯ 0 Ξ“, Ξ”, Θ ∢= 𝐡 1 , …, 𝐡 π‘œ ⊒ 𝐢 1 , …, 𝐢 π‘ž We focus on MLL, the subsystem made only of multiplicative connectives and negation. Definition 𝐡 ⊸ 𝐢 is a notation for 𝐡 βŠ₯ 𝐢 . Emmanuel Beffara (IML, Marseille) Introduction to linear logic Torino – 27/8/2013 17 / 84

  8. 𝐡 ⊒ 𝐡 Ξ“ ⊒ 𝐡, Ξ” Ξ“ β€² , 𝐡 ⊒ Ξ” β€² MLL – the deductive structure The order of formulas is irrelevant: Ξ“, 𝐡, 𝐢, Ξ” ⊒ Θ exL Ξ“ ⊒ Ξ”, 𝐡, 𝐢, Θ exR Ξ“, 𝐢, 𝐡, Ξ” ⊒ Θ Ξ“ ⊒ Ξ”, 𝐢, 𝐡, Θ Axiom and cut rules: ax cut Ξ“, Ξ“ β€² ⊒ Ξ”, Ξ” β€² Linear negation: Ξ“ ⊒ 𝐡, Ξ” βŠ₯ L Ξ“, 𝐡 ⊒ Ξ” βŠ₯ R Ξ“, 𝐡 βŠ₯ ⊒ Ξ” Ξ“ ⊒ 𝐡 βŠ₯ , Ξ” Emmanuel Beffara (IML, Marseille) Introduction to linear logic Torino – 27/8/2013 18 / 84

  9. Ξ“ ⊒ Ξ”, 𝐡 Ξ“, 𝐡 βŠ• 𝐢 ⊒ Ξ” & Ξ“ ⊒ Ξ”, 𝐢 Ξ“ ⊒ Ξ”, 𝐡 βŠ• 𝐢 & Ξ“, 𝐡 ⊒ Ξ” 𝐢 ⊒ Ξ”, Ξ” β€² & Ξ“, Ξ“ β€² , 𝐡 & Ξ“ ⊒ Ξ”, 𝐡 βŠ• 𝐢 Ξ“ β€² , 𝐢 ⊒ Ξ” β€² Ξ“, 𝐡 ⊒ Ξ” Ξ“, 𝐡 & 𝐢 ⊒ Ξ” Ξ“, 𝐢 ⊒ Ξ” Ξ“, 𝐡, 𝐢 ⊒ Ξ” Ξ“, 𝐡 & 𝐢 ⊒ Ξ” Ξ“ ⊒ Ξ”, 𝐡 Ξ“ ⊒ Ξ”, 𝐡 & 𝐢 𝐢 MLL – the connectives Multiplicatives: Ξ“ β€² ⊒ Ξ” β€² , 𝐢 βŠ— R βŠ— L Ξ“ ⊒ Ξ”, 𝐡 Ξ“, Ξ“ β€² ⊒ Ξ”, Ξ” β€² , 𝐡 βŠ— 𝐢 Ξ“, 𝐡 βŠ— 𝐢 ⊒ Ξ” L R Ξ“, 𝐡 ⊒ Ξ” Ξ“ ⊒ Ξ”, 𝐡, 𝐢 Ξ“ ⊒ Ξ”, 𝐡 Additives: βŠ• R 1 βŠ• R 2 Ξ“, 𝐢 ⊒ Ξ” βŠ• L & L 1 & L 2 Ξ“ ⊒ Ξ”, 𝐢 & R Emmanuel Beffara (IML, Marseille) Introduction to linear logic Torino – 27/8/2013 19 / 84

  10. 𝐷 & & 𝐷) ⊒ (𝐡 βŠ— 𝐢) & 𝐡 βŠ₯ MLL – provability Example The following sequents are provable in MLL: multiplicative excluded middle: ⊒ 𝐡 semi-distributivity of tensor over par: 𝐡 βŠ— (𝐢 However, 𝐡 ⊒ 𝐡 βŠ— 𝐡 is not provable. Exercise: Prove that! Definition 𝐡 and 𝐢 are linearly equivalent if 𝐡 ⊒ 𝐢 and 𝐢 ⊒ 𝐡 are provable, write this 𝐡 Λ› 𝐢 . Simplest example: 𝐡 βŠ— 𝐢 Λ› 𝐢 βŠ— 𝐡 . Emmanuel Beffara (IML, Marseille) Introduction to linear logic Torino – 27/8/2013 20 / 84

  11. Theorem (De Morgan laws) For all formulas 𝐡 and 𝐢 , the following equivalences hold: 𝐡 βŠ₯ βŠ— 𝐢 βŠ₯ . Exercise: Prove this. Theorem A sequent 𝐡 1 , …, 𝐡 π‘œ ⊒ 𝐢 1 , …, 𝐢 π‘ž is provable if and only the sequent π‘œ , 𝐢 1 , …, 𝐢 π‘ž is provable. 1 , …, 𝐡 βŠ₯ 𝐢) βŠ₯ & 𝐢 βŠ₯ , (𝐡 & 𝐡 βŠ₯ (𝐡 βŠ— 𝐢) βŠ₯ 𝐡 βŠ₯βŠ₯ , 𝐡 ⊒ 𝐡 βŠ₯ Symmetries Let us see if we can simplify the system a bit. Emmanuel Beffara (IML, Marseille) Introduction to linear logic Torino – 27/8/2013 21 / 84

  12. Theorem A sequent 𝐡 1 , …, 𝐡 π‘œ ⊒ 𝐢 1 , …, 𝐢 π‘ž is provable if and only the sequent π‘œ , 𝐢 1 , …, 𝐢 π‘ž is provable. 1 , …, 𝐡 βŠ₯ ⊒ 𝐡 βŠ₯ & 𝐢 βŠ₯ , (𝐡 & Symmetries Let us see if we can simplify the system a bit. Theorem (De Morgan laws) For all formulas 𝐡 and 𝐢 , the following equivalences hold: (𝐡 βŠ— 𝐢) βŠ₯ Λ› 𝐡 βŠ₯ 𝐢) βŠ₯ Λ› 𝐡 βŠ₯ βŠ— 𝐢 βŠ₯ . 𝐡 Λ› 𝐡 βŠ₯βŠ₯ , Exercise: Prove this. Emmanuel Beffara (IML, Marseille) Introduction to linear logic Torino – 27/8/2013 21 / 84

  13. & ⊒ 𝐡 βŠ₯ 𝐢 βŠ₯ , (𝐡 & Symmetries Let us see if we can simplify the system a bit. Theorem (De Morgan laws) For all formulas 𝐡 and 𝐢 , the following equivalences hold: (𝐡 βŠ— 𝐢) βŠ₯ Λ› 𝐡 βŠ₯ 𝐢) βŠ₯ Λ› 𝐡 βŠ₯ βŠ— 𝐢 βŠ₯ . 𝐡 Λ› 𝐡 βŠ₯βŠ₯ , Exercise: Prove this. Theorem A sequent 𝐡 1 , …, 𝐡 π‘œ ⊒ 𝐢 1 , …, 𝐢 π‘ž is provable if and only the sequent π‘œ , 𝐢 1 , …, 𝐢 π‘ž is provable. 1 , …, 𝐡 βŠ₯ Emmanuel Beffara (IML, Marseille) Introduction to linear logic Torino – 27/8/2013 21 / 84

  14. & (𝐡 𝐢 βŠ₯ 𝐡, 𝐢 ∢= 𝛽 & 𝛽 βŠ₯ Ξ“, Ξ”, Θ ∢= ⊒ 𝐡 1 , …, 𝐡 π‘œ 𝐡 βŠ— 𝐢, 𝐡 & 𝐢, 1, βŠ₯ ! 𝐡, ?𝐡 𝐡 & 𝐢, 𝐡 βŠ• 𝐢, ⊀, 0 One-sided presentation Redefine the language of formulas: formulas propositional variable negated variable multiplicatives additives exponentials sequents with π‘œ β‰₯ 0 Definition Negation is the operation on formulas defined as (𝐡 βŠ— 𝐢) βŠ₯ ∢= 𝐡 βŠ₯ (𝐡 βŠ• 𝐢) βŠ₯ ∢= 𝐡 βŠ₯ & 𝐢 βŠ₯ (!𝐡) βŠ₯ ∢= ?(𝐡 βŠ₯ ) 𝐢) βŠ₯ ∢= 𝐡 βŠ₯ βŠ— 𝐢 βŠ₯ (𝐡 & 𝐢) βŠ₯ ∢= 𝐡 βŠ₯ βŠ• 𝐢 βŠ₯ (?𝐡) βŠ₯ ∢= !(𝐡 βŠ₯ ) (𝛽 βŠ₯ ) βŠ₯ ∢= 𝛽 1 βŠ₯ ∢= βŠ₯ 0 βŠ₯ ∢= ⊀ βŠ₯ βŠ₯ ∢= 1 ⊀ βŠ₯ ∢= 0 By construction, 𝐡 βŠ₯βŠ₯ = 𝐡 . Emmanuel Beffara (IML, Marseille) Introduction to linear logic Torino – 27/8/2013 22 / 84

  15. ⊒ Ξ“ βŠ₯ ⊒ Ξ“, ⊀ ⊀ ⊒ 1 1 ⊒ Ξ“, βŠ₯ ⊒ Ξ“, 𝐡 βŠ• 𝐢 βŠ• 2 ⊒ Ξ“, 𝐢 ⊒ Ξ“, 𝐡 βŠ• 𝐢 βŠ• 1 ⊒ Ξ“, 𝐡 ⊒ Ξ“, 𝐡 & 𝐢 ⊒ Ξ“, 𝐡 𝐢 & ⊒ Ξ“, Ξ” ⊒ Ξ“, 𝐡 ⊒ Ξ“, 𝐡 & ⊒ Ξ“, 𝐡, 𝐢 ⊒ Ξ”, 𝐡 βŠ₯ One-sided sequent calculus Axiom and cut rules: ax cut ⊒ 𝐡 βŠ₯ , 𝐡 Multiplicatives: ⊒ Ξ“, 𝐡 ⊒ Ξ”, 𝐢 βŠ— ⊒ Ξ“, Ξ”, 𝐡 βŠ— 𝐢 Additives: ⊒ Ξ“, 𝐢 & Units: Emmanuel Beffara (IML, Marseille) Introduction to linear logic Torino – 27/8/2013 23 / 84

  16. ⊒ 1 ⊒ Ξ“, 𝐡 1 ⊒ Ξ“, ⊀ ⊒ Ξ“ βŠ• 2 ⊒ Ξ“, 𝐢 βŠ₯ βŠ• 1 ⊒ Ξ“, 𝐡 ⊒ Ξ“, βŠ₯ 𝐢 ⊀ & & ⊒ Ξ“, 𝐡, 𝐢 ⊒ Ξ“, Ξ” ⊒ Ξ”, 𝐡 βŠ₯ ⊒ Ξ“, 𝐡 One-sided sequent calculus Axiom and cut rules: ax cut ⊒ 𝐡 βŠ₯ , 𝐡 Multiplicatives: ⊒ Ξ“, 𝐡 ⊒ Ξ”, 𝐢 βŠ— ⊒ Ξ“, Ξ”, 𝐡 βŠ— 𝐢 Additives: ⊒ Ξ“, 𝐡 ⊒ Ξ“, 𝐢 & ⊒ Ξ“, 𝐡 & 𝐢 ⊒ Ξ“, 𝐡 βŠ• 𝐢 ⊒ Ξ“, 𝐡 βŠ• 𝐢 Units: Emmanuel Beffara (IML, Marseille) Introduction to linear logic Torino – 27/8/2013 23 / 84

  17. ⊒ 1 & ⊀ βŠ• 2 ⊒ Ξ“, 𝐢 ⊒ Ξ“ βŠ• 1 ⊒ Ξ“, 𝐡 βŠ₯ 𝐢 & 1 ⊒ Ξ“, 𝐡 ⊒ Ξ“, Ξ” ⊒ Ξ“, 𝐡, 𝐢 ⊒ Ξ”, 𝐡 βŠ₯ ⊒ Ξ“, 𝐡 One-sided sequent calculus Axiom and cut rules: ax cut ⊒ 𝐡 βŠ₯ , 𝐡 Multiplicatives: ⊒ Ξ“, 𝐡 ⊒ Ξ”, 𝐢 βŠ— ⊒ Ξ“, Ξ”, 𝐡 βŠ— 𝐢 Additives: ⊒ Ξ“, 𝐡 ⊒ Ξ“, 𝐢 & ⊒ Ξ“, 𝐡 & 𝐢 ⊒ Ξ“, 𝐡 βŠ• 𝐢 ⊒ Ξ“, 𝐡 βŠ• 𝐢 Units: ⊒ Ξ“, ⊀ ⊒ Ξ“, βŠ₯ Emmanuel Beffara (IML, Marseille) Introduction to linear logic Torino – 27/8/2013 23 / 84

  18. & & & ⊒ 𝐡 βŠ₯ , 𝐡 𝐷 βŠ₯ ) ⊸ 𝐡 βŠ₯ & ⊒ 𝐡 βŠ₯ , 𝐢 βŠ₯ , 𝐡 βŠ— 𝐢 βŠ• 1 ⊒ 𝐡 βŠ₯ , 𝐢 βŠ₯ , (𝐡 βŠ— 𝐢) βŠ• (𝐡 βŠ— 𝐷) & ⊒ 𝐡 βŠ₯ , 𝐡 ⊒ 𝐡 βŠ₯ 𝐢 βŠ₯ ) & (𝐡 βŠ₯ ⊒ 𝐡 βŠ₯ , 𝐷 βŠ₯ , 𝐡 βŠ— 𝐷 βŠ• 2 Additives vs multiplicatives Example: distributivity of βŠ— over βŠ• . ax ax ax ax ⊒ 𝐢 βŠ₯ , 𝐢 βŠ— ⊒ 𝐷 βŠ₯ , 𝐷 βŠ— ⊒ 𝐡 βŠ₯ , 𝐢 βŠ₯ , (𝐡 βŠ— 𝐢) βŠ• (𝐡 βŠ— 𝐷) & ⊒ 𝐡 βŠ₯ , 𝐢 βŠ₯ & 𝐷 βŠ₯ , (𝐡 βŠ— 𝐢) βŠ• (𝐡 βŠ— 𝐷) (𝐢 βŠ₯ & 𝐷 βŠ₯ ), (𝐡 βŠ— 𝐢) βŠ• (𝐡 βŠ— 𝐷) Hence 𝐡 βŠ— (𝐢 βŠ• 𝐷) ⊸ (𝐡 βŠ— 𝐢) βŠ• (𝐡 βŠ— 𝐷) , equivalently (𝐡 βŠ₯ (𝐢 βŠ₯ & 𝐷 βŠ₯ ) . Emmanuel Beffara (IML, Marseille) Introduction to linear logic Torino – 27/8/2013 24 / 84

  19. & & & ⊒ 𝐡 βŠ₯ 𝐢 βŠ₯ ) & (𝐡 βŠ₯ ⊒ 𝐡 βŠ₯ , 𝐷 βŠ₯ , 𝐡 βŠ— (𝐢 βŠ• 𝐷) & βŠ• 1 ⊒ 𝐷 βŠ₯ , 𝐷 𝐷 βŠ₯ ), 𝐡 βŠ— (𝐢 βŠ• 𝐷) ⊒ 𝐡 βŠ₯ , 𝐡 𝐢 βŠ₯ , 𝐡 βŠ— (𝐢 βŠ• 𝐷) ⊒ (𝐡 βŠ₯ & ⊒ 𝐡 βŠ₯ & ⊒ 𝐡 βŠ₯ , 𝐢 βŠ₯ , 𝐡 βŠ— (𝐢 βŠ• 𝐷) & βŠ• 1 ⊒ 𝐢 βŠ₯ , 𝐢 𝐢 βŠ₯ ) & (𝐡 βŠ₯ ⊒ 𝐡 βŠ₯ , 𝐡 & & Additives vs multiplicatives Example: distributivity of βŠ— over βŠ• . ax ax ax ax ⊒ 𝐢 βŠ₯ , 𝐢 βŠ• 𝐷 βŠ— ⊒ 𝐷 βŠ₯ , 𝐢 βŠ• 𝐷 βŠ— 𝐷 βŠ₯ , 𝐡 βŠ— (𝐢 βŠ• 𝐷) & Hence (𝐡 βŠ— 𝐢) βŠ• (𝐡 βŠ— 𝐷) ⊸ 𝐡 βŠ— (𝐢 βŠ• 𝐷) , equivalently 𝐡 βŠ₯ 𝐷 βŠ₯ ) . (𝐢 βŠ₯ & 𝐷 βŠ₯ ) ⊸ (𝐡 βŠ₯ Emmanuel Beffara (IML, Marseille) Introduction to linear logic Torino – 27/8/2013 24 / 84

  20. ⊒ Ξ“ Exponentials Contraction and weakening are crucial for logical expressiveness. Linear logic provides them through modalities . Allowed structural rules: ⊒ Ξ“, ?𝐡, ?𝐡 c w ⊒ Ξ“, 𝐡 ? ⊒ Ξ“, ?𝐡 ⊒ Ξ“, ?𝐡 ⊒ Ξ“, ?𝐡 Promotion: ⊒ ?𝐡 1 , …, ?𝐡 π‘œ , 𝐢 ! ⊒ ?𝐡 1 , …, ?𝐡 π‘œ , !𝐢 Idea: ?𝐡 means β€œ 𝐡 some number of times” !𝐡 means β€œas many 𝐡 as necessary” Emmanuel Beffara (IML, Marseille) Introduction to linear logic Torino – 27/8/2013 25 / 84

  21. ?𝐡 = π‘œ !𝐡 = (𝐡 βŠ• βŠ₯), π‘œ=0 & ∞ π‘œ=0 (𝐡 & 1). 𝐡. 𝑗=1 τΎ€ π‘œ=0 τΎ€ & ∞ !𝐡 = 𝐡, 𝑗=1 & π‘œ π‘œ=0 τΎ™ ∞ ?𝐡 = ∞ Exponentials – equivalences Wrong but not too much: A bit less wrong: Actually true: !(𝐡 & 𝐢) Λ› !𝐡 βŠ— !𝐢 !𝐡 βŠ— !𝐡 Λ› !𝐡 !!𝐡 Λ› !𝐡 !?!?𝐡 Λ› !?𝐡 Emmanuel Beffara (IML, Marseille) Introduction to linear logic Torino – 27/8/2013 26 / 84

  22. & Fragments Many fragments are interesting: (possibly) restrict the set of formulas restrict the rules to allowed formulas (possibly) further restrict the set of rules For instance: MLL = multiplicative = keep only βŠ— and MELL = multiplicative-exponential = remove additives MALL = multiplicative-additive = remove exponentials ILL = β€œintuitionistic” = two-sided, one formula on the right focalized = more on this later polarized = more on this later LJ, LK = more on this later Emmanuel Beffara (IML, Marseille) Introduction to linear logic Torino – 27/8/2013 27 / 84

  23. Plan The proof-program correspondence Linear sequent calculus A bit of semantics Cut elimination and consistency Provability semantics Proof semantics in coherence spaces A bit of proof theory Proof nets Emmanuel Beffara (IML, Marseille) Introduction to linear logic Torino – 27/8/2013 28 / 84

  24. Provability in LK is preserved through translations. This is a good hint but it doesn’t say much of LL! LL has a model in coherent spaces, of course. But this does not inform us on the possibilities of the system. Use the argument sequent calculus was built for: Cut elimination. The question of consistency We have a definition of formulas, sequents and deduction rules. But how do we know if the system is consistent? Emmanuel Beffara (IML, Marseille) Introduction to linear logic Torino – 27/8/2013 29 / 84

  25. LL has a model in coherent spaces, of course. But this does not inform us on the possibilities of the system. Use the argument sequent calculus was built for: Cut elimination. The question of consistency We have a definition of formulas, sequents and deduction rules. But how do we know if the system is consistent? Provability in LK is preserved through translations. This is a good hint but it doesn’t say much of LL! Emmanuel Beffara (IML, Marseille) Introduction to linear logic Torino – 27/8/2013 29 / 84

  26. Use the argument sequent calculus was built for: Cut elimination. The question of consistency We have a definition of formulas, sequents and deduction rules. But how do we know if the system is consistent? Provability in LK is preserved through translations. This is a good hint but it doesn’t say much of LL! LL has a model in coherent spaces, of course. But this does not inform us on the possibilities of the system. Emmanuel Beffara (IML, Marseille) Introduction to linear logic Torino – 27/8/2013 29 / 84

  27. The question of consistency We have a definition of formulas, sequents and deduction rules. But how do we know if the system is consistent? Provability in LK is preserved through translations. This is a good hint but it doesn’t say much of LL! LL has a model in coherent spaces, of course. But this does not inform us on the possibilities of the system. Use the argument sequent calculus was built for: Cut elimination. Emmanuel Beffara (IML, Marseille) Introduction to linear logic Torino – 27/8/2013 29 / 84

  28. Consistency by cut elimination Theorem (Admissibility of cut) A sequent is provable if and only if it is provable without the cut rule. Corollary (Consistency) The empty sequent ⊒ is not provable. Proof. All rules except cut have at least one formula in conclusion. Hence you cannot prove both 𝐡 and 𝐡 βŠ₯ . Emmanuel Beffara (IML, Marseille) Introduction to linear logic Torino – 27/8/2013 30 / 84

  29. Cut elimination Define reduction rules over proofs that locally eliminate cuts. Prove well-foundedness of the reduction relation. Prove that irreducible proofs are cut-free. Conclude. Emmanuel Beffara (IML, Marseille) Introduction to linear logic Torino – 27/8/2013 31 / 84

  30. ⊒ Ξ“, Ξ”, Θ ⊒ Θ, 𝐡 βŠ₯ ⊒ Ξ“, 𝐡 𝜌 1 β†˜ 𝜌 3 ⊒ Θ, 𝐡 βŠ₯ , 𝐢 βŠ₯ 𝐢 βŠ₯ & & ⊒ Ξ”, 𝐢 ⊒ Θ, 𝐡 βŠ₯ , 𝐢 βŠ₯ 𝜌 3 ⊒ Ξ“, Ξ”, 𝐡 βŠ— 𝐢 ⊒ Ξ”, Θ, 𝐡 βŠ₯ 𝜌 2 ⊒ Ξ“, 𝐡 𝜌 1 ⊒ Ξ“, Ξ”, Θ 𝜌 2 Cut elimination Interaction rules Tensor versus par ⊒ Ξ”, 𝐢 βŠ— cut cut cut Emmanuel Beffara (IML, Marseille) Introduction to linear logic Torino – 27/8/2013 32 / 84

  31. ⊒ Ξ”, 𝐡 βŠ₯ ⊒ Ξ“, Ξ” 𝜌 3 ⊒ Ξ“, 𝐡 𝜌 1 β†˜ ⊒ Ξ“, Ξ” βŠ• 1 ⊒ Ξ”, 𝐡 βŠ₯ 𝜌 3 ⊒ Ξ“, 𝐡 & 𝐢 𝜌 2 ⊒ Ξ“, 𝐡 𝜌 1 Cut elimination Interaction rules With versus plus ⊒ Ξ“, 𝐢 & ⊒ Ξ”, 𝐡 βŠ₯ βŠ• 𝐢 βŠ₯ cut cut Emmanuel Beffara (IML, Marseille) Introduction to linear logic Torino – 27/8/2013 33 / 84

  32. ⊒ ?Ξ“, !𝐡 𝜌 1 ⊒ ?Ξ“, Ξ” 𝜌 1 ⊒ ?Ξ“, ?Ξ“, Ξ” ⊒ ?Ξ“, !𝐡 𝜌 2 ⊒ Ξ”, ?𝐡 βŠ₯ , ?𝐡 βŠ₯ ⊒ ?Ξ“, Ξ”, ?𝐡 βŠ₯ ⊒ Ξ”, ?𝐡 βŠ₯ ⊒ Ξ”, ?𝐡 βŠ₯ , ?𝐡 βŠ₯ ⊒ ?Ξ“, Ξ” β†˜ 𝜌 1 𝜌 2 ⊒ ?Ξ“, !𝐡 Cut elimination Interaction rules Promotion versus contraction c ⊒ ?Ξ“, 𝐡 ! cut ⊒ ?Ξ“, 𝐡 ! cut ⊒ ?Ξ“, 𝐡 ! cut c Emmanuel Beffara (IML, Marseille) Introduction to linear logic Torino – 27/8/2013 34 / 84

  33. ! ! ? ! & βŠ• 2 & βŠ• 1 βŠ₯ 1 & βŠ— Cut elimination Interaction rules … plus a few other cancellation rules … left right action propagate the cuts to sub-formulas drop the proof of 1 keep only the left proof in the & rule keep only the right proof in the & rule propagate the cut to the sub-formula w drop the proof from the promotion c duplicate the proof from the promotion ax anything drop the axiom Emmanuel Beffara (IML, Marseille) Introduction to linear logic Torino – 27/8/2013 35 / 84

  34. 𝜌 1 𝜌 2 ⊒ Ξ“, Ξ”, 𝐡 βŠ— 𝐢, 𝐷 𝜌 1 ⊒ Ξ“, 𝐡 𝜌 2 ⊒ Θ, 𝐷 βŠ₯ ⊒ Ξ“, Ξ”, 𝐡 βŠ— 𝐢, 𝐷 𝜌 3 ⊒ Θ, 𝐷 βŠ₯ 𝜌 3 ⊒ Ξ“, Ξ”, Θ, 𝐡 βŠ— 𝐢 β†˜ ⊒ Ξ”, 𝐢, 𝐷 ⊒ Ξ“, 𝐡 Cut elimination Commutation rules Commutation with tensor ⊒ Ξ”, 𝐢, 𝐷 βŠ— cut cut ⊒ Ξ”, Θ, 𝐢 βŠ— Emmanuel Beffara (IML, Marseille) Introduction to linear logic Torino – 27/8/2013 36 / 84

  35. 𝜌 3 𝜌 3 ⊒ Ξ”, 𝐷 βŠ₯ ⊒ Ξ“, 𝐢, 𝐷 ⊒ Ξ“, 𝐡, 𝐷 𝜌 1 β†˜ ⊒ Ξ“, Ξ”, 𝐡 & 𝐢 ⊒ Ξ”, 𝐷 βŠ₯ ⊒ Ξ“, Ξ”, 𝐡 𝜌 3 ⊒ Ξ“, 𝐡 & 𝐢, 𝐷 ⊒ Ξ”, 𝐷 βŠ₯ 𝜌 2 ⊒ Ξ“, 𝐡, 𝐷 𝜌 1 ⊒ Ξ“, Ξ”, 𝐡 & 𝐢 𝜌 2 Cut elimination Commutation rules Commutation with β€œwith” ⊒ Ξ“, 𝐢, 𝐷 & cut cut cut ⊒ Ξ“, Ξ”, 𝐢 & Emmanuel Beffara (IML, Marseille) Introduction to linear logic Torino – 27/8/2013 37 / 84

  36. Cut elimination Commutation rules … plus a lot more commutation rules … Emmanuel Beffara (IML, Marseille) Introduction to linear logic Torino – 27/8/2013 38 / 84

  37. Using a clever induction on formulas and proofs. Works only in the absence of second-order quantification. Using reducibility candidates, like in system F. Lots of technical points to cope with, but it works. Indirectly through more tractable systems polarized systems … more on this in a minute proof nets … more on this later Normalization With the right set of rules, clearly irreducible proofs are cut-free. How to prove that reduction always terminates? Emmanuel Beffara (IML, Marseille) Introduction to linear logic Torino – 27/8/2013 39 / 84

  38. Using reducibility candidates, like in system F. Lots of technical points to cope with, but it works. Indirectly through more tractable systems polarized systems … more on this in a minute proof nets … more on this later Normalization With the right set of rules, clearly irreducible proofs are cut-free. How to prove that reduction always terminates? Using a clever induction on formulas and proofs. Works only in the absence of second-order quantification. Emmanuel Beffara (IML, Marseille) Introduction to linear logic Torino – 27/8/2013 39 / 84

  39. Indirectly through more tractable systems polarized systems … more on this in a minute proof nets … more on this later Normalization With the right set of rules, clearly irreducible proofs are cut-free. How to prove that reduction always terminates? Using a clever induction on formulas and proofs. Works only in the absence of second-order quantification. Using reducibility candidates, like in system F. Lots of technical points to cope with, but it works. Emmanuel Beffara (IML, Marseille) Introduction to linear logic Torino – 27/8/2013 39 / 84

  40. Normalization With the right set of rules, clearly irreducible proofs are cut-free. How to prove that reduction always terminates? Using a clever induction on formulas and proofs. Works only in the absence of second-order quantification. Using reducibility candidates, like in system F. Lots of technical points to cope with, but it works. Indirectly through more tractable systems polarized systems … more on this in a minute proof nets … more on this later Emmanuel Beffara (IML, Marseille) Introduction to linear logic Torino – 27/8/2013 39 / 84

  41. We need a structure that plays in LL the role of Boolean algebras in LK. The question of completeness How do we know we are not missing some rules? Theorem (Completeness) If a formula 𝐡 is satisfied in every interpretation, then ⊒ 𝐡 is provable in LL. But what is an interpretation? Emmanuel Beffara (IML, Marseille) Introduction to linear logic Torino – 27/8/2013 40 / 84

  42. The question of completeness How do we know we are not missing some rules? Theorem (Completeness) If a formula 𝐡 is satisfied in every interpretation, then ⊒ 𝐡 is provable in LL. But what is an interpretation? We need a structure that plays in LL the role of Boolean algebras in LK. Emmanuel Beffara (IML, Marseille) Introduction to linear logic Torino – 27/8/2013 40 / 84

  43. Phase spaces Definition A phase space is a pair (𝑁, βŠ₯) where 𝑁 is a commutative monoid and βŠ₯ is a subset of 𝑁 . points of 𝑁 are tests/interactions/processes… elements of βŠ₯ are successful tests, valid interactions… βŠ₯ is the rule of the game Definition Two points 𝑦, 𝑧 ∈ 𝑁 are orthogonal if 𝑦𝑧 ∈ βŠ₯ . For 𝐡 βŠ† 𝑁 , let 𝐡 βŠ₯ ∢= τΏ»π‘§ ∈ 𝑁 τΏ— βˆ€π‘¦ ∈ 𝐡, 𝑦𝑧 ∈ βŠ₯τΏΎ . A fact is a set of the form 𝐡 βŠ₯ . Exercise: Prove that 𝐡 βŠ† 𝐢 implies 𝐢 βŠ₯ βŠ† 𝐡 βŠ₯ and that 𝐡 βŠ† 𝐡 βŠ₯βŠ₯ and 𝐡 βŠ₯βŠ₯βŠ₯ = 𝐡 βŠ₯ . Facts play the role of truth values. Emmanuel Beffara (IML, Marseille) Introduction to linear logic Torino – 27/8/2013 41 / 84

  44. 𝐡 ⊸ 𝐢 = 𝐡 βŠ₯ βŠ₯βŠ₯ 𝐡 & 𝐡 βŠ• 𝐢 ∢= (𝐡 βˆͺ 𝐢) βŠ₯βŠ₯ 𝐡 & 𝐢 ∢= 𝐡 ∩ 𝐢 0 ∢= βˆ… βŠ₯βŠ₯ ⊀ ∢= 𝑁 !𝐡 ∢= (𝐡 ∩ 𝐽) βŠ₯βŠ₯ 1 ∢= {1} βŠ₯βŠ₯ & Phase spaces Connectives Given (𝑁, βŠ₯) , for subsets 𝐡, 𝐢 βŠ† 𝑁 define 𝐢 ∢= (𝐡 βŠ₯ βŠ— 𝐢 βŠ₯ ) βŠ₯ 𝐡 βŠ— 𝐢 ∢= τΏ»π‘žπ‘Ÿ τΏ— π‘ž ∈ 𝐡, π‘Ÿ ∈ 𝐢τΏΎ ?𝐡 ∢= (𝐡 βŠ₯ ∩ 𝐽) βŠ₯ where 𝐽 is the set of idempotents belonging to 1 . If propositional variables are interpreted as facts, then for any formula 𝐡 the interpretation οΏ½ 𝐡 οΏ½ 𝑁 is a fact. 𝐢 = τΏ»π‘¦ ∈ 𝑁 τΏ— βˆ€π‘§ ∈ 𝐡, 𝑦𝑧 ∈ 𝐢τΏΎ If βŠ₯ = βˆ… then we get the elementary Boolean algebra {βˆ…, ⊀} . Emmanuel Beffara (IML, Marseille) Introduction to linear logic Torino – 27/8/2013 42 / 84

  45. Phase spaces Soundness and completeness Theorem (Soundness) If ⊒ 𝐡 is provable, then 1 ∈ οΏ½ 𝐡 οΏ½ 𝑁 in any phase space 𝑁 . Exercise: Check it by induction over proofs. Theorem (Completeness) If 1 ∈ οΏ½ 𝐡 οΏ½ 𝑁 in any phase space 𝑁 , then ⊒ 𝐡 is provable. Proof. Take for 𝑁 the sequents (up to duplication of ? formulas) and for βŠ₯ the provable ones. Check that οΏ½ 𝐡 οΏ½ 𝑁 = τΏ»Ξ“ τΏ— ⊒ Ξ“, 𝐡 is provable τΏΎ . The neutral element is the empty sequent so ⊒ 𝐡 is provable. Emmanuel Beffara (IML, Marseille) Introduction to linear logic Torino – 27/8/2013 43 / 84

  46. & |𝐡 βŠ— 𝐢| = |𝐡 & Coherence spaces: interpreting formulas Linear logic was extracted from the notion of linearity observed when interpreting the πœ‡ -calculus in coherence spaces. It can itself be interpreted in coherence spaces: Definition τΏ—𝐡 βŠ₯ τΏ— = |𝐡| and 𝑦 Β¨ 𝐡 βŠ₯ 𝑦 β€² unless 𝑦 ˝ 𝐡 𝑦 β€² . 𝐢| = |𝐡| Γ— |𝐢| and (𝑦, 𝑧) Β¨ π΅βŠ—πΆ (𝑦 β€² , 𝑧 β€² ) if 𝑦 Β¨ 𝐡 𝑦 β€² and 𝑧 Β¨ 𝐢 𝑧 β€² , 𝐢 (𝑦 β€² , 𝑧 β€² ) if 𝑦 ˝ 𝐡 𝑦 β€² or 𝑧 ˝ 𝐢 𝑧 β€² . (𝑦, 𝑧) ˝ 𝐡 |𝐡 βŠ• 𝐢| = |𝐡 & 𝐢| = ({1} Γ— |𝐡|) βˆͺ ({2} Γ— |𝐢|) and (𝑗, 𝑦) Β¨ π΅βŠ•πΆ (π‘˜, 𝑦 β€² ) if 𝑗 = π‘˜ and 𝑦 Β¨ 𝑦 β€² . (𝑗, 𝑦) Β¨ 𝐡&𝐢 (π‘˜, 𝑦 β€² ) if 𝑗 β‰  π‘˜ or 𝑦 Β¨ 𝑦 β€² . |!𝐡| is the set of finite cliques of 𝐡 , 𝑦 Β¨ !𝐡 𝑦 β€² if 𝑦 βˆͺ 𝑦 β€² is a clique in 𝐡 . where 𝑦 ˝ 𝑦 β€² means 𝑦 Β¨ 𝑦 β€² and 𝑦 β‰  𝑦 β€² . Emmanuel Beffara (IML, Marseille) Introduction to linear logic Torino – 27/8/2013 44 / 84

  47. Exponentials w c ⊒ 𝛿 ∢ Ξ“, 𝑏 βˆͺ 𝑏 β€² ∢ ?𝐡 τΏ»βŠ’ 𝑏 1,𝑗 ∢ ?𝐡 1 , …𝑏 π‘œ,𝑗 ∢ ?𝐡 π‘œ , 𝑐 𝑗 ∢ 𝐢τΏΎ ⊒ ⋃ π‘—βˆˆπ½ 𝑏 1,𝑗 ∢ ?𝐡 1 , …⋃ π‘—βˆˆπ½ 𝑏 π‘œ 𝑗 ∢ ?𝐡 π‘œ , {𝑐 𝑗 | 𝑗 ∈ 𝐽} ∢ !𝐢 ⊒ 𝛿 ∢ Ξ“, (𝛽, 𝛾) ∢ 𝐡 ⊒ 𝛿 ∢ Ξ“, {𝛽} ∢ ?𝐡 ? ⊒ 𝛿 ∢ Ξ“, 𝛽 ∢ 𝐡 ⊒ 𝛿 ∢ Ξ“, βˆ… ∢ ?𝐡 𝐢 & βŠ— & ⊒ 𝛿 ∢ Ξ“, 𝛽 ∢ 𝐡, 𝛾 ∢ 𝐢 ⊒ 𝛿 ∢ Ξ“, 𝑏 ∢ ?𝐡, 𝑏 β€² ?𝐡 ⊒ 𝛾 ∢ 𝐢, πœ€ ∢ Ξ” π‘—βˆˆπ½ ⊒ 𝛽 ∢ 𝐡 βŠ₯ , πœ€ ∢ Ξ” ⊒ 𝛿 ∢ Ξ“, 𝛽 ∢ 𝐡 ! ⊒ 𝛿 ∢ Ξ“ Coherence spaces: interpreting proofs Identity ax cut ⊒ 𝛽 ∢ 𝐡 βŠ₯ , 𝛽 ∢ 𝐡 ⊒ 𝛿 ∢ Ξ“, πœ€ ∢ Ξ” Multiplicatives ⊒ 𝛿 ∢ Ξ“, 𝛽 ∢ 𝐡 ⊒ 𝛿 ∢ Ξ“, (𝛽, 𝛾) ∢ 𝐡 βŠ— 𝐢, πœ€ ∢ Ξ” Emmanuel Beffara (IML, Marseille) Introduction to linear logic Torino – 27/8/2013 45 / 84

  48. ? π‘—βˆˆπ½ ! 𝐢 & ⊒ 𝛿 ∢ Ξ“, (𝛽, 𝛾) ∢ 𝐡 & ⊒ 𝛿 ∢ Ξ“, 𝛽 ∢ 𝐡, 𝛾 ∢ 𝐢 βŠ— ⊒ 𝛾 ∢ 𝐢, πœ€ ∢ Ξ” ⊒ 𝛿 ∢ Ξ“, 𝛽 ∢ 𝐡 ⊒ 𝛽 ∢ 𝐡 βŠ₯ , πœ€ ∢ Ξ” Coherence spaces: interpreting proofs Identity ax cut ⊒ 𝛽 ∢ 𝐡 βŠ₯ , 𝛽 ∢ 𝐡 ⊒ 𝛿 ∢ Ξ“, πœ€ ∢ Ξ” Multiplicatives ⊒ 𝛿 ∢ Ξ“, 𝛽 ∢ 𝐡 ⊒ 𝛿 ∢ Ξ“, (𝛽, 𝛾) ∢ 𝐡 βŠ— 𝐢, πœ€ ∢ Ξ” Exponentials ⊒ 𝛿 ∢ Ξ“, 𝛽 ∢ 𝐡 ⊒ 𝛿 ∢ Ξ“ w ⊒ 𝛿 ∢ Ξ“, 𝑏 ∢ ?𝐡, 𝑏 β€² ?𝐡 c ⊒ 𝛿 ∢ Ξ“, 𝑏 βˆͺ 𝑏 β€² ∢ ?𝐡 ⊒ 𝛿 ∢ Ξ“, βˆ… ∢ ?𝐡 ⊒ 𝛿 ∢ Ξ“, {𝛽} ∢ ?𝐡 τΏ»βŠ’ 𝑏 1,𝑗 ∢ ?𝐡 1 , …𝑏 π‘œ,𝑗 ∢ ?𝐡 π‘œ , 𝑐 𝑗 ∢ 𝐢τΏΎ ⊒ ⋃ π‘—βˆˆπ½ 𝑏 1,𝑗 ∢ ?𝐡 1 , …⋃ π‘—βˆˆπ½ 𝑏 π‘œ 𝑗 ∢ ?𝐡 π‘œ , {𝑐 𝑗 | 𝑗 ∈ 𝐽} ∢ !𝐢 Emmanuel Beffara (IML, Marseille) Introduction to linear logic Torino – 27/8/2013 45 / 84

  49. Coherence spaces: sanity check Theorem The set of tuples in the interpretation of a proof is always a clique. Proof. By a simple induction of proofs. Theorem The interpretation of proofs in coherence spaces is invariant by cut elimination. Proof. By case analysis on the various cases of cut elimination. Emmanuel Beffara (IML, Marseille) Introduction to linear logic Torino – 27/8/2013 46 / 84

  50. Plan The proof-program correspondence Linear sequent calculus A bit of semantics A bit of proof theory Intuitionistic and classical logics as fragments Cut elimination and proof equivalence Reversibility and focalization Proof nets Emmanuel Beffara (IML, Marseille) Introduction to linear logic Torino – 27/8/2013 47 / 84

  51. ⊒ Ξ” βˆ— , !𝐡 βŠ— (𝐢 βˆ— ) βŠ₯ , 𝐢 βˆ— ⊒ Ξ“ βˆ— , ?(𝐡 βˆ— ) βŠ₯ βŠ— ⊒ (𝐢 βˆ— ) βŠ₯ , 𝐢 βˆ— ⊒ Ξ” βˆ— , !𝐡 βˆ— ! ⊒ Ξ” βˆ— , 𝐡 βˆ— 𝐢 βˆ— & ⊒ Ξ“ βˆ— , ?(𝐡 βˆ— ) βŠ₯ ↝ 𝐢 βˆ— ⊒ Ξ“ βˆ— , Ξ” βˆ— , 𝐢 βˆ— & & 𝐢 ↝ 𝐡 β‡’ 𝐢 = !𝐡 ⊸ 𝐢 = ?𝐡 βŠ₯ & ⊒ Ξ“ βˆ— , ?(𝐡 βˆ— ) βŠ₯ , 𝐢 βˆ— LJ expressed in linear logic Linear logic arises from the decomposition Deduction rules can be translated accordingly: Ξ“, 𝐡 ⊒ 𝑀𝐾 𝐢 Ξ“ ⊒ 𝑀𝐾 𝐡 β‡’ 𝐢 ax Ξ“ ⊒ 𝑀𝐾 𝐡 β‡’ 𝐢 Ξ” ⊒ 𝑀𝐾 𝐡 Ξ“, Ξ” ⊒ 𝑀𝐾 𝐢 cut The other connectives have adequate translations. Emmanuel Beffara (IML, Marseille) Introduction to linear logic Torino – 27/8/2013 48 / 84

  52. LK expressed in linear logic Classical sequents have the shape 𝐡 1 , …, 𝐡 π‘œ ⊒ 𝐢 1 , …, 𝐢 π‘ž with contraction and weakening allowed on both sides. This suggests translating 𝐡 β‡’ 𝐢 into something like !𝐡 ⊸ ?𝐢 . This does not work, but !𝐡 ⊸ ?!𝐢 and !?𝐡 ⊸ ?𝐢 do work. Theorem A sequent is provable in classical sequent calculus if and only if its translation in linear logic, by any of the above translations, is provable. LK proofs are translated into LL proofs, mapping linear connectives to classical ones is the reverse translation. Exercise: Prove that in more detail. Emmanuel Beffara (IML, Marseille) Introduction to linear logic Torino – 27/8/2013 49 / 84

  53. LK as two fragments? There are two families of translations: β€œleft-handed”: !?𝐡 ⊸ ?𝐢 the associated reduction for πœ‡ -calculus is call by name β€œright-handed”: !𝐡 ⊸ ?!𝐢 the associated reduction for πœ‡ -calculus is call by value More precise study of control operators is possible along these lines. Emmanuel Beffara (IML, Marseille) Introduction to linear logic Torino – 27/8/2013 50 / 84

  54. Cut-elimination as computation Let us look again at cut elimination. It is a computational process for turning arbitrary proofs into cut-free canonical proofs: cut-free proofs are like values , a proof of 𝐡 ⊸ 𝐢 maps values of 𝐡 to values of 𝐢 , equivalence modulo cut-elimination implies semantic equality. Incidentally, it decomposes the reduction of the πœ‡ -calculus. It turns arbitrary proofs into explicit , direct proofs: subformula property, mechanical proof search is possible. In the absence of second-order quantification. Emmanuel Beffara (IML, Marseille) Introduction to linear logic Torino – 27/8/2013 51 / 84

  55. ⊒ 𝐢 βŠ₯ & 𝐷 βŠ₯ ), 𝐡 βŠ• (𝐢 βŠ— 𝐷) & ⊒ 𝐡 βŠ₯ , 𝐡 βŠ• 1 ⊒ 𝐡 βŠ₯ , 𝐡 βŠ• (𝐢 βŠ— 𝐷) & ⊒ 𝐢 βŠ₯ , 𝐢 ⊒ 𝐢 βŠ₯ βŠ• 2 ⊒ 𝐢 βŠ₯ , 𝐷 βŠ₯ , 𝐢 βŠ— 𝐷 𝐷 βŠ₯ , 𝐢 βŠ— 𝐷 Type isomorphisms Technical aside: πœƒ -equivalence Consider possible cut-free proofs of 𝐡 βŠ• (𝐢 βŠ— 𝐷) ⊸ 𝐡 βŠ• (𝐢 βŠ— 𝐷) . ax ax ⊒ 𝐷 βŠ₯ , 𝐷 βŠ— ax ax 𝐷 βŠ₯ , 𝐡 βŠ• (𝐢 βŠ— 𝐷) ax ⊒ 𝐡 βŠ₯ & (𝐢 βŠ₯ Emmanuel Beffara (IML, Marseille) Introduction to linear logic Torino – 27/8/2013 52 / 84

  56. ⊒ 𝐢 βŠ₯ & 𝐷 βŠ₯ ), 𝐡 βŠ• (𝐢 βŠ— 𝐷) & ⊒ 𝐡 βŠ₯ , 𝐡 βŠ• 1 ⊒ 𝐡 βŠ₯ , 𝐡 βŠ• (𝐢 βŠ— 𝐷) & ⊒ 𝐢 βŠ₯ , 𝐢 ⊒ 𝐢 βŠ₯ βŠ• 2 ⊒ 𝐢 βŠ₯ , 𝐷 βŠ₯ , 𝐢 βŠ— 𝐷 𝐷 βŠ₯ , 𝐢 βŠ— 𝐷 Type isomorphisms Technical aside: πœƒ -equivalence Consider possible cut-free proofs of 𝐡 βŠ• (𝐢 βŠ— 𝐷) ⊸ 𝐡 βŠ• (𝐢 βŠ— 𝐷) . ax ax ⊒ 𝐷 βŠ₯ , 𝐷 βŠ— ax ax 𝐷 βŠ₯ , 𝐡 βŠ• (𝐢 βŠ— 𝐷) & ⊒ 𝐡 βŠ₯ & (𝐢 βŠ₯ Emmanuel Beffara (IML, Marseille) Introduction to linear logic Torino – 27/8/2013 52 / 84

  57. ⊒ 𝐢 βŠ₯ & 𝐷 βŠ₯ ), 𝐡 βŠ• (𝐢 βŠ— 𝐷) & ⊒ 𝐡 βŠ₯ , 𝐡 βŠ• 1 ⊒ 𝐡 βŠ₯ , 𝐡 βŠ• (𝐢 βŠ— 𝐷) & ⊒ 𝐢 βŠ₯ , 𝐢 ⊒ 𝐢 βŠ₯ βŠ• 2 ⊒ 𝐢 βŠ₯ , 𝐷 βŠ₯ , 𝐢 βŠ— 𝐷 & 𝐷 βŠ₯ , 𝐢 βŠ— 𝐷 Type isomorphisms Technical aside: πœƒ -equivalence Consider possible cut-free proofs of 𝐡 βŠ• (𝐢 βŠ— 𝐷) ⊸ 𝐡 βŠ• (𝐢 βŠ— 𝐷) . ax ax ⊒ 𝐷 βŠ₯ , 𝐷 βŠ— ax 𝐷 βŠ₯ , 𝐡 βŠ• (𝐢 βŠ— 𝐷) & ⊒ 𝐡 βŠ₯ & (𝐢 βŠ₯ Emmanuel Beffara (IML, Marseille) Introduction to linear logic Torino – 27/8/2013 52 / 84

  58. & 𝐷 βŠ₯ , 𝐢 βŠ— 𝐷 𝐷 βŠ₯ ), 𝐡 βŠ• (𝐢 βŠ— 𝐷) & ⊒ 𝐡 βŠ₯ , 𝐡 βŠ• 1 ⊒ 𝐡 βŠ₯ , 𝐡 βŠ• (𝐢 βŠ— 𝐷) & ⊒ 𝐢 βŠ₯ , 𝐢 ⊒ 𝐢 βŠ₯ βŠ• 2 ⊒ 𝐢 βŠ₯ , 𝐷 βŠ₯ , 𝐢 βŠ— 𝐷 & ⊒ 𝐢 βŠ₯ Type isomorphisms Technical aside: πœƒ -equivalence Consider possible cut-free proofs of 𝐡 βŠ• (𝐢 βŠ— 𝐷) ⊸ 𝐡 βŠ• (𝐢 βŠ— 𝐷) . ax ax ⊒ 𝐷 βŠ₯ , 𝐷 βŠ— ax 𝐷 βŠ₯ , 𝐡 βŠ• (𝐢 βŠ— 𝐷) & ⊒ 𝐡 βŠ₯ & (𝐢 βŠ₯ We will consider these proofs as equivalent. This is the LL version of πœƒ -equivalence in the πœ‡ -calculus: 𝑒 ≃ πœƒ πœ‡π‘¦.(𝑒)𝑦 . Emmanuel Beffara (IML, Marseille) Introduction to linear logic Torino – 27/8/2013 52 / 84

  59. 𝐡 βŠ— 𝐢 ≃ 𝐢 βŠ— 𝐡 𝐡 βŠ— (𝐢 βŠ• 𝐷) ≃ (𝐡 βŠ— 𝐢) βŠ• (𝐡 βŠ— 𝐷) !(𝐡 & 𝐢) ≃ !𝐡 βŠ— !𝐢 Type isomorphisms Definition Two formulas 𝐡 and 𝐢 are isomorphic if there are proofs 𝜌 ⊒ 𝐡 βŠ₯ , 𝐢 and 𝜍 ⊒ 𝐢 βŠ₯ , 𝐡 𝜌 cut with 𝜍 on 𝐡 is equivalent to the axiom on 𝐢 𝜌 cut with 𝜍 on 𝐢 is equivalent to the axiom on 𝐡 This implies isomorphism in any model. These equivalences are isomorphisms: Exercise: Prove it! These are not: 𝐡 βŠ• 𝐡 Λ› 𝐡 !𝐡 βŠ— !𝐡 Λ› !𝐡 !!𝐡 Λ› !𝐡 !?!?𝐡 Λ› !?𝐡 Exercise: Explain why! Emmanuel Beffara (IML, Marseille) Introduction to linear logic Torino – 27/8/2013 53 / 84

  60. !(𝐡 & 𝐢) ≃ !𝐡 βŠ— !𝐢 (𝐡 βŠ• 𝐢) βŠ• 𝐷 ≃ 𝐡 βŠ• (𝐢 βŠ• 𝐷) (𝐡 βŠ— 𝐢) βŠ— 𝐷 ≃ 𝐡 βŠ— (𝐢 βŠ— 𝐷) 𝐡 βŠ• 𝐢 ≃ 𝐢 βŠ• 𝐡 𝐡 βŠ• 𝐢 ≃ 𝐢 βŠ• 𝐡 𝐡 βŠ• 0 ≃ 𝐡 𝐡 βŠ— 1 ≃ 𝐡 𝐡 βŠ— (𝐢 βŠ• 𝐷) ≃ (𝐡 βŠ— 𝐢) βŠ• (𝐡 βŠ— 𝐷) 𝐡 βŠ— 0 ≃ 0 !⊀ ≃ 1 Standard isomorphisms Remark that 𝐡 ≃ 𝐢 iff 𝐡 βŠ₯ ≃ 𝐢 βŠ₯ . Associativity and commutativity Distributivity Exponentiation Emmanuel Beffara (IML, Marseille) Introduction to linear logic Torino – 27/8/2013 54 / 84

  61. & & ⊒ Ξ“, 𝐡 & & Reversibility The rules for and & are reversible, i.e. 𝐢 is provable iff ⊒ Ξ“, 𝐡, 𝐢 is provable, ⊒ Ξ“, 𝐡 & 𝐢 is provable iff ⊒ Ξ“, 𝐡 and ⊒ Ξ“, 𝐢 are provable, i.e. one can always assume that the introduction rule for a or for a & comes last. Moreover: this can be proved directly using only permutations of rules moving these rules down does not change the behaviour of the proofs w.r.t. cut-elimination , & , βŠ₯ , ⊀ are called negative . Emmanuel Beffara (IML, Marseille) Introduction to linear logic Torino – 27/8/2013 55 / 84

  62. β‹― 𝜌 1 ⊒ Ξ“ 1 , …, Ξ“ 𝑙 , 𝑄 𝑗 𝜌 𝑙 & ⊒ Ξ“ 1 , 𝑂 1 Focalization Definition A formula is positive if its main connective is βŠ— , βŠ• , 1 , 0 or ! . It is negative if its main connective is , & , βŠ₯ , ⊀ or ? . Let Ξ“ = 𝑄 1 , …, 𝑄 π‘œ be a provable sequent consisting of positive formulas only. Then there is a formula 𝑄 𝑗 and proof of ⊒ Ξ“ of the form ⊒ Ξ“ 𝑙 , 𝑂 𝑙 𝑆 where the 𝑂 π‘˜ are the maximal negative subformulas of 𝑄 𝑗 and the last set of rules 𝑆 builds 𝑄 𝑗 from the 𝑂 π‘˜ . Emmanuel Beffara (IML, Marseille) Introduction to linear logic Torino – 27/8/2013 56 / 84

  63. π‘Œ 𝑗 & ⊒ Ξ“, Ξ¦ βˆ— (𝐡 1 , …, 𝐡 π‘œ ) ⊒ (Ξ“ 𝑗 ) π‘—βˆˆπ½ , Ξ¦(𝐡 1 , …, 𝐡 π‘œ ) Ξ¦ 𝐽 π‘—βˆˆπ½ π½βˆˆπ“™ τΎ€ π‘—βˆˆπ½ π‘Œ 𝑗 Ξ¦ βˆ— (π‘Œ 1 , …, π‘Œ π‘œ ) ≃ & π½βˆˆπ“™ Synthetic connectives Let Ξ¦(π‘Œ 1 , …, π‘Œ π‘œ ) be a formula made of positive connectives from the variables π‘Œ 1 , …, π‘Œ π‘œ . Call Ξ¦ βˆ— the dual of Ξ¦ . Up to associativity/commutativity/neutrality, for some set 𝓙 βŠ† 𝒬({1, …, π‘œ}) one has Ξ¦(π‘Œ 1 , …, π‘Œ π‘œ ) ≃ τΎ™ There is one family of rules (⊒ Ξ“ 𝑗 , 𝐡 𝑗 ) π‘—βˆˆπ½ (⊒ Ξ“, (𝐡 𝑗 ) π‘—βˆˆπ½ ) π½βˆˆπ“™ Ξ¦ βˆ— Any provable sequent using Ξ¦ and Ξ¦ βˆ— can be proved with these rules without decomposing Ξ¦ and Ξ¦ βˆ— . Push this further and you get ludics… Emmanuel Beffara (IML, Marseille) Introduction to linear logic Torino – 27/8/2013 57 / 84

  64. ⊒ Ξ“, 𝑂 ⊒ Ξ“ ⊒ 𝑂 1 , …, 𝑂 π‘œ , !𝑂 𝑄, 𝑅 ∢= 𝛽, 𝑄 βŠ— 𝑅, 𝑄 βŠ• 𝑅, 1, 0, !𝑂 𝑁, 𝑂 ∢= 𝛽 βŠ₯ , 𝑁 & 𝑂, 𝑁 & 𝑂, βŠ₯, ⊀, ?𝑄 ⊒ Ξ“, 𝑂 Polarized linear logic Since connectives of the same polarity behave well, let us restrict to a system where polarities are never mixed: If 𝑄 is a positive formula where variables only appear under modalities, then 𝑄 ⊸ !𝑄 is provable. Hence the following rules are derivable: ⊒ Ξ“, 𝑂, 𝑂 C W ⊒ 𝑂 1 , …, 𝑂 π‘œ , 𝑂 ! Any provable polarized sequent has at most one positive formula (assuming the ⊀ rule respects this as a constraint). Push this further and you get LLP… Emmanuel Beffara (IML, Marseille) Introduction to linear logic Torino – 27/8/2013 58 / 84

  65. Plan The proof-program correspondence Linear sequent calculus A bit of semantics A bit of proof theory Proof nets Intuitionistic LL and natural deduction Proof structures Correctness criteria Emmanuel Beffara (IML, Marseille) Introduction to linear logic Torino – 27/8/2013 59 / 84

  66. Proof nets Why would we need another formalism for proofs? Cut elimination in LL requires a lot of commutation rules as in other sequent calculi, Proofs that differ only by commutation are equivalent w.r.t. cut elimination. On the other hand: Normalization in the πœ‡ -calculus only has one rule unless we use explicit substitutions, There are separation results . We would like a natural deduction for LL. Emmanuel Beffara (IML, Marseille) Introduction to linear logic Torino – 27/8/2013 60 / 84

  67. Definition (Formulas of MILL) propositional variable linear implication multiplicative conjunction Definition (Proof terms for MILL) variable β€” axiom linear abstraction β€” introduction of ⊸ linear application β€” elimination of ⊸ pair β€” introduction of βŠ— matching β€” elimination of βŠ— 𝐡 ⊸ 𝐢 𝐡, 𝐢 ∢= 𝛽 𝐡 βŠ— 𝐢 𝑒, 𝑣 ∢= 𝑦 𝑒(𝑦,π‘§βˆΆ=𝑣) πœ‡π‘¦.𝑒 (𝑒)𝑣 (𝑒, 𝑣) Intuitionistic LL The πœ‡ -calculus is simpler because it is asymmetric. What if we made LL asymmetric too? Emmanuel Beffara (IML, Marseille) Introduction to linear logic Torino – 27/8/2013 61 / 84

  68. Definition (Proof terms for MILL) variable β€” axiom linear abstraction β€” introduction of ⊸ linear application β€” elimination of ⊸ pair β€” introduction of βŠ— matching β€” elimination of βŠ— 𝑒(𝑦,π‘§βˆΆ=𝑣) 𝐡, 𝐢 ∢= 𝛽 𝐡 ⊸ 𝐢 (𝑒, 𝑣) 𝐡 βŠ— 𝐢 𝑒, 𝑣 ∢= 𝑦 (𝑒)𝑣 πœ‡π‘¦.𝑒 Intuitionistic LL The πœ‡ -calculus is simpler because it is asymmetric. What if we made LL asymmetric too? Definition (Formulas of MILL) propositional variable linear implication multiplicative conjunction Emmanuel Beffara (IML, Marseille) Introduction to linear logic Torino – 27/8/2013 61 / 84

  69. (𝑒, 𝑣) 𝐡, 𝐢 ∢= 𝛽 𝐡 ⊸ 𝐢 𝐡 βŠ— 𝐢 𝑒, 𝑣 ∢= 𝑦 πœ‡π‘¦.𝑒 𝑒(𝑦,π‘§βˆΆ=𝑣) (𝑒)𝑣 Intuitionistic LL The πœ‡ -calculus is simpler because it is asymmetric. What if we made LL asymmetric too? Definition (Formulas of MILL) propositional variable linear implication multiplicative conjunction Definition (Proof terms for MILL) variable β€” axiom linear abstraction β€” introduction of ⊸ linear application β€” elimination of ⊸ pair β€” introduction of βŠ— matching β€” elimination of βŠ— Emmanuel Beffara (IML, Marseille) Introduction to linear logic Torino – 27/8/2013 61 / 84

  70. Ξ” ⊒ 𝑣 ∢ 𝐡 βŠ— 𝐢 𝑦 ∢ 𝐡 ⊒ 𝑦 ∢ 𝐡 Ξ“ ⊒ 𝑒 ∢ 𝐡 ⊸ 𝐢 Ξ“, Ξ” ⊒ (𝑒)𝑣 ∢ 𝐢 Ξ“, 𝑦 ∢ 𝐡, 𝑧 ∢ 𝐢 ⊒ 𝑒 ∢ 𝐷 MILL – typing rules Identity ax Implication Ξ” ⊒ 𝑣 ∢ 𝐡 ⊸ E ⊸ R Ξ“, 𝑦 ∢ 𝐡 ⊒ 𝑒 ∢ 𝐢 Ξ“ ⊒ πœ‡π‘¦.𝑒 ∢ 𝐡 ⊸ 𝐢 Tensor Ξ” ⊒ 𝑣 ∢ 𝐢 βŠ— R βŠ— E Ξ“ ⊒ 𝑒 ∢ 𝐡 Ξ“, Ξ” ⊒ (𝑒, 𝑣) ∢ 𝐡 βŠ— 𝐢 Ξ“, Ξ” ⊒ 𝑒(𝑦,π‘§βˆΆ=𝑣) ∢ 𝐷 No contraction or weakening, of course. Emmanuel Beffara (IML, Marseille) Introduction to linear logic Torino – 27/8/2013 62 / 84

  71. Theorem Cut elimination in MILL computes a unique normal form for every proof. Subject reduction: straightforward. Strong normalization: each step decreases the number of typing rules. Confluence: MILL is strongly confluent. Linearity makes things simpler than in the πœ‡ -calculus. (πœ‡π‘¦.𝑒)𝑣 ⇝ 𝑒[𝑣/𝑦] 𝑒(𝑦,π‘§βˆΆ=(𝑣, 𝑀)) ⇝ 𝑒[𝑣/𝑦][𝑀/𝑧] MILL – reduction Definition Cut elimination for MILL is generated by the following rules: Emmanuel Beffara (IML, Marseille) Introduction to linear logic Torino – 27/8/2013 63 / 84

  72. (πœ‡π‘¦.𝑒)𝑣 ⇝ 𝑒[𝑣/𝑦] 𝑒(𝑦,π‘§βˆΆ=(𝑣, 𝑀)) ⇝ 𝑒[𝑣/𝑦][𝑀/𝑧] MILL – reduction Definition Cut elimination for MILL is generated by the following rules: Theorem Cut elimination in MILL computes a unique normal form for every proof. Subject reduction: straightforward. Strong normalization: each step decreases the number of typing rules. Confluence: MILL is strongly confluent. Linearity makes things simpler than in the πœ‡ -calculus. Emmanuel Beffara (IML, Marseille) Introduction to linear logic Torino – 27/8/2013 63 / 84

  73. πœ‡π‘¦.𝑒 𝑦 ⊸ Ξ“ 𝑒 𝑒 Ξ“ Ξ” 𝑣 𝐡 ⊸ 𝐢 𝐡 ⊸ 𝐢 𝐡 𝑦 ∢ 𝐡 (𝑒)𝑣 𝑦 ∢ 𝐡 MILL – a graphical notation Axiom and linear implication 𝐡 ⊸ 𝐢 . . . . . . . . . . . . . . . . . . . ax Emmanuel Beffara (IML, Marseille) Introduction to linear logic Torino – 27/8/2013 64 / 84

  74. βŠ— βŠ— 𝑣 𝐡 βŠ— 𝐢 Ξ” 𝑒 Ξ“ 𝑒(𝑦,π‘§βˆΆ=𝑣) (𝑒, 𝑣) 𝐷 𝐡 βŠ— 𝐢 𝑣 Ξ” 𝑒 Ξ“ MILL – a graphical notation Tensor . . . . . . . . . . . . . . . Emmanuel Beffara (IML, Marseille) Introduction to linear logic Torino – 27/8/2013 65 / 84

  75. The cut rule is admissible. Graphically: . . . . . . Ξ” Ξ“, 𝑦 ∢ 𝐡 ⊒ 𝑒 ∢ 𝐢 Ξ” ⊒ 𝑣 ∢ 𝐡 Ξ“, Ξ” ⊒ 𝑒[𝑣/𝑦] ∢ 𝐢 𝑣 Ξ“ 𝑒 𝐢 The substitution lemma Lemma if Ξ“ and Ξ” have disjoint domains. Emmanuel Beffara (IML, Marseille) Introduction to linear logic Torino – 27/8/2013 66 / 84

  76. Graphically: . . . . . . Ξ“, 𝑦 ∢ 𝐡 ⊒ 𝑒 ∢ 𝐢 Ξ” ⊒ 𝑣 ∢ 𝐡 Ξ“, Ξ” ⊒ 𝑒[𝑣/𝑦] ∢ 𝐢 𝑣 Ξ“ Ξ” 𝑒 𝐢 The substitution lemma Lemma if Ξ“ and Ξ” have disjoint domains. The cut rule is admissible. Emmanuel Beffara (IML, Marseille) Introduction to linear logic Torino – 27/8/2013 66 / 84

  77. 𝐢 𝐡 𝑒 𝑣 𝑦 ∢ 𝐡 Ξ” Ξ“ Ξ“, Ξ” ⊒ 𝑒[𝑣/𝑦] ∢ 𝐢 Ξ” ⊒ 𝑣 ∢ 𝐡 Ξ“, 𝑦 ∢ 𝐡 ⊒ 𝑒 ∢ 𝐢 The substitution lemma Lemma if Ξ“ and Ξ” have disjoint domains. The cut rule is admissible. Graphically: ax . . . . . . . . Emmanuel Beffara (IML, Marseille) Introduction to linear logic Torino – 27/8/2013 66 / 84

  78. Ξ” Ξ“, 𝑦 ∢ 𝐡 ⊒ 𝑒 ∢ 𝐢 Ξ” ⊒ 𝑣 ∢ 𝐡 Ξ“, Ξ” ⊒ 𝑒[𝑣/𝑦] ∢ 𝐢 𝐡 Ξ“ 𝑒 𝐢 𝑣 The substitution lemma Lemma if Ξ“ and Ξ” have disjoint domains. The cut rule is admissible. Graphically: . . . . . . Emmanuel Beffara (IML, Marseille) Introduction to linear logic Torino – 27/8/2013 66 / 84

  79. 𝐢 Ξ“, 𝑦 ∢ 𝐡 ⊒ 𝑒 ∢ 𝐢 Ξ” ⊒ 𝑣 ∢ 𝐡 Ξ“, Ξ” ⊒ 𝑒[𝑣/𝑦] ∢ 𝐢 𝑣 Ξ“ 𝑒 Ξ” The substitution lemma Lemma if Ξ“ and Ξ” have disjoint domains. The cut rule is admissible. Graphically: . . . . . . Emmanuel Beffara (IML, Marseille) Introduction to linear logic Torino – 27/8/2013 66 / 84

  80. 𝑣 𝑒 𝐢 Ξ“ ⊸ Ξ” ⊸ MILL – graphical cut elimination Linear implication ax . . . . . . . . Emmanuel Beffara (IML, Marseille) Introduction to linear logic Torino – 27/8/2013 67 / 84

  81. Ξ“ Ξ” 𝑒 𝑣 𝐢 MILL – graphical cut elimination Linear implication . . . . . Emmanuel Beffara (IML, Marseille) Introduction to linear logic Torino – 27/8/2013 67 / 84

  82. 𝑣 𝑒 𝐷 βŠ— Ξ“ βŠ— 𝑀 Θ Ξ” MILL – graphical cut elimination Tensor ax ax . . . . . . . . . . . . Emmanuel Beffara (IML, Marseille) Introduction to linear logic Torino – 27/8/2013 68 / 84

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