robustness issues in timed models
play

Robustness issues in timed models Nicolas Markey LSV, CNRS & - PowerPoint PPT Presentation

Robustness issues in timed models Nicolas Markey LSV, CNRS & ENS Cachan, France (based on joint works with Patricia Bouyer, Erwin Fang, Pierre-Alain Reynier, Ocan Sankur) (also starring Martin De Wulf, Laurent Doyen, Jean-Fran cois


  1. From models to implementations the continuous-time semantics is a mathematical idealization it assumes zero-delay transitions; it assumes infinite precision of the clocks; it assumes immediate communication between systems. Example (Strict timing constraints) r :=0 r :=0 P id r ==0 r = id x id :=0 x id :=0 x id :=0 x id > 2 x id ≤ 2 r := id When P 1 and P 2 run in parallel (sharing variable r ), the state where both of them are in is not reachable. This property is lost when x id > 2 is replaced with x id ≥ 2.

  2. From models to implementations the continuous-time semantics is a mathematical idealization it assumes zero-delay transitions; it assumes infinite precision of the clocks; it assumes immediate communication between systems. Parametrized semantics parametrized discrete-time semantics: Does there exists a time step δ ( sampling rate ) under which the system behaves correctly?

  3. From models to implementations the continuous-time semantics is a mathematical idealization it assumes zero-delay transitions; it assumes infinite precision of the clocks; it assumes immediate communication between systems. Parametrized semantics parametrized discrete-time semantics: Does there exists a time step δ ( sampling rate ) under which the system behaves correctly? reachability is undecidable [CHR02] � untimed-language inclusion is decidable [AKY10] �

  4. From models to implementations the continuous-time semantics is a mathematical idealization it assumes zero-delay transitions; it assumes infinite precision of the clocks; it assumes immediate communication between systems. Parametrized semantics parametrized discrete-time semantics: Does there exists a time step δ ( sampling rate ) under which the system behaves correctly? reachability is undecidable [CHR02] � untimed-language inclusion is decidable [AKY10] � parametrized continuous-time semantics: Does the system behave correctly under continuous- time semantics with imprecisions up to some δ ?

  5. Outline of the talk Discrete time vs. dense time 1 From models to implementations 2 Checking robust safety 3 Enlarging clock constraints Shrinking clock constraints Checking robust controllability 4 Parametrized perturbations Permissive strategies Conclusions and future works 5

  6. Enlarged semantics for timed automata a transition can be taken at any time in [ t − δ ; t + δ ] .

  7. Enlarged semantics for timed automata a transition can be taken at any time in [ t − δ ; t + δ ] . Example y 3 2 1 x 0 1 2 3 x ≤ 2 , x :=0 x =0 ∧ y ≥ 2 x =1 y :=0 y ≥ 2 , y :=0

  8. Enlarged semantics for timed automata a transition can be taken at any time in [ t − δ ; t + δ ] . Example y y 3 3 2 2 1 1 x x 0 1 2 3 0 1 2 3 x ≤ 2+ δ, x :=0 x ∈ [1 − δ, 1+ δ ] x ≤ δ ∧ y ≥ 2 − δ y :=0 y ≥ 2 − δ, y :=0

  9. Enlarged semantics for timed automata a transition can be taken at any time in [ t − δ ; t + δ ] . Example y y 3 3 2 2 1 1 x x 0 1 2 3 0 1 2 3 x ≤ 2+ δ, x :=0 x ∈ [1 − δ, 1+ δ ] x ≤ δ ∧ y ≥ 2 − δ y :=0 y ≥ 2 − δ, y :=0

  10. Enlarged semantics for timed automata a transition can be taken at any time in [ t − δ ; t + δ ] . Example y y 3 3 2 2 1 1 x x 0 1 2 3 0 1 2 3 x ≤ 2+ δ, x :=0 x ∈ [1 − δ, 1+ δ ] x ≤ δ ∧ y ≥ 2 − δ y :=0 y ≥ 2 − δ, y :=0

  11. Enlarged semantics for timed automata a transition can be taken at any time in [ t − δ ; t + δ ] . Example y y 3 3 2 2 1 1 x x 0 1 2 3 0 1 2 3 x ≤ 2+ δ, x :=0 x ∈ [1 − δ, 1+ δ ] x ≤ δ ∧ y ≥ 2 − δ y :=0 y ≥ 2 − δ, y :=0

  12. Enlarged semantics for timed automata a transition can be taken at any time in [ t − δ ; t + δ ] . Example y y 3 3 2 2 1 1 x x 0 1 2 3 0 1 2 3 x ≤ 2+ δ, x :=0 x ∈ [1 − δ, 1+ δ ] x ≤ δ ∧ y ≥ 2 − δ y :=0 y ≥ 2 − δ, y :=0

  13. Enlarged semantics for timed automata a transition can be taken at any time in [ t − δ ; t + δ ] . Example y y 3 3 2 2 1 1 x x 0 1 2 3 0 1 2 3 x ≤ 2+ δ, x :=0 x ∈ [1 − δ, 1+ δ ] x ≤ δ ∧ y ≥ 2 − δ y :=0 y ≥ 2 − δ, y :=0

  14. Enlarged semantics for timed automata a transition can be taken at any time in [ t − δ ; t + δ ] . Example y y 3 3 2 2 1 1 x x 0 1 2 3 0 1 2 3 x ≤ 2+ δ, x :=0 x ∈ [1 − δ, 1+ δ ] x ≤ δ ∧ y ≥ 2 − δ y :=0 y ≥ 2 − δ, y :=0

  15. Enlarged semantics for timed automata a transition can be taken at any time in [ t − δ ; t + δ ] . Example y y 3 3 2 2 1 1 x x 0 1 2 3 0 1 2 3 x ≤ 2+ δ, x :=0 x ∈ [1 − δ, 1+ δ ] x ≤ δ ∧ y ≥ 2 − δ y :=0 y ≥ 2 − δ, y :=0

  16. Enlarged semantics for timed automata a transition can be taken at any time in [ t − δ ; t + δ ] . Example y y 3 3 2 2 1 1 x x 0 1 2 3 0 1 2 3 x ≤ 2+ δ, x :=0 x ∈ [1 − δ, 1+ δ ] x ≤ δ ∧ y ≥ 2 − δ y :=0 y ≥ 2 − δ, y :=0

  17. Enlarged semantics for timed automata a transition can be taken at any time in [ t − δ ; t + δ ] . Example y y 3 3 2 2 1 1 x x 0 1 2 3 0 1 2 3 x ≤ 2+ δ, x :=0 x ∈ [1 − δ, 1+ δ ] x ≤ δ ∧ y ≥ 2 − δ y :=0 y ≥ 2 − δ, y :=0

  18. Enlarged semantics for timed automata a transition can be taken at any time in [ t − δ ; t + δ ] . Example y y 3 3 2 2 1 1 x x 0 1 2 3 0 1 2 3 x ≤ 2+ δ, x :=0 x ∈ [1 − δ, 1+ δ ] x ≤ δ ∧ y ≥ 2 − δ y :=0 y ≥ 2 − δ, y :=0

  19. Enlarged semantics for timed automata a transition can be taken at any time in [ t − δ ; t + δ ] . Example y y 3 3 2 2 1 1 x x 0 1 2 3 0 1 2 3 x ≤ 2+ δ, x :=0 x ∈ [1 − δ, 1+ δ ] x ≤ δ ∧ y ≥ 2 − δ y :=0 y ≥ 2 − δ, y :=0

  20. Enlarged semantics for timed automata a transition can be taken at any time in [ t − δ ; t + δ ] . Example y y 3 3 2 2 1 1 x x 0 1 2 3 0 1 2 3 Theorem ([Pur98,DDMR04]) Parametrized robust safety is decidable.

  21. Extended region automaton For any location ℓ and any two regions r and r ′ , if r ∩ r ′ � = ∅ and ( ℓ, r ′ ) belongs to an SCC of R ( A ), γ → ( ℓ, r ′ ). then we add a transition ( ℓ, r ) − y 3 2 1 x 0 1 2 3

  22. Extended region automaton For any location ℓ and any two regions r and r ′ , if r ∩ r ′ � = ∅ and ( ℓ, r ′ ) belongs to an SCC of R ( A ), γ → ( ℓ, r ′ ). then we add a transition ( ℓ, r ) − y 3 2 1 x 0 1 2 3

  23. Extended region automaton For any location ℓ and any two regions r and r ′ , if r ∩ r ′ � = ∅ and ( ℓ, r ′ ) belongs to an SCC of R ( A ), γ → ( ℓ, r ′ ). then we add a transition ( ℓ, r ) − y 3 2 1 x 0 1 2 3

  24. Extended region automaton For any location ℓ and any two regions r and r ′ , if r ∩ r ′ � = ∅ and ( ℓ, r ′ ) belongs to an SCC of R ( A ), γ → ( ℓ, r ′ ). then we add a transition ( ℓ, r ) − y 3 2 γ 1 x 0 1 2 3

  25. Extended region automaton For any location ℓ and any two regions r and r ′ , if r ∩ r ′ � = ∅ and ( ℓ, r ′ ) belongs to an SCC of R ( A ), γ → ( ℓ, r ′ ). then we add a transition ( ℓ, r ) − y 3 2 γ 1 x 0 1 2 3

  26. Extended region automaton For any location ℓ and any two regions r and r ′ , if r ∩ r ′ � = ∅ and ( ℓ, r ′ ) belongs to an SCC of R ( A ), γ → ( ℓ, r ′ ). then we add a transition ( ℓ, r ) − y 3 2 γ 1 x 0 1 2 3

  27. Shrinking timing constraints Counteracting guard enlargement Shrinking turns constraints [ a , b ] into [ a + δ, b − δ ] . In particular, punctual constraints become empty.

  28. Shrinking timing constraints Counteracting guard enlargement Shrinking turns constraints [ a , b ] into [ a + δ, b − δ ] . In particular, punctual constraints become empty. Definition A timed automaton is shrinkable if, for some δ > 0, its shrunk automaton (time-abstract) simulates the original automaton. Theorem ([SBM11]) Shrinkability is decidable in EXPTIME .

  29. Shrinking timing constraints Counteracting guard enlargement Shrinking turns constraints [ a , b ] into [ a + δ, b − δ ] . In particular, punctual constraints become empty. Definition A timed automaton is shrinkable if, for some δ > 0, its shrunk automaton (time-abstract) simulates the original automaton. Theorem ([SBM11]) Shrinkability is decidable in EXPTIME . Main tools: parametrized shrunk DBMs max-plus fixpoint equations

  30. Shrinking timing constraints Counteracting guard enlargement Shrinking turns constraints [ a , b ] into [ a + δ, b − δ ] . In particular, punctual constraints become empty. Definition A timed automaton is shrinkable if, for some δ > 0, its shrunk automaton (time-abstract) simulates the original automaton. Theorem ([SBM11]) Shrinkability is decidable in EXPTIME . � prototype tool: http://www.lsv.ens-cachan.fr/Software/shrinktech/

  31. Shrinking timing constraints Example 2 − k 1 δ ≤ x ≤ 4 − k 2 δ x ≤ 2 − k 5 δ 2 − k 3 δ ≤ y ≤ 4 − k 4 δ y :=0

  32. Shrinking timing constraints Example 2 − k 1 δ ≤ x ≤ 4 − k 2 δ x ≤ 2 − k 5 δ 2 − k 3 δ ≤ y ≤ 4 − k 4 δ y :=0 k 4 δ     k 1 δ k 2 δ     ⊆ Unreset y  Pre time            k 3 δ k 5 δ

  33. Shrinking timing constraints Example 2 − k 1 δ ≤ x ≤ 4 − k 2 δ x ≤ 2 − k 5 δ 2 − k 3 δ ≤ y ≤ 4 − k 4 δ y :=0     ⊆ Unreset y       k 5 δ ( k 2 + k 3 ) δ

  34. Shrinking timing constraints Example 2 − k 1 δ ≤ x ≤ 4 − k 2 δ x ≤ 2 − k 5 δ 2 − k 3 δ ≤ y ≤ 4 − k 4 δ y :=0 ⊆ k 5 δ ( k 2 + k 3 ) δ

  35. Shrinking timing constraints Example 2 − k 1 δ ≤ x ≤ 4 − k 2 δ x ≤ 2 − k 5 δ 2 − k 3 δ ≤ y ≤ 4 − k 4 δ y :=0 ⊆ k 5 δ ( k 2 + k 3 ) δ k 5 = max( k 5 , k 2 + k 3 ) �

  36. Outline of the talk Discrete time vs. dense time 1 From models to implementations 2 Checking robust safety 3 Enlarging clock constraints Shrinking clock constraints Checking robust controllability 4 Parametrized perturbations Permissive strategies Conclusions and future works 5

  37. Game-based approach to robustness Solving robust reachability Player 1 proposes a delay d and a transition t ; transition t is taken after some delay in [ d − δ, d + δ ] chosen by Player 2.

  38. Game-based approach to robustness Solving robust reachability Player 1 proposes a delay d and a transition t ; transition t is taken after some delay in [ d − δ, d + δ ] chosen by Player 2. Consider a transition with guard x ≤ 3 ∧ y ≥ 1: loose semantics strict semantics d d δ y =1 y =1 δ x =3 x =3

  39. Game-based approach to robustness Solving robust reachability Player 1 proposes a delay d and a transition t ; transition t is taken after some delay in [ d − δ, d + δ ] chosen by Player 2. Theorem ([BMS12,SBMR13]) Robust reachability is EXPTIME -complete in the loose semantics. Robust reachability and repeated reachability are PSPACE -complete in the strict semantics.

  40. Shrunk DBMs for the loose semantics Extend the region automaton into a 2-player turn-based game x = y = 1 y := 0

  41. Shrunk DBMs for the loose semantics Extend the region automaton into a 2-player turn-based game r ′ 0 x = y = 1 y := 0 r 0 r 1 r 2 r 3 r 1 , s 1 r 0 r ′ r 2 , s 2 0 r 3 , s 3

  42. Orbit graphs for the strict semantics x ≤ 2 , x :=0 1 < x < 2 ℓ 0 ℓ 1 ℓ 2 y :=0 y ≥ 2 , y :=0 ℓ 1 ℓ 1 ℓ 2 ℓ 2 ℓ 1 ℓ 1 y y y y y y 2 2 e 1 2 2 e 2 2 2 ∆ ∆ ∆ 1 1 1 1 1 1 x x x x x x 0 1 2 0 1 2 0 1 2 0 1 2 0 1 2 0 1 2

  43. Orbit graphs for the strict semantics

  44. Orbit graphs for the strict semantics Definition A cycle π is forgetful if its orbit graph is strongly connected. A cycle π is aperiodic if π k is forgetful, for all k .

  45. Orbit graphs for the strict semantics Definition A cycle π is forgetful if its orbit graph is strongly connected. A cycle π is aperiodic if π k is forgetful, for all k . Theorem The automaton is robustly controllable if, and only if, it has a reachable aperiodic cycle.

  46. Synthesizing permissive strategies Permissive strategies Permissive strategies can propose several moves rather than a single one.

  47. Synthesizing permissive strategies Permissive strategies Permissive strategies can propose several moves rather than a single one. In the untimed setting... [BDMR09, BMOU11] 5 b � 6 0 1 1 a c 2 0 � 8 d 1

  48. Synthesizing permissive strategies Permissive strategies Permissive strategies can propose several moves rather than a single one. In the untimed setting... [BDMR09, BMOU11] 5 b a � 6 0 1 1 b c d a c 2 0 � � � � b 8 d 1 � �

  49. Synthesizing permissive strategies Permissive strategies Permissive strategies can propose several moves rather than a single one. In the untimed setting... [BDMR09, BMOU11] 5 b a � 6 0 1 1 1 b c d a c 2 0 � 6 � � � b 8 d 1 6 � �

  50. Synthesizing permissive strategies Permissive strategies Permissive strategies can propose several moves rather than a single one. In the timed setting... Permissive strategies propose intervals of delays. Our setting: the penalty assigned to interval [ a , b ] is 1 / ( b − a ).

  51. Synthesizing permissive strategies Permissive strategies Permissive strategies can propose several moves rather than a single one. In the timed setting... a , x ≥ 2 � ℓ 0 a , x < 2 b , x ≤ 1 � ℓ 1 b , x := 0 a , x ≤ 2 ℓ 2

  52. Synthesizing permissive strategies Permissive strategies Permissive strategies can propose several moves rather than a single one. In the timed setting... a , x ≥ 2 � ℓ 0 Possible (memoryless) strategy: in ℓ 0 , play ( a , [0 , 2)); a , x < 2 in ℓ 1 : b , x ≤ 1 � ℓ 1 if x ≤ 1, play ( b , [0 , 1 − x ]); otherwise, play ( a , [0 , 2 − x ]); b , x := 0 a , x ≤ 2 in ℓ 2 , play ( b , [0 , + ∞ )) ℓ 2

  53. Synthesizing permissive strategies Permissive strategies Permissive strategies can propose several moves rather than a single one. In the timed setting... a , x ≥ 2 � ℓ 0 Possible (memoryless) strategy: in ℓ 0 , play ( a , [0 , 2)); a , x < 2 in ℓ 1 : b , x ≤ 1 � ℓ 1 if x ≤ 1, play ( b , [0 , 1 − x ]); otherwise, play ( a , [0 , 2 − x ]); b , x := 0 a , x ≤ 2 in ℓ 2 , play ( b , [0 , + ∞ )) penalty = + ∞ � ℓ 2

  54. Synthesizing permissive strategies Permissive strategies Permissive strategies can propose several moves rather than a single one. In the timed setting... a , x ≥ 2 � ℓ 0 Possible (memoryless) strategy: in ℓ 0 , play ( a , [0 , 1]); a , x < 2 in ℓ 1 : b , x ≤ 1 � ℓ 1 if x = 0, play ( b , [0 , 1]); otherwise, play ( a , [0 , 2 − x ]); b , x := 0 a , x ≤ 2 in ℓ 2 , play ( b , [0 , + ∞ )) ℓ 2

  55. Synthesizing permissive strategies Permissive strategies Permissive strategies can propose several moves rather than a single one. In the timed setting... a , x ≥ 2 � ℓ 0 Possible (memoryless) strategy: in ℓ 0 , play ( a , [0 , 1]); a , x < 2 in ℓ 1 : b , x ≤ 1 � ℓ 1 if x = 0, play ( b , [0 , 1]); otherwise, play ( a , [0 , 2 − x ]); b , x := 0 a , x ≤ 2 in ℓ 2 , play ( b , [0 , + ∞ )) penalty = 1 � ℓ 2

  56. Synthesizing permissive strategies Permissive strategies Permissive strategies can propose several moves rather than a single one. In the timed setting... Theorem For one-clock timed games: Memoryless optimal-penalty strategies exist. They can be computed in polynomial time.

  57. Outline of the talk Discrete time vs. dense time 1 From models to implementations 2 Checking robust safety 3 Enlarging clock constraints Shrinking clock constraints Checking robust controllability 4 Parametrized perturbations Permissive strategies Conclusions and future works 5

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend