topics in timed automata
play

Topics in Timed Automata B. Srivathsan RWTH-Aachen Software - PowerPoint PPT Presentation

Topics in Timed Automata B. Srivathsan RWTH-Aachen Software modeling and Verification group 1/29 Theorem (Lecture 2) Deterministic timed automata are closed under complement 2/29 Theorem (Lecture 2) Deterministic timed automata are closed under


  1. Topics in Timed Automata B. Srivathsan RWTH-Aachen Software modeling and Verification group 1/29

  2. Theorem (Lecture 2) Deterministic timed automata are closed under complement 2/29

  3. Theorem (Lecture 2) Deterministic timed automata are closed under complement 1. Unique run for every timed word w 1 ∈ L ( A ) w 2 / ∈ L ( A ) 2/29

  4. Theorem (Lecture 2) Deterministic timed automata are closed under complement 1. Unique run for every timed word 2. Complementation: Interchange acc. and non-acc. states w 1 ∈ L ( A ) w 2 / ∈ L ( A ) w 1 / ∈ L ( A ) w 2 ∈ L ( A ) 2/29

  5. Theorem (Lecture 1) Non-deterministic timed automata are not closed under complement Many runs for a timed word w 1 ∈ L ( A ) w 2 / ∈ L ( A ) Exists an acc. run All runs non-acc. 3/29

  6. Theorem (Lecture 1) Non-deterministic timed automata are not closed under complement Many runs for a timed word w 1 ∈ L ( A ) w 2 / ∈ L ( A ) Exists an acc. run All runs non-acc. Complementation: interchange acc/non-acc + ask are all runs acc. ? 3/29

  7. A timed automaton model with existential and universal semantics for acceptance 4/29

  8. Lecture 5: Alternating timed automata Lasota and Walukiewicz. FoSSaCS’05 , ACM TOCL’2008 5/29

  9. Section 1: Introduction to ATA 6/29

  10. ◮ X : set of clocks ◮ Φ( X ) : set of clock constraints σ ( guards ) σ : x < c | x ≤ c | σ 1 ∧ σ 2 | ¬ σ c is a non-negative integer ◮ Timed automaton A : ( Q , Q 0 , Σ , X , T , F ) T ⊆ Q × Σ × Φ( X ) × Q × P ( X ) 7/29

  11. T ⊆ Q × Σ × Φ( X ) × Q × P ( X ) T : Q × Σ × Φ( X ) �→ P ( Q × P ( X )) q a , g q 1 , r 1 q 2 , r 2 q 3 , r 3 q 4 , r 4 q 5 , r 5 8/29

  12. T ⊆ Q × Σ × Φ( X ) × Q × P ( X ) T : Q × Σ × Φ( X ) �→ P ( Q × P ( X )) q a , g q 1 , r 1 q 2 , r 2 q 3 , r 3 q 4 , r 4 q 5 , r 5 ∨ ∨ ∨ ∨ 8/29

  13. T : Q × Σ × Φ( X ) �→ P ( Q × P ( X )) 9/29

  14. T : Q × Σ × Φ( X ) �→ P ( Q × P ( X )) B + ( S ) is all φ ::= S | φ 1 ∧ φ 2 | φ 1 ∨ φ 2 T : Q × Σ × Φ( X ) �→ B + ( Q × P ( X )) 9/29

  15. T : Q × Σ × Φ( X ) �→ P ( Q × P ( X )) B + ( S ) is all φ ::= S | φ 1 ∧ φ 2 | φ 1 ∨ φ 2 T : Q × Σ × Φ( X ) �→ B + ( Q × P ( X )) q a , g q 5 , r 5 ( q 1 , r 1 ∧ q 2 , r 2 ) ∨ ( q 3 , r 3 ) ∨ ( q 4 , r 4 ∧ ∧ q 6 , r 6 ) 9/29

  16. Alternating Timed Automata An ATA is a tuple A = ( Q , q 0 , Σ , X , T , F ) where: T : Q × Σ × Φ( X ) �→ B + ( Q × P ( X )) is a finite partial function . 10/29

  17. Alternating Timed Automata An ATA is a tuple A = ( Q , q 0 , Σ , X , T , F ) where: T : Q × Σ × Φ( X ) �→ B + ( Q × P ( X )) is a finite partial function . Partition: For every q , a the set { [ σ ] | T ( q , a , σ ) is defined } gives a finite partition of R X ≥ 0 10/29

  18. Acceptance q a , g � � � � q 5 , r 5 � ( q 1 , r 1 q 2 , r 2 ) ( q 3 , r 3 ) ( q 4 , r 4 q 6 , r 6 ) Accepting run from q iff: 11/29

  19. Acceptance q a , g � � � � q 5 , r 5 � ( q 1 , r 1 q 2 , r 2 ) ( q 3 , r 3 ) ( q 4 , r 4 q 6 , r 6 ) Accepting run from q iff: ◮ accepting run from q 1 and q 2 , 11/29

  20. Acceptance q a , g � � � � q 5 , r 5 � ( q 1 , r 1 q 2 , r 2 ) ( q 3 , r 3 ) ( q 4 , r 4 q 6 , r 6 ) Accepting run from q iff: ◮ accepting run from q 1 and q 2 , ◮ or accepting run from q 3 , 11/29

  21. Acceptance q a , g � � � � q 5 , r 5 � ( q 1 , r 1 q 2 , r 2 ) ( q 3 , r 3 ) ( q 4 , r 4 q 6 , r 6 ) Accepting run from q iff: ◮ accepting run from q 1 and q 2 , ◮ or accepting run from q 3 , ◮ or accepting run from q 4 and q 5 and q 6 11/29

  22. L : timed words over { a } containing no two a ′ s at distance 1 (Not expressible by non-deterministic TA) 12/29

  23. L : timed words over { a } containing no two a ′ s at distance 1 (Not expressible by non-deterministic TA) ATA: q 0 , a , tt �→ ( q 0 , ∅ ) ∧ ( q 1 , { x } ) q 1 , a , x = 1 �→ ( q 2 , ∅ ) q 1 , a , x � = 1 �→ ( q 1 , ∅ ) q 2 , a , tt �→ ( q 2 , ∅ ) q 0 , q 1 are acc., q 2 is non-acc. 12/29

  24. Closure properties ◮ Union, intersection: use disjunction/conjunction ◮ Complementation: interchange 1. acc./non-acc. 2. conjunction/disjunction 13/29

  25. Closure properties ◮ Union, intersection: use disjunction/conjunction ◮ Complementation: interchange 1. acc./non-acc. 2. conjunction/disjunction No change in the number of clocks! 13/29

  26. Section 2: The 1-clock restriction 14/29

  27. ◮ Emptiness: given A , is L ( A ) empty ◮ Universality: given A , does L ( A ) contain all timed words ◮ Inclusion: given A , B , is L ( A ) ⊆ L ( B ) 15/29

  28. ◮ Emptiness: given A , is L ( A ) empty ◮ Universality: given A , does L ( A ) contain all timed words ◮ Inclusion: given A , B , is L ( A ) ⊆ L ( B ) Undecidable for two clocks or more (via Lecture 3) 15/29

  29. ◮ Emptiness: given A , is L ( A ) empty ◮ Universality: given A , does L ( A ) contain all timed words ◮ Inclusion: given A , B , is L ( A ) ⊆ L ( B ) Undecidable for two clocks or more (via Lecture 3) Decidable for one clock (via Lecture 4) 15/29

  30. ◮ Emptiness: given A , is L ( A ) empty ◮ Universality: given A , does L ( A ) contain all timed words ◮ Inclusion: given A , B , is L ( A ) ⊆ L ( B ) Undecidable for two clocks or more (via Lecture 3) Decidable for one clock (via Lecture 4) Restrict to one-clock ATA 15/29

  31. Theorem Languages recognizable by 1-clock ATA and (many clock) TA are incomparable → proof on the board 16/29

  32. Section 3: Complexity 17/29

  33. Lower bound Complexity of emptiness of purely universal 1-clock ATA is not bounded by a primitive recursive function 18/29

  34. Lower bound Complexity of emptiness of purely universal 1-clock ATA is not bounded by a primitive recursive function ⇒ complexity of Ouaknine-Worrell algorithm for universality of 1-clock TA is non-primitive recursive 18/29

  35. Primitive recursive functions Functions f : N �→ N Basic primitive recursive functions: ◮ Zero function: Z () = 0 ◮ Successor function: Succ ( n ) = n + 1 ◮ Projection function: P i ( x 1 , . . . , x n ) = x i Operations: ◮ Composition ◮ Primitive recursion: if f and g are p.r. of arity k and k + 2, there is a p.r. h of arity k + 1: h ( 0 , x 1 , . . . , x k ) = f ( x 1 , . . . , x k ) h ( n + 1 , x 1 , . . . , x k ) = g ( h ( n , x 1 , . . . , x k ) , n , x 1 , . . . , x k ) 19/29

  36. Addition: Add ( 0 , y ) = y Add ( n + 1 , y ) = Succ ( Add ( n , y )) 20/29

  37. Addition: Add ( 0 , y ) = y Add ( n + 1 , y ) = Succ ( Add ( n , y )) Multiplication: Mult ( 0 , y ) = Z () Mult ( n + 1 , y ) = Add ( Mult ( n , y ) , y ) 20/29

  38. Addition: Add ( 0 , y ) = y Add ( n + 1 , y ) = Succ ( Add ( n , y )) Multiplication: Mult ( 0 , y ) = Z () Mult ( n + 1 , y ) = Add ( Mult ( n , y ) , y ) Exponentiation 2 n : Exp ( 0 ) = Succ ( Z ()) Exp ( n + 1 ) = Mult ( Exp ( n ) , 2 ) 20/29

  39. Addition: Add ( 0 , y ) = y Add ( n + 1 , y ) = Succ ( Add ( n , y )) Multiplication: Mult ( 0 , y ) = Z () Mult ( n + 1 , y ) = Add ( Mult ( n , y ) , y ) Exponentiation 2 n : Exp ( 0 ) = Succ ( Z ()) Exp ( n + 1 ) = Mult ( Exp ( n ) , 2 ) Hyper-exponentiation (tower of n two-s): HyperExp ( 0 ) = Succ ( Z ()) HyperExp ( n + 1 ) = Exp ( HyperExp ( n )) 20/29

  40. Recursive/Computable Primitive recursive HyperExp Exp Poly Recursive but not primitive rec.: Ackermann function, Sudan function 21/29

  41. Coming next: a problem that has complexity non-primitive recursive 22/29

  42. Channel systems q 2 c 1 ! b c 1 ? a q 1 p 1 p 2 c 1 ! a c 2 ? c c 2 ! c c 1 ? b c 2 ? a q 3 c 2 ? a a a a channel c 1 b b a c channel c 2 Finite state description of communication protocols G. von Bochmann. 1978 On communicating finite-state machines D. Brand and P. Zafiropulo. 1983 Example from Schnoebelen’2002 23/29

  43. Theorem [BZ’83] Reachability in channel systems is undecidable 24/29

  44. Coming next: modifying the model for decidability 25/29

  45. Lossy channel systems Finkel’94, Abdulla and Jonsson’96 Messages stored in channel can be lost during transition 26/29

  46. Lossy channel systems Finkel’94, Abdulla and Jonsson’96 Messages stored in channel can be lost during transition Theorem [Schnoebelen’2002] Reachability for lossy one-channel systems is non-primitive recursive 26/29

  47. Reachability problem for lossy one-channel systems can be reduced to emptiness problem for purely universal 1-clock ATA 27/29

  48. 1-clock ATA ◮ closed under boolean operations ◮ decidable emptiness problem ◮ expressivity incomparable to many clock TA ◮ non-primitive recursive complexity for emptiness 28/29

  49. 1-clock ATA ◮ closed under boolean operations ◮ decidable emptiness problem ◮ expressivity incomparable to many clock TA ◮ non-primitive recursive complexity for emptiness ◮ Other results: Undecidability of: ◮ 1-clock ATA + ε -transitions ◮ 1-clock ATA over infinite words 28/29

  50. Summary of Part 1 of the course ◮ Lecture 1: Expressiveness, ε -transitions ◮ Lecture 2: Determinization ◮ Lecture 3: Universality and inclusion ◮ Lecture 4: Restriction to one-clock ◮ Lecture 5: Alternating timed automata 29/29

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