Suvarna Garge (Editor)

Bisimulation

Updated on
Edit
Like
Comment
Share on FacebookTweet on TwitterShare on LinkedInShare on Reddit

In theoretical computer science a bisimulation is a binary relation between state transition systems, associating systems that behave in the same way in the sense that one system simulates the other and vice versa.

Contents

Intuitively two systems are bisimilar if they match each other's moves. In this sense, each of the systems cannot be distinguished from the other by an observer.

Formal definition

Given a labelled state transition system ( S , Λ, →), a bisimulation relation is a binary relation R over S (i.e., R S × S ) such that both R −1 and R are simulations.

Equivalently R is a bisimulation if for every pair of elements p , q in S with ( p , q ) in R , for all α in Λ:

for all p in S ,

implies that there is a q in S such that and ( p , q ) R ;

and, symmetrically, for all q in S

implies that there is a p in S such that and ( p , q ) R .

Given two states p and q in S , p is bisimilar to q , written p q , if there is a bisimulation R such that ( p , q ) is in R .

The bisimilarity relation is an equivalence relation. Furthermore, it is the largest bisimulation relation over a given transition system.

Note that it is not always the case that if p simulates q and q simulates p then they are bisimilar. For p and q to be bisimilar, the simulation between p and q must be the inverse of the simulation between q and p . Counter-example (in CCS, describing a coffee machine) : M = p . c ¯ . M + p . t ¯ . M + p . ( c ¯ . M + t ¯ . M ) and M = p . ( c ¯ . M + t ¯ . M ) simulate each other but are not bisimilar.

Relational definition

Bisimulation can be defined in terms of composition of relations as follows.

Given a labelled state transition system ( S , Λ , ) , a bisimulation relation is a binary relation R over S (i.e., R S × S ) such that α Λ

and

From the monotonicity and continuity of relation composition, it follows immediately that the set of the bisimulations is closed under unions (joins in the poset of relations), and a simple algebraic calculation shows that the relation of bisimilarity—the join of all bisimulations—is an equivalence relation. This definition, and the associated treatment of bisimilarity, can be interpreted in any involutive quantale.

Fixpoint definition

Bisimilarity can also be defined in order theoretical fashion, in terms of fixpoint theory, more precisely as the greatest fixed point of a certain function defined below.

Given a labelled state transition system ( S , Λ, →), define F : P ( S × S ) P ( S × S ) to be a function from binary relations over S to binary relations over S , as follows:

Let R be any binary relation over S . F ( R ) is defined to be the set of all pairs ( p , q ) in S × S such that:

α Λ . p S . p α p q S . q α q and ( p , q ) R

and

α Λ . q S . q α q p S . p α p and ( p , q ) R

Bisimilarity is then defined to be the greatest fixed point of F .

Game theoretical definition

Bisimulation can also be thought of in terms of a game between two players: attacker and defender.

"Attacker" goes first and may choose any valid transition, α , from ( p , q ) . I.e.:

( p , q ) α ( p , q ) or ( p , q ) α ( p , q )

The "Defender" must then attempt to match that transition, α from either ( p , q ) or ( p , q ) depending on the attacker's move. I.e., they must find an α such that:

( p , q ) α ( p , q ) or ( p , q ) α ( p , q )

Attacker and defender continue to take alternating turns until:

  • The defender is unable to find any valid transitions to match the attacker's move. In this case the attacker wins.
  • The game reaches states ( p , q ) that are both 'dead' (i.e., there are no transitions from either state) In this case the defender wins
  • The game goes on forever, in which case the defender wins.
  • The game reaches states ( p , q ) , which have already been visited. This is equivalent to an infinite play and counts as a win for the defender.
  • By the above definition the system is a bisimulation if and only if there exists a winning strategy for the defender.

    Coalgebraic definition

    A bisimulation for state transition systems is a special case of coalgebraic bisimulation for the type of covariant powerset functor. Note that every state transition system ( S , Λ , ) is bijectively a function ξ from S to the powerset of S indexed by Λ written as P ( Λ × S ) , defined by

    Let π i : S × S S be i -th projection mapping ( p , q ) to p and q respectively for i = 1 , 2 ; and P ( Λ × π 1 ) the forward image of π 1 defined by dropping the third component

    where P is a subset of Λ × S × S . Similarly for P ( Λ × π 2 ) .

    Using the above notations, a relation R S × S is a bisimulation on a transition system ( S , Λ , ) if and only if there exists a transition system γ : R P ( Λ × R ) on the relation R such that the diagram

    commutes, i.e. for i = 1 , 2 , the equations

    hold where ξ is the functional representation of ( S , Λ , ) .

    Variants of bisimulation

    In special contexts the notion of bisimulation is sometimes refined by adding additional requirements or constraints. For example if the state transition system includes a notion of silent (or internal) action, often denoted with τ , i.e. actions that are not visible by external observers, then bisimulation can be relaxed to be weak bisimulation, in which if two states p and q are bisimilar and there is some number of internal actions leading from p to some state p then there must exist state q such that there is some number (possibly zero) of internal actions leading from q to q . A relation R on processes is a weak bisimulation if the following holds (with S { R , R 1 } , and a , τ being an observable and mute transition respectively):

    p , q . ( p , q ) S p τ p q . q τ q ( p , q ) S

    p , q . ( p , q ) S p a p q . q τ a τ q ( p , q ) S

    This is closely related to bisimulation up to a relation.

    Typically, if the state transition system gives the operational semantics of a programming language, then the precise definition of bisimulation will be specific to the restrictions of the programming language. Therefore, in general, there may be more than one kind of bisimulation, (bisimilarity resp.) relationship depending on the context.

    Bisimulation and modal logic

    Since Kripke models are a special case of (labelled) state transition systems, bisimulation is also a topic in modal logic. In fact, modal logic is the fragment of first-order logic invariant under bisimulation (van Benthem's theorem).

    References

    Bisimulation Wikipedia