Professional Documents
Culture Documents
Lect5A-Behavioural modelingII
Lect5A-Behavioural modelingII
Behavioral equivalences
Key properties of strong bisimilarity
Theorem
1 The relation ∼ of strong bisimilarity is an equivalence relation.
2 Bisimilarity is a strong bisimulation, and it is the largest such.
Proof.
Reflexivity and symmetry: easy.
Transitivity: if R 1 and R 2 are bisimulations, then so is
Theorem
Let P, Q be CCS processes where P ∼ Q. Then:
1 α.P ∼ α.Q, for any action α
2 P + R ∼ Q + R and R + P ∼ R + Q, for any CCS process R
3 P | R ∼ Q | R and R | P ∼ R | Q, for any CCS process R
4 P[f ] ∼ Q[f ], for any relabeling f
5 P\L ∼ Q\L, for any set of labels L
and tedious case analysis according to which process is responsible for the
transition. Q.E.D.
Behavioral equivalences
Example: buffers
Behavioral equivalences
Bisimulations between buffers
Behavioral equivalences
Weak bisimilarity
2 Strong bisimilarity
3 Weak bisimilarity
Behavioral equivalences
Internal Action
Switch_on Switch_off
Off
Light_off Switch_on
Unreliable Light
Light_on
Switch_off Light_on Light_off
On
Internal Action
Switch_on Switch_off
Off
Light_off Tau
Unreliable Light
Light_on
Tau
Light_on Light_off
On
Bisimilarity and τ transitions
Behavioral equivalences
Bisimilarity and transitions
Behavioral equivalences
Can we simply drop transitions?
Example: computer scientist and flawed coffee machine
def
CS = pub.coin.coffee.CS
def
CMb = coin.coffee.CMb + coin.CMb
Behavioral equivalences
Can we simply drop transitions?
Example: computer scientist and flawed coffee machine
def
CS = pub.coin.coffee.CS
def
CMb = coin.coffee.CMb + coin.CMb
def
Consider behavior of Start = (CS | CMb )\{coin, coffee}
Definition
Behavioral equivalences
Weak bisimulation and bisimilarity
Definition
Behavioral equivalences
Key properties of weak bisimilarity
Theorem
1 The relation ≈ of weak bisimilarity is an equivalence relation. Weak
2 bisimilarity is a weak bisimulation, and it is the largest such.
Theorem
Let P, Q be CCS processes where P ≈ Q. Then:
1 α.P ≈ α.Q, for any action α
2 P | R ≈ Q | R and R | P ≈ R | Q, for any CCS process R
3 P[f ] ≈ Q[f ], for any relabeling f
4 P \ L ≈ Q \ L, for any set of labels L
Behavioral equivalences
Processes: A(a,c) = a.A'(a,c) B(c,b) = c.B'(c,b)
A' (a,c) = c.A(a,c) B'(c,b) = b.B(c,b)
A system: System = (A | B )\c
(A|B)
(A'|B)
(A|B')
... ...
Behavioral equivalences
(A|B)
a
(A'|B)
(A|B')
b a
(A|B) (A'|B')
a b
(A'|B) (A'|B)
Behavioral equivalences
(A|B)
b
(A'|B)
(A|B') b
(A'|B')
Behavioral equivalences