ArticleslgStudy

computer science

Bisimulation

Bisimulation is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Bisimulation rather than just read about it. In short: In theoretical computer science, a bisimulation is a binary relation between state transition systems, associating systems that behave in the same way in that one system simulates the other and vice versa. Intuitively two systems are bisimilar if they, assuming we view them as playing a game according to some rules, match each other's moves.

Bisimulation — main illustration
Bisimulation — illustration

Key takeaways

  • Bisimulation belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Bisimulation to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Bisimulation from memory before moving on to harder problems.

Reference excerpt

In theoretical computer science, a bisimulation is a binary relation between state transition systems, associating systems that behave in the same way in that one system simulates the other and vice versa. Intuitively two systems are bisimilar if they, assuming we view them as playing a game according to some rules, 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 labeled state transition system (S, Λ, →), where S is a set of states, Λ is a set of labels and → is a set of labelled transitions (i.e., a subset of S×Λ×S), a bisimulation is a binary relation R⊆S×S, such that both R and its converse RT are simulations. From this follows that the symmetric closure of a bisimulation is a bisimulation, and that each symmetric simulation is a bisimulation. Thus some authors define bisimulation as a symmetric simulation. Equivalently, R is a bisimulation if and only if for every pair of states (p,q) in R and all labels λ in Λ:

if p→λp′, then there is q→λq′ such that (p′,q′)∈R; if q→λq′, then there is p→λp′ such that (p′,q′)∈R. Given two states p and q in S, p is bisimilar to q, written p∼q, if and only if there is a bisimulation R such that (p,q)∈R. This means that the bisimilarity relation ∼ is the union of all bisimulations: (p,q)∈∼ precisely when (p,q)∈R for some bisimulation R. The set of bisimulations is closed under union, that is, the union of two bisimulations is a bisimulation. Therefore, the bisimilarity relation is itself a bisimulation. Since it is the union of all bisimulations, it is the unique largest bisimulation. Bisimulations are also closed under reflexive, symmetric, and transitive closure; therefore, the largest bisimulation must be reflexive, symmetric, and transitive. From this follows that the largest bisimulation—bisimilarity—is an equivalence relation.

Alternative definitions

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 ∀λ∈Λ R ; →λ⊆→λ ; R and R−1 ; →λ⊆→λ ; R−1 From the monotonicity and continuity of relation composition, it follows immediately that the set of 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:𝒫(S×S)→𝒫(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.

Ehrenfeucht–Fraïssé game 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). That is, (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,Λ,→) can be mapped bijectively to a function ξ→ from S to the powerset of S indexed by Λ written as 𝒫(Λ×S), defined by p↦{(λ,q)∈Λ×S:p→λq}. Let πi:S×S→S be i-th projection, mapping (p,q) to p and q respectively for i=1,2; and 𝒫(Λ×π1) the forward image of π1 defined by dropping the third component P↦{(λ,p)∈Λ×S:∃q.(λ,p,q)∈P} where P is a subset of Λ×S×S. Similarly for 𝒫(Λ×π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→𝒫(Λ×R) on the relation R such that the diagram

commutes, i.e. for i=1,2, the equations ξ→∘πi=𝒫(Λ×πi)∘γ hold where ξ→ is the functional representation of (S,Λ,→).

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with Bisimulation

Start with the simplest possible case. Write down what Bisimulation claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Bisimulation before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Bisimulation ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Bisimulation

In research
Bisimulation appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Bisimulation in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Bisimulation is common in secondary-school and first-year university syllabi. It links to neighbouring topics Formal methods, Logic in computer science, Theoretical computer science, so understanding it makes those chapters shorter.
In everyday life
Look for Bisimulation outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Bisimulation” →

How to study Bisimulation in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Bisimulation means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Bisimulation out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Bisimulation in simple terms?

In theoretical computer science, a bisimulation is a binary relation between state transition systems, associating systems that behave in the same way in that one system simulates the other and vice versa. Intuitively two systems are bisimilar if they, assuming we view them as playing a game accord…

Why does Bisimulation matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Bisimulation?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Bisimulation.

Tags

  • Formal methods
  • Logic in computer science
  • Theoretical computer science
  • Transition systems

Keep exploring