Applied Automata Theory (WS 2012/2013) Technische Universit¨ at Kaiserslautern
Exercise Sheet 8
Jun.-Prof. Roland Meyer, Reiner H¨ uchting, Georgel C˘ alin Due: Tue, Dec 11 (noon) Exercise 8.1 Disjunctive Well-Foundedness
Consider the following program over integer variables and the corresponding automaton:
while x > 0 ∧ y > 0 do l
a: (x, y) := (x − 1, x) or
l
b: (x, y) := (y − 2, x + 1) endwhile
l
a: if x > 0 ∧ y > 0 x
0:= x − 1 y
0:= x
l
b: if x > 0 ∧ y > 0 x
0:= y − 2 y
0:= x + 1
A state S of this program is a vector giving a value to each variable. The execution of a command l
aor l
bleads to a labelled transition between states. For example:
S = (x = 2, y = 1) − −−−−
la→ (1, 2) = S
0.
One can show that between every pair of states S − →
wS
0, where w ∈ {l
a, l
b}
+, one of the following relations holds:
T
1x > 0 ∧ x > x
0T
2x + y > 0 ∧ x + y > x
0+ y
0T
3y > 0 ∧ y > y
0Show that this implies termination (from any starting state).
Exercise 8.2 Equivalence Classes as Circuit Boxes
Remember that, for any u ∈ Σ
ωand NBA A, Box(u) is defined as R
[u]∼A
∪ R
fin[u]∼A