Week 6 Flashcards
What is a labelled transition system?
A formal representation of the states, the stepwise behaviour, and the initial states of a system.
A tuple (S, s0, Act, ->) where:
- S is the set of states
- s0 is the intial state
- Act is a set of actions
- -> subset of (S * (Act U {pi}) * S) is a transition relation
where pi is an internal action
What is an internal action
An internal action is an ordinary action which we cannot directly observe
What are the predecessors of a state s
The predecessors of a state s’ are all of the states such that there exists an action for which the LTS transitions from s’ to s.
What are the successors of a state s
All states s’ for which there exists an action for which the LTS transitions from s to s’.
The traces of a given state s are
all of those combinations of actions (including internal actions) that can start in state s and take the LTS to some other state
represented by a line with two arrows
The traces of a given LTS
are the traces of the initial state of that LTS
Weak traces
consider internal transitions silent or unobservable
still consider them, but the internal transitions are just not mentioned in the traces
represented by an implication sign
s after y meaning
the set of states that can be reached by s after following the weak trace y
since this is a weak trace, internal transitions are allowed at any point
S’ after y (where S’ is a set of states)
the set of states reached after following trace y from any of the sets in S’
Reach(s) meaning
the set of states for which there exists a trace such that they can be reached from s by following that trace
The reachable states of an LTS are
all of the states reachable from the LTS’ initial state
When is an LTS without internal transitions deterministic?
When for all combinations of three states and one action, if one state can follow that same action to two of the states, then those states are the same state.
When is an LTS with internal transitions determinstic?
Never, LTS’s with internal transitions are alwasys considered non-deterministic
Parallel Composition of LTS’s
First, one needs a set of handshaking actions H, which are a subset of the intersection of the sets of actions of the two LTS’s
Then, the parallel composition LTS is as follows:
S: S1 * S2
s0 = (s10, s20)
Act = Act1 U Act2
and -> is as follows
For all actions in H:
(s1,t1)->a(s2,t2) only if s1 goes to s2 with a in LTS 1 and t1 goes t2 in LTS2.
For all actions not in H:
(s1,t1)->a(s2,t1) if s1->as2 in LTS1
(s1,t1)->a(s1,t2) if t1->t2 in LTS2
Three Types of States in State Machine Diagrams
- Basic states:
- simple state, no nested states inside - Composite state / Or:
- at most one nested state inside is current - Orthogonal / And:
- each region is current, and is itself considered an or-state