Title: From
1From Monotonic Transition Systems to Monotonic
Games
Parosh Aziz Abdulla Uppsala University
2Outline
- Model Checking
- Infinite-State Systems
- Methodology
- Monotonicity
- Well Quasi-Orderings
- Models
- Petri Nets
- Lossy Channel Systems
- Timed Petri Nets
- Extension to Games
3Model Checking
T sat f ?
transition system
specification
4Model Checking
T sat f ?
transition system
specification
5(No Transcript)
6(No Transcript)
7Forward Reachability Analysis
8Forward Reachability Analysis
Post
9Forward Reachability Analysis
Post
Forward Reachability Analysis computing Post
Fin
Init
10Backward Reachability Analysis
11Backward Reachability Analysis
Pre
12Backward Reachability Analysis
Pre
Backward Reachability Analysis computing Pre
Init
Fin
13Forward Reachability Analysis
Fin
Init
Backward Reachability Analysis
Init
Fin
14Infinite-State Systems
1. Unbounded Data Structures
- stacks
- queues
- clocks
- counters, etc.
2. Unbounded Control Structures
- Parameterized Systems
- Dynamic Systems
15Backward Reachability Analysis
Init
Fin
infinite
16Backward Reachability Analysis
Init
Fin
infinite
effective symbolic representation
17Petri Nets
18States Markings
19Transitions
20Transitions
t
Firing t
21Transitions
t
t is disabled
22Monotonicity
23Monotonicity
24Monotonicity
25Petri Nets infinite state
26Petri Nets infinite state
27Petri Nets infinite state
28Petri Nets infinite state
29Petri Nets infinite state
30Mutual Exclusion
W
R1?
R1
R0
C
31Mutual Exclusion
W
R1?
R1
R0
C
R1?
R1?
R1?
R1
R1
R1
R0
R0
R0
32Mutual Exclusion
R1?
R1?
R1?
R1
R1
R1
R0
R0
R0
33Mutual Exclusion
R1?
R1?
R1?
R1
R1
R1
R0
R0
R0
- Initial states
- R1
- All processes in
Infinitely many
34Mutual Exclusion
R1?
R1?
R1?
R1
R1
R1
R0
R0
R0
- Initial states
- R1
- All processes in
Infinitely many
Bad states Two or more processes in
35Mutual Exclusion
R1?
R1?
R1?
R1
R1
R1
R0
R0
R0
R1
W
C
36Mutual Exclusion
Set of initial states
infinite
37Mutual Exclusion
38Mutual Exclusion
R1
W
C
39Mutual Exclusion
R1
W
C
40Mutual Exclusion
R1
W
C
41Safety Properties
- mutual exclusion
- tokens in critical section gt 1
critical section
42Safety Properties
- mutual exclusion
- tokens in critical section gt 1
Ideal Upward closed set of markings
critical section
43Safety Properties
- mutual exclusion
- tokens in critical section gt 1
Ideal Upward closed set of markings
critical section
safety reachability of ideals
44 Petri Nets
- Concurrent systems
- Infinite-state symbolic representation
- Monotonic behaviour
- Safety properties reachability of ideals
45 Petri Nets
- Concurrent systems
- Infinite-state symbolic representation
- Monotonic behaviour
- Safety properties reachability of ideals
46Monotonicity ideals closed under computing
Pre
47Monotonicity ideals closed under computing
Pre
I
48Monotonicity ideals closed under computing
Pre
I
49Monotonicity ideals closed under computing
Pre
I
50Monotonicity ideals closed under computing
Pre
I
Pre(I)
51Backward Reachability Analysis
Fin
Ideals
52Ideals Symbolic Representation
i index (generator)
i generator of ideal i denotes all markings
larger than i
53Ideals Symbolic Representation
index (generator)
54Ideals Symbolic Representation
index (generator)
55Ideals Symbolic Representation
index (generator)
56Ideals Symbolic Representation
index (generator)
57Ideals Symbolic Representation
C
Index for bad states
58Ideals Symbolic Representation
C
Index for bad states
59Each ideal can be characterized by a finte set of
generators
60Index is minimal element of its ideal
j
If i j then
i
61Monotonicity ideals closed under computing
Pre
C
Index for bad states
Indices of Pre
62Monotonicity ideals closed under computing
Pre
C
Index for bad states
i index Pre(i) computable
Indices of Pre
63Backward Reachability Analysis
C
Step 0
64Backward Reachability Analysis
C
Step 0
Step 1
65Backward Reachability Analysis
C
Step 0
Step 1
66Backward Reachability Analysis
C
Step 0
Step 1
Step 2
67Backward Reachability Analysis
C
Step 0
Step 1
Step 2
68Backward Reachability Analysis
C
Step 0
Step 1
Step 2
Step 3
69Backward Reachability Analysis
C
Step 0
Step 1
Step 2
Step 3
70What did we need?
- Computable ordering
- Monotonicity, Computability of Pre
- Termination -- Ordering is WQO
71What did we need?
- Computable ordering
- Monotonicity, Computability of Pre
- Termination -- Ordering is WQO
nice properties
72Well Quasi-Ordering (WQO)
( A , ) is WQO if
a0 a1 a2 a3 .......
i,j iltj and ai aj
WQO Simple Example
( Nat , ) is WQO
x0 x1 x2 x3 ....... natural numbers
i,j iltj and xi xj
73Properties of WQO
Finite Sets
( A , ) is WQO if A is finite
a0 a1 a2 b a3 a4 a5 b a6 ..............
74Properties of WQO
Words
if ( A , ) is WQO
w1 a0 a1
a2
w2 b0 b1 b2 b3 b4 b5
b6
then ( A , ) is WQO
75Properties of WQO
Multisets
if ( A , ) is WQO
then ( AM , M ) is WQO
M1 M M2
M2
M1
76Methodology
- Start from a finite domain
- Build more complicated data structures
- words, multisets, lists, sets, etc.
77Examples -- WQO
( A , )
A finite alphabet
w1 w2 w1 subword of w2
e.g. ab xaybz
78Examples -- WQO
Words of natural numbers
5 2 7
w1
w2
3 7 1 4 2 8
w1
w2
79Multisets over a finite alphabet
80Words of multisets over a finite alphabet
81Lossy Channel Systems
!m
- finite state process
- unbounded lossy channel
- send and receive operations
?n
m n n m
- Infinite state space
- Perfect channel Turing machine
- Motivation Link protocols
82State
!m
mpnm npn
?n
83Transitions
Send
!m
m
84Transitions
Send
!m
m
Receive
?m
m
85Transitions
Send
!m
m
Receive
?m
m
Messages may nondeterministically be lost
86Example
!m
?n
p n m p n
n m p m
m p m
87Ordering
m n p m p n p
m n p m p n p
m n p m p
m n p m p n p
88Ordering
m n p m p n p
Computable and WQO
m n p m p n p
m n p m p
m n p m p n p
89Monotonicity
w1
w3
w2
90Monotonicity
w1
w3
w2
Downward closed
91Ideal Index
m n p
denotes all larger states
m n m p m m n m p
m n p
m n m p m m n m p
m n p
92Each ideal can be characterized by a finite set
of generators
By WQO of
93Computing Pre
Pre ( ) contains the following
w
94Computing Pre
Pre ( ) contains the following
w
!m
and w w m
if
w
then
95Computing Pre
Pre ( ) contains the following
w
!m
and w w m
if
w
then
!m
and last(w) m
if
w
then
96Computing Pre
Pre ( ) contains the following
w
!m
and w w m
if
w
then
!m
and last(w) m
if
w
then
?m
m w
then
if
97Example
Pre ( )
a d b
!b
a d
if
!d
if
a d b
?d
d a d b
if
98Methodology (applied to LCS)
- Computable ordering
- Monotonicity, Computability of Pre
- Ordering is WQO
99LCS -- Forward vs Backward Analysis
Pre(w) is regular and computable Post(w) is
regular but not computable
100Timed Petri Nets
2.1
0.5
8.5
6.2
4,7
1,5
3,6
0,3
4, )
1,2
4.6
101States Markings
2.1
0.5
3.5
6.2
3,6
1,5
4,7
0,3
1,2
4.6
2.1 3.5 0.5 6.2 4.6
102Timed Transitions
2.1
0.5
3.5
6.2
3,6
1,5
4,7
2.1 3.5 0.5 6.2 4.6
0,3
1,2
4.6
103Timed Transitions
2.1
0.5
3.5
6.2
3,6
1,5
4,7
2.1 3.5 0.5 6.2 4.6
0,3
increase age by 1.3
1,2
4.6
3.4
1.8
4.8
7.5
1,5
4,7
3.4 4.8 1.8 7.5 5.9
0,3
1,2
5.9
104Discrete Transitions
3.1
1.5
4.5
7.2
3,6
1,5
4,7
t
3.1 4.5 1.5 7.2 5.6
0,3
1,2
5.6
105Discrete Transitions
3.1
1.5
4.5
7.2
3,6
1,5
4,7
t
3.1 4.5 1.5 7.2 5.6
0,3
1,2
5.6
Firing t
3.1
7.2
1,5
4,7
3.1 7.2 0.8 5.6
t
0,3
1,2
0.8
5.6
106 Timed Petri Nets
- Concurrent timed systems
- Infinite-state symbolic representation
- Monotonic behaviour
- Safety properties reachability of ideals
107Equivalence on Markings
3.1
7.2
3,6
1,5
4,7
t
0,3
1,2
0.8
5.6
- max 7
- ages gt max behave identically
108Equivalence on Markings
Markings equivalent if they agree on
- colours
- integral parts of clock values
- ordering on fractional parts
3.1 4.8 1.5 6.2 5.6
3.2 4.8 1.6 6.4 5.7
109Equivalence on Markings
Markings equivalent if they agree on
- colours
- integral parts of clock values
- ordering on fractional parts
3.1 4.8 1.5 6.2 5.6
3.1 1.5 4.8
3.2 4.8 1.6 6.4 5.7
110Equivalence on Markings
Markings equivalent if they agree on
- colours
- integral parts of clock values
- ordering on fractional parts
3.1 4.8 1.5 6.2 5.6
3.1 1.5 4.8
3.2 4.8 1.6 6.4 5.7
3.2 1.6 4.7
111Equivalence on Markings
Markings equivalent if they agree on
- colours
- integral parts of clock values
- ordering on fractional parts
3.1 4.8 1.5 6.2 5.6
3 6 1 5 4
3.2 4.8 1.6 6.4 5.7
112Equivalence on Markings
Markings equivalent if they agree on
- colours
- integral parts of clock values
- ordering on fractional parts
3.1 4.8 4.8 1.1 5.4
3 1
4 4
5
3.2 4.7 4.7 1.2 5.5
words over multisets over a finite alphabet
113Ordering on Markings
M1 M2 iff M3
4.8 6.4 5.7
3.1 4.8 1.5 6.2 5.6
114Ordering on Markings
M1 M2 iff M3
4.8 6.4 5.7
4.8 6.2 5.6
3.1 4.8 1.5 6.2 5.6
1154.8 6.4 5.7
4.8 6.2 5.6
3.1 4.8 1.5 6.2 5.6
1164.8 6.4 5.7
4.8 6.2 5.6
3.1 4.8 1.5 6.2 5.6
6 5 4
subword
6 5 4
subword
3 6 1 5 4
117Ordering on Markings
M1 M2 iff M3
3.2 1.2 4.7
3.1 4.8 4.8 1.1 5.4
118Ordering on Markings
M1 M2 iff M3
3.2 1.2 4.7
3.1 4.8 1.1
3.1 4.8 4.8 1.1 5.4
1193.2 1.2 4.7
3.1 4.8 1.1
3.1 4.8 4.8 1.1 5.4
3 1
4
subword
3 1
4
subword
3 1
4 4
5
120Properties of
subword ordering on multisets over a
finite alphabet
is a well quasi-ordering
121Properties of -- Monotonicity
M3
M1
M2
122Properties of -- Monotonicity
M3
M1
M4
M2
123Properties of -- Monotonicity
M3
M1
M5
M4
M2
124Properties of -- Monotonicity
M3
M1
M5
M4
M2
M6
125Properties of -- Monotonicity
M3
M1
M5
M4
M2
M6
126Methodology (applied to TPN)
- Computable ordering
- Monotonicity, Computability of Pre
- Ordering is WQO
127Infinite-State Games
Player A
Player B
Can B take game to ?
128Backward Reachability Analysis
Characterize losing states for A
A-states
B-states
Pre( )
129Backward Reachability Analysis
Characterize losing states for A
B-states
A-states
Pre( )
130Backward Reachability Analysis
Characterize losing states for A
Pre
Pre
Pre
Pre
131Vector Addition Systems with States (VASS)
x
y --
x--
- Finite-state automaton operating on variables
- Variables range over natural numbers
- Operations increment or decrement variable
132VASS Petri nets
y--
x
x--
VASS
y
Petri net
x
133x
VASS Games
x
x--
x--
x
Player A
Player B
Can B take game to ?
134x
0
x
0
x--
1
x--
2
x
3
4
135x
0
x
0
x--
1
x--
2
x
3
A cannot avoid
4
136x
1
x
1
0
x--
2
x--
3
x
4
5
137x
1
x
1
0
x--
2
x--
3
x
4
A can avoid
5
138x
2
x
2
1
x--
3
0
x--
4
1
x
5
2
6
3
139x
2
x
2
1
x--
3
0
x--
4
1
x
5
2
A cannot avoid
6
3
140Player A 0 -- lose 1 -- win
gt1 -- lose
Monotonicity does not imply upward closedness
141Backward Reachability Analysis
Characterize losing states for A
Pre
Pre
Pre
Pre
Why scheme does not work for VASS?
Monotonicity does not imply that ideals are
closed under
Pre
1422-Counter Machines
x
y--
x--
x0?
Is reachable?
Problem undecidable
143Simulation of 2-Counter Machines by VASS Games
x
Counter machine
x
VASS game
144Simulation of 2-Counter Machines by VASS Games
x--
Counter machine
x--
VASS game
145Simulation of 2-Counter Machines by VASS Games
x0?
Counter machine
x--
VASS game
146Safety undecidable for Monotonic Games
Safety undecidable for VASS Games
147B-Downward Closed Games
s1
s3
s2
148B-Downward Closed Games
s1
s3
s2
Pre
any set
ideal
149Backward Reachability Analysis
B-Downward closed games
Pre
Pre
Pre
Pre
ideal
150Backward Reachability Analysis
B-Downward closed games
Pre
Pre
Pre
Pre
ideal
nice ordering
characterization of A-losing states
decidability of safety
151Backward Reachability Analysis
B-LCS Games
!m
Player B can lose messages
!n
?m
?n
!m
B-LCS characterization of A-losing states
Safety decidable for B-LCS games
152A-Downward Closed Games
153A-Downward Closed Games
Post
154A-Downward Closed Games
Post
155A-Downward Closed Games
156A-Downward Closed Games
157A-Downward Closed Games
F
158A-Downward Closed Games
F
159A-Downward Closed Games
F
T
160A-Downward Closed Games
F
T
F
T
- Termination
- all leaves closed
- Evaluate tree OR
- AND
161A-Downward Closed Games
F
T
F
T
Termination guaranteed if is WQO
162A-Downward Closed Games
F
T
F
T
Safety decidable for A-LCS Games
Can we characterize winning states ?
163!m
A Problem for LCS
?n
characterize
sf
w w
sf
- Set regular
- But Not computable
164A-LCS Games
- Winning set regular
- But not computable
!m
LCS
!m
A-LCS game
165A-LCS Games
- Winning set regular
- But not computable
?m
LCS
?m
A-LCS game
166A-LCS Games
- Winning set regular
- But not computable
For each
A-LCS game
167Conclusions and Planned Work
- Define a WQO on state space
- Safety properties reachability of ideals
- Examples
-
- Timed Petri nets
- Parameterized systems
- Broadcast protocols
- Cache coherence protocols
- Lossy channel systems, etc.
168- Extension to Games
- Regular Model Checking
- Stochastic behaviours