Title: Coalgebraic Symbolic Semantics
1Coalgebraic Symbolic Semantics
Filippo Bonchi Ugo Montanari
2Many formalisms modelling Interactive Systems
- Algebras - Syntax
- Coalgebras - Semantics
- Bialgebras Semantics of the composite system in
terms of the semantics of the components - (compositionality of final semantics)
- CCS Turi, Plotkin LICS 97
- Pi-calculus Fiore, Turi LICS 01 Ferrari,
Montanari, Tuosto TCS 05 - Fusion Calculus Ferrari et al. CALCO
05Miculan MFPS 08
3- in many interesting cases,
- this does not work
- Mobile Ambient Hausmann, Mossakowski, Schröder
TCS 2006 - Formalisms with asynchronous message passing
- Petri Nets
4Plan of the Talk
- Compositionality
- Saturated Semantics
- Symbolic Semantics
- Saturated Coalgebras
- Normalized Coalgebras
Bonchi, Montanari FOSSACS 08
As running example, we will use Petri nets
5Petri Nets
P is a set of places T is a set of
transitions PreT?P? PostT?P ? lT?L is a
labelling
2
p
a marking is a multiset over P
p
The semantics is quite intuitive
pc
qcB
Given a set A, A? is the set of all multisets
over A, e.g., for Aa,b ,then
A??,a,b,aa,bb,ab ,aab
6Open Petri Nets
Interface(Input Places, Output Places)
Output Place
Input Places
Input Places
interface
Closed Place
7Petri Nets Contexts
- Petri nets Inner interfaces Outer Interface
Outer Interface
Inner Interface
8Bisimilarity is not a congruence
c
c
a
They are bisimilar
c
e
c
c
a
They are not
cx
ex
C
e
f
9Plan of the Talk
- Compositionality
- Saturated Semantics
- Symbolic Semantics
- Saturated Coalgebras
- Normalized Coalgebras
As running example, we will use Petri nets
10Saturated Bisimilarity
- A relation R is a saturated bisimulation
- iff whenever pRq, then ?C-
- If Cp?p then ? q s.t. Cq?q and pRq
- If Cq?q then ? p s.t. Cp?p and pRq
l
l
l
l
THM it is always the largest bisimulation
congruence
11Saturated Transition System
C- is a context
l is a label
12Saturated Semantics for Open Nets
At any moment of their execution a token can be
inserted into an input place and one can be
removed from an output place
?
a
a
a
a
b
b
b
aa
13Running Examples
The activation a is free. The service b costs 1.
The activation a costs 5. The service b is free.
The activation a costs 3. The service b is free
for 3 times and then it costs 1.
THEY ARE ALL DIFFERENT
14Running Examples
IS IT DIFFERENT FROM ALL THE PREVIOUS???
This behaves as a or e either the activation a
is free and the service b costs 1. Or the
activation costs 3 and then for 3 times the
service is free and then it costs 1.
The activation a is free. The service b costs 1.
15Plan of the Talk
- Compositionality
- Saturated Semantics
- Symbolic Semantics
- Saturated Coalgebras
- Normalized Coalgebras
As running example, we will use Petri nets
16Symbolic Transition System
C- is a context
l is a label
intuitively C- is the smallest context that
allows such transition
17Symbolic Transition System
a
b
b
c
d
a
b
a
18Symbolic Semantics
- a symbolic LTS a set of deduction rules
In our running example
19Inference relation
- Given a symbolic transition system and a set of
deduction rules, we can infer other transitions
20Inference relation
a
b
21Bisimilarity over the Symbolic TS is too strict
?
?
l
m
n
o
b
b
a
?
a
b
q
p
22Plan of the Talk
- Compositionality
- Saturated Semantics
- Symbolic Semantics
- Saturated Coalgebras
- Normalized Coalgebras
As running example, we will use Petri nets
23Category of interfaces and contexts
- Objects are interfaces
- Arrows are contexts
- Functors from C to Set are algebras for ?(C)
- SetC ? Alg?(C)
for our nets
24Saturated Transition System as a coalgebra
- Ordinary LTS having as labels C and ?
- FSet?Set F(X)?(C???X)
- We lift F to F Alg?(C)? Alg?(C)
- (saturated transition system as a bialgebra)
25Adding the Inference Relation
- An F-Coalgebra is a pair (X, ?X?F(X))
- The set of deduction rules induces an ordering
- onC???X
26Saturated Coalgebras
- A set in?(C???X) is saturated in X if it is
closed wrt - S Alg?(C)? Alg?(C)
- the carrier set of S(X)
- is the set of all saturated sets of transitions
- E.g the saturated transition system is always an
S-coalgebra
27Saturated Coalgebras
CoalgF
CoalgS
28Redundant Transitions
Saturated Set
partial order C???X,
Given a set A in?(C???X), a transition is
redundant if it is not minimal
29Normalized Set
Saturated Set
Normalization
Saturation
Normalized Set
partial order C???X,
A set in?(C???X) is normalized if it contains
only NOT redundant transitions
30Normalized Coalgebras
- N Alg?(C)? Alg?(C)
- the carrier set of N(X)
- is the set of all normalized sets of transitions
- For hX?Y, the definition of N(h) is peculiar
This is redundant
C???X,
C???Y,
31Running Example
32Isomorphism Theorem
CoalgF
- Proof Saturation and Normalization are two
natural isomorphisms between - S and N
CoalgS
Saturation
Normalization
CoalgN
33Conclusions
- Bisimilarity of Normalized Colagebras coincides
with Saturated Bisimilarity - Minimal Symbolic Automata
- Symbolic Minimization Algorithm
- Bonchi, Montanari - ESOP 09
- Coalgebraic Semantics for several formalisms
(asynchronous PC, Ambients, Open nets ) - Normalized Coalgebras are not Bialgebras
34Questions ?