Académique Documents
Professionnel Documents
Culture Documents
Prof. Dr. Joost-Pieter Katoen, Dr. Taolue Chen, and Ir. Mark Timmer
September, 14, 2012
Problem 1
1. Express the following informally-stated properties as LT-properties:
An account with positive balance is opened.
P = L (( + {ab > 100}) (2AP ) )
The balance of an account is negative only finitely many times.
P = L ((2AP ) ({ab = 0} + + {ab > 100}) )
The balance of an account switches at least once from debit to
credit.
P = L ((2AP ) {ab < 0} ({ab = 0} + + {ab > 100}) (2AP ) )
Eventually, an account remains with more than e 100 credit.
P = L ((2AP ) {ab > 100} )
false and true.
Pfalse =
and
Ptrue = L ( 2AP
Problem 2
We consider the following transition system T S:
{a}
s0
s1 {b}
{a, b} s2
s3
s4 {a, b}
Let P be the set of traces of the form = A0 A1 A2 . . . 2AP such that
k. Ak = {a, b}
n 0. k > n. a Ak b Ak+1 .
For the following fairness assumptions Fi with respect to the transition system T S, we decide whether or not T S |=Fi P .
First of
all, notice that T S |=Fi P if and only if FairTracesFi (T S) P .
Because of k. Ak = {a, b}, each trace has to visit at least one of s2 or s4
infinitely many times. Additionally, from some point onwards, each a-state
must be followed by a state that is annotated with (at least) b.
1. F1 =
{} , {}, {, }, {} , .
Problem 3
Let P and P be liveness properties over AP . Then
P P is guaranteed to be a liveness property too.
Since P is a liveness property, by definition pref(P ) = 2AP .
for every LT-property Q, and clearly
Since pref(Q) 2AP
pref(P1 P2 ) pref(P
)
P1 , P2 , we find
1 for all LT-properties
AP
as well as pref(P P ) 2AP . Therepref(P P ) 2
2AP
{a}
and
P = L
2AP
{b}
Clearly, both are liveness properties, since any finite trace can be
extended to a valid trace. However, P P = , which is not a