/ department of mathematics and computer science
Process Algebra (2IMF10)
Theory of Sequential Processes Bas Luttik
MF 6.072 s.p.luttik@tue.nl http://www.win.tue.nl/~luttik
Lecture 5
2/15 / department of mathematics and computer science
TSP: sequential composition
We extend BSP(A) with a binary operator · for sequential composition: The process p · q executes p and, upon successful termination
- f p, then executes q.
Examples
▶ a.1 · b.1 fjrst executes the action a and then executes the action b; ▶ a.0 · b.1 executes the action a and then deadlocks; ▶ (a.1 + b.1) · (a.1 + b.1) fjrst executes either an a or a b, and
subsequently executes, again, either an a or a b;
▶ (a.1 + 1) · b.1 either executes an a followed by a b, or immediately
executes a b.
3/15 / department of mathematics and computer science
TSP: operational semantics
a.x
a
− → x x
a
− → x′ x + y
a
− → x′ y
a
− → y′ x + y
a
− → y′ 1↓ x↓ (x + y)↓ y↓ (x + y)↓ x
a
− → x′ x · y
a
− → x′ · y x↓ y
a
− → y′ x · y
a
− → y′ x↓ y↓ (x · y)↓
Exercise
Add action and termination rules for sequential composition.
4/15 / department of mathematics and computer science
TSP: operational semantics
a.x
a
− → x x
a
− → x′ x + y
a
− → x′ y
a
− → y′ x + y
a
− → y′ 1↓ x↓ (x + y)↓ y↓ (x + y)↓ x
a
− → x′ x · y
a
− → x′ · y x↓ y
a
− → y′ x · y
a
− → y′ x↓ y↓ (x · y)↓
These rules associate with TSP(A) a transition-system space (S, L, →, ↓):
▶ S is the set of closed TSP(A)-terms; ▶ L is the set A; ▶ → ⊆ S × L × S is the least relation satisfying the rules above; ▶ ↓ ⊆ S is the least set satisfying the rules above.