Categorical Categorical theory of state-based systems in Sets : bisimilarity in Kleisli: trace semantics [Hasuo,Jacobs,Sokolova LMCS´07] in Sets : bisimilarity.

Slides:



Advertisements
Similar presentations
T YPE I SOMORPHISM O LA M AHMOUD S UPERVISED BY : D R. M ARCELO F IORE UNIVERSITY OF CAMBRIDGE Computer Laboratory Theory & Semantics Group I NTRODUCTION.
Advertisements

Lecture 24 MAS 714 Hartmut Klauck
SYMBOLIC MODEL CHECKING: STATES AND BEYOND J.R. Burch E.M. Clarke K.L. McMillan D. L. Dill L. J. Hwang Presented by Rehana Begam.
1 What are Bit Strings? The View from Process Nick Rossiter Northumbria University.
Ichiro Hasuo Tracing Anonymity with Coalgebras TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: A A A A A A.
Platzhalter für Bild, Bild auf Titelfolie hinter das Logo einsetzen Marcello Bonsangue, Stefan Milius, Alexandra Silva Coalgebras and Generalized Regular.
Roberto Pisa, Italy 13 June 2008 WADT Tiles for Reo Roberto Bruni Dipartimento di Informatica Università di Pisa WADT th International.
Traced Premonoidal Categories Nick Benton Microsoft Research Martin Hyland University of Cambridge.
Introduction to Computability Theory
Crossed Systems and HQFT’s
7th Biennial Ptolemy Miniconference Berkeley, CA February 13, 2007 Causality Interfaces for Actor Networks Ye Zhou and Edward A. Lee University of California,
1 Ivan Lanese Computer Science Department University of Bologna Italy Exploiting user-definable synchronizations in graph transformation.
1 Synchronization strategies for global computing models Ivan Lanese Computer Science Department University of Bologna.
1 Ivan Lanese Computer Science Department University of Bologna Roberto Bruni Computer Science Department University of Pisa A mobile calculus with parametric.
1 Formal Models for Distributed Negotiations Concurrent Languages Translation Roberto Bruni Dipartimento di Informatica Università di Pisa XVII Escuela.
1212 Models of Computation: Automata and Processes Jos Baeten.
1 Ivan Lanese Computer Science Department University of Bologna Italy Concurrent and located synchronizations in π-calculus.
Schemas as Toposes Steven Vickers Department of Pure Mathematics Open University Z schemas – specification1st order theories – logic geometric theories.
An algebra of Connectors for modeling CommUnity with Tiles joint work with Roberto Bruni Ugo Montanari Dipartimento di Informatica Università di Pisa Ivan.
1212 Models of Computation: Automata and Processes Jos Baeten.
1 Ivan Lanese Computer Science Department University of Bologna Synchronization strategies for global computing models.
Complete Axioms for Stateless Connectors joint work with Roberto Bruni and Ugo Montanari Dipartimento di Informatica Università di Pisa Ivan Lanese Dipartimento.
1 Category Theory in a ( E,M ) -category Some aspects of category theory, in particular related to universality, can be developed in any finitely complete.
Synchronizations with Mobility for Graph Transformations joint work with Ugo Montanari Dipartimento di Informatica Università di Pisa Ivan Lanese Dipartimento.
Mathematical Operational Semantics and Finitary System Behaviour Stefan Milius, Marcello Bonsangue, Robert Myers, Jurriaan Rot.
The Relationship between Topology and Logic Dr Christopher Townsend (Open University)
Of 28 Probabilistically Checkable Proofs Madhu Sudan Microsoft Research June 11, 2015TIFR: Probabilistically Checkable Proofs1.
CSE 425: Intro to Programming Languages and their Design A Few Key Ideas No particular language is a prerequisite for this course –However you should be.
Category Theory By: Ashley Reynolds. HISTORY OF CATEGORY THEORY  In 1942–45, Samuel Eilenberg and Saunders Mac Lane introduced categories, functors,
Coalgebraic Symbolic Semantics Filippo Bonchi Ugo Montanari.
Temperature Readings The equation to convert the temperature from degrees Fahrenheit to degrees Celsius is: c(x) = (x - 32) The equation to convert the.
Benjamin Gamble. What is Time?  Can mean many different things to a computer Dynamic Equation Variable System State 2.
Mathematical Operational Semantics and Finitary System Behaviour Stefan Milius, Marcello Bonsangue, Robert Myers, Jurriaan Rot.
Categories and Computer Science
A Holistic Security Architecture for Distributed Information Systems – A Categorical Approach.
Reactive systems – general
Introduction to Graph Grammars Fulvio D’Antonio LEKS, IASI-CNR Rome,
Ivan Lanese Computer Science Department University of Bologna/INRIA Italy Amending Choreographies Joint work with Fabrizio Montesi and Gianluigi Zavattaro.
A Locally Nameless Theory of Objects 1.Introduction:  -calculus and De Bruijn notation 2.locally nameless technique 3.formalization in Isabelle and proofs.
10/25/2015COSC , Lecture 151 Real-Time Systems, COSC , Lecture 15 Stefan Andrei.
Epistemic Strategies and Games on Concurrent Processes Prakash Panangaden: Oxford University (on leave from McGill University). Joint work with Sophia.
Rewriting Logic Model of Compositional Abstraction of Aspect-Oriented Software FOAL '10Mar. 15, 2010 Yasuyuki Tahara, Akihiko Ohsuga The University of.
Gauge Fields, Knots and Gravity Wayne Lawton Department of Mathematics National University of Singapore (65)
Coalgebraic components in a many-sorted microcosm Ichiro Hasuo Kyoto, JP Chris Heunen Nijmegen, NL (  Oxford, UK) Bart Jacobs Nijmegen, NL Ana Sokolova.
Levels of abstraction in Web-books – the communication perspective by Dov Te’eni in collaboration with Hadar Ronen AIS SIGHCI, December 2002.
Kazuyuki Asada Ichiro Hasuo RIMS, Kyoto University PRESTO Research Promotion Program, Japan Science and Technology Agency CSCAT 2010 March 18, 2010.
Lecture 2: Introduction to Category Theory Nick Rossiter, Computing Science, Newcastle University, England
Programming Languages and Design Lecture 3 Semantic Specifications of Programming Languages Instructor: Li Ma Department of Computer Science Texas Southern.
Balanced Category Theory Claudio Pisani Calais, June 2008.
Weak Bisimilarity Coalgebraically Andrei Popescu Department of Computer Science University of Illinois.
DISCRETE COMPUTATIONAL STRUCTURES CSE 2353 Fall 2010 Most slides modified from Discrete Mathematical Structures: Theory and Applications by D.S. Malik.
1 Typing in Information Systems Nick Rossiter, Michael Heather Computer Science and Digital Technologies Northumbria University, Newcastle NE1 8ST, UK.
The theory behind Functional Programming Functional: based on lambda calculus / combinators, recursion theory, category theory. By contrast with other.
1 Regular Expressions Reading: Chapter 3. 2 Regular Expressions vs. Finite Automata Offers a declarative way to express the pattern of any string we want.
2G1516 Formal Methods2005 Mads Dam IMIT, KTH 1 CCS: Processes and Equivalences Mads Dam Reading: Peled 8.5.
R. Johnsonbaugh Discrete Mathematics 5 th edition, 2001 Chapter 9 Boolean Algebras and Combinatorial Circuits.
Advanced Functional Programming Tim Sheard 1 Lecture 15 Advanced Functional Programming Tim Sheard Algebraic and CoAlgebraic Programs F Algebras Initial.
Process Algebra (2IF45) Basic Process Algebra Dr. Suzana Andova.
Probabilistic Anonymity via Coalgebraic Simulations Ichiro Hasuo Radboud Universiteit Nijmegen, the Netherlands (From , also at: RIMS, Kyoto Univ.,
Rewriting Nested Graphs, through Term Graphs Roberto Bruni, Andrea Corradini, Fabio Gadducci Alberto Lluch Lafuente and Ugo Montanari Dipartimento di Informatica,
Requirements Specification
P & NP.
CS201: Data Structures and Discrete Mathematics I
Quantum One.
High-Level Abstraction of Concurrent Finite Automata
Denotational Semantics (Denotational Semantics)
Formal Methods in software development
Functional Programming
Defining A Formal Semantics For The Rosetta Specification Language
y x y = x + 2 y = x + 4 y = x – 1 y = 6x – 3 y = 2x y = ½x y = 3x + 1
Presentation transcript:

Categorical Categorical theory of state-based systems in Sets : bisimilarity in Kleisli: trace semantics [Hasuo,Jacobs,Sokolova LMCS´07] in Sets : bisimilarity in Kleisli: trace semantics [Hasuo,Jacobs,Sokolova LMCS´07]

is everywhere computer networks multi-core processors modular, component-based design of complex systems is hard to get right so easy to get into deadlocks exponentially growing complexity cf. Edward Lee. Making Concurrency Mainstream. Invited talk at CONCUR 2006.

compositional verification aids compositional verification „bisimilarity is a congruence“

 Final coalgebra semantics as “process semantics”.  “Coalgebraic compositionality” On coalgebras || : Coalg F x Coalg F  Coalg F On states || : Z x Z  Z || : Coalg F x Coalg F  Coalg F o composing coalgebras/systems || : Coalg F x Coalg F  Coalg F o composing coalgebras/systems || : Z x Z  Z o composing behavior || : Z x Z  Z o composing behavior operation on NFAs operation on regular languages

 The same “algebraic theory” ◦ operations (binary ||) ◦ equations (e.g. associativity of ||)  is carried by ◦ the category Coalg F and ◦ its object Z 2 Coalg F in a nested manner!  “Microcosm principle” (Baez & Dolan) with operations o operations binary || o equations e.g. assoc. of || operations o operations binary || o equations e.g. assoc. of || X 2 CX 2 CX 2 CX 2 C X 2 CX 2 CX 2 CX 2 C

We name this principle the microcosm principle, after the theory, common in pre-modern correlative cosmologies, that every feature of the microcosm (e.g. the human soul) corresponds to some feature of the macrocosm. John Baez & James Dolan Higher-Dimensional Algebra III: n-Categories and the Algebra of Opetopes Adv. Math. 1998

 You may have seen it ◦ “a monoid is in a monoidal category” inner depends on outer

Answer

microcosm for concurrency (|| and ||)(|| and ||) microcosm for concurrency (|| and ||)(|| and ||) parallel composition via sync nat. trans. parallel composition via sync nat. trans. 2-categorical formulation for arbitrary algebraic theory

Parallel composition of coalgebras via sync X, Y : FX ­ FY  F ( X ­ Y )

 If  the base category C has a tensor ­ : C x C  C  and F : C  C comes with natural transformation sync X,Y : FX ­ FY  F(X ­ Y)  then we have ­ : Coalg F x Coalg F  Coalg F bifunctor Coalg F x Coalg F  Coalg F usually denoted by ­ (tensor) bifunctor Coalg F x Coalg F  Coalg F usually denoted by ­ (tensor) Theorem ­ : Coalg F x Coalg F  Coalg F ­ : C x C  C lifting

?? F X ­ YX ­ Y (X ­ Y)(X ­ Y) FX ­ FY c ­ dc ­ d sync X, Y ­ on base category different sync different different ­

 CSP-style (Hoare)  CCS-style (Milner) Assuming C = Sets, F = P fin (  x _) F-coalgebra = LTS x : Sets x Sets  Sets

 || “composition of states/behavior” arises by coinduction

 C has tensor ­  F has sync X,Y : FX ­ FY  F(X ­ Y)  there is a final coalgebra Z  FZ  C has tensor ­  F has sync X,Y : FX ­ FY  F(X ­ Y)  there is a final coalgebra Z  FZ o by finality o yields o by finality o yields

 When is ­ : Coalg F x Coalg F  Coalg Fassociative?  Answer When ◦ ­ : C x C  C is associative, and ◦ sync is “associative”

2-categorical formulation of the microcosm principle

examples o monoid in monoidal category o final coalg. in Coalg F with ­ o reg. lang. vs. NFAs examples o monoid in monoidal category o final coalg. in Coalg F with ­ o reg. lang. vs. NFAs

Lawvere theory L A Lawvere theory L is a small category s.t. o L’s objects are natural numbers o L has finite products Lawvere theory L A Lawvere theory L is a small category s.t. o L’s objects are natural numbers o L has finite products

operations as arrows equations as commuting diagrams m (binary) e (nullary) m (binary) e (nullary) assoc. of m unit law assoc. of m unit law other arrows: o projections o composed terms other arrows: o projections o composed terms

L -set o a set with L -structure  L -set (product-preserving) X 2 CX 2 CX 2 CX 2 C X 2 CX 2 CX 2 CX 2 C what about nested models?

category L -category o a category with L -structure  L -category (product-preserving) strict NB. our focus is on strict alg. structures

Given an L -category C, L -object an L -object X in it lax is a lax natural transformation compatible with products. Given an L -category C, L -object an L -object X in it lax is a lax natural transformation compatible with products. DefinitionComponents X : carrier obj.

 C : L -category  F : C  C, lax L -functor  Coalg F is an L -category  C : L -category  F : C  C, lax L -functor  Coalg F is an L -category lax L-functor? lax lax natur.. trans. lax L-functor? lax lax natur.. trans. lax naturality?... Generalizes  C : L -category  Z 2 C, final object  Z is an L -object  C : L -category  Z 2 C, final object  Z is an L -object Generalizes

 C is an L-category  F : C  C is a lax L-functor  there is a final coalgebra Z  FZ  C is an L-category  F : C  C is a lax L-functor  there is a final coalgebra Z  FZ o by finality o yields o by finality o yields by coinduction subsumes

associative ­ : Coalg F x Coalg F  Coalg Fassociative associative ­ : C x C  Cassociative lifting

 equations are built-in in L ◦ as  how about „assoc“ of sync? ◦ automatic coherence via “coherence condition“ L-structure on Coalg F L-structure on Coalg F L-structure on C L-structure on C lifting

 Related to the study of bialgebraic structures [Turi-Plotkin, Bartels, Klin, …] ◦ Algebraic structures on coalgebras  In the current work: ◦ Equations, not only operations, are also an integral part ◦ Algebraic structures are nested, higher- dimensional

 “Pseudo” algebraic structures ◦ monoidal category (cf. strictly monoidal category) ◦ equations hold up-to-isomorphism ◦ L  CAT, product-preserving pseudo-functor?  Microcosm principle for full GSOS

microcosm for concurrency (|| and ||)(|| and ||) microcosm for concurrency (|| and ||)(|| and ||) parallel composition via sync nat. trans. parallel composition via sync nat. trans. 2-categorical formulation for arbitrary algebraic theory Thanks for your attention! Ichiro Hasuo (Kyoto, Japan) Thanks for your attention! Ichiro Hasuo (Kyoto, Japan)

 Microcosm principle : same algebraic structure ◦ on a category C and ◦ on an object X 2 C  2-categorical formulation:  Concurrency in coalgebras as a CS example Thank you for your attention! Ichiro Hasuo, Kyoto U., Japan Thank you for your attention! Ichiro Hasuo, Kyoto U., Japan

Take F = P fin (  £ _) in Sets.  System as coalgebra:  Behavior by coinduction: ◦ in Sets: bisimilarity ◦ in certain Kleisli categories: trace equivalence [Hasuo,Jacobs,Sokolova,CMCS’06] the set of finitely branching edges labeled with  infinite-depth trees, such as x process graph of x

 Note: Asynchronous/interleaving compositions don’t fit in this framework ◦ such as ◦ We have to use, instead of F, the cofree comonad on F

 Presentation of an algebraic theory as a category: ◦ objects: 0, 1, 2, 3, … “arities” ◦ arrows: “terms (in a context)” ◦ commuting diagrams are understood as “equations” ~ unit law ~ assoc. law ◦ arises from  (single-sorted) algebraic specification ( , E) as the syntactic category  FP-sketch projections operation composed term

 In a coalgebraic study of concurrency,  Nested algebraic structures ◦ on a category C and ◦ on an object X 2 C arise naturally (microcosm principle)  Our contributions: ◦ Syntactic formalization of microcosm principle ◦ 2-categorical formalization with Lawvere theories ◦ Application to coalgebras:  generic compositionality theorem

 A Lawvere theory L is for ◦ operations, and ◦ equations (e.g. associativity, commutativity)  Coalg F is an L-category  Parallel composition ­ is automatically associative (for example) ◦ Ultimately, this is due to the coherence condition on the lax L-functor F  Possible application : Study of syntactic formats that ensure associativity/commutativity (future work)

nice cake