Deciding Branching Bisimilarity between BPA and Finite-State Systems - - PowerPoint PPT Presentation

deciding branching bisimilarity between bpa and finite
SMART_READER_LITE
LIVE PREVIEW

Deciding Branching Bisimilarity between BPA and Finite-State Systems - - PowerPoint PPT Presentation

Deciding Branching Bisimilarity between BPA and Finite-State Systems Hongfei Fu BASICS Laboratory Department of Computer Science Shanghai Jiao Tong University APLAS 2009 Paper Hongfei Fu (Shanghai Jiao Tong University) Deciding br between


slide-1
SLIDE 1

Deciding Branching Bisimilarity between BPA and Finite-State Systems

Hongfei Fu

BASICS Laboratory Department of Computer Science Shanghai Jiao Tong University

APLAS 2009 Paper

Hongfei Fu (Shanghai Jiao Tong University) Deciding ≈br between BPA and FS APLAS 2009 Paper 1 / 40

slide-2
SLIDE 2

Outline

1

Background

2

Definitions

3

The Bisimulation Base Technique

4

Computing The Bisimulation Base

Hongfei Fu (Shanghai Jiao Tong University) Deciding ≈br between BPA and FS APLAS 2009 Paper 2 / 40

slide-3
SLIDE 3

Background

Hongfei Fu (Shanghai Jiao Tong University) Deciding ≈br between BPA and FS APLAS 2009 Paper 3 / 40

slide-4
SLIDE 4

Formal Verification

formal specification: finite-state system real implementation: infinite-state system

Hongfei Fu (Shanghai Jiao Tong University) Deciding ≈br between BPA and FS APLAS 2009 Paper 4 / 40

slide-5
SLIDE 5

Comparative semantics

Bisimulation Semantics: strong bisimulation (Park) weak bisimulation (Milner) branching bisimulation (van Glabbeek and Weijland)

Hongfei Fu (Shanghai Jiao Tong University) Deciding ≈br between BPA and FS APLAS 2009 Paper 5 / 40

slide-6
SLIDE 6

The Problem We Study

Polynomial time algorithms deciding branching bisimilarity between: BPA (Basic Process Algebra) and finite-state systems (FS) Normed BPP (Basic Parallel Processes) and finite-state systems

Hongfei Fu (Shanghai Jiao Tong University) Deciding ≈br between BPA and FS APLAS 2009 Paper 6 / 40

slide-7
SLIDE 7

Definitions

Hongfei Fu (Shanghai Jiao Tong University) Deciding ≈br between BPA and FS APLAS 2009 Paper 7 / 40

slide-8
SLIDE 8

Notations

Let V be a finite alphabet of symbols. Symbols of V are ranged over by X, Y, Z . . . . The set of words over V is denoted V ∗.

Hongfei Fu (Shanghai Jiao Tong University) Deciding ≈br between BPA and FS APLAS 2009 Paper 8 / 40

slide-9
SLIDE 9

Notations

We presume a set of actions Actτ. We always use Γ to refer to a FS State(Γ) to refer to the state set of Γ f, g, h . . . to range over State(Γ)

Hongfei Fu (Shanghai Jiao Tong University) Deciding ≈br between BPA and FS APLAS 2009 Paper 9 / 40

slide-10
SLIDE 10

BPA Processes

A BPA system is a tuple (V, ∆) where V is a finite alphabet of symbols. ∆ is a finite set of rules for which each rule has the form X

a

− → α where X ∈ V, α ∈ V ∗ and a ∈ Act.

Hongfei Fu (Shanghai Jiao Tong University) Deciding ≈br between BPA and FS APLAS 2009 Paper 10 / 40

slide-11
SLIDE 11

BPA Processes

A BPA system (V, ∆) defines an LTS where states are elements of V ∗. for α, β ∈ V ∗, α a − → β if α = Yγ, Y

a

− → γ′ ∈ ∆ and β = γ′γ. A state (word) α ∈ V ∗ is normed if α →∗ ε. α ∈ V ∗ is unnormed if α is not normed.

Hongfei Fu (Shanghai Jiao Tong University) Deciding ≈br between BPA and FS APLAS 2009 Paper 11 / 40

slide-12
SLIDE 12

BPA: An Example

V = {I, Z} ∆ = {Z

z

− → Z, Z

i

− → IZ, I

i

− → II, I d − → ε} Z IZ IIZ IIIZ . . .

i z i d i d d

Hongfei Fu (Shanghai Jiao Tong University) Deciding ≈br between BPA and FS APLAS 2009 Paper 12 / 40

slide-13
SLIDE 13

Branching Bisimulation Under "Contraction"

Let (V, ∆) be a BPA system and Γ be a FS system. A binary relation R ⊆ V ∗ × State(Γ) is a branching bisimulation if whenever (α, f) ∈ R then for each a ∈ Act: α α′ f f ′ α α′ f α α′ α′′ f f ′

R ↓a ↓a R

  • r

R ↓τ R R ⇓ ↓a ↓a R R

The branching bisimilarity ≈br is the largest branching bisimulation.

Hongfei Fu (Shanghai Jiao Tong University) Deciding ≈br between BPA and FS APLAS 2009 Paper 13 / 40

slide-14
SLIDE 14

Bisimulation Base Technique

Hongfei Fu (Shanghai Jiao Tong University) Deciding ≈br between BPA and FS APLAS 2009 Paper 14 / 40

slide-15
SLIDE 15

Description

an effective technique developed by D. Caucal to decide bisimilarity concerning infinite-state systems a finite relation "bisimulation base" from which the whole bisimilarity relation can be effectively generated. We can decide the bisimulation problem if we can compute the corresponding bisimulation base.

Hongfei Fu (Shanghai Jiao Tong University) Deciding ≈br between BPA and FS APLAS 2009 Paper 15 / 40

slide-16
SLIDE 16

Previous Application

strong bisimulation over BPA/BPP

  • S. Christensen, H. Hüttel, and C. Stirling 1992/
  • S. Christensen, Y. Hirshfeld, and F

. Moller 1993 strong bisimulation over normed BPA/normed BPP

  • Y. Hirshfeld, M. Jerrum and F

. Moller, 1994/1996

Hongfei Fu (Shanghai Jiao Tong University) Deciding ≈br between BPA and FS APLAS 2009 Paper 16 / 40

slide-17
SLIDE 17

Previous Application

weak bisimulation between FS and BPA/normed BPP (†) Antonín Kuˇ cera and Richard Mayr (2002) various bisimulations between FS and pushdown processes. Antonín Kuˇ cera and Richard Mayr (2004)

Hongfei Fu (Shanghai Jiao Tong University) Deciding ≈br between BPA and FS APLAS 2009 Paper 17 / 40

slide-18
SLIDE 18

Our Application

the application on the branching bisimilarity between a BPA system and a FS system. We follow and rely on the scheme of the previous work on weak bisimulation (†).

Hongfei Fu (Shanghai Jiao Tong University) Deciding ≈br between BPA and FS APLAS 2009 Paper 18 / 40

slide-19
SLIDE 19

The Bisimulation Base between BPA and FS

We fix a BPA system (V, ∆) and a FS Γ. We construct the BPA system (V ′, ∆′) = (V ∪ State(Γ), ∆ ∪ Γ) Special attention on words of the form αf with α ∈ V ∗, f ∈ State(Γ).

Hongfei Fu (Shanghai Jiao Tong University) Deciding ≈br between BPA and FS APLAS 2009 Paper 19 / 40

slide-20
SLIDE 20

The Bisimulation Base between BPA and FS

We also define: GΓ to be the ≈br over Γ ∪ {ε}. Normed(V) = {X ∈ V|X is normed}.

Hongfei Fu (Shanghai Jiao Tong University) Deciding ≈br between BPA and FS APLAS 2009 Paper 20 / 40

slide-21
SLIDE 21

Well-formed Relations

A relation K is well-formed if GΓ ⊆ K and K is a subset of the relation G defined by: G = ((Normed(V) · State(Γ)) × State(Γ)) ∪ (V × State(Γ)) ∪ GΓ G is the largest well-formed relation.

Hongfei Fu (Shanghai Jiao Tong University) Deciding ≈br between BPA and FS APLAS 2009 Paper 21 / 40

slide-22
SLIDE 22

The Bisimulation Base

The bisimulation base B, is a well-formed relation as follows: B = {(Yf, g) ∈ Normed(V) · State(Γ)|Yf ≈br g, Y ∈ Normed(V)} ∪{(Y, g) ∈ V × State(Γ)|Y ≈br g} ∪ GΓ

Hongfei Fu (Shanghai Jiao Tong University) Deciding ≈br between BPA and FS APLAS 2009 Paper 22 / 40

slide-23
SLIDE 23

Closure

Let K be a well-formed relation. The closure of K, denoted Cl(K), is the least relation M such that: K ⊆ M (Yf, g) ∈ K, (α, f) ∈ M (Yα, g) ∈ M (Yf, g) ∈ K, (αh, f) ∈ M (Yαh, g) ∈ M (α, g) ∈ M, α is unnormed (αβ, g), (αβh, g) ∈ M for every β ∈ V ∗ and h ∈ State(Γ) Cl(K) will only contain pairs of two form: (α, g) and (αf, g).

Hongfei Fu (Shanghai Jiao Tong University) Deciding ≈br between BPA and FS APLAS 2009 Paper 23 / 40

slide-24
SLIDE 24

The Idea Behind Closure

The basic properties w.r.t sequential computation: Yf ≈br g, α ≈br f implies Yα ≈br g. α ≈br g, α is unnormed implies αβ ≈br g, αβh ≈br g

Hongfei Fu (Shanghai Jiao Tong University) Deciding ≈br between BPA and FS APLAS 2009 Paper 24 / 40

slide-25
SLIDE 25

Regular Property of the Closure

Theorem

Let K be a well-formed relation. For each g ∈ State(Γ) there is a finite automaton AK

g constructible in polynomial time such that

L(AK

g ) = {α|(α, g) ∈ Cl(K)} ∪ {αf|(αf, g) ∈ Cl(K)}

(α, g) ∈ Cl(K) iff α ∈ L(AK

g ).

Hongfei Fu (Shanghai Jiao Tong University) Deciding ≈br between BPA and FS APLAS 2009 Paper 25 / 40

slide-26
SLIDE 26

The Bisimulation Base: The Key Property

Theorem

Cl(B) = {(α, g)|α ≈br g} ∪ {(αf, g)|αf ≈br g}. α ≈br g iff α ∈ AB

g

Hongfei Fu (Shanghai Jiao Tong University) Deciding ≈br between BPA and FS APLAS 2009 Paper 26 / 40

slide-27
SLIDE 27

Computing The Bisimulation Base

Hongfei Fu (Shanghai Jiao Tong University) Deciding ≈br between BPA and FS APLAS 2009 Paper 27 / 40

slide-28
SLIDE 28

The Work Flow

First we develop an expansion function Exp over well-formed relations such that Exp(K) ⊆ K for every K. Then we iteratively apply Exp to G: B0 = G, B1 = Exp(B0),. . . , Bk+1 = Exp(Bk), . . . Finally we obtain a fixed point of Exp which is exactly the bisimulation base

Hongfei Fu (Shanghai Jiao Tong University) Deciding ≈br between BPA and FS APLAS 2009 Paper 28 / 40

slide-29
SLIDE 29

The Expansion Function: The Idea

The idea naturally follows the definition of branching bisimulation. Let K be a well-formed relation. Roughly a pair, say, (X, g) expands in K by the following conditions: X α′ g g′ X α′ g X α′ α′′ g g′

K ↓a ↓a Cl(K)

  • r

K ↓τ C l ( K ) K ⇓ ↓a ↓a C l ( K ) C l ( K )

Exp(K) is the set of pairs of K that expands in K.

Hongfei Fu (Shanghai Jiao Tong University) Deciding ≈br between BPA and FS APLAS 2009 Paper 29 / 40

slide-30
SLIDE 30

Branching Bisimulation Under "Contraction" (van Glabbeek and P . Weijland)

A binary relation R ⊆ V ∗ × State(Γ) is a branching bisimulation if whenever (α, f) ∈ R then for each a ∈ Act: α α′ f f ′ α α′ f α α′ α′′ f f ′

R ↓a ↓a R

  • r

R ↓τ R R ⇓ ↓a ↓a R R

The branching bisimilarity ≈br is the largest branching bisimulation.

Hongfei Fu (Shanghai Jiao Tong University) Deciding ≈br between BPA and FS APLAS 2009 Paper 30 / 40

slide-31
SLIDE 31

The Real Situation

Let K be a well-formed relation. For each g a − → h ∈ Γ, we define an auxiliary language LK

[g,a,h] which approximates the language:

L

K [g,a,h] {E|(E, g) ∈ Cl(K) ∧ ∃E′(E a

− → E′ ∧ (E′, h) ∈ Cl(K))}

Hongfei Fu (Shanghai Jiao Tong University) Deciding ≈br between BPA and FS APLAS 2009 Paper 31 / 40

slide-32
SLIDE 32

The Real Situation

Let K be a well-formed relation. A pair (X, g) expands in K by the following conditions: X α′ g g′ X α′ g X α′ LK

[g,a,g′]

g g′

K ↓a ↓a Cl(K)

  • r

K ↓τ C l ( K ) K ⇓ ↓a ∈

Hongfei Fu (Shanghai Jiao Tong University) Deciding ≈br between BPA and FS APLAS 2009 Paper 32 / 40

slide-33
SLIDE 33

The Auxiliary Language: Formal Definition

Let K be a well-formed relation. For each g a − → h ∈ Γ, a pair (X, g), (Xf, g) ∈ K satisfies the condition φK

[g,a,h], if:

For (X, g): X is unnormed and there is some X

a

− → α such that (α, h) ∈ Cl(K) For (Xf, g): there is some X

a

− → α such that (αf, h) ∈ Cl(K) Then, the (regular) language LK

[g,a,h] is defined as the union of the

regular languages below: {X} · L(AK

f ), for (Xf, g) satisfies φK [g,a,h]

{X} · V ∗ + {X} · V ∗ · State(Γ), for (X, g) satisfies φK

[g,a,h]

Hongfei Fu (Shanghai Jiao Tong University) Deciding ≈br between BPA and FS APLAS 2009 Paper 33 / 40

slide-34
SLIDE 34

The Expansion Function: The Formal Definition

Let K be a well-formed relation. A pair in K expands in K iff For (Y, g): whenever Y

a

− → α, there is some g a − → g′ such that (α, g′) ∈ Cl(K), or a = τ and (α, g) ∈ Cl(K); and whenever g a − → g′, there is some Y ⇒ α such that α ∈ LK

[g,a,g′].

For (Yf, g): . . . . For pairs in GΓ: . . . . The set Exp(K) is defined as all pairs in K that expand in K.

Hongfei Fu (Shanghai Jiao Tong University) Deciding ≈br between BPA and FS APLAS 2009 Paper 34 / 40

slide-35
SLIDE 35

Consistency with Branching Bisimulation

Lemma

Let K be a well-formed relation such that Exp(K) = K. Then Cl(K) is a branching bisimulation.

Hongfei Fu (Shanghai Jiao Tong University) Deciding ≈br between BPA and FS APLAS 2009 Paper 35 / 40

slide-36
SLIDE 36

Procedure: B0 = G, Bk+1 = Exp(B).

Theorem

There is a polynomial bounded natural number j such that Bj = Bj+1. Moreover, Bj = B.

Hongfei Fu (Shanghai Jiao Tong University) Deciding ≈br between BPA and FS APLAS 2009 Paper 36 / 40

slide-37
SLIDE 37

Theorem

Let K be a well-formed relation. The set Exp(K) can be computed in polynomial time.

Hongfei Fu (Shanghai Jiao Tong University) Deciding ≈br between BPA and FS APLAS 2009 Paper 37 / 40

slide-38
SLIDE 38

The Main Theorem

Theorem

Branching bisimilarity between BPA and FS is polynomial time decidable.

Hongfei Fu (Shanghai Jiao Tong University) Deciding ≈br between BPA and FS APLAS 2009 Paper 38 / 40

slide-39
SLIDE 39

Summary

We’ve developed a polynomial time algorithm deciding branching bisimilarity between BPA and FS. Our algorithm is not new, but improves a previous result by Antonín Kuˇ cera and Richard Mayr (2004). We’ve shown the scheme of the bisimulation base technique.

Hongfei Fu (Shanghai Jiao Tong University) Deciding ≈br between BPA and FS APLAS 2009 Paper 39 / 40

slide-40
SLIDE 40

Questions?

Hongfei Fu (Shanghai Jiao Tong University) Deciding ≈br between BPA and FS APLAS 2009 Paper 40 / 40