game semantics in string diagrams
play

Game semantics in string diagrams (work in progress) Paul-Andr - PowerPoint PPT Presentation

Game semantics in string diagrams (work in progress) Paul-Andr Mellis CNRS, Universit Paris Denis Diderot Journes GEOCAL et LAC LIPN 6 & 7 Mars 2008 1 Proof-knots Aim: formulate an algebra of these logical knots 2 Starting


  1. Game semantics in string diagrams (work in progress) Paul-André Melliès CNRS, Université Paris Denis Diderot Journées GEOCAL et LAC LIPN 6 & 7 Mars 2008 1

  2. Proof-knots Aim: formulate an algebra of these logical knots 2

  3. Starting point: game semantics Every proof of formula A initiates a dialogue where Proponent tries to convince Opponent Opponent tries to refute Proponent An interactive approach to logic and programming languages 3

  4. Duality Proponent Opponent Program Environment plays the game plays the game A ¬ A Negation permutes the rôles of Proponent and Opponent 4

  5. Duality Opponent Proponent Environment Program plays the game plays the game ¬ A A Negation permutes the rôles of Opponent and Proponent 5

  6. A brief history of games and categories 1977 André Joyal A category of games and strategies 1986 Jean-Yves Girard Linear logic 1992 Andreas Blass A semantics of linear logic 1994 Martin Hyland A category of games and innocent strategies Luke Ong 1997 André Joyal Free lattices and bicomplete categories A disturbing gap between game semantics and linear logic 6

  7. Part 1 The topological nature of negation At the interface between topology and algebra 7

  8. Cartesian closed categories A cartesian category C is closed when there exists a functor C op × C ⇒ : −→ C and a natural bijection : C ( A × B , C ) C ( A , B ⇒ C ) ϕ A , B , C � � × ⇒ C C A B A B 8

  9. The free cartesian closed category The objects of the category free-ccc ( C ) are the formulas A , B :: = X | A × B | A ⇒ B | 1 where X is an object of the category C . The morphisms are the simply-typed λ -terms, modulo βη -conversion. 9

  10. The simply-typed λ -calculus Variable x : X ⊢ x : X Γ , x : A ⊢ P : B Abstraction Γ ⊢ λ x . P : A ⇒ B Γ ⊢ P : A ⇒ B ∆ ⊢ Q : A Application Γ , ∆ ⊢ PQ : B Γ ⊢ P : B Weakening Γ , x : A ⊢ P : B Γ , x : A , y : A ⊢ P : B Contraction Γ , z : A ⊢ P [ x , y ← z ] : B Γ , x : A , y : B , ∆ ⊢ P : C Permutation Γ , y : B , x : A , ∆ ⊢ P : C 10

  11. � � Proof invariants Every ccc D induces a proof invariant [ − ] modulo execution. [ − ] free-ccc ( C ) � D C Hence the prejudice that proof theory is intrinsically syntactical... 11

  12. However, a striking similarity with knot invariants A tortile category is a monoidal category with A B A A ∗ A A ∗ A B A A braiding twists duality unit duality counit The free tortile category is a category of framed tangles 12

  13. � � Knot invariants Every tortile category D induces a knot invariant [ − ] free-tortile ( C ) � D C A deep connection between algebra and topology first noticed by Joyal and Street 13

  14. Dialogue categories A symmetric monoidal category C equipped with a functor C op ¬ : −→ C and a natural bijection : C ( A ⊗ B , ¬ C ) C ( A , ¬ ( B ⊗ C ) ) ϕ A , B , C � ¬ ¬ � ⊗ ⊗ C C A B A B 14

  15. The free dialogue category The objects of the category free-dialogue ( C ) are dialogue games constructed by the grammar A , B :: = X | A ⊗ B | ¬ A | 1 where X is an object of the category C . The morphisms are total and innocent strategies on dialogue games. As we will see: proofs are 3-dimensional variants of knots... 15

  16. � � A presentation of logic by generators and relations Negation defines a pair of adjoint functors L C op C ⊥ R witnessed by the series of bijection: C op ( ¬ A , B ) C ( A , ¬ B ) C ( B , ¬ A ) � � 16

  17. The 2-dimensional topology of adjunctions The unit and counit of the adjunction L ⊣ R are depicted as η : Id −→ R ◦ L ε : L ◦ R −→ Id R L η ε L R Opponent move = functor R Proponent move = functor L 17

  18. A typical proof R L R R L R L R L L Reveals the algebraic nature of game semantics 18

  19. A purely diagrammatic cut elimination R L 19

  20. The 2-dimensional dynamic of adjunction L R ε ε L R L R = = η η L R Recovers the usual way to compose strategies in game semantics 20

  21. Interlude: a combinatorial observation Fact: there are just as many canonical proofs 2 p 2 q � � �� � � � � �� � � R R ¬ · · · ¬ ¬ · · · ¬ A ⊢ A as there are increasing functions [ p ] −→ [ q ] between the ordinals [ p ] = { 0 < 1 < · · · < p − 1 } and [ q ] . This fragment of logic has the same combinatorics as simplices. 21

  22. The two generators of a monad Every increasing function is composite of faces and degeneracies : : η [0] ⊢ [1] : µ [2] ⊢ [1] Similarly, every proof is composite of the two generators: : A ⊢ ¬¬ A η : µ ¬¬¬¬ A ⊢ ¬¬ A The unit and multiplication of the double negation monad 22

  23. The two generators in sequent calculus A ⊢ A 6 A , ¬ A ⊢ 5 A ⊢ A ¬ A ⊢ ¬ A 2 4 A , ¬ A ⊢ ¬ A , ¬¬ A ⊢ 3 1 A ⊢ ¬¬ A ¬ A ⊢ ¬¬¬ A 2 ¬¬¬¬ A , ¬ A ⊢ 1 ¬¬¬¬ A ⊢ ¬¬ A 23

  24. The two generators in string diagrams The unit and multiplication of the monad R ◦ L are depicted as η : Id −→ R ◦ L µ : R ◦ L ◦ R ◦ L −→ R ◦ L R R R L µ η L R L L 24

  25. Part 2 Tensor and negation An atomist approach to proof theory 25

  26. Guiding idea A proof π : A ⊢ B is a linguistic choreography where Proponent tries to convince Opponent Opponent tries to refute Proponent which we would like to decompose in elementary particles of logic

  27. The linear decomposition of the intuitionistic arrow = A ⇒ B (! A ) ⊸ B a proof of A ⊸ B uses its hypothesis A exactly once, [1] a proof of ! A is a bag containing an infinite number of proofs of A . [2] Andreas Blass discovered this decomposition as early as 1972... 27

  28. Four primitive components of logic the negation [1] ¬ the linear conjunction [2] ⊗ the repetition modality [3] ! the existential quantification [4] ∃ Logic = Data Structure + Duality 28

  29. Tensor vs. negation A well-known fact: the continuation monad is strong ( ¬¬ A ) ⊗ B −→ ¬¬ ( A ⊗ B ) The starting point of the algebraic theory of side effects 29

  30. Tensor vs. negation Proofs are generated by a parametric strength : ¬ ( X ⊗ ¬ A ) ⊗ B −→ ¬ ( X ⊗ ¬ ( A ⊗ B )) κ X which generalizes the usual notion of strong monad : κ : ¬¬ A ⊗ B −→ ¬¬ ( A ⊗ B ) 30

  31. Proofs as 3-dimensional string diagrams The left-to-right proof of the sequent ¬¬ A ⊗ ¬¬ B ⊢ ¬¬ ( A ⊗ B ) is depicted as κ + κ + R ε L R R B L L B A A 31

  32. Tensor vs. negation – conjunctive strength κ + : R ( A � LB ) � C −→ R ( A � L ( B � C )) R � � � � � � � � � R C � � � � � � � � � � −→ A L � � � � � � � � � � A L � � ���� � � � B B C Linear distributivity in a continuation framework 32

  33. Tensor vs. negation – disjunctive strength κ − : L ( R ( A � B ) � C ) −→ A � L ( R ( B ) � C ) L � � � � � � � � � � � A L � � � � � � � � −→ R C � � � � � � � � � R � C � � � � � � � � A B B Linear distributivity in a continuation framework 33

  34. A factorization theorem The four proofs η, ǫ, κ + and κ − generate every proof of the logic. Moreover, every such proof −→ κ − −→ κ − −→ κ + η η η η η ǫ −→ ǫ −→ ǫ −→ ǫ −→ ǫ X −→ −→ −→ −→ −→ −→ Z factors uniquely as −→ κ − κ + η ǫ X −→ −→ −→ −→ −→ −→ −→ Z Corollary: two proofs are equal iff they are equal as strategies. 34

  35. Part 3 Revisiting the negative translation A rational reconstruction of linear logic 35

  36. The algebraic point of view (in the style of Boole) The negated elements of a Heyting algebra form a Boolean algebra. 36

  37. The algebraic point of view (in the style of Frege) A double negation monad is commutative iff it is involutive . This amounts to the following diagrammatic equations: R R R R L L L L = = L L L L R R R R R R R R L L L L In that case, the negated elements form a ∗ -autonomous category. 37

  38. The continuation monad is strong lst ( ¬¬ A ) ⊗ B −→ ¬¬ ( A ⊗ B ) rst A ⊗ ¬¬ B −→ ¬¬ ( A ⊗ B ) 38

  39. The continuation monad is not commutative There are two canonical morphisms ¬¬ A ⊗ ¬¬ B ⇒ ¬¬ ( A ⊗ B ) ¬¬ A ⊗ ¬¬ B −→ ¬¬ ( A ⊗ B ) ¬¬ A ⊗ ¬¬ B −→ ¬¬ ( A ⊗ B ) q q q q a a q q a a a a Left strict and Right strict and 39

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