Structural Operational Semantics for continuous state probabilistic - - PowerPoint PPT Presentation

structural operational semantics for continuous state
SMART_READER_LITE
LIVE PREVIEW

Structural Operational Semantics for continuous state probabilistic - - PowerPoint PPT Presentation

Structural Operational Semantics for continuous state probabilistic processes* Giorgio Bacci (joint with Marino Miculan) Dept. of Mathematics and Computer Science University of Udine, Italy Breakfast Talk 24 May, Aalborg 1 / 1 Structural


slide-1
SLIDE 1

Structural Operational Semantics for continuous state probabilistic processes*

Giorgio Bacci

(joint with Marino Miculan)

  • Dept. of Mathematics and Computer Science

University of Udine, Italy

Breakfast Talk

24 May, Aalborg

1 / 1

slide-2
SLIDE 2

Structural Operational Semantics for CCS

Syntax: P ::= nil | a.P | a.P | τ.P | P + P | P P (a ∈ A) ΣX =

nil

  • 1

+

a.x

A × X +

a.x

A × X +

τ.x

  • X

+

x+x

X × X +

xx

X × X

α.x

α

− − → x x

α

− − → x′ x + y

α

− − → x′ y

α

− − → y ′ x + y

α

− − → y ′ x

α

− − → x′ x y

α

− − → x′ y y

α

− − → y ′ x y

α

− − → x y ′ x

a

− → x′ y

a

− → y ′ x y

τ

− → x′ y ′ x

a

− → x′ y

a

− → y ′ x y

τ

− → x′ y ′

This corresponds to: λ: Σ(Id × (Pfin)L) ⇒ (PfinTΣ)L

2 / 1

slide-3
SLIDE 3

Abstract Structural Operational Semantics

(distributing syntax over behaviours: λ: ΣB ⇒ BΣ)

ΣX X BX ΣBX BΣX

α β Σβ Bα λX

λ-bialgebra

denotations

  • perations

3 / 1

slide-4
SLIDE 4

ΣBA BΣA ΣA A BA ΣZ Z BZ ΣBZ BΣZ

a βλ Σβλ Ba λA αλ z Σz Bαλ λZ u Σu Bu

initial Σ-algebra final B-coalgebra

initial λ-bialgebra final λ-bialgebra

4 / 1

slide-5
SLIDE 5

Benefits of the bialgebraic framework

[Turi-Plotkin’97]

+ denotational model on the final B-coalgebra (by co-induction) + operational model on the initial Σ-algebra (by induction) + universal semantics (full-abstaction) initial algebra semantics = final coalgebra semantics + B-behavioural equivalence is a Σ-congruence + B-bisimilarity is a Σ-congruence (if B pres. weak pullbacks)

5 / 1

slide-6
SLIDE 6

Congruential Rule Formats

[Turi-Plotkin’97] Distributive laws can be specified as sets of derivation rules

  • xi

a

− → ya

ij

1≤j≤ma

i

1≤i≤n, a∈Ai

  • xi

b − → b∈Bi

1≤i≤n

f (x1, . . . , xn)

c

− → t

  • image finite

(GSOS)

corresponds to. . .

λ: Σ(Id × (Pfin)L) ⇒ (PfinTΣ)L

6 / 1

slide-7
SLIDE 7

Discrete state sub-Probabilistic Systems

. . . hence labelled sub-probabilistic Markov chains

  • a[ 1

3]

a[ 2

3]

X → (DfinX)L in Set

where Dfin : Set → Set (sub-probability distribution functor) DfinX = {ϕ: X → [0, 1] |

  • x∈X

ϕ(x) ≤ 1, |supp(ϕ)| < ∞}

7 / 1

slide-8
SLIDE 8

Rule Formats for Probabilistic Systems

[Bartels’04]

           xi

a

− → a ∈ Ai, 1 ≤ i ≤ n xi

  • b

− → b ∈ Bi, 1 ≤ i ≤ n xaj

lj[pj]

− − − → yj 1 ≤ i ≤ J f (x1, . . . , xn)

c[w·p1·...·pJ]

− − − − − − − − → t           

image finite

corresponds to. . .

λ: Σ(Id × (Dfin)L) ⇒ (DfinTΣ)L

where Dfin : Set → Set (sub-probability distribution functor) DfinX = {ϕ: X → [0, 1] |

  • x∈X

ϕ(x) ≤ 1, |supp(ϕ)| < ∞}

8 / 1

slide-9
SLIDE 9

What if the state space is continuous?

(example)

Let us extend CCS with a quantitative operator P ::= nil | (c of α).P | P + P | P P (c ∈ R≥0) α ::= a | a | τ (a ∈ A) (c of a).P (0 of a).P . . . (c of a).P

a[?] a[?]

ideally we want that the outcomes are uniformly distributed. . . U

  • (c of a).P
  • {(i of a).P | i ∈ [a, b]}
  • =

b

a

1 c dx (0 ≤ a ≤ b ≤ c)

9 / 1

slide-10
SLIDE 10

Discrete state

(labelled Markov chains)

  • a[ 1

3]

a[ 2

3]

Continuous state

(labelled Markov processes)

  • {• · · · •}

{• · · · •}

a[ 1

3]

a[ 2

3] 10 / 1

slide-11
SLIDE 11

Discrete state

(labelled Markov chains)

  • a[ 1

3]

a[ 2

3]

X → (DfinX)L in Set

Continuous state

(labelled Markov processes)

  • {• · · · •}

{• · · · •}

a[ 1

3]

a[ 2

3]

Dfin : Set → Set (sub-probability distribution functor) DfinX = {ϕ: X → [0, 1] |

  • x∈X

ϕ(x) ≤ 1, |supp(ϕ)| < ∞}

10 / 1

slide-12
SLIDE 12

Discrete state

(labelled Markov chains)

  • a[ 1

3]

a[ 2

3]

X → (DfinX)L in Set

Continuous state

(labelled Markov processes)

  • {• · · · •}

{• · · · •}

a[ 1

3]

a[ 2

3]

X → (∆X)L in Meas

Dfin : Set → Set (sub-probability distribution functor) DfinX = {ϕ: X → [0, 1] |

  • x∈X

ϕ(x) ≤ 1, |supp(ϕ)| < ∞} ∆: Meas → Meas (Giry functor) ∆X = {µ: ΣX → [0, 1] | µ sub-probability measure}

10 / 1

slide-13
SLIDE 13

Aim:

Congruential Rule Formats for Probabilistic Processes with Continuous State Spaces

. . . hence, inducing distributive laws of type

λ: Σ(Id × ∆L) ⇒ (∆TΣ)L

11 / 1

slide-14
SLIDE 14

The shape of transitions

The behaviour functor suggests the shape of transitions. . .

Discrete state

t t′

a[p] Σ-term

Continuous state

t µ

a measure

  • n Σ-terms

12 / 1

slide-15
SLIDE 15

Earlier attempts. . .

[Cardelli-Mardare’10]

13 / 1

slide-16
SLIDE 16

Earlier attempts. . .

[Cardelli-Mardare’10]

13 / 1

slide-17
SLIDE 17

Earlier attempts. . .

[Cardelli-Mardare’10]

rather ad (no general

13 / 1

slide-18
SLIDE 18

Measure terms

We adopt a new syntax to handle measures syntactically

Σ: Meas → Meas (process syntax) M : Meas → Meas (measure syntax)

t µ

a it’s a M-term!

14 / 1

slide-19
SLIDE 19

Measure GSOS rule format

  • xi

aij

− − → µij 1≤j≤mi

1≤i≤n, aij∈Ai

  • xi
  • b

− → b∈Bi

1≤i≤n

f (x1, . . . , xn)

c

− → µ (MGSOS)

where + f ∈ Σ with ar(f ) = n; + {x1, . . . , xn} and {µij | 1 ≤ i ≤ n, 1 ≤ j ≤ mi} are pairwise distinct process and measure variables; + Ai ∩ Bi = ∅ are disjoint subsets of labels in L, and c ∈ L; + µ is a M-term with variables in {x1, . . . , xn} and {µij | 1 ≤ i ≤ n, 1 ≤ j ≤ mi}.

15 / 1

slide-20
SLIDE 20

Measure GSOS specification systems

An MGSOS specification system consists of

Set of MGSOS rules:

R =   

  • xi

aij

− − → µij 1≤j≤mi

1≤i≤n, aij∈Ai

  • xi

b − → b∈Bi

1≤i≤n

f (x1, . . . , xn)

c

− → µ   

image finte

Measure terms interpretation:

  • | · |

: TM∆ ⇒ ∆TΣ

16 / 1

slide-21
SLIDE 21

From MGSOS to labelled Markov processes

We can obtain a ∆L-coalgebra on the set of closed Σ-terms

γ : TΣ0 → ∆LTΣ0

as

γ(t)(α) = ⊕TΣ0

  • {

|µ| TΣ0 | t

α

− → µ}

  • where, for a finite set of U = {µ1, . . . , µn} of sub-probability

measures over X, ⊕X({µ1, . . . , µn})(E) = µ1(E) + · · · + µn(E) µ1(X) + · · · + µn(X) (weighted sum of sub-probability measures)

17 / 1

slide-22
SLIDE 22

Example: Quantitative CCS

Measure terms syntax:

µ ::= Uα

c [P] | D[P] | µ|µ | µ c,c′ µ

(c, c′ ∈ R≥0)

Measure GSOS Rules*: (c of α).x

α,c

− − − → Uα

c [x]

(0 of α).x

τ

− → D[x] x

α,c

− − − → µ x + x′

α,c

− − − → µ x

α,c

− − − → µ x x′

α,c

− − − → µ|D[x′] x

α,c

− − − → µ x′

α,c′

− − − → µ′ x x′

α,c+c′

− − − − − → µ|µ′ x

a,c

− − → µ x′

a,c′

− − − → µ′ x x′

τ

− → µ c,c′ µ′ (*) dual rules for + and are omitted

18 / 1

slide-23
SLIDE 23

Example: Quantitative CCS

Measure term interpretation:

  • | · |

X : TM∆X ⇒ ∆TΣX

  • |Uα

c [x]|

X(E) =

  • E ′

1 c dy where E ′ = [0, c] ∩ (λǫ. (ǫ of α).x)−1(E)

  • |D[x]|

X(E) =

  • 1

if x ∈ E

  • therwise
  • |µ|µ′|

X(E) = ( |µ| X ⊗ |µ′| X) ◦ (λ(x, x′). x x′)−1(E)

  • |µ c,c′ µ′|

X(E) =      1 if c · |µ| X(A1) = c′ · |µ′| X(A2), for Ai = πi((λ(x, x′). x x′)−1(E))

  • therwise

19 / 1

slide-24
SLIDE 24

From MGSOS to distributive laws

Σ(Id × ∆L) (∆TΣ)L

λ how do we get the distributive law λ

  • ut of an MGSOS specification systems?

20 / 1

slide-25
SLIDE 25

From MGSOS to distributive laws

Σ(Id × ∆L) (PfinTM∆)L (∆TΣ)L

R

  • 1. define the natural transformation R

from the image finite set MGSOS rules

20 / 1

slide-26
SLIDE 26

From MGSOS to distributive laws

Σ(Id × ∆L) (PfinTM∆)L (Pfin∆TΣ)L (∆TΣ)L

R

  • 1. define the natural transformation R

from the image finite set MGSOS rules (Pfin | · | )L 2. apply the measure terms interpretation

  • | · |

: TM∆ ⇒ ∆TΣ

20 / 1

slide-27
SLIDE 27

From MGSOS to distributive laws

Σ(Id × ∆L) (PfinTM∆)L (Pfin∆TΣ)L (∆TΣ)L

R

  • 1. define the natural transformation R

from the image finite set MGSOS rules (Pfin | · | )L 2. apply the measure terms interpretation

  • | · |

: TM∆ ⇒ ∆TΣ (⊕TΣ)L

  • 3. obtain the actual measure by averaging

⊕X({µ1, . . . , µn})(E) = µ1(E)+···+µn(E)

µ1(X)+···+µn(X)

20 / 1

slide-28
SLIDE 28

Benefits from the bialgebraic framework

For continuous state probabilistic processes described by means of MGSOS specification systems we have: + denotational model on the final ∆L-coalgebra + operational model on the initial Σ-algebra + universal semantics (full-abstaction) initial algebra semantics = final coalgebra semantics + ∆L-behavioural equivalence is a Σ-congruence + is ∆L-bisimilarity a Σ-congruence? (∆L does not preserves weak pullbacks! [Viglizzo’05])

21 / 1

slide-29
SLIDE 29

From MGSOS to distributive laws

Σ(Id × ∆L) (PfinTM∆)L (Pfin∆TΣ)L (∆TΣ)L

R (Pfin | · | )L (⊕TΣ)L Naturality of the distributive laws depends on naturality of | · | : TM∆ ⇒ ∆TΣ

we need (general) techniques in order to derive natural transformations of type

TM∆ ⇒ ∆TΣ

22 / 1

slide-30
SLIDE 30

λ-iterative recursion

[Bartels’03]

We adopt a generalized induction proof principle. . . For any distributive law λ: SB ⇒ BS and SB-algebra (X, ϕ) there exists a unique f : A → X making the following commute

SBX SBA SA X A

SBf Sβλ ϕ α f

SA A BA SBA BSA

α βλ Sβλ Bα λA

23 / 1

slide-31
SLIDE 31

Structural λ-iterative recursion

. . . can be extended on the free monad (TS, ηs, µs)

SBY SBTSX STSX Y TSX X

SBf Sβλ ϕ ψX f ηs

X

φ

X TSX STSX BX BTSX SBTSX

k Bηs

X

ηs

X

ψX Sβλ BψX ◦ λTS X βλ

24 / 1

slide-32
SLIDE 32

. . . and can be turned to a proof principle on natural transformations

SBF SBTS STS F TS Id

SBf Sβλ ϕ ψ f ηs φ

Id TS STS B BTS SBTS

k Bηs ηs ψ Sβλ Bψ ◦ λTS βλ

25 / 1

slide-33
SLIDE 33

. . . to be used to derive measure terms interpretations

MB∆TΣ MBTM∆ MTM∆ ∆TΣ TM∆ ∆

MB | · |

  • Mβλ∆

ϕ ψm∆

  • | · |
  • ηm∆

φ

Id TM MTM B BTM MBTM

k Bηm ηm ψm Mβλ Bψm ◦ λTM βλ

26 / 1

slide-34
SLIDE 34

Conclusions and future work

Done:

+ rule format for continuous state probabilistic processes + syntactical treatment of measures via M-terms + general techniques for defining interpretations + initial algebra for polynomial functors in Meas (not in this talk)

To do:

+ move from probabilistic to general measures (bounded?) + find a rule format that coincides with the distributive law + formal expressivity analysis of the intermediate syntax + interpretation method

27 / 1

slide-35
SLIDE 35

Thanks

28 / 1

slide-36
SLIDE 36

Appendix

29 / 1

slide-37
SLIDE 37

Bisimulation vs Kernel-bisimulation

Bisimulation

(a span) X R Y BX BR BY

f g Bf Bg α γ β

Kernel-bisimulation

(pullback of a cospan) R X C Y BX BC BY

f g Bf Bg α γ β π1 π2

if B preserves weak-pullbacks, bisimulation and kernel-bisimulation coincide (provided that C has pullbacks and pushouts)

[Staton’11]

30 / 1