Template Games and Differential Linear Logic Paul-André Melliès

Template Games and Differential Linear Logic Paul-André Melliès

Template games and differential linear logic Paul-André Melliès To cite this version: Paul-André Melliès. Template games and differential linear logic. Thirty-Fourth Annual ACM/IEEE Symposium on Logic in Computer Science (LICS 2019), Jun 2019, Vancouver, Canada. 10.1109/LICS.2019.8785830. hal-02436300 HAL Id: hal-02436300 https://hal.archives-ouvertes.fr/hal-02436300 Submitted on 12 Jan 2020 HAL is a multi-disciplinary open access L’archive ouverte pluridisciplinaire HAL, est archive for the deposit and dissemination of sci- destinée au dépôt et à la diffusion de documents entific research documents, whether they are pub- scientifiques de niveau recherche, publiés ou non, lished or not. The documents may come from émanant des établissements d’enseignement et de teaching and research institutions in France or recherche français ou étrangers, des laboratoires abroad, or from public or private research centers. publics ou privés. Template games and differential linear logic Paul-André Melliès CNRS and Université Paris Diderot Abstract—We extend our template game model of category A op. This means that there exists a family of multiplicative additive linear logic (MALL) with an isomorphisms between the categories of distributors exponential modality of linear logic (LL) derived from the standard categorical construction Sym of the free op ϕA,B,C : Dist(A ⊗ B, C) Dist(B, A ⊗ C) symmetric monoidal category. We obtain in this way the first game semantics of differential linear logic natural in A, B and C, which provides a form of linear (DiLL). Its formulation relies on a careful and healthy comparison with the model of distributors and gen- currification to the bicategory Dist. eralised species designed ten years ago by Fiore, Gambino, Hyland and Winskel. Besides the resolution A. The exponential modality Sym of an old open problem of game semantics, the study One nice aspect of the categorified semantics is that reveals an unexpected and promising convergence between linear logic and homotopy theory. the exponential modality A 7→ ! A of linear logic is interpreted using the 2-monad I. INTRODUCTION Sym : Cat Cat (1) Looking backwards into the history of the field, there is little doubt that the bicategorical interpretation which transports every small category A to the free of linear logic based on distributors and generalised symmetric monoidal category Sym A generated by A. species [10] has been a turning point in the mathemat- The category Sym A has objects defined as the finite ical semantics of linear proofs and programs. In this sequences (or words) w = a1 . an of objects a1, . , an model of linear logic, every formula A is interpreted as of the category A, and morphisms a small category [[A]] and every derivation tree (σ, f . f ): a . a b . b π 1 n 1 n 1 n . defined as pairs (σ, f1 . fn) consisting of a permuta- A1 ,...,An ` B tion σ ∈ Sn on the set of n elements, together with a sequence (or word) of morphisms of the category A is interpreted as a distributor (or profunctor) fk : ak bσ(k) for 1 ≤ k ≤ n. [[π]] : [[A1]] ⊗ ... ⊗ [[An]] | [[B]]. This interpretation of linear logic may be understood As a strict monoidal category, the category Sym A as a “categorification” of the original relational seman- comes equipped with a pair of functors tics of the logic, where sets are replaced by categories, ⊗ : Sym A × Sym A Sym A and relations by distributors. Recall that a distributor A (2) IA : 1 Sym A M : A | B with the tensor product ⊗A defined as concatenation, is defined as a functor and the tensor unit IA defined as the empty word. M : A × B op Set Equipped with this structure, Sym A defines a monoid in the category Cat, which is only commutative up to a where Set denotes the category of sets and func- natural isomorphism noted γ and called the symmetry tions. The bicategory Dist of small categories and dis- of the monoidal category: tributors is symmetric monoidal with tensor product (21) A, B 7→ A⊗B of small categories defined as their usual Sym A × Sym A Sym A × Sym A cartesian product A, B 7→ A × B in the category Cat γ (3) of small categories and functors, and with tensorial ⊗A ⊗A unit 1 defined as the terminal category. The bicategory Sym A Dist is moreover ∗-autonomous (and in fact compact closed) with linear negation defined as the operation where the functor (21) denotes the symmetry of the A 7→ A op of turning a category A into its opposite cartesian category Cat. B. The symmetric monoid and comonoid structures In order to interpret this equation of linear logic as The exponential modality A 7→ ! A of linear logic is a distributor, one starts by considering the concatena- interpreted in Dist by turning and extending the 2- tion functor monad (1) into a 2-comonad concatA,B : Sym A × Sym B Sym (A + B) (7) Sym : Dist Dist (4) which takes two sequences u = a ··· a and v = b ··· b using a distributivity law between Sym and the 1 p 1 q of objects of A and of B and concatenates them into the presheaf construction in Cat, see [10] for details. Then, sequence one makes great usage of the following basic observa- tion: every functor between small categories concatA,B(u, v) = a1 ··· ap · b1 ··· bq (8) F : A B of objects of A + B. The distributor interpreting the induces an adjoint pair LF a RF of distributors Seely isomorphism L : A | B R : B | A F F Sym (A & B) | Sym A ⊗ Sym B (9) in the bicategory Dist, where the distributors are defined as the functors (or presheaves) below: is then defined as the right adjoint of the concatenation functor, where we write A&B = A + B for the disjoint op LF (b, a) = B(F b, a): B × A Set union of the categories A and B. The important point op is that the functor concatA,B is an equivalence of RF (a, b) = B(a, F b): A × B Set categories (moreover injective on objects), but not an The comonoid structure (Sym A, dA, eA) of the expo- isomorphism of categories. The reason is that an object nential modality (4) is then defined by the distributors w ∈ Sym (A + B) generally consists of a sequence of objects of A and B shuffled in an arbitrary order, while dA = R⊗A : Sym A | Sym A ⊗ Sym A concatA,B transports a pair (u, v) ∈ Sym A × Sym B into a sequence (8) where all the objects of A appear eA = RI : Sym A | 1 A before the objects of B. From this follows that the right adjoints to the functors ⊗A and IA defining the distributor (9) is not an isomorphism in the bicategory monoidal structure of Sym A in (2). This reveals an Dist, but simply an equivalence. In other words, the important difference between the bicategorical model traditional Seely isomorphism (6) is replaced by a in Dist and more traditional categorical models of lin- Seely equivalence (9) in the model of distributors. ear logic: the comonoid (Sym A, dA, eA) is not commu- tative as one would expect, but only symmetric in the D. A model of differential linear logic symmetric monoidal bicategory Dist. This means that Sym A is only commutative up to the isomorphism (5) Once the exponential modality of linear logic has obtained by transposing the isomorphism (3) from Cat been interpreted as A 7→ Sym A, it appears that the to Dist in the following way: model of distributors does not just provide a mathe- matical interpretation of linear logic (LL) but also of Sym A differential linear logic (DiLL). One main reason is dA γ dA (5) that the exponential modality Sym A comes equipped with a monoid structure in Dist Sym A ⊗ Sym A Sym A ⊗ Sym A (21) mA = L⊗A : Sym A ⊗ Sym A | Sym A where the distributor (21) denotes in this context the u = L : 1 | Sym A symmetry of the tensor product in Dist. A IA C. The Seely equivalence whose multiplication and unit are the left adjoint dis- The fact that one needs to relax in (5) an equation tributors associated to the monoid structure of Sym A like commutativity into a natural isomorphism like in Cat mentioned in (2). It is worth stressing the fact symmetry is an important and fascinating aspect of that the monoid structure (Sym A, mA, uA) and the the model of distributors. Interestingly, the same bi- comonoid structure (Sym A, dA, eA) are the left and categorical phenomenon occurs when one considers the right adjoint avatars in Dist of the very same monoid well-known Seely isomorphism of linear logic: structure (Sym A, ⊗A,IA) in Cat. As required by a model of DiLL, the monoid and comonoid structure of !(A & B) !A ⊗ !B. (6) Sym A define together a bimonoid (also called bialge- bra) structure in Dist. Again, this bimonoid structure defining the unit of the 2-monad A 7→ Sym A in Cat. is only up to an invertible natural transformation: The functor may be post-composed with the functor ⊗A in order to obtain the functor Sym A mA dA appendA : A × Sym A Sym A (11) ⊗2 ⊗2 (Sym A) ∼ (Sym A) which transports a pair (a, u) ∈ A × Sym A to the dA⊗dA mA⊗mA (Sym A)⊗4 (Sym A)⊗4 sequence a·u ∈ Sym A where the object a ∈ A has been (1324) appended to the word u ∈ Sym A. The differential is where we write (Sym A)⊗n for the n-th tensorial power then interpreted in Dist as the left adjoint distributor of Sym A, and (1324) for the expected distributor in the symmetric monoidal category Dist.

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    17 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us