Optimal Bounds in Parametric LTL Games Martin Zimmermann RWTH - - PowerPoint PPT Presentation

optimal bounds in parametric ltl games
SMART_READER_LITE
LIVE PREVIEW

Optimal Bounds in Parametric LTL Games Martin Zimmermann RWTH - - PowerPoint PPT Presentation

Optimal Bounds in Parametric LTL Games Martin Zimmermann RWTH Aachen University June 16th, 2011 GandALF 2011 Minori, Italy Martin Zimmermann RWTH Aachen University Optimal Bounds in Parametric LTL Games 1/17 Motivation LTL as specification


slide-1
SLIDE 1

Optimal Bounds in Parametric LTL Games

Martin Zimmermann

RWTH Aachen University

June 16th, 2011

GandALF 2011 Minori, Italy

Martin Zimmermann RWTH Aachen University Optimal Bounds in Parametric LTL Games 1/17

slide-2
SLIDE 2

Motivation

LTL as specification language in formal verification. Advantages: compact, variable-free syntax, intuitive semantics, successfully employed in model checking tools.

Martin Zimmermann RWTH Aachen University Optimal Bounds in Parametric LTL Games 2/17

slide-3
SLIDE 3

Motivation

LTL as specification language in formal verification. Advantages: compact, variable-free syntax, intuitive semantics, successfully employed in model checking tools. However, LTL lacks capabilities to express timing constraints. There are many extensions of LTL that deal with this. We consider Parametric LTL (Alur, Etessami, La Torre, Peled ’99) Prompt LTL (Kupferman, Piterman, Vardi ’07) Here: infinite games with winning conditions in parametric LTL.

Martin Zimmermann RWTH Aachen University Optimal Bounds in Parametric LTL Games 2/17

slide-4
SLIDE 4

Outline

  • 1. Introduction
  • 2. Decision Problems
  • 3. Optimization Problems
  • 4. Conclusion

Martin Zimmermann RWTH Aachen University Optimal Bounds in Parametric LTL Games 3/17

slide-5
SLIDE 5

Parametric LTL

LTL: ϕ ::= p | ¬p | ϕ ∧ ϕ | ϕ ∨ ϕ | Xϕ | ϕUϕ | ϕRϕ

Martin Zimmermann RWTH Aachen University Optimal Bounds in Parametric LTL Games 4/17

slide-6
SLIDE 6

Parametric LTL

PLTL: ϕ ::= p | ¬p | ϕ ∧ ϕ | ϕ ∨ ϕ | Xϕ | ϕUϕ | ϕRϕ | F≤xϕ | G≤yϕ where x ∈ X and y ∈ Y are variables ranging over N.

Martin Zimmermann RWTH Aachen University Optimal Bounds in Parametric LTL Games 4/17

slide-7
SLIDE 7

Parametric LTL

PLTL: ϕ ::= p | ¬p | ϕ ∧ ϕ | ϕ ∨ ϕ | Xϕ | ϕUϕ | ϕRϕ | F≤xϕ | G≤yϕ where x ∈ X and y ∈ Y are variables ranging over N. Semantics defined w.r.t. variable valuation α: X ∪ Y → N: (ρ, i, α) | = G≤yϕ: ρ i i + α(y) ϕ ϕ ϕ ϕ ϕ (ρ, i, α) | = F≤xϕ: ρ i i + α(x) ϕ

Martin Zimmermann RWTH Aachen University Optimal Bounds in Parametric LTL Games 4/17

slide-8
SLIDE 8

Parametric LTL

PLTL: ϕ ::= p | ¬p | ϕ ∧ ϕ | ϕ ∨ ϕ | Xϕ | ϕUϕ | ϕRϕ | F≤xϕ | G≤yϕ where x ∈ X and y ∈ Y are variables ranging over N. Semantics defined w.r.t. variable valuation α: X ∪ Y → N: (ρ, i, α) | = G≤yϕ: ρ i i + α(y) ϕ ϕ ϕ ϕ ϕ (ρ, i, α) | = F≤xϕ: ρ i i + α(x) ϕ PROMPT − LTL: var(ϕ) = {x} ⊆ X. The operators U≤x, R≤y, F>y, G>x, U>y, and R>x (with the expected semantics) are syntactic sugar, and will be ignored.

Martin Zimmermann RWTH Aachen University Optimal Bounds in Parametric LTL Games 4/17

slide-9
SLIDE 9

Infinite Games

An arena A = (V , V0, V1, E, v0, l) consists of a finite, directed graph (V , E), a partition {V0, V1} of V , an initial vertex v0, a labeling l : V → 2P for some set P of atomic propositions.

v0

p, q

v1

p

v2

v3

q, r

v4

r

Winning conditions are expressed by a PLTL formula ϕ over P.

Martin Zimmermann RWTH Aachen University Optimal Bounds in Parametric LTL Games 5/17

slide-10
SLIDE 10

Infinite Games

An arena A = (V , V0, V1, E, v0, l) consists of a finite, directed graph (V , E), a partition {V0, V1} of V , an initial vertex v0, a labeling l : V → 2P for some set P of atomic propositions.

v0

p, q

v1

p

v2

v3

q, r

v4

r

Winning conditions are expressed by a PLTL formula ϕ over P. Play: path ρ0ρ1ρ2 . . . through (V , E) starting in v0. ρ0ρ1ρ2 . . . winning for Player 0 w.r.t. variable valuation α: (ρ0ρ1ρ2 . . . , 0, α) | = ϕ. Otherwise winning for Player 1.

Martin Zimmermann RWTH Aachen University Optimal Bounds in Parametric LTL Games 5/17

slide-11
SLIDE 11

Infinite Games

An arena A = (V , V0, V1, E, v0, l) consists of a finite, directed graph (V , E), a partition {V0, V1} of V , an initial vertex v0, a labeling l : V → 2P for some set P of atomic propositions.

v0

p, q

v1

p

v2

v3

q, r

v4

r

Winning conditions are expressed by a PLTL formula ϕ over P. Play: path ρ0ρ1ρ2 . . . through (V , E) starting in v0. ρ0ρ1ρ2 . . . winning for Player 0 w.r.t. variable valuation α: (ρ0ρ1ρ2 . . . , 0, α) | = ϕ. Otherwise winning for Player 1. Strategy for Player i: σ: V ∗Vi → V s.t. (v, σ(wv)) ∈ E. Winning strategy for Player i w.r.t. α: every play that is consistent with σ is won by Player i w.r.t. α.

Martin Zimmermann RWTH Aachen University Optimal Bounds in Parametric LTL Games 5/17

slide-12
SLIDE 12

PLTL Games: Examples

Winning condition FG≤yp. Player 0’s goal: eventually satisfy p for at least α(y) steps. p p p p

≥ α(y)

Martin Zimmermann RWTH Aachen University Optimal Bounds in Parametric LTL Games 6/17

slide-13
SLIDE 13

PLTL Games: Examples

Winning condition FG≤yp. Player 0’s goal: eventually satisfy p for at least α(y) steps. p p p p

≥ α(y)

Winning condition G(q → F≤xp). Player 0’s goal: uniformly bound the waiting times between requests q and responses p by α(x). q p q p

≤ α(x) ≤ α(x)

Martin Zimmermann RWTH Aachen University Optimal Bounds in Parametric LTL Games 6/17

slide-14
SLIDE 14

PLTL Games: Examples

Winning condition FG≤yp. Player 0’s goal: eventually satisfy p for at least α(y) steps. p p p p

≥ α(y)

Winning condition G(q → F≤xp). Player 0’s goal: uniformly bound the waiting times between requests q and responses p by α(x). q p q p

≤ α(x) ≤ α(x)

Note: both winning conditions induce an optimization problem: maximize α(y) respectively minimize α(x).

Martin Zimmermann RWTH Aachen University Optimal Bounds in Parametric LTL Games 6/17

slide-15
SLIDE 15

Outline

  • 1. Introduction
  • 2. Decision Problems
  • 3. Optimization Problems
  • 4. Conclusion

Martin Zimmermann RWTH Aachen University Optimal Bounds in Parametric LTL Games 7/17

slide-16
SLIDE 16

Previous Work

Theorem (Pnueli, Rosner ’89)

Determining the winner of an LTL game is 2EXPTIME-complete.

Martin Zimmermann RWTH Aachen University Optimal Bounds in Parametric LTL Games 8/17

slide-17
SLIDE 17

Previous Work

Theorem (Pnueli, Rosner ’89)

Determining the winner of an LTL game is 2EXPTIME-complete. The set of winning valuations for Player i in a PLTL game G is Wi

G = {α | Player i has winning strategy for G w.r.t. α} .

Martin Zimmermann RWTH Aachen University Optimal Bounds in Parametric LTL Games 8/17

slide-18
SLIDE 18

Previous Work

Theorem (Pnueli, Rosner ’89)

Determining the winner of an LTL game is 2EXPTIME-complete. The set of winning valuations for Player i in a PLTL game G is Wi

G = {α | Player i has winning strategy for G w.r.t. α} .

Theorem (Kupferman, Piterman, Vardi ’07)

The following problem is 2EXPTIME-complete: Given a PROMPT − LTL game G, is W0

G non-empty?

Martin Zimmermann RWTH Aachen University Optimal Bounds in Parametric LTL Games 8/17

slide-19
SLIDE 19

Solving PLTL Games

Useful properties of PLTL: Duality: F≤xϕ ≡ ¬G≤x¬ϕ. Monotonicity: α(x) ≤ β(x) and α(y) ≥ β(y). (ρ, i, α) | = F≤xϕ ⇒ (ρ, i, β) | = F≤xϕ. (ρ, i, α) | = G≤yϕ ⇒ (ρ, i, β) | = G≤yϕ.

Martin Zimmermann RWTH Aachen University Optimal Bounds in Parametric LTL Games 9/17

slide-20
SLIDE 20

Solving PLTL Games

Useful properties of PLTL: Duality: F≤xϕ ≡ ¬G≤x¬ϕ. Monotonicity: α(x) ≤ β(x) and α(y) ≥ β(y). (ρ, i, α) | = F≤xϕ ⇒ (ρ, i, β) | = F≤xϕ. (ρ, i, α) | = G≤yϕ ⇒ (ρ, i, β) | = G≤yϕ. Application:

Theorem

The following problems are 2EXPTIME-complete: Given PLTL game G and i ∈ {0, 1}. i) Is Wi

G non-empty?

ii) Is Wi

G infinite?

iii) Is Wi

G universal?

Martin Zimmermann RWTH Aachen University Optimal Bounds in Parametric LTL Games 9/17

slide-21
SLIDE 21

Outline

  • 1. Introduction
  • 2. Decision Problems
  • 3. Optimization Problems
  • 4. Conclusion

Martin Zimmermann RWTH Aachen University Optimal Bounds in Parametric LTL Games 10/17

slide-22
SLIDE 22

Finding Optimal Bounds

If ϕ contains only F≤x respectively only G≤y, then solving games is an optimization problem: which is the best valuation in W0

G?

Martin Zimmermann RWTH Aachen University Optimal Bounds in Parametric LTL Games 11/17

slide-23
SLIDE 23

Finding Optimal Bounds

If ϕ contains only F≤x respectively only G≤y, then solving games is an optimization problem: which is the best valuation in W0

G?

Theorem

Let ϕF be G≤y-free and ϕG be F≤x-free, let GF = (A, ϕF) and GG = (A, ϕG). The following values can be computed in doubly-exponential time: minα∈W0

GF maxx∈var(ϕF) α(x). Martin Zimmermann RWTH Aachen University Optimal Bounds in Parametric LTL Games 11/17

slide-24
SLIDE 24

Finding Optimal Bounds

If ϕ contains only F≤x respectively only G≤y, then solving games is an optimization problem: which is the best valuation in W0

G?

Theorem

Let ϕF be G≤y-free and ϕG be F≤x-free, let GF = (A, ϕF) and GG = (A, ϕG). The following values can be computed in doubly-exponential time: minα∈W0

GF maxx∈var(ϕF) α(x).

minα∈W0

GF minx∈var(ϕF) α(x).

maxα∈W0

GG maxy∈var(ϕG) α(y).

maxα∈W0

GG miny∈var(ϕG) α(y). Martin Zimmermann RWTH Aachen University Optimal Bounds in Parametric LTL Games 11/17

slide-25
SLIDE 25

A First Idea

Duality, monotonicity, alternating-color technique [KPV07] ⇒ it suffices to consider PROMPT − LTL games GP: determine minα∈W0

GP α(x). Martin Zimmermann RWTH Aachen University Optimal Bounds in Parametric LTL Games 12/17

slide-26
SLIDE 26

A First Idea

Duality, monotonicity, alternating-color technique [KPV07] ⇒ it suffices to consider PROMPT − LTL games GP: determine minα∈W0

GP α(x).

Lemma

There exists a k ∈ O(|A| · 22|ϕ|) such that W0

GP = ∅ ⇐

⇒ x → k ∈ W0

GP ⇐

⇒ min

α∈W0

GP

α(x) ≤ k .

Martin Zimmermann RWTH Aachen University Optimal Bounds in Parametric LTL Games 12/17

slide-27
SLIDE 27

A First Idea

Duality, monotonicity, alternating-color technique [KPV07] ⇒ it suffices to consider PROMPT − LTL games GP: determine minα∈W0

GP α(x).

Lemma

There exists a k ∈ O(|A| · 22|ϕ|) such that W0

GP = ∅ ⇐

⇒ x → k ∈ W0

GP ⇐

⇒ min

α∈W0

GP

α(x) ≤ k . As we can test α ∈ W0

GP effectively, it suffices to check all k′ < k.

Example: ϕ = G(q → F≤xp) and α(x) = 2: α ∈ W0

GP ⇐

⇒ Player 0 wins (A, G(q → p ∨ X(p ∨ Xp))) .

Martin Zimmermann RWTH Aachen University Optimal Bounds in Parametric LTL Games 12/17

slide-28
SLIDE 28

A First Idea

Duality, monotonicity, alternating-color technique [KPV07] ⇒ it suffices to consider PROMPT − LTL games GP: determine minα∈W0

GP α(x).

Lemma

There exists a k ∈ O(|A| · 22|ϕ|) such that W0

GP = ∅ ⇐

⇒ x → k ∈ W0

GP ⇐

⇒ min

α∈W0

GP

α(x) ≤ k . As we can test α ∈ W0

GP effectively, it suffices to check all k′ < k.

Example: ϕ = G(q → F≤xp) and α(x) = 2: α ∈ W0

GP ⇐

⇒ Player 0 wins (A, G(q → p ∨ X(p ∨ Xp))) . Problem: this approach takes quadruply-exponential time.

Martin Zimmermann RWTH Aachen University Optimal Bounds in Parametric LTL Games 12/17

slide-29
SLIDE 29

A Better Idea

Faster algorithm for “α ∈ W0

GP?” provided α(x) ≤ k:

  • 1. Replace all F≤x by F to obtain ϕ′.
  • 2. Build B¨

uchi automaton Aϕ′.

  • 3. Determinize Aϕ′ and add counters simulating α to obtain

deterministic parity automaton P.

  • 4. Solve parity game A × P

α ∈ W0

GP ⇐

⇒ Player 0 wins A × P

Martin Zimmermann RWTH Aachen University Optimal Bounds in Parametric LTL Games 13/17

slide-30
SLIDE 30

A Better Idea

Faster algorithm for “α ∈ W0

GP?” provided α(x) ≤ k:

  • 1. Replace all F≤x by F to obtain ϕ′. |ϕ′| ≤ |ϕ|
  • 2. Build B¨

uchi automaton Aϕ′.

  • 3. Determinize Aϕ′ and add counters simulating α to obtain

deterministic parity automaton P.

  • 4. Solve parity game A × P

α ∈ W0

GP ⇐

⇒ Player 0 wins A × P

Martin Zimmermann RWTH Aachen University Optimal Bounds in Parametric LTL Games 13/17

slide-31
SLIDE 31

A Better Idea

Faster algorithm for “α ∈ W0

GP?” provided α(x) ≤ k:

  • 1. Replace all F≤x by F to obtain ϕ′. |ϕ′| ≤ |ϕ|
  • 2. Build B¨

uchi automaton Aϕ′. |Aϕ′| ≤ |ϕ′| · 2|ϕ′|

  • 3. Determinize Aϕ′ and add counters simulating α to obtain

deterministic parity automaton P.

  • 4. Solve parity game A × P

α ∈ W0

GP ⇐

⇒ Player 0 wins A × P

Martin Zimmermann RWTH Aachen University Optimal Bounds in Parametric LTL Games 13/17

slide-32
SLIDE 32

A Better Idea

Faster algorithm for “α ∈ W0

GP?” provided α(x) ≤ k:

  • 1. Replace all F≤x by F to obtain ϕ′. |ϕ′| ≤ |ϕ|
  • 2. Build B¨

uchi automaton Aϕ′. |Aϕ′| ≤ |ϕ′| · 2|ϕ′|

  • 3. Determinize Aϕ′ and add counters simulating α to obtain

deterministic parity automaton P. |P| ≤ 2|Aϕ′|2 · α(x)|Aϕ′| with |Aϕ′| colors

  • 4. Solve parity game A × P

α ∈ W0

GP ⇐

⇒ Player 0 wins A × P

Martin Zimmermann RWTH Aachen University Optimal Bounds in Parametric LTL Games 13/17

slide-33
SLIDE 33

A Better Idea

Faster algorithm for “α ∈ W0

GP?” provided α(x) ≤ k:

  • 1. Replace all F≤x by F to obtain ϕ′. |ϕ′| ≤ |ϕ|
  • 2. Build B¨

uchi automaton Aϕ′. |Aϕ′| ≤ |ϕ′| · 2|ϕ′|

  • 3. Determinize Aϕ′ and add counters simulating α to obtain

deterministic parity automaton P. |P| ≤ 2|Aϕ′|2 · α(x)|Aϕ′| with |Aϕ′| colors

  • 4. Solve parity game A × P in doubly-exponential time

α ∈ W0

GP ⇐

⇒ Player 0 wins A × P

Martin Zimmermann RWTH Aachen University Optimal Bounds in Parametric LTL Games 13/17

slide-34
SLIDE 34

A Better Idea

Faster algorithm for “α ∈ W0

GP?” provided α(x) ≤ k:

  • 1. Replace all F≤x by F to obtain ϕ′. |ϕ′| ≤ |ϕ|
  • 2. Build B¨

uchi automaton Aϕ′. |Aϕ′| ≤ |ϕ′| · 2|ϕ′|

  • 3. Determinize Aϕ′ and add counters simulating α to obtain

deterministic parity automaton P. |P| ≤ 2|Aϕ′|2 · α(x)|Aϕ′| with |Aϕ′| colors

  • 4. Solve parity game A × P in doubly-exponential time

α ∈ W0

GP ⇐

⇒ Player 0 wins A × P So, we have to solve exponentially many parity games, each in doubly-exponential time: gives doubly-exponential time.

Martin Zimmermann RWTH Aachen University Optimal Bounds in Parametric LTL Games 13/17

slide-35
SLIDE 35

An Example

Consider ϕ = F≤xGp and α(x) = 2.

Martin Zimmermann RWTH Aachen University Optimal Bounds in Parametric LTL Games 14/17

slide-36
SLIDE 36

An Example

Consider ϕ = F≤xGp and α(x) = 2.

  • 1. Replace all F≤x by F to obtain ϕ′.

Here: ϕ′ = FGp

Martin Zimmermann RWTH Aachen University Optimal Bounds in Parametric LTL Games 14/17

slide-37
SLIDE 37

An Example

Consider ϕ = F≤xGp and α(x) = 2.

  • 1. Replace all F≤x by F to obtain ϕ′.

Here: ϕ′ = FGp

  • 2. Build B¨

uchi automaton Aϕ′ (textbook method). Here: {FGp} {FGp, p} {FGp, Gp, p} ∅ p p ∅ p ∅ Accepting run: visit accepting state every α(x) transitions.

Martin Zimmermann RWTH Aachen University Optimal Bounds in Parametric LTL Games 14/17

slide-38
SLIDE 38

An Example

  • 3. Determinize Aϕ′ and add counters simulating α to obtain

deterministic parity automaton P. Aϕ′ is always unambiguous: no two accepting runs for any input.

Martin Zimmermann RWTH Aachen University Optimal Bounds in Parametric LTL Games 15/17

slide-39
SLIDE 39

An Example

  • 3. Determinize Aϕ′ and add counters simulating α to obtain

deterministic parity automaton P. Aϕ′ is always unambiguous: no two accepting runs for any input. Use [Morgenstern, Schneider ’10]: Determinization of unambiguous B¨ uchi automata States (essentially) a list (S0, . . . , Sn) with Si ⊆ Q, n = |Aϕ′|. S0 contains set of states reachable in Aϕ′ via prefix of input. Build product with counters cq keeping track of last visit in F by the unique run of Aϕ′ ending in q.

Martin Zimmermann RWTH Aachen University Optimal Bounds in Parametric LTL Games 15/17

slide-40
SLIDE 40

An Example

  • 3. Determinize Aϕ′ and add counters simulating α to obtain

deterministic parity automaton P. Aϕ′ is always unambiguous: no two accepting runs for any input. Use [Morgenstern, Schneider ’10]: Determinization of unambiguous B¨ uchi automata States (essentially) a list (S0, . . . , Sn) with Si ⊆ Q, n = |Aϕ′|. S0 contains set of states reachable in Aϕ′ via prefix of input. Build product with counters cq keeping track of last visit in F by the unique run of Aϕ′ ending in q. |P| ≤ 2|Aϕ′|2

(S0,...,Sn)

· α(x)|Aϕ′|

  • cq

Martin Zimmermann RWTH Aachen University Optimal Bounds in Parametric LTL Games 15/17

slide-41
SLIDE 41

Outline

  • 1. Introduction
  • 2. Decision Problems
  • 3. Optimization Problems
  • 4. Conclusion

Martin Zimmermann RWTH Aachen University Optimal Bounds in Parametric LTL Games 16/17

slide-42
SLIDE 42

Conclusion

We have presented an algorithm to determine optimal bounds in PLTL games in doubly-exponential time. For a known (doubly-exponential) upper bound k we test all smaller values k′ < k. Each test can be done in doubly-exponential time. The problem requires at least doubly-exponential time, as solving LTL games is 2EXPTIME-complete.

Martin Zimmermann RWTH Aachen University Optimal Bounds in Parametric LTL Games 17/17

slide-43
SLIDE 43

Conclusion

We have presented an algorithm to determine optimal bounds in PLTL games in doubly-exponential time. For a known (doubly-exponential) upper bound k we test all smaller values k′ < k. Each test can be done in doubly-exponential time. The problem requires at least doubly-exponential time, as solving LTL games is 2EXPTIME-complete. Open questions: Ongoing research: Model-Checking and Games on pushdown graphs. Is there a direct algorithm that avoids checking all k′ < k? Is there a tradeoff between the size of a finite-state winning strategy and its quality?

Martin Zimmermann RWTH Aachen University Optimal Bounds in Parametric LTL Games 17/17