variable binding symmetric monoidal
play

Variable Binding, Symmetric Monoidal Pardon Closed Theories, and - PowerPoint PPT Presentation

Variable Binding, Symmetric Monoidal Closed Theories, and Bigraphs Garner, Hirschowitz, Variable Binding, Symmetric Monoidal Pardon Closed Theories, and Bigraphs Motivation Signatures and free smc categories Application to Richard Garner


  1. Variable Binding, Symmetric Monoidal Closed Theories, and Bigraphs Garner, Hirschowitz, Variable Binding, Symmetric Monoidal Pardon Closed Theories, and Bigraphs Motivation Signatures and free smc categories Application to Richard Garner 1 bigraphs Tom Hirschowitz 2 elien Pardon 3 Aur´ 1 Cambridge University 2 CNRS, Universit´ 3 ENS Lyon e de Savoie Concur ’09

  2. Variable Binding, Motivation Symmetric Monoidal Closed Theories, and Bigraphs Garner, Hirschowitz, Pardon Motivation Signatures and free smc categories ◮ In the paper: elementary, algebraic approach to variable Application to bigraphs binding in the presence of linearity. ◮ Here: additional, longer-term motivation, hoping for your feedback.

  3. Variable Binding, Long term goal Symmetric Monoidal Closed Theories, and Bigraphs Garner, Hirschowitz, Pardon Obtain Motivation Signatures and free ◮ algebraic, smc categories ◮ geometric, and Application to bigraphs ◮ modular models of programming languages, with ◮ a clear separation between program and execution, e.g., 2-dimensional. What do algebraic, geometric, and modular mean?

  4. Variable Binding, Algebra Symmetric Monoidal Closed Theories, and Bigraphs Garner, Hirschowitz, Pardon Motivation Universal algebra < Lawvere theories < locally presentable Signatures and free smc categories categories / sketches. Application to bigraphs Paradox How algebraic is process algebra? I here mean definition of their dynamics, not behavioural theories.

  5. Variable Binding, Geometric Symmetric Monoidal Closed Theories, and Bigraphs Geometric models of the chosen algebraic structure? Garner, Hirschowitz, See John Baez’ talk at LICS ’09. Pardon Motivation Signatures and free smc categories Application to bigraphs

  6. Variable Binding, Modular models Symmetric Monoidal Closed Theories, and Bigraphs Montanari and colleagues (1996) and Melli` es (2002) call for Garner, Hirschowitz, modular models of programming languages. Pardon ◮ Understanding programming languages as free double Motivation categories. Signatures and free smc categories ◮ Tiles, or cells, composing vertically and horizontally: Application to bigraphs f a b u v α c d . g ◮ f and g are programs. ◮ α is an execution or a reduction. ◮ u and v are side effects, or interactions with the environment.

  7. Variable Binding, Modularity Symmetric Monoidal Closed Theories, and Bigraphs Such a double category is modular when any execution of a Garner, composed program Hirschowitz, Pardon f 1 f 2 Motivation a b ′ b Signatures and free smc categories u v α Application to bigraphs c d g decomposes as f 1 f 2 a b ′ b u α 1 α 2 v c d ′ d g 1 g 2 with g 2 g 1 = g .

  8. Variable Binding, Expected benefits Symmetric Monoidal Closed Theories, and Bigraphs Garner, Hirschowitz, Pardon Motivation Signatures and free smc categories ◮ Montanari et al., Sassone-Sobocinski: bisimulation is a Application to automatically a congruence. bigraphs ◮ Melli` es: term tracing, rewriting. ◮ Hopefully compilation.

  9. Variable Binding, Starting point Symmetric Monoidal Closed Theories, and Bigraphs Garner, Hirschowitz, Pardon Motivation Signatures and free smc categories Question Application to bigraphs What should the horizontal category be? Or: what should program composition be?

  10. Variable Binding, Standard answer Symmetric Monoidal Closed Theories, and Bigraphs Garner, Hirschowitz, Category of contexts: Pardon ◮ objects: typing contexts Γ = ( x : A , y : B ), Motivation Signatures and free ◮ morphisms ∆ → Γ: assignments smc categories Application to [ x = e , y = f ] , bigraphs ◮ composition by substitution: σ Θ ∆ [ x = e , y = f ] [ x = e [ σ ] , y = f [ σ ]] Γ .

  11. Variable Binding, Other answers? Symmetric Monoidal Closed Theories, and Bigraphs Garner, Hirschowitz, Pardon Do not plan to use that, for hand-waving reasons: Motivation Signatures and free Duplication belongs to the dynamics smc categories Application to Does not model actual plugging of program fragments. bigraphs Besides: Claim, or thesis Duplication in composition hinders geometric intuition. Hopefully: results will provide more.

  12. Variable Binding, Linear substitution as program composition Symmetric Monoidal Closed Theories, and Bigraphs Garner, Hirschowitz, Pardon Motivation Signatures and free smc categories Proposal Application to bigraphs Linear substitution as program composition. I.e., the horizontal category is monoidal ( � = finite products).

  13. Variable Binding, Linear substitution as program composition Symmetric Monoidal Closed Theories, and Bigraphs Garner, Hirschowitz, Pardon Who tried already? Motivation ◮ Linear programming languages. Signatures and free ◮ No dynamic duplication either. smc categories ◮ But a nice modular model by Melli` es, a hint that Application to bigraphs linearity favours geometric intuition. ◮ Bigraphs (Jensen, Milner, . . . ). ◮ No categorical semantics, esp. for the dynamics. ◮ Premonoidal or precartesian categories (Power, Robinson, Schuermann, . . . ). ◮ No clear separation between program and execution. ◮ Rather models program equivalence.

  14. Variable Binding, Linear substitution as program composition: Symmetric Monoidal Closed issues Theories, and Bigraphs Garner, Hirschowitz, Pardon Motivation Signatures and free ◮ First issue: can we still handle languages with smc categories duplication? Application to bigraphs Hopefully yes: bound variables may be used several times, e.g., λ x . xx . ◮ Second issue: linearity is not stable under reduction. ( λ x . xx ) y − → yy .

  15. Variable Binding, Linear substitution as program composition: Symmetric Monoidal Closed issues Theories, and Bigraphs Garner, Hirschowitz, Pardon Problem: ( λ x . xx ) y − → yy . Motivation Signatures and free Proposal smc categories Application to Give up reductions, use tiles: bigraphs ( λ x . xx ) y 1 1 c τ β 2 1 . y 1 y 2 The map c says that y is duplicated as y 1 and y 2 .

  16. Variable Binding, Linear substitution as program composition: Symmetric Monoidal Closed issues Theories, and Bigraphs Garner, Hirschowitz, Pardon Problem: ( λ x . xx ) y − → yy . Motivation Signatures and free Proposal smc categories Application to Give up reductions, use tiles: bigraphs ( λ x . xx ) y f n 1 1 c n c f c τ β 2 n 2 1 . y 1 y 2 ( f , f ) The map c says that y is duplicated as y 1 and y 2 .

  17. Variable Binding, Contents Symmetric Monoidal Closed Theories, and Bigraphs Garner, Hirschowitz, Pardon Sounds reasonable? Motivation Now, this paper: Signatures and free smc categories ◮ Linear substitution, in the horizontal category only (no Application to dynamics). bigraphs ◮ Algebraic structure: symmetric monoidal closed ( smc ) categories. ◮ Follow-up on Gadducci’s GS · Λ-theories, with: ◮ Use of recent, geometric presentation of the free smc category (Hughes). ◮ Application to bigraphs.

  18. Variable Binding, Signatures Symmetric Monoidal Closed Theories, and Bigraphs Garner, Hirschowitz, Pardon Formulae from intuitionistic multiplicative linear logic Motivation ( imll ): Signatures and free smc categories A , B , . . . ∈ F ( X ) ::= x | I | A ⊗ B | A ⊸ B x ∈ X . Application to bigraphs Definition A ( smc ) signature is given by: ◮ a set X of sorts, and s , t → ◮ a graph Σ → F ( X ) .

  19. Variable Binding, Example 1: λ -calculus, first take Symmetric Monoidal Closed Theories, and Bigraphs Garner, Hirschowitz, Pardon Motivation Signatures and free ◮ One sort t . smc categories ◮ Two operations (edges): Application to bigraphs λ → t · → t . ( t ⊸ t ) and ( t ⊗ t ) ◮ Remember hoas . ◮ Here internal to some smc category.

  20. Variable Binding, The generated smc category Symmetric Monoidal Closed Theories, and Bigraphs ◮ Any Σ freely generates an smc category S (Σ). Garner, Hirschowitz, ◮ Objects: formulae. Pardon ◮ Morphisms: imll proof nets, modulo Trimble rewiring. Motivation ◮ Example, two interpretations for λ x . ( � 1 � 2 ): Signatures and free smc categories ( t ⊸ t ) ⊗ t t ⊗ ( t ⊸ t ) Application to bigraphs · · λ λ t t . ◮ Combinatorial scoping condition generalising the Danos-Regnier criterion for imll .

  21. Variable Binding, Back to Example 1 Symmetric Monoidal Closed Theories, and Bigraphs Garner, Hirschowitz, Pardon Motivation Signatures and free ◮ Linearity: cannot model λ x . xx . smc categories ◮ Still: Application to bigraphs Proposition Morphisms I → t are in bijection with closed linear λ -terms.

  22. Variable Binding, Example 2: λ -calculus, second take Symmetric Monoidal Closed Theories, and Bigraphs Garner, Two sorts: Hirschowitz, Pardon ◮ t for terms, and Motivation ◮ v for variables. Signatures and free Operations: smc categories Application to bigraphs λ → t · → t ( v ⊸ t ) ( t ⊗ t ) d c w v → t v → v ⊗ v v → I . Reminiscent from weak hoas and Montanari et al. (independently). This signature uses the unit I !

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