SLIDE 1 Real-time Model Checking
— Priced timed automata — Nicolas MARKEY
ecification & V´ erification CNRS & ENS Cachan – France
March 3, 2010
SLIDE 2
Time is not always sufficient
Timed automata are (rather) well understood – Can we go further?
SLIDE 3
Time is not always sufficient
Timed automata are (rather) well understood – Can we go further? Compute D×(C×(A+B))+(A+B)+(C×D) using two processors: P1 (fast): time
+ 2 picosec. × 3 picosec.
P2 (slow):
time
+ 5 picosec. × 7 picosec.
+ T1 × T2 × T3 + T4 × T5 + T6
B A D C C D
SLIDE 4
Time is not always sufficient
Timed automata are (rather) well understood – Can we go further? Compute D×(C×(A+B))+(A+B)+(C×D) using two processors: P1 (fast): time
+ 2 picosec. × 3 picosec.
energy
idle 10 W in use 90 W
P2 (slow):
time
+ 5 picosec. × 7 picosec.
energy
idle 20 W in use 30 W
+ T1 × T2 × T3 + T4 × T5 + T6
B A D C C D
SLIDE 5
Time is not always sufficient
Timed automata are (rather) well understood – Can we go further? Compute D×(C×(A+B))+(A+B)+(C×D) using two processors: P1 (fast): time
+ 2 picosec. × 3 picosec.
energy
idle 10 W in use 90 W
P2 (slow):
time
+ 5 picosec. × 7 picosec.
energy
idle 20 W in use 30 W
+ T1 × T2 × T3 + T4 × T5 + T6
B A D C C D
5 10 15 20 25 P2 P1 T2 T3 T5 T6 T1 T4
13 picoseconds 1.37 nanojoules
SLIDE 6
Time is not always sufficient
Timed automata are (rather) well understood – Can we go further? Compute D×(C×(A+B))+(A+B)+(C×D) using two processors: P1 (fast): time
+ 2 picosec. × 3 picosec.
energy
idle 10 W in use 90 W
P2 (slow):
time
+ 5 picosec. × 7 picosec.
energy
idle 20 W in use 30 W
+ T1 × T2 × T3 + T4 × T5 + T6
B A D C C D
5 10 15 20 25 P2 P1 T1 T2 T3 T4 T5 T6
12 picoseconds 1.39 nanojoules
SLIDE 7
Time is not always sufficient
Timed automata are (rather) well understood – Can we go further? Compute D×(C×(A+B))+(A+B)+(C×D) using two processors: P1 (fast): time
+ 2 picosec. × 3 picosec.
energy
idle 10 W in use 90 W
P2 (slow):
time
+ 5 picosec. × 7 picosec.
energy
idle 20 W in use 30 W
+ T1 × T2 × T3 + T4 × T5 + T6
B A D C C D
5 10 15 20 25 P2 P1 T1 T2 T3 T4 T5 T6
19 picoseconds 1.32 nanojoules
SLIDE 8 Time is not always sufficient
hybrid automata: timed automata augmented with variables whose derivative is not constant. examples: leaking gas burner, water-level monitor, ...
x ≤ 1 ˙ x = 1 ˙ y = 1 ˙ z = 1 true ˙ x = 1 ˙ y = 1 ˙ z = 0
x≤1, x:=0 x≥30, x:=0 x,y,z:=0
Theorem
Reachability is undecidable (even for timed automata with one stopwatch).
Refs: [1] Henzinger, Kopke, Puri, Varaiya. What’s Decidable about Hybrid Automata? (1995).
SLIDE 9 Time is not always sufficient
hybrid automata: timed automata augmented with variables whose derivative is not constant. examples: leaking gas burner, water-level monitor, ...
x ≤ 1 ˙ x = 1 ˙ y = 1 ˙ z = 1 true ˙ x = 1 ˙ y = 1 ˙ z = 0
x≤1, x:=0 x≥30, x:=0 x,y,z:=0
timed automata with observers: similar to hybrid automata, but the behavior only depends on clock variables.
Refs: [1] Alur, La Torre, Pappas. Optimal Paths in Weighted Timed Automata (2001). [2] Behrmann et al. Minimum-cost reachability for priced timed automata (2001).
SLIDE 10
Outline of the talk
1
Introduction
2
Timed automata with observers
3
Resource-optimization problems Optimal reachabililty Weighted temporal logics Optimal strategies
4
Resource-management problems
5
Conclusions and perspectives
SLIDE 11
Outline of the talk
1
Introduction
2
Timed automata with observers
3
Resource-optimization problems Optimal reachabililty Weighted temporal logics Optimal strategies
4
Resource-management problems
5
Conclusions and perspectives
SLIDE 12 Timed automata with (linear) observers
Example
x=1 x:=0 1 2 3 4 1
Refs: [1] Alur, La Torre, Pappas. Optimal Paths in Weighted Timed Automata (2001). [2] Behrmann et al. Minimum-cost reachability for priced timed automata (2001).
SLIDE 13 Timed automata with (linear) observers
Example
−3 +6 −6 +2 −1 x=1 x:=0 1 2 3 4 1
Refs: [1] Alur, La Torre, Pappas. Optimal Paths in Weighted Timed Automata (2001). [2] Behrmann et al. Minimum-cost reachability for priced timed automata (2001).
SLIDE 14 Timed automata with (linear) observers
Example
−3 +6 −6 +2 −1 x=1 x:=0 −3 1 2 3 4 1
Refs: [1] Alur, La Torre, Pappas. Optimal Paths in Weighted Timed Automata (2001). [2] Behrmann et al. Minimum-cost reachability for priced timed automata (2001).
SLIDE 15 Timed automata with (linear) observers
Example
−3 +6 −6 +2 −1 x=1 x:=0 −3 −3
1 6
1 2 3 4 1
Refs: [1] Alur, La Torre, Pappas. Optimal Paths in Weighted Timed Automata (2001). [2] Behrmann et al. Minimum-cost reachability for priced timed automata (2001).
SLIDE 16 Timed automata with (linear) observers
Example
−3 +6 −6 +2 −1 x=1 x:=0 −3 −3 +6
1 6
1 2 3 4 1
Refs: [1] Alur, La Torre, Pappas. Optimal Paths in Weighted Timed Automata (2001). [2] Behrmann et al. Minimum-cost reachability for priced timed automata (2001).
SLIDE 17 Timed automata with (linear) observers
Example
−3 +6 −6 +2 −1 x=1 x:=0 −3 −3 +6 +6
1 6 1 2
1 2 3 4 1
Refs: [1] Alur, La Torre, Pappas. Optimal Paths in Weighted Timed Automata (2001). [2] Behrmann et al. Minimum-cost reachability for priced timed automata (2001).
SLIDE 18 Timed automata with (linear) observers
Example
−3 +6 −6 +2 −1 x=1 x:=0 −3 −3 +6 +6 −6
1 6 1 2
−1 1 2 3 4 1
Refs: [1] Alur, La Torre, Pappas. Optimal Paths in Weighted Timed Automata (2001). [2] Behrmann et al. Minimum-cost reachability for priced timed automata (2001).
SLIDE 19 Timed automata with (linear) observers
Example
−3 +6 −6 +2 −1 x=1 x:=0 −3 −3 +6 +6 −6 −6
1 6 1 2
−1
1 3
1 2 3 4 1
Refs: [1] Alur, La Torre, Pappas. Optimal Paths in Weighted Timed Automata (2001). [2] Behrmann et al. Minimum-cost reachability for priced timed automata (2001).
SLIDE 20 Timed automata with (linear) observers
Example
−3 +6 −6 +2 −1 x=1 x:=0 −3 −3 +6 +6 −6 −6 +2
1 6 1 2
−1
1 3
1 2 3 4 1
Refs: [1] Alur, La Torre, Pappas. Optimal Paths in Weighted Timed Automata (2001). [2] Behrmann et al. Minimum-cost reachability for priced timed automata (2001).
SLIDE 21 Timed automata with (linear) observers
Example
−3 +6 −6 +2 −1 x=1 x:=0 −3 −3 +6 +6 −6 −6 +2
1 6 1 2
−1
1 3
1 2 3 4 1
Refs: [1] Alur, La Torre, Pappas. Optimal Paths in Weighted Timed Automata (2001). [2] Behrmann et al. Minimum-cost reachability for priced timed automata (2001).
SLIDE 22
Outline of the talk
1
Introduction
2
Timed automata with observers
3
Resource-optimization problems Optimal reachabililty Weighted temporal logics Optimal strategies
4
Resource-management problems
5
Conclusions and perspectives
SLIDE 23
Outline of the talk
1
Introduction
2
Timed automata with observers
3
Resource-optimization problems Optimal reachabililty Weighted temporal logics Optimal strategies
4
Resource-management problems
5
Conclusions and perspectives
SLIDE 24 Optimal reachability
Example
˙ p=5 y=0 ˙ p=7 ˙ p=5
y:=0 x≥3 p+=1 p+=4 x≥3
SLIDE 25 Optimal reachability
Example
˙ p=5 y=0 ˙ p=7 ˙ p=5
y:=0 x≥3 p+=1 p+=4 x≥3
Minimal cost for reaching :
SLIDE 26 Optimal reachability
Example
˙ p=5 y=0 ˙ p=7 ˙ p=5
y:=0 x≥3 p+=1 p+=4 x≥3
Minimal cost for reaching : 5t + 7(3 − t) + 1
18 20 22 2
SLIDE 27 Optimal reachability
Example
˙ p=5 y=0 ˙ p=7 ˙ p=5
y:=0 x≥3 p+=1 p+=4 x≥3
Minimal cost for reaching : 5t + 7(3 − t) + 1 5t + 5(3 − t) + 4
18 20 22 2
SLIDE 28 Optimal reachability
Example
˙ p=5 y=0 ˙ p=7 ˙ p=5
y:=0 x≥3 p+=1 p+=4 x≥3
Minimal cost for reaching : min
5t + 7(3 − t) + 1
5t + 5(3 − t) + 4
20 22 2
SLIDE 29 Optimal reachability
Example
˙ p=5 y=0 ˙ p=7 ˙ p=5
y:=0 x≥3 p+=1 p+=4 x≥3
Minimal cost for reaching : inf
0≤t≤2 min
5t + 7(3 − t) + 1
5t + 5(3 − t) + 4
20 22 2
SLIDE 30 Optimal reachability
Example
˙ p=5 y=0 ˙ p=7 ˙ p=5
y:=0 x≥3 p+=1 p+=4 x≥3
Minimal cost for reaching : inf
0≤t≤2 min
5t + 7(3 − t) + 1
5t + 5(3 − t) + 4
18 20 22 2
SLIDE 31 Optimal reachability
Example
˙ p=5 y=0 ˙ p=7 ˙ p=5
y:=0 x≥3 p+=1 p+=4 x≥3
Minimal cost for reaching : inf
0≤t≤2 min
5t + 7(3 − t) + 1
5t + 5(3 − t) + 4
18 20 22 2
The optimal schedule consists in waiting 2 time units in ; going through .
SLIDE 32 Optimal reachability
Theorem
Optimal reachability in priced timed automata is PSPACE-complete.
Refs: [1] Alur, La Torre, Pappas. Optimal Paths in Weighted Timed Automata (2001). [2] Behrmann et al. Minimum-cost reachability for priced timed automata (2001). [3] Bouyer, Brihaye, Bruy` ere, Raskin. On the Optimal Reachability Problem on Weighted Timed Automata (2006).
SLIDE 33 Optimal reachability
Theorem
Optimal reachability in priced timed automata is PSPACE-complete. Proof. The region abstraction is not fine enough:
˙ p=3 ˙ p=3 ˙ p=3 ˙ p=5 x:=0 p+=2
Refs: [1] Alur, La Torre, Pappas. Optimal Paths in Weighted Timed Automata (2001). [2] Behrmann et al. Minimum-cost reachability for priced timed automata (2001). [3] Bouyer, Brihaye, Bruy` ere, Raskin. On the Optimal Reachability Problem on Weighted Timed Automata (2006).
SLIDE 34 Optimal reachability
Theorem
Optimal reachability in priced timed automata is PSPACE-complete. Proof. The idea is: “take transitions close to integer dates”;
Refs: [1] Alur, La Torre, Pappas. Optimal Paths in Weighted Timed Automata (2001). [2] Behrmann et al. Minimum-cost reachability for priced timed automata (2001). [3] Bouyer, Brihaye, Bruy` ere, Raskin. On the Optimal Reachability Problem on Weighted Timed Automata (2006).
SLIDE 35 Optimal reachability
Theorem
Optimal reachability in priced timed automata is PSPACE-complete. Proof. The idea is: “take transitions close to integer dates”; Corner-point abstraction: only consider corners of regions:
˙ p=3 ˙ p=3 ˙ p=3 ˙ p=3 ˙ p=5 x:=0 p+=2
Refs: [1] Alur, La Torre, Pappas. Optimal Paths in Weighted Timed Automata (2001). [2] Behrmann et al. Minimum-cost reachability for priced timed automata (2001). [3] Bouyer, Brihaye, Bruy` ere, Raskin. On the Optimal Reachability Problem on Weighted Timed Automata (2006).
SLIDE 36 Optimal reachability
Theorem
Optimal reachability in priced timed automata is PSPACE-complete. Proof. The idea is: “take transitions close to integer dates”; Corner-point abstraction: only consider corners of regions:
˙ p=3 ˙ p=3 ˙ p=3 ˙ p=3 ˙ p=5 p+=0 p+=3 p+=0 x:=0 p+=2
Refs: [1] Alur, La Torre, Pappas. Optimal Paths in Weighted Timed Automata (2001). [2] Behrmann et al. Minimum-cost reachability for priced timed automata (2001). [3] Bouyer, Brihaye, Bruy` ere, Raskin. On the Optimal Reachability Problem on Weighted Timed Automata (2006).
SLIDE 37 Optimal reachability
Theorem
Optimal reachability in priced timed automata is PSPACE-complete. Proof. The idea is: “take transitions close to integer dates”; Corner-point abstraction: only consider corners of regions:
˙ p=3 ˙ p=3 ˙ p=3 ˙ p=3 ˙ p=5 p+=0 p+=3 p+=0 x:=0 p+=2 ˙ p=3 ˙ p=3 ˙ p=3 ˙ p=5 p+=0 p+=0 x:=0 p+=2
Refs: [1] Alur, La Torre, Pappas. Optimal Paths in Weighted Timed Automata (2001). [2] Behrmann et al. Minimum-cost reachability for priced timed automata (2001). [3] Bouyer, Brihaye, Bruy` ere, Raskin. On the Optimal Reachability Problem on Weighted Timed Automata (2006).
SLIDE 38
Outline of the talk
1
Introduction
2
Timed automata with observers
3
Resource-optimization problems Optimal reachabililty Weighted temporal logics Optimal strategies
4
Resource-management problems
5
Conclusions and perspectives
SLIDE 39
Weighted temporal logic
Example
Decorate temporal modalities with constraints on cost:
SLIDE 40
Weighted temporal logic
Example
Decorate temporal modalities with constraints on cost:
1.4 3.4 0.2 1.3 1.2
| = U=5
SLIDE 41
Weighted temporal logic
Example
Decorate temporal modalities with constraints on cost:
1.4 3.4 0.2 1.3 1.2
| = U=5
SLIDE 42
Weighted temporal logic
Example
Decorate temporal modalities with constraints on cost:
1.4 3.4 0.2 1.3 1.2
| = U=5
Example
G(failure ⇒ F≤250 repaired)
SLIDE 43
Weighted temporal logic
Example
Decorate temporal modalities with constraints on cost:
1.4 3.4 0.2 1.3 1.2
| = U=5
Example
G(failure ⇒ F≤250 repaired) A G(failure ⇒ E Ftime≤5(repair ∧ A Fcost≤150 running))
SLIDE 44 Undecidability results
Theorem
WMTL model-checking is undecidable.
Refs: [1] Bouyer, M. Costs are Expensive! (2007).
SLIDE 45 Undecidability results
Theorem
WMTL model-checking is undecidable. Proof. encoding of a two-counter machine;
Refs: [1] Bouyer, M. Costs are Expensive! (2007).
SLIDE 46 Undecidability results
Theorem
WMTL model-checking is undecidable. Proof. encoding of a two-counter machine; Holds even for one clock and one cost variable.
Refs: [1] Bouyer, M. Costs are Expensive! (2007).
SLIDE 47 Undecidability results
Theorem
WMTL model-checking is undecidable. Proof. encoding of a two-counter machine; Holds even for one clock and one cost variable.
Theorem
WCTL model-checking is undecidable.
Refs: [1] Bouyer, Brihaye, M. Improved Undecidability Results on Weighted Timed Automata (2006). [2] Brihaye, Bruy` ere, Raskin. Model-Checking for Weighted Timed Automata (2004).
SLIDE 48 Undecidability results
Theorem
WMTL model-checking is undecidable. Proof. encoding of a two-counter machine; Holds even for one clock and one cost variable.
Theorem
WCTL model-checking is undecidable. Proof. encoding of a two-counter machine;
Refs: [1] Bouyer, Brihaye, M. Improved Undecidability Results on Weighted Timed Automata (2006). [2] Brihaye, Bruy` ere, Raskin. Model-Checking for Weighted Timed Automata (2004).
SLIDE 49 Undecidability results
Theorem
WMTL model-checking is undecidable. Proof. encoding of a two-counter machine; Holds even for one clock and one cost variable.
Theorem
WCTL model-checking is undecidable. Proof. encoding of a two-counter machine; requires three clocks.
Refs: [1] Bouyer, Brihaye, M. Improved Undecidability Results on Weighted Timed Automata (2006). [2] Brihaye, Bruy` ere, Raskin. Model-Checking for Weighted Timed Automata (2004).
SLIDE 50 Decidable subcases
Theorem
WCTL model-checking is PSPACE-complete on 1-clock weighted timed automata.
Refs: [1] Bouyer, Larsen, M. Model-Checking One-Clock Priced Timed Automata (2007).
SLIDE 51 Decidable subcases
Theorem
WCTL model-checking is PSPACE-complete on 1-clock weighted timed automata. Proof. region-based algorithm;
Refs: [1] Bouyer, Larsen, M. Model-Checking One-Clock Priced Timed Automata (2007).
SLIDE 52 Decidable subcases
Theorem
WCTL model-checking is PSPACE-complete on 1-clock weighted timed automata. Proof. region-based algorithm; but region are not fine enough:
˙ p=2 ˙ p=1 x=1 1
E F≤1
Refs: [1] Bouyer, Larsen, M. Model-Checking One-Clock Priced Timed Automata (2007).
SLIDE 53 Decidable subcases
Theorem
WCTL model-checking is PSPACE-complete on 1-clock weighted timed automata. Proof. region-based algorithm; but region are not fine enough:
˙ p=2 ˙ p=1 x=1 1
E F≤1
Refs: [1] Bouyer, Larsen, M. Model-Checking One-Clock Priced Timed Automata (2007).
SLIDE 54 Decidable subcases
Theorem
WCTL model-checking is PSPACE-complete on 1-clock weighted timed automata. Proof. region-based algorithm; but region are not fine enough:
˙ p=2 ˙ p=1 x=1 ˙ p=1 ˙ p=1 x=1 1
E[ ¬ (E F≤1 ) U≥1 ]
Refs: [1] Bouyer, Larsen, M. Model-Checking One-Clock Priced Timed Automata (2007).
SLIDE 55 Decidable subcases
Theorem
WCTL model-checking is PSPACE-complete on 1-clock weighted timed automata. Proof. region-based algorithm; but region are not fine enough:
˙ p=2 ˙ p=1 x=1 ˙ p=1 ˙ p=1 x=1 1
E[ ¬ (E F≤1 ) U≥1 ]
Refs: [1] Bouyer, Larsen, M. Model-Checking One-Clock Priced Timed Automata (2007).
SLIDE 56 Decidable subcases
Theorem
WCTL model-checking is PSPACE-complete on 1-clock weighted timed automata. Proof. region-based algorithm; but region are not fine enough: Refine regions: granularity 1/M|ϕ| is sufficient.
Refs: [1] Bouyer, Larsen, M. Model-Checking One-Clock Priced Timed Automata (2007).
SLIDE 57
Outline of the talk
1
Introduction
2
Timed automata with observers
3
Resource-optimization problems Optimal reachabililty Weighted temporal logics Optimal strategies
4
Resource-management problems
5
Conclusions and perspectives
SLIDE 58
Weighted timed games
Example
Timed games can also be extended with weights:
x≤1 x≤1 x<1 x≤1 x=1
SLIDE 59
Weighted timed games
Example
Timed games can also be extended with weights:
˙ p=2 ˙ p=5 ˙ p=0 ˙ p=3 x≤1 p+=4 x≤1 x<1 x≤1 x=1
SLIDE 60
Weighted timed games
Example
Timed games can also be extended with weights:
˙ p=2 ˙ p=5 ˙ p=0 ˙ p=3 x≤1 p+=4 x≤1 x<1 x≤1 x=1
A strategy for a player indicates which (action or delay) transition to play; A strategy is winning if all its outcomes are.
SLIDE 61 Optimal winning strategy
Example
˙ p=5 y=0 ˙ p=6 ˙ p=3
y:=0 x≥3 p+=1 p+=9 x≥3
SLIDE 62 Optimal winning strategy
Example
˙ p=5 y=0 ˙ p=6 ˙ p=3
y:=0 x≥3 p+=1 p+=9 x≥3
Minimal cost for reaching :
SLIDE 63 Optimal winning strategy
Example
˙ p=5 y=0 ˙ p=6 ˙ p=3
y:=0 x≥3 p+=1 p+=9 x≥3
Minimal cost for reaching : 5t + 6(3 − t) + 1
18 20
SLIDE 64 Optimal winning strategy
Example
˙ p=5 y=0 ˙ p=6 ˙ p=3
y:=0 x≥3 p+=1 p+=9 x≥3
Minimal cost for reaching : 5t + 6(3 − t) + 1 5t + 3(3 − t) + 9
18 20
SLIDE 65 Optimal winning strategy
Example
˙ p=5 y=0 ˙ p=6 ˙ p=3
y:=0 x≥3 p+=1 p+=9 x≥3
Minimal cost for reaching : max
5t + 6(3 − t) + 1
5t + 3(3 − t) + 9
20
SLIDE 66 Optimal winning strategy
Example
˙ p=5 y=0 ˙ p=6 ˙ p=3
y:=0 x≥3 p+=1 p+=9 x≥3
Minimal cost for reaching : inf
0≤t≤2 max
5t + 6(3 − t) + 1
5t + 3(3 − t) + 9
20
SLIDE 67 Optimal winning strategy
Example
˙ p=5 y=0 ˙ p=6 ˙ p=3
y:=0 x≥3 p+=1 p+=9 x≥3
Minimal cost for reaching : inf
0≤t≤2 max
5t + 6(3 − t) + 1
5t + 3(3 − t) + 9
18 20
SLIDE 68 Optimal winning strategy
Example
˙ p=5 y=0 ˙ p=6 ˙ p=3
y:=0 x≥3 p+=1 p+=9 x≥3
Minimal cost for reaching : inf
0≤t≤2 max
5t + 6(3 − t) + 1
5t + 3(3 − t) + 9
which is achieved with t = 1/3
18 20
SLIDE 69 Optimal winning strategy
Example
˙ p=5 y=0 ˙ p=6 ˙ p=3
y:=0 x≥3 p+=1 p+=9 x≥3
Minimal cost for reaching : inf
0≤t≤2 max
5t + 6(3 − t) + 1
5t + 3(3 − t) + 9
which is achieved with t = 1/3
18 20
Corollary
Regions are not sufficient for solving priced timed games.
SLIDE 70 Computing optimal winning strategies is undecidable
Theorem
Computing optimal strategies in priced timed games is undecidable.
Refs: [1] Bouyer, Brihaye, M. Improved Undecidability Results on Weighted Timed Automata (2006).
SLIDE 71 Computing optimal winning strategies is undecidable
Theorem
Computing optimal strategies in priced timed games is undecidable. Proof. The proof relies on simple modules that will allow encoding a two-counter machine:
Refs: [1] Bouyer, Brihaye, M. Improved Undecidability Results on Weighted Timed Automata (2006).
SLIDE 72 Computing optimal winning strategies is undecidable
Theorem
Computing optimal strategies in priced timed games is undecidable. Proof. The proof relies on simple modules that will allow encoding a two-counter machine: Adding the value of clock x to the cost:
Add+(x) ˙ p=0 ˙ p=1 z=0 x=1 x:=0 z=1 z:=0 y=1, y:=0 y=1, y:=0
Refs: [1] Bouyer, Brihaye, M. Improved Undecidability Results on Weighted Timed Automata (2006).
SLIDE 73 Computing optimal winning strategies is undecidable
Theorem
Computing optimal strategies in priced timed games is undecidable. Proof. The proof relies on simple modules that will allow encoding a two-counter machine: Adding the value of clock x to the cost: Adding 1 − x to the cost:
Add−(x) ˙ p=1 ˙ p=0 z=0 x=1 x:=0 z=1 z:=0 y=1, y:=0 y=1, y:=0
Refs: [1] Bouyer, Brihaye, M. Improved Undecidability Results on Weighted Timed Automata (2006).
SLIDE 74 Computing optimal winning strategies is undecidable
Theorem
Computing optimal strategies in priced timed games is undecidable. Proof. The proof relies on simple modules that will allow encoding a two-counter machine: Checking that y = 2x:
Test(y=2x) ˙ p=0 Add+(x) Add+(x) Add−(y) ˙ p=0 Add−(x) Add−(x) Add+(y) z=0 z=0 z=0 p+=2 p+=1
Refs: [1] Bouyer, Brihaye, M. Improved Undecidability Results on Weighted Timed Automata (2006).
SLIDE 75 Computing optimal winning strategies is undecidable
Theorem
Computing optimal strategies in priced timed games is undecidable. Proof. The proof relies on simple modules that will allow encoding a two-counter machine: Checking that y = 2x:
Test(y=2x) ˙ p=0 Add+(x) Add+(x) Add−(y) ˙ p=0 Add−(x) Add−(x) Add+(y) z=0 z=0 z=0 p+=2 p+=1 cost=3+(2x−y) cost=3+(y−2x)
Refs: [1] Bouyer, Brihaye, M. Improved Undecidability Results on Weighted Timed Automata (2006).
SLIDE 76 Computing optimal winning strategies is undecidable
Theorem
Computing optimal strategies in priced timed games is undecidable. Proof. The proof relies on simple modules that will allow encoding a two-counter machine: Checking that y = 2x: Dividing clock x by 2:
Divide2(x) ˙ p=0 ˙ p=0 ˙ p=0 ˙ p=0 Test(x=2y) z=0 x=1 x:=0 y:=0 z=1 z:=0 z=0 z=0
Refs: [1] Bouyer, Brihaye, M. Improved Undecidability Results on Weighted Timed Automata (2006).
SLIDE 77 Computing optimal winning strategies is undecidable
Theorem
Computing optimal strategies in priced timed games is undecidable. Proof. The proof relies on simple modules that will allow encoding a two-counter machine: encode counter c1 as x1 = 2−c1 and counter c2 as x2 = 3−c1; by cleverly juggling with clocks, we can achieve this encoding with three clocks.
Refs: [1] Bouyer, Brihaye, M. Improved Undecidability Results on Weighted Timed Automata (2006).
SLIDE 78 Turn-based 1-clock priced timed games are decidable
Example
Optimal strategies do not always exist:
˙ p=2 ˙ p=1
x=0
SLIDE 79 Turn-based 1-clock priced timed games are decidable
Example
Optimal strategies do not always exist:
˙ p=2 ˙ p=1
x=0
Optimal strategies may require memory:
˙ p=2 ˙ p=1
x=1 x>0
SLIDE 80 Turn-based 1-clock priced timed games are decidable
Theorem
Turn-based 1-clock priced timed games always admit ε-optimal winning strategies, and such strategies can be computed.
Refs: [1] Bouyer, Cassez, Fleury, Larsen. Optimal Strategies in Priced Timed Game Automata (2004). [2] Bouyer, Larsen, M., Rasmussen. Almost Optimal Strategies in One-Clock Priced Timed Automata (2006).
SLIDE 81 Turn-based 1-clock priced timed games are decidable
Theorem
Turn-based 1-clock priced timed games always admit ε-optimal winning strategies, and such strategies can be computed. Proof.
˙ p=1 ˙ p=1 ˙ p=5 ˙ p=3
Refs: [1] Bouyer, Cassez, Fleury, Larsen. Optimal Strategies in Priced Timed Game Automata (2004). [2] Bouyer, Larsen, M., Rasmussen. Almost Optimal Strategies in One-Clock Priced Timed Automata (2006).
SLIDE 82 Turn-based 1-clock priced timed games are decidable
Theorem
Turn-based 1-clock priced timed games always admit ε-optimal winning strategies, and such strategies can be computed. Proof.
˙ p=1 ˙ p=1 ˙ p=5 ˙ p=3
Refs: [1] Bouyer, Cassez, Fleury, Larsen. Optimal Strategies in Priced Timed Game Automata (2004). [2] Bouyer, Larsen, M., Rasmussen. Almost Optimal Strategies in One-Clock Priced Timed Automata (2006).
SLIDE 83 Turn-based 1-clock priced timed games are decidable
Theorem
Turn-based 1-clock priced timed games always admit ε-optimal winning strategies, and such strategies can be computed. Proof.
˙ p=1 ˙ p=1 ˙ p=5 ˙ p=3
Refs: [1] Bouyer, Cassez, Fleury, Larsen. Optimal Strategies in Priced Timed Game Automata (2004). [2] Bouyer, Larsen, M., Rasmussen. Almost Optimal Strategies in One-Clock Priced Timed Automata (2006).
SLIDE 84 Turn-based 1-clock priced timed games are decidable
Theorem
Turn-based 1-clock priced timed games always admit ε-optimal winning strategies, and such strategies can be computed. Proof.
˙ p=1 ˙ p=1 ˙ p=5 ˙ p=3
Refs: [1] Bouyer, Cassez, Fleury, Larsen. Optimal Strategies in Priced Timed Game Automata (2004). [2] Bouyer, Larsen, M., Rasmussen. Almost Optimal Strategies in One-Clock Priced Timed Automata (2006).
SLIDE 85 Turn-based 1-clock priced timed games are decidable
Theorem
Turn-based 1-clock priced timed games always admit ε-optimal winning strategies, and such strategies can be computed. Proof.
˙ p=1 ˙ p=1 ˙ p=5 ˙ p=3
Refs: [1] Bouyer, Cassez, Fleury, Larsen. Optimal Strategies in Priced Timed Game Automata (2004). [2] Bouyer, Larsen, M., Rasmussen. Almost Optimal Strategies in One-Clock Priced Timed Automata (2006).
SLIDE 86 Turn-based 1-clock priced timed games are decidable
Theorem
Turn-based 1-clock priced timed games always admit ε-optimal winning strategies, and such strategies can be computed. Proof.
˙ p=1 ˙ p=1 ˙ p=5 ˙ p=3
Refs: [1] Bouyer, Cassez, Fleury, Larsen. Optimal Strategies in Priced Timed Game Automata (2004). [2] Bouyer, Larsen, M., Rasmussen. Almost Optimal Strategies in One-Clock Priced Timed Automata (2006).
SLIDE 87 Turn-based 1-clock priced timed games are decidable
Theorem
Turn-based 1-clock priced timed games always admit ε-optimal winning strategies, and such strategies can be computed. Proof.
˙ p=1 ˙ p=1 ˙ p=5 ˙ p=3
Refs: [1] Bouyer, Cassez, Fleury, Larsen. Optimal Strategies in Priced Timed Game Automata (2004). [2] Bouyer, Larsen, M., Rasmussen. Almost Optimal Strategies in One-Clock Priced Timed Automata (2006).
SLIDE 88 Turn-based 1-clock priced timed games are decidable
Theorem
Turn-based 1-clock priced timed games always admit ε-optimal winning strategies, and such strategies can be computed. Proof.
˙ p=1 ˙ p=1 ˙ p=5 ˙ p=3
Refs: [1] Bouyer, Cassez, Fleury, Larsen. Optimal Strategies in Priced Timed Game Automata (2004). [2] Bouyer, Larsen, M., Rasmussen. Almost Optimal Strategies in One-Clock Priced Timed Automata (2006).
SLIDE 89 Turn-based 1-clock priced timed games are decidable
Theorem
Turn-based 1-clock priced timed games always admit ε-optimal winning strategies, and such strategies can be computed. Proof.
˙ p=1 ˙ p=1 ˙ p=5 ˙ p=3
Refs: [1] Bouyer, Cassez, Fleury, Larsen. Optimal Strategies in Priced Timed Game Automata (2004). [2] Bouyer, Larsen, M., Rasmussen. Almost Optimal Strategies in One-Clock Priced Timed Automata (2006).
SLIDE 90 Turn-based 1-clock priced timed games are decidable
Theorem
Turn-based 1-clock priced timed games always admit ε-optimal winning strategies, and such strategies can be computed. Proof.
˙ p=1 ˙ p=1 ˙ p=5 ˙ p=3
Refs: [1] Bouyer, Cassez, Fleury, Larsen. Optimal Strategies in Priced Timed Game Automata (2004). [2] Bouyer, Larsen, M., Rasmussen. Almost Optimal Strategies in One-Clock Priced Timed Automata (2006).
SLIDE 91 Turn-based 1-clock priced timed games are decidable
Theorem
Turn-based 1-clock priced timed games always admit ε-optimal winning strategies, and such strategies can be computed. Proof.
˙ p=1 ˙ p=1 ˙ p=5 ˙ p=3
Refs: [1] Bouyer, Cassez, Fleury, Larsen. Optimal Strategies in Priced Timed Game Automata (2004). [2] Bouyer, Larsen, M., Rasmussen. Almost Optimal Strategies in One-Clock Priced Timed Automata (2006).
SLIDE 92 Turn-based 1-clock priced timed games are decidable
Theorem
Turn-based 1-clock priced timed games always admit ε-optimal winning strategies, and such strategies can be computed. Proof.
˙ p=1 ˙ p=1 ˙ p=5 ˙ p=3
Refs: [1] Bouyer, Cassez, Fleury, Larsen. Optimal Strategies in Priced Timed Game Automata (2004). [2] Bouyer, Larsen, M., Rasmussen. Almost Optimal Strategies in One-Clock Priced Timed Automata (2006).
SLIDE 93 Turn-based 1-clock priced timed games are decidable
Theorem
Turn-based 1-clock priced timed games always admit ε-optimal winning strategies, and such strategies can be computed. Proof.
˙ p=1 ˙ p=1 ˙ p=5 ˙ p=3
Refs: [1] Bouyer, Cassez, Fleury, Larsen. Optimal Strategies in Priced Timed Game Automata (2004). [2] Bouyer, Larsen, M., Rasmussen. Almost Optimal Strategies in One-Clock Priced Timed Automata (2006).
SLIDE 94 Turn-based 1-clock priced timed games are decidable
Theorem
Turn-based 1-clock priced timed games always admit ε-optimal winning strategies, and such strategies can be computed. Proof.
˙ p=1 ˙ p=1 ˙ p=5 ˙ p=3
Refs: [1] Bouyer, Cassez, Fleury, Larsen. Optimal Strategies in Priced Timed Game Automata (2004). [2] Bouyer, Larsen, M., Rasmussen. Almost Optimal Strategies in One-Clock Priced Timed Automata (2006).
SLIDE 95 Turn-based 1-clock priced timed games are decidable
Theorem
Turn-based 1-clock priced timed games always admit ε-optimal winning strategies, and such strategies can be computed. Proof.
˙ p=1 ˙ p=1 ˙ p=5 ˙ p=3
Refs: [1] Bouyer, Cassez, Fleury, Larsen. Optimal Strategies in Priced Timed Game Automata (2004). [2] Bouyer, Larsen, M., Rasmussen. Almost Optimal Strategies in One-Clock Priced Timed Automata (2006).
SLIDE 96 Turn-based 1-clock priced timed games are decidable
Theorem
Turn-based 1-clock priced timed games always admit ε-optimal winning strategies, and such strategies can be computed. Proof. The procedure terminates; There is a positive granularity for with the region abstraction is correct; The optimal cost functions are piecewise affine, continuous, decreasing functions. Their slopes are rates of the automaton.
Refs: [1] Bouyer, Cassez, Fleury, Larsen. Optimal Strategies in Priced Timed Game Automata (2004). [2] Bouyer, Larsen, M., Rasmussen. Almost Optimal Strategies in One-Clock Priced Timed Automata (2006).
SLIDE 97
Outline of the talk
1
Introduction
2
Timed automata with observers
3
Resource-optimization problems Optimal reachabililty Weighted temporal logics Optimal strategies
4
Resource-management problems
5
Conclusions and perspectives
SLIDE 98 Managing resources
Example
In some cases, resources can both be consumed and regained. The aim is then to keep the level
- f resources within given bounds.
Vmax Vmin
SLIDE 99
Managing resources
Example
−3 ℓ0 +6 ℓ1 −6 ℓ2
x=1 x:=0
SLIDE 100 Managing resources
Example
−3 ℓ0 +6 ℓ1 −6 ℓ2
x=1 x:=0 1 2 3 4 1
Three variants of the problem:
1 lower bound: the aim is to maintain the level of resources
above a given bound.
SLIDE 101 Managing resources
Example
−3 ℓ0 +6 ℓ1 −6 ℓ2
x=1 x:=0 1 2 3 4 1
Three variants of the problem:
1 lower bound: the aim is to maintain the level of resources
above a given bound.
SLIDE 102 Managing resources
Example
−3 ℓ0 +6 ℓ1 −6 ℓ2
x=1 x:=0 1 2 3 4 1
Three variants of the problem:
1 lower bound: the aim is to maintain the level of resources
above a given bound.
SLIDE 103 Managing resources
Example
−3 ℓ0 +6 ℓ1 −6 ℓ2
x=1 x:=0 1 2 3 4 1
Three variants of the problem:
1 lower bound: the aim is to maintain the level of resources
above a given bound.
SLIDE 104 Managing resources
Example
−3 ℓ0 +6 ℓ1 −6 ℓ2
x=1 x:=0 1 2 3 4 1
Three variants of the problem:
1 lower bound: the aim is to maintain the level of resources
above a given bound.
2 interval: the aim is to keep the level of resources within an
interval.
SLIDE 105 Managing resources
Example
−3 ℓ0 +6 ℓ1 −6 ℓ2
x=1 x:=0 1 2 3 4 1
Three variants of the problem:
1 lower bound: the aim is to maintain the level of resources
above a given bound.
2 interval: the aim is to keep the level of resources within an
interval.
SLIDE 106 Managing resources
Example
−3 ℓ0 +6 ℓ1 −6 ℓ2
x=1 x:=0 1 2 3 4 1
Three variants of the problem:
1 lower bound: the aim is to maintain the level of resources
above a given bound.
2 interval: the aim is to keep the level of resources within an
interval.
SLIDE 107 Managing resources
Example
−3 ℓ0 +6 ℓ1 −6 ℓ2
x=1 x:=0 1 2 3 4 1
Three variants of the problem:
1 lower bound: the aim is to maintain the level of resources
above a given bound.
2 interval: the aim is to keep the level of resources within an
interval.
SLIDE 108 Managing resources
Example
−3 ℓ0 +6 ℓ1 −6 ℓ2
x=1 x:=0 1 2 3 4 1
Three variants of the problem:
1 lower bound: the aim is to maintain the level of resources
above a given bound.
2 interval: the aim is to keep the level of resources within an
interval.
SLIDE 109 Managing resources
Example
−3 ℓ0 +6 ℓ1 −6 ℓ2
x=1 x:=0 1 2 3 4 1
Three variants of the problem:
1 lower bound: the aim is to maintain the level of resources
above a given bound.
2 interval: the aim is to keep the level of resources within an
interval.
3 lower bound with finite capacity: the aim is to keep the level
- f resources above a given lower bound, but with a finite
capacity.
SLIDE 110 Managing resources
Example
−3 ℓ0 +6 ℓ1 −6 ℓ2
x=1 x:=0 1 2 3 4 1
Three variants of the problem:
1 lower bound: the aim is to maintain the level of resources
above a given bound.
2 interval: the aim is to keep the level of resources within an
interval.
3 lower bound with finite capacity: the aim is to keep the level
- f resources above a given lower bound, but with a finite
capacity.
SLIDE 111 Managing resources
Example
−3 ℓ0 +6 ℓ1 −6 ℓ2
x=1 x:=0 1 2 3 4 1
Three variants of the problem:
1 lower bound: the aim is to maintain the level of resources
above a given bound.
2 interval: the aim is to keep the level of resources within an
interval.
3 lower bound with finite capacity: the aim is to keep the level
- f resources above a given lower bound, but with a finite
capacity.
SLIDE 112 Managing resources
Example
−3 ℓ0 +6 ℓ1 −6 ℓ2
x=1 x:=0 1 2 3 4 1
Three variants of the problem:
1 lower bound: the aim is to maintain the level of resources
above a given bound.
2 interval: the aim is to keep the level of resources within an
interval.
3 lower bound with finite capacity: the aim is to keep the level
- f resources above a given lower bound, but with a finite
capacity.
SLIDE 113 Results in the untimed case
Theorem
In the untimed case, the following results hold: Lower bound Lower bound, finite capacity Interval existential problem universal problem games ∈ PTIME ∈ PTIME ∈ UP ∩ coUP PTIME-hard ∈ PTIME ∈ PTIME ∈ NP PTIME-hard ∈ PSPACE NP-hard ∈ PTIME EXPTIME-c.
Refs: [1] Bouyer, Fahrenberg, Larsen, M., Srba. Infinite Runs in Weighted Timed Automata with Energy Constraints (2008).
SLIDE 114 Results in the 1-clock case
Theorem
In the 1-clock case, the existence of an infinite run with resource level above a given lower bound is decidable in EXPTIME.
Refs: [1] Bouyer, Fahrenberg, Larsen, M. Timed Automata with Observers under Energy Constraints (2010).
SLIDE 115 Results in the 1-clock case
Theorem
In the 1-clock case, the existence of an infinite run with resource level above a given lower bound is decidable in EXPTIME. Proof. Corner-point abstraction:
−3 +6 −6 x>0 x=1 x:=0
Refs: [1] Bouyer, Fahrenberg, Larsen, M. Timed Automata with Observers under Energy Constraints (2010).
SLIDE 116 Results in the 1-clock case
Theorem
In the 1-clock case, the existence of an infinite run with resource level above a given lower bound is decidable in EXPTIME. Proof. Corner-point abstraction:
−3 +6 −6 x>0 x=1 x:=0
({0},0) ({0},0) ({0},0) ((0,1),0) ((0,1),0) ((0,1),0) ((0,1),1) ((0,1),1) ((0,1),1) ({1},1) ({1},1) ({1},1)
−3 +6 −6
Refs: [1] Bouyer, Fahrenberg, Larsen, M. Timed Automata with Observers under Energy Constraints (2010).
SLIDE 117 Results in the 1-clock case
Theorem
In the 1-clock case, the existence of an infinite run with resource level above a given lower bound is decidable in EXPTIME. Proof. Corner-point abstraction: Only correct if no discrete costs!
Refs: [1] Bouyer, Fahrenberg, Larsen, M. Timed Automata with Observers under Energy Constraints (2010).
SLIDE 118 Results in the 1-clock case
Theorem
In the 1-clock case, the existence of an infinite run with resource level above a given lower bound is decidable in EXPTIME. Proof. Corner-point abstraction: Only correct if no discrete costs!
+2 +4 −3 x=1,x:=0 +2 1 2 3 4 1 2 3 4 1 2 3 4 1 2 3 4
Refs: [1] Bouyer, Fahrenberg, Larsen, M. Timed Automata with Observers under Energy Constraints (2010).
SLIDE 119 Results in the 1-clock case
Theorem
In the 1-clock case, the existence of an infinite run with resource level above a given lower bound is decidable in EXPTIME. Proof. Corner-point abstraction: Only correct if no discrete costs! In the presence of discrete costs:
Refs: [1] Bouyer, Fahrenberg, Larsen, M. Timed Automata with Observers under Energy Constraints (2010).
SLIDE 120 Results in the 1-clock case
Theorem
In the 1-clock case, the existence of an infinite run with resource level above a given lower bound is decidable in EXPTIME. Proof. Corner-point abstraction: Only correct if no discrete costs! In the presence of discrete costs:
compute optimal final resource-level along a non-resetting path;
3
c=0
4 −1 6 −3 8 −1 1
c=1 α β γ δ win wout 1 2 3 4 5 6 2 4 6 8 10
Refs: [1] Bouyer, Fahrenberg, Larsen, M. Timed Automata with Observers under Energy Constraints (2010).
SLIDE 121 Results in the 1-clock case
Theorem
In the 1-clock case, the existence of an infinite run with resource level above a given lower bound is decidable in EXPTIME. Proof. Corner-point abstraction: Only correct if no discrete costs! In the presence of discrete costs:
compute optimal final resource-level along a non-resetting path; compose the resulting functions for general paths.
3
c=0
4 −1 6 −3 8 −1 1
c=1 α β γ δ win wout 1 2 3 4 5 6 2 4 6 8 10
Refs: [1] Bouyer, Fahrenberg, Larsen, M. Timed Automata with Observers under Energy Constraints (2010).
SLIDE 122 Results in the 1-clock case
Theorem
In the 1-clock case, the existence of a strategy for maintaining the resource level within a given interval is undecidable.
Refs: [1] Bouyer, Fahrenberg, Larsen, M., Srba. Infinite Runs in Weighted Timed Automata with Energy Constraints (2008).
SLIDE 123 Results in the 1-clock case
Theorem
In the 1-clock case, the existence of a strategy for maintaining the resource level within a given interval is undecidable. Proof. Encoding of a two-counter machine: both counters are stored in one cost, as ℓ = 5 − 2−c1 · 3−c2.
Refs: [1] Bouyer, Fahrenberg, Larsen, M., Srba. Infinite Runs in Weighted Timed Automata with Energy Constraints (2008).
SLIDE 124 Results in the 1-clock case
Theorem
In the 1-clock case, the existence of a strategy for maintaining the resource level within a given interval is undecidable. Proof. Encoding of a two-counter machine: both counters are stored in one cost, as ℓ = 5 − 2−c1 · 3−c2. The following module is used to increment and decrement:
−6 m −6 m1 5
module ok
30 m2 30 m3 −5
module ok
−n m′ x:=0 x:=0 x=1 x=1 x:=0 x=1
Refs: [1] Bouyer, Fahrenberg, Larsen, M., Srba. Infinite Runs in Weighted Timed Automata with Energy Constraints (2008).
SLIDE 125 Results in the 1-clock case
Theorem
In the 1-clock case, the existence of a strategy for maintaining the resource level within a given interval is undecidable. Proof. Encoding of a two-counter machine: both counters are stored in one cost, as ℓ = 5 − 2−c1 · 3−c2. The following module is used to increment and decrement:
−6 m −6 m1 5
module ok
30 m2 30 m3 −5
module ok
−n m′ x:=0 x:=0 x=1 x=1 x:=0 x=1
Initial level
5−e
Final level
5− ne
6 Refs: [1] Bouyer, Fahrenberg, Larsen, M., Srba. Infinite Runs in Weighted Timed Automata with Energy Constraints (2008).
SLIDE 126
Outline of the talk
1
Introduction
2
Timed automata with observers
3
Resource-optimization problems Optimal reachabililty Weighted temporal logics Optimal strategies
4
Resource-management problems
5
Conclusions and perspectives
SLIDE 127
Conclusions and perspectives
Weighted timed automata are a powerful formalism for modeling resources:
expressive enough for many applications; several problems remain decidable; some algorithms can be made symbolic and are implemented in Uppaal CORA.
SLIDE 128 Conclusions and perspectives
Weighted timed automata are a powerful formalism for modeling resources:
expressive enough for many applications; several problems remain decidable; some algorithms can be made symbolic and are implemented in Uppaal CORA.
Many open problems:
energy constraints for automata with several clocks; timed automata with observers having richer dynamics.
−3 +6 −6 +2 −1 x=1 x:=0
dp dt =2×p
1 2 3 4 1
SLIDE 129 Conclusions and perspectives
Weighted timed automata are a powerful formalism for modeling resources:
expressive enough for many applications; several problems remain decidable; some algorithms can be made symbolic and are implemented in Uppaal CORA.
Many open problems:
energy constraints for automata with several clocks; timed automata with observers having richer dynamics.
−3 +6 −6 +2 −1 x=1 x:=0
dp dt =2×p
1 2 3 4 1