LTS and Simulations Flashcards
What is a Labelled Transition System? (Mathematically)
(X, Σ, L) where X = states Σ = alphabet of actions L = X x Σ x X
Why are Labelled Transition Systems used?
To capture what can be observed about a program.
What is internal no-determinism?
ND that is resolved by the scheduler.
“The machine chooses”.
What is external non-determinism?
ND that is influenced by the external environment.
E.g. a vending machine and a user.
What is trace equivalence?
2 states that have the same traces.
What is a trace?
A sequence of observations from some state.
Are traces always finite?
No
What is a simulation, formally?
A relation on a set R s.t:
whenever xRy and x -a-> x’, there exists y’ s.t. y -a-> y’ and (x’,y’) ∈ R.
If (x,y) ∈ R, we say that y simulates x.
What does x<=y mean?
y simulates x.
What does y<=x mean?
x simulates y.
What are the properties of simulation? (2)
The union of simulations are simulations.
The largest simulation is the similarity (union of all simulations).
What is the simulation game? (4)
Game starts at (x,y).
- Demon picks x-a->x’.
- We respond with y-a-> y’.
- Game repeats from new start point (x’,y’).
What are the terminating conditions of the simulation game? [Start=(x,y)] (3)
If we can’t move, we lose.
If the demon has a winning strategy, y does NOT simulate x.
If we win, y simulates x (x<=y).
What is simulation equivalence?
If x<=y and y<=x, then x and y are simulation equivalent.
What are the implications of simulation equivalence?
If x and y are simulation equivalent, x and y are also trace equivalent.
The converse is NOT true.