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

topics in timed automata
SMART_READER_LITE
LIVE PREVIEW

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


slide-1
SLIDE 1

Topics in Timed Automata

  • B. Srivathsan

RWTH-Aachen

Software modeling and Verification group

1/29

slide-2
SLIDE 2

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

2/29

slide-3
SLIDE 3

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

  • 1. Unique run for every timed word

w1 ∈ L(A) w2 / ∈ L(A)

2/29

slide-4
SLIDE 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

w1 ∈ L(A) w2 / ∈ L(A) w1 / ∈ L(A) w2 ∈ L(A)

2/29

slide-5
SLIDE 5

Theorem (Lecture 1) Non-deterministic timed automata are not closed under complement Many runs for a timed word

w1 ∈ L(A)

Exists an acc. run

w2 / ∈ L(A)

All runs non-acc.

3/29

slide-6
SLIDE 6

Theorem (Lecture 1) Non-deterministic timed automata are not closed under complement Many runs for a timed word

w1 ∈ L(A)

Exists an acc. run

w2 / ∈ L(A)

All runs non-acc. Complementation: interchange acc/non-acc + ask are all runs acc. ?

3/29

slide-7
SLIDE 7

A timed automaton model with existential and universal semantics for acceptance

4/29

slide-8
SLIDE 8

Lecture 5: Alternating timed automata

Lasota and Walukiewicz. FoSSaCS’05, ACM TOCL’2008

5/29

slide-9
SLIDE 9

Section 1: Introduction to ATA

6/29

slide-10
SLIDE 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, Q0, Σ, X, T, F)

T ⊆ Q × Σ × Φ(X) × Q × P(X)

7/29

slide-11
SLIDE 11

T ⊆ Q × Σ × Φ(X) × Q × P(X)

T : Q × Σ × Φ(X) → P(Q × P(X))

q a, g q1, r1 q2, r2 q3, r3 q4, r4 q5, r5

8/29

slide-12
SLIDE 12

T ⊆ Q × Σ × Φ(X) × Q × P(X)

T : Q × Σ × Φ(X) → P(Q × P(X))

q a, g q1, r1 q2, r2 q3, r3 q4, r4 q5, r5 ∨ ∨ ∨ ∨

8/29

slide-13
SLIDE 13

T : Q × Σ × Φ(X) → P(Q × P(X))

9/29

slide-14
SLIDE 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

slide-15
SLIDE 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

(q1, r1 q2, r2) (q3, r3) (q4, r4 q5, r5 q6, r6)

∧ ∨ ∨ ∧ ∧

9/29

slide-16
SLIDE 16

Alternating Timed Automata An ATA is a tuple A = (Q, q0, Σ, X, T, F) where: T : Q × Σ × Φ(X) → B+(Q × P(X)) is a finite partial function.

10/29

slide-17
SLIDE 17

Alternating Timed Automata An ATA is a tuple A = (Q, q0, Σ, 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 RX

≥0

10/29

slide-18
SLIDE 18

Acceptance

q a, g

(q1, r1 q2, r2) (q3, r3) (q4, r4 q5, r5 q6, r6)

  • Accepting run from q iff:

11/29

slide-19
SLIDE 19

Acceptance

q a, g

(q1, r1 q2, r2) (q3, r3) (q4, r4 q5, r5 q6, r6)

  • Accepting run from q iff:

◮ accepting run from q1 and q2,

11/29

slide-20
SLIDE 20

Acceptance

q a, g

(q1, r1 q2, r2) (q3, r3) (q4, r4 q5, r5 q6, r6)

  • Accepting run from q iff:

◮ accepting run from q1 and q2, ◮ or accepting run from q3,

11/29

slide-21
SLIDE 21

Acceptance

q a, g

(q1, r1 q2, r2) (q3, r3) (q4, r4 q5, r5 q6, r6)

  • Accepting run from q iff:

◮ accepting run from q1 and q2, ◮ or accepting run from q3, ◮ or accepting run from q4 and q5 and q6

11/29

slide-22
SLIDE 22

L : timed words over {a} containing no two a′s at distance 1

(Not expressible by non-deterministic TA)

12/29

slide-23
SLIDE 23

L : timed words over {a} containing no two a′s at distance 1

(Not expressible by non-deterministic TA)

ATA: q0, a, tt → (q0, ∅) ∧ (q1, {x}) q1, a, x = 1 → (q2, ∅) q1, a, x = 1 → (q1, ∅) q2, a, tt → (q2, ∅) q0, q1 are acc., q2 is non-acc.

12/29

slide-24
SLIDE 24

Closure properties

◮ Union, intersection: use disjunction/conjunction ◮ Complementation: interchange

  • 1. acc./non-acc.
  • 2. conjunction/disjunction

13/29

slide-25
SLIDE 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

slide-26
SLIDE 26

Section 2: The 1-clock restriction

14/29

slide-27
SLIDE 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

slide-28
SLIDE 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

slide-29
SLIDE 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

slide-30
SLIDE 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

slide-31
SLIDE 31

Theorem Languages recognizable by 1-clock ATA and (many clock) TA are incomparable

→ proof on the board

16/29

slide-32
SLIDE 32

Section 3: Complexity

17/29

slide-33
SLIDE 33

Lower bound Complexity of emptiness of purely universal 1-clock ATA is not bounded by a primitive recursive function

18/29

slide-34
SLIDE 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

slide-35
SLIDE 35

Primitive recursive functions

Functions f : N → N Basic primitive recursive functions:

◮ Zero function: Z() = 0 ◮ Successor function: Succ(n) = n + 1 ◮ Projection function: Pi(x1, . . . , xn) = xi

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, x1, . . . , xk) = f (x1, . . . , xk) h(n + 1, x1, . . . , xk) = g(h(n, x1, . . . , xk), n, x1, . . . , xk)

19/29

slide-36
SLIDE 36

Addition: Add(0, y) = y Add(n + 1, y) = Succ(Add(n, y))

20/29

slide-37
SLIDE 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

slide-38
SLIDE 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 2n: Exp(0) = Succ(Z()) Exp(n + 1) = Mult(Exp(n), 2)

20/29

slide-39
SLIDE 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 2n: 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

slide-40
SLIDE 40

Poly Exp HyperExp Primitive recursive Recursive/Computable

Recursive but not primitive rec.: Ackermann function, Sudan function

21/29

slide-41
SLIDE 41

Coming next: a problem that has complexity non-primitive recursive

22/29

slide-42
SLIDE 42

Channel systems

q1 q2 q3 p1 p2 c1!b c2?c c2?a c1?a c2?a c1!a c2!c c1?b

a a a b b a c channel c1 channel c2 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

slide-43
SLIDE 43

Theorem [BZ’83] Reachability in channel systems is undecidable

24/29

slide-44
SLIDE 44

Coming next: modifying the model for decidability

25/29

slide-45
SLIDE 45

Lossy channel systems

Finkel’94, Abdulla and Jonsson’96 Messages stored in channel can be lost during transition

26/29

slide-46
SLIDE 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

slide-47
SLIDE 47

Reachability problem for lossy one-channel systems can be reduced to emptiness problem for purely universal 1-clock ATA

27/29

slide-48
SLIDE 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

slide-49
SLIDE 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

slide-50
SLIDE 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