Top Banner
Coalgebraic Symbolic Semantics Filippo Bonchi Ugo Montanari
34

Coalgebraic Symbolic Semantics

Feb 02, 2016

Download

Documents

gordy

Coalgebraic Symbolic Semantics. Filippo Bonchi Ugo Montanari. Many formalisms modelling Interactive Systems. Algebras - Syntax Coalgebras - Semantics Bialgebras – Semantics of the composite system in terms of the semantics of the components - PowerPoint PPT Presentation
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Coalgebraic Symbolic Semantics

Coalgebraic Symbolic Semantics

Filippo Bonchi Ugo Montanari

Page 2: Coalgebraic Symbolic Semantics

Many formalisms modelling Interactive Systems

Algebras - SyntaxCoalgebras - 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 05][Miculan – MFPS 08]

Page 3: Coalgebraic Symbolic Semantics

… in many interesting cases, this does not work…

Mobile Ambient [Hausmann, Mossakowski, Schröder – TCS 2006]

Formalisms with asynchronous message passingPetri Nets…

Page 4: Coalgebraic Symbolic Semantics

Plan of the Talk

• Compositionality• Saturated Semantics• Symbolic Semantics• Saturated Coalgebras• Normalized Coalgebras

As running example, we will use Petri nets

Bonchi, Montanari – FOSSACS 08

Page 5: Coalgebraic Symbolic Semantics

Petri Nets

p

q

B

c

d

P is a set of placesT is a set of transitionsPre:TP

Post:TP

l:T is a labelling

Given a set A, A is the set of all multisets over A,e.g., for A={a,b} ,then A={,{a},{b},{aa},{bb},{ab} ,{aab}…}

2

a marking is a multiset over P

The semantics is quite intuitive pc qcB

Page 6: Coalgebraic Symbolic Semantics

Open Petri NetsPetri net + interface

a b

$

interface

Input PlacesInput Places

Output Place

ClosedPlace

Interface=(Input Places, Output Places)

Page 7: Coalgebraic Symbolic Semantics

Petri Nets Contexts

Petri nets + Inner interfaces + Outer Interface

a

$

c

c

c c

c c

InnerInterface

OuterInterface

a b

$

a b

$

a b

$

Page 8: Coalgebraic Symbolic Semantics

x3

$

Bisimilarity is not a congruence

c d

$

5

c e

x3

$

cx exC$$$

e$$$

f

They are bisimilar

They are not

x3

$

e f

$

3

Page 9: Coalgebraic Symbolic Semantics

Plan of the Talk

• Compositionality• Saturated Semantics• Symbolic Semantics• Saturated Coalgebras• Normalized Coalgebras

As running example, we will use Petri nets

Page 10: Coalgebraic Symbolic Semantics

Saturated Bisimilarity

A relation R is a saturated bisimulationiff whenever pRq, then C[-]

• If C[p]→p’ then q’ s.t. C[q]→q’ and p’Rq’• If C[q]→q’ then p’ s.t. C[p]→p’ and p’Rq’

THM: it is always the largest bisimulation congruence

Page 11: Coalgebraic Symbolic Semantics

Saturated Transition System

p qC[-]

C[p] q

C[-] is a context is a label

Page 12: Coalgebraic Symbolic Semantics

Saturated Semantics for Open NetsAt any moment of their execution a token

can be inserted into an input place and one can be removed from an output place

b

$

a

$ $$ $$$

+$ +$ +$ +$

a

aa

+a

+a

-$ -$ -$

b

b$ +$ b$$

+$

a$ a$$

a$$$

+$ +$ +$ +$

+a +a +a$

a

Page 13: Coalgebraic Symbolic Semantics

Running Examples

a b

$

e f

$

3

g

i

h

c d

$

5

The activation is free.The service costs 1$.

The activation costs 5$.

The service is free.

The activation costs 3$. The service is free for 3

times and then it costs 1$.

THEY ARE ALL DIFFERENT

I have 1$ and

I need 1

I have 5$ and

I need 6

Page 14: Coalgebraic Symbolic Semantics

Running Examples

l

q

m

$

3

n

p

o

This behaves as a or e: either the activation is free and

the service costs 1$.Or the activation costs 3$ and then for 3 times the service is

free and then it costs 1$.

IS IT DIFFERENT

FROM ALL THE PREVIOUS???

a b

$

The activation is free.The service costs 1$.

$

$

a b

$

e f

$

3

g

i

h

Page 15: Coalgebraic Symbolic Semantics

Plan of the Talk

• Compositionality• Saturated Semantics• Symbolic Semantics• Saturated Coalgebras• Normalized Coalgebras

As running example, we will use Petri nets

Page 16: Coalgebraic Symbolic Semantics

Symbolic Transition System

p qC[-]

C[p] q

C[-] is a context is a label

intuitively C[-] is “the smallest context” that allows such transition

Page 17: Coalgebraic Symbolic Semantics

Symbolic Transition System

a b

$

c d

$

5

e f

$

3

g

i

h

a b $

c d5$

e

f

g

h

i

3$

$

Page 18: Coalgebraic Symbolic Semantics

Symbolic Semanticsa symbolic LTS + a set of deduction rules

In our running example

m nm$ n$

p qD[p] ’ E[q]

p,q

Page 19: Coalgebraic Symbolic Semantics

Inference relation

Given a symbolic transition system and a set of deduction rules, we can infer other transitions

p qC[-] p ’ q’C’[-]

Page 20: Coalgebraic Symbolic Semantics

Inference relation

a b

b$$$

$$$

b$n

$n

m n

m$ n$

a b

$

Page 21: Coalgebraic Symbolic Semantics

Bisimilarity over the Symbolic TS is too strict

l

q

m

$

3

n

p

o

l m n o

p

3$

$

q $

a b

$

a b $

Page 22: Coalgebraic Symbolic Semantics

Plan of the Talk

• Compositionality• Saturated Semantics• Symbolic Semantics• Saturated Coalgebras• Normalized Coalgebras

As running example, we will use Petri nets

Page 23: Coalgebraic Symbolic Semantics

Category of interfaces and contexts

• Objects are interfaces• Arrows are contexts

Functors from C to Set are algebras for Г(C)SetC AlgГ(C)

One object: {$}

Arrows: -$n: {$}{$}

for our nets

Page 24: Coalgebraic Symbolic Semantics

Saturated Transition System as a coalgebra

Ordinary LTS having as labels ||C|| and ΛF:SetSet F(X)=(||C||ΛX)

We lift F to F: AlgГ(C) AlgГ(C)

(saturated transition system as a bialgebra)

p qC[-]

Page 25: Coalgebraic Symbolic Semantics

Adding the Inference Relation

An F-Coalgebra is a pair (X, :XF(X))

The set of deduction rules induces an ordering on||C||ΛX

X

a b

b$$$

$$$

b$n

$n

Page 26: Coalgebraic Symbolic Semantics

Saturated 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

X

Page 27: Coalgebraic Symbolic Semantics

Saturated CoalgebrasCoalgF

CoalgS

THM: CoalgS

is a covariety of CoalgF

THM: Saturated Coalgebras are not bialgebras

1F

1S

Page 28: Coalgebraic Symbolic Semantics

Redundant Transitions

… … … … … …

partial order ||C||ΛX,

X

Saturated Set

Given a set A in(||C||ΛX), a transition is redundant

if it is not minimal

Page 29: Coalgebraic Symbolic Semantics

Normalized Set

… … … … … …

partial order ||C||ΛX,

X

Saturated Set

A set in(||C||ΛX) is normalizedif it contains only NOT redundant

transitions

Normalized Set

SaturationNormalization

Page 30: Coalgebraic Symbolic Semantics

Normalized Coalgebras

N: AlgГ(C) AlgГ(C)

the carrier set of N(X) is the set of all normalized sets of transitions For h:XY, the definition of N(h) is peculiar

… … … … … … … …… …

||C||ΛX, X

||C||ΛY, y

This is redundant

Page 31: Coalgebraic Symbolic Semantics

Running Example

l m n o

p

3$

$

q $

a b $ b$

$$b$$b$

3$

lq m

$

3

n

p

o

a b

$

Page 32: Coalgebraic Symbolic Semantics

Isomorphism Theorem

Proof: Saturation

and Normalization

are two natural isomorphisms

between S and N

CoalgF

CoalgS

CoalgN

Saturation Normalization

Page 33: Coalgebraic Symbolic Semantics

Conclusions

• 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

Page 34: Coalgebraic Symbolic Semantics

Questions?