Parametric LTL Games Martin Zimmermann RWTH Aachen University - - PowerPoint PPT Presentation

parametric ltl games
SMART_READER_LITE
LIVE PREVIEW

Parametric LTL Games Martin Zimmermann RWTH Aachen University - - PowerPoint PPT Presentation

Parametric LTL Games Martin Zimmermann RWTH Aachen University February 25th, 2010 AlMoTh 2010 Frankfurt am Main, Germany Martin Zimmermann RWTH Aachen University Parametric LTL Games 1/18 Motivation We consider infinite games with winning


slide-1
SLIDE 1

Parametric LTL Games

Martin Zimmermann

RWTH Aachen University

February 25th, 2010

AlMoTh 2010 Frankfurt am Main, Germany

Martin Zimmermann RWTH Aachen University Parametric LTL Games 1/18

slide-2
SLIDE 2

Motivation

We consider infinite games with winning conditions in linear temporal logic (LTL). Advantages of LTL as specification language are compact, variable-free syntax, intuitive semantics, successfully employed in model checking tools.

Martin Zimmermann RWTH Aachen University Parametric LTL Games 2/18

slide-3
SLIDE 3

Motivation

We consider infinite games with winning conditions in linear temporal logic (LTL). Advantages of LTL as specification language are 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. Here, we consider two of them: PLTL: Parametric LTL (Alur et. al., ’99) PROMPT − LTL (Kupferman et. al., ’07)

Martin Zimmermann RWTH Aachen University Parametric LTL Games 2/18

slide-4
SLIDE 4

Outline

  • 1. Introduction
  • 2. PROMPT LTL
  • 3. Parametric LTL
  • 4. Conclusion

Martin Zimmermann RWTH Aachen University Parametric LTL Games 3/18

slide-5
SLIDE 5

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 in extensions of LTL over P.

Martin Zimmermann RWTH Aachen University Parametric LTL Games 4/18

slide-6
SLIDE 6

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 in extensions of LTL over P.

Theorem (Pnueli, Rosner ’89)

Determining the winner of an LTL game is 2EXPTIME-complete. Finite-state strategies suffice to win an LTL game.

Martin Zimmermann RWTH Aachen University Parametric LTL Games 4/18

slide-7
SLIDE 7

Outline

  • 1. Introduction
  • 2. PROMPT LTL
  • 3. Parametric LTL
  • 4. Conclusion

Martin Zimmermann RWTH Aachen University Parametric LTL Games 5/18

slide-8
SLIDE 8

PROMPT-LTL Games

Add prompt-eventually FP to LTL. Semantics defined w.r.t. free, but fixed bound k: (ρ, i, k) | = FPϕ: ρ i i + k ϕ

Martin Zimmermann RWTH Aachen University Parametric LTL Games 6/18

slide-9
SLIDE 9

PROMPT-LTL Games

Add prompt-eventually FP to LTL. Semantics defined w.r.t. free, but fixed bound k: (ρ, i, k) | = FPϕ: ρ i i + k ϕ PROMPT − LTL game (A, ϕ): σ is a winning strategy for Player 0 iff there exists a bound k such that (ρ, 0, k) | = ϕ for every play ρ consistent with σ.

Martin Zimmermann RWTH Aachen University Parametric LTL Games 6/18

slide-10
SLIDE 10

PROMPT-LTL Games

Add prompt-eventually FP to LTL. Semantics defined w.r.t. free, but fixed bound k: (ρ, i, k) | = FPϕ: ρ i i + k ϕ PROMPT − LTL game (A, ϕ): σ is a winning strategy for Player 0 iff there exists a bound k such that (ρ, 0, k) | = ϕ for every play ρ consistent with σ. Example ϕ = G(q → FPp). For some k, Player 0 has to answer every request q within k steps by seeing p. Note: k may not depend on a single play.

Martin Zimmermann RWTH Aachen University Parametric LTL Games 6/18

slide-11
SLIDE 11

PROMPT-LTL Games: Results

Theorem

Deciding whether Player 0 has a winning strategy in a PROMPT − LTL game is 2EXPTIME complete.

Martin Zimmermann RWTH Aachen University Parametric LTL Games 7/18

slide-12
SLIDE 12

PROMPT-LTL Games: Results

Theorem

Deciding whether Player 0 has a winning strategy in a PROMPT − LTL game is 2EXPTIME complete. Proof 2EXPTIME algorithm: apply alternating-color technique of Kupferman et al.: reduce G to an LTL game G′ such that a finite-state winning strategy for G′ can be transformed into a finite-state winning strategy for G which bounds the waiting times. Player 0 wins G′ only if she can ensure a bound on the prompt-eventualities in G.

Martin Zimmermann RWTH Aachen University Parametric LTL Games 7/18

slide-13
SLIDE 13

PROMPT-LTL Games: Results

Theorem

Deciding whether Player 0 has a winning strategy in a PROMPT − LTL game is 2EXPTIME complete. Proof 2EXPTIME algorithm: apply alternating-color technique of Kupferman et al.: reduce G to an LTL game G′ such that a finite-state winning strategy for G′ can be transformed into a finite-state winning strategy for G which bounds the waiting times. Player 0 wins G′ only if she can ensure a bound on the prompt-eventualities in G. 2EXPTIME hardness follows from 2EXPTIME hardness of solving LTL games.

Martin Zimmermann RWTH Aachen University Parametric LTL Games 7/18

slide-14
SLIDE 14

Outline

  • 1. Introduction
  • 2. PROMPT LTL
  • 3. Parametric LTL
  • 4. Conclusion

Martin Zimmermann RWTH Aachen University Parametric LTL Games 8/18

slide-15
SLIDE 15

Parametric LTL

Let X and Y be two disjoint sets of variables. PLTL adds bounded temporal operators to LTL: F≤x for x ∈ X, G≤y for y ∈ Y.

Martin Zimmermann RWTH Aachen University Parametric LTL Games 9/18

slide-16
SLIDE 16

Parametric LTL

Let X and Y be two disjoint sets of variables. PLTL adds bounded temporal operators to LTL: F≤x for x ∈ X, G≤y for y ∈ Y. 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 Parametric LTL Games 9/18

slide-17
SLIDE 17

Parametric LTL

Let X and Y be two disjoint sets of variables. PLTL adds bounded temporal operators to LTL: F≤x for x ∈ X, G≤y for y ∈ Y. Semantics defined w.r.t. variable valuation α: X ∪ Y → N. (ρ, i, α) | = G≤yϕ: ρ i i + α(y) ϕ ϕ ϕ ϕ ϕ (ρ, i, α) | = F≤xϕ: ρ i i + α(x) ϕ The operators U≤x, R≤y, F>y, G>x, U>y, and R>x (with the

  • bvious semantics) are syntactic sugar, and will be ignored.

Martin Zimmermann RWTH Aachen University Parametric LTL Games 9/18

slide-18
SLIDE 18

Parametric LTL Games

PLTL game (A, ϕ): σ is a winning strategy for Player 0 w.r.t. α iff for all plays ρ consistent with σ: (ρ, 0, α) | = ϕ. τ is a winning strategy for Player 1 w.r.t. α iff for all plays ρ consistent with τ: (ρ, 0, α) | = ϕ.

Martin Zimmermann RWTH Aachen University Parametric LTL Games 10/18

slide-19
SLIDE 19

Parametric LTL Games

PLTL game (A, ϕ): σ is a winning strategy for Player 0 w.r.t. α iff for all plays ρ consistent with σ: (ρ, 0, α) | = ϕ. τ is a winning strategy for Player 1 w.r.t. α iff for all plays ρ consistent with τ: (ρ, 0, α) | = ϕ. The set of winning valuations for Player i is Wi

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

We are interested in the emptiness, finiteness, and universality problem for Wi

G and in finding optimal valuations in Wi G.

Martin Zimmermann RWTH Aachen University Parametric LTL Games 10/18

slide-20
SLIDE 20

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 Parametric LTL Games 11/18

slide-21
SLIDE 21

PLTL Games: Examples

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

≥ α(y)

Player 1’s goal: reach vertex with ¬p at least every α(y) steps. ¬p ¬p ¬p ¬p

≤ α(y) ≤ α(y) ≤ α(y) ≤ α(y)

Martin Zimmermann RWTH Aachen University Parametric LTL Games 11/18

slide-22
SLIDE 22

PLTL Games: Examples

Winning condition G(q → F≤xp): “Every request q is eventually responded by p”. 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 Parametric LTL Games 12/18

slide-23
SLIDE 23

PLTL Games: Examples

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

≤ α(x) ≤ α(x)

Player 1’s goal: enforce waiting time greater than α(x). q, ¬p ¬p ¬p ¬p

≥ α(x)

Martin Zimmermann RWTH Aachen University Parametric LTL Games 12/18

slide-24
SLIDE 24

PLTL Games: Examples

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

≤ α(x) ≤ α(x)

Player 1’s goal: enforce waiting time greater than α(x). q, ¬p ¬p ¬p ¬p

≥ α(x)

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

Martin Zimmermann RWTH Aachen University Parametric LTL Games 12/18

slide-25
SLIDE 25

PLTL: Results

Theorem

Let G be a PLTL game. The emptiness, finiteness, and universality problem for Wi

G are 2EXPTIME-complete.

Martin Zimmermann RWTH Aachen University Parametric LTL Games 13/18

slide-26
SLIDE 26

PLTL: Results

Theorem

Let G be a PLTL game. The emptiness, finiteness, and universality problem for Wi

G are 2EXPTIME-complete.

For the proof, use: Duality of F≤x and G≤y, i.e., ¬G≤z¬ϕ ≡ F≤zϕ. Monotonicity of F≤x and G≤y, i.e., if α(z) ≤ β(z), then (ρ, i, α) | = F≤zϕ implies (ρ, i, β) | = F≤zϕ and (ρ, i, β) | = G≤zϕ implies (ρ, i, α) | = G≤zϕ.

Martin Zimmermann RWTH Aachen University Parametric LTL Games 13/18

slide-27
SLIDE 27

PLTL: Proof Ideas

Proof 2EXPTIME algorithms: first consider formulae with only F≤x: Emptiness: reduction to PROMPT − LTL games. Universality: W0

G is universal iff it contains the valuation

which maps every variable to 0. Finiteness: W0

G is infinite iff W0 G is non-empty.

Martin Zimmermann RWTH Aachen University Parametric LTL Games 14/18

slide-28
SLIDE 28

PLTL: Proof Ideas

Proof 2EXPTIME algorithms: first consider formulae with only F≤x: Emptiness: reduction to PROMPT − LTL games. Universality: W0

G is universal iff it contains the valuation

which maps every variable to 0. Finiteness: W0

G is infinite iff W0 G is non-empty.

Dual results hold for formulae with only G≤y. For the full logic, combine the results from above and the monotonicity of the

  • perators.

Martin Zimmermann RWTH Aachen University Parametric LTL Games 14/18

slide-29
SLIDE 29

PLTL: Proof Ideas

Proof 2EXPTIME algorithms: first consider formulae with only F≤x: Emptiness: reduction to PROMPT − LTL games. Universality: W0

G is universal iff it contains the valuation

which maps every variable to 0. Finiteness: W0

G is infinite iff W0 G is non-empty.

Dual results hold for formulae with only G≤y. For the full logic, combine the results from above and the monotonicity of the

  • perators.

2EXPTIME hardness follows from 2EXPTIME hardness of solving LTL games.

Martin Zimmermann RWTH Aachen University Parametric LTL Games 14/18

slide-30
SLIDE 30

PLTL: Results

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 Parametric LTL Games 15/18

slide-31
SLIDE 31

PLTL: Results

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). Then, the following values (and realizing strategies) are computable: minα∈W0

GF maxx∈var(ϕF) α(x). Martin Zimmermann RWTH Aachen University Parametric LTL Games 15/18

slide-32
SLIDE 32

PLTL: Results

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). Then, the following values (and realizing strategies) are computable: 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 Parametric LTL Games 15/18

slide-33
SLIDE 33

PLTL: Proof Ideas

Proof Consider minα∈W0

GF maxx∈var(ϕF) α(x): obtain ϕ′

F by renaming

every variable to z and let G′ = (A, ϕ′

F). Then,

minα∈W0

GF maxx∈var(ϕF) α(x) = minα∈W0 G′ F

α(z) , by the monotonicity of F≤x.

Martin Zimmermann RWTH Aachen University Parametric LTL Games 16/18

slide-34
SLIDE 34

PLTL: Proof Ideas

Proof Consider minα∈W0

GF maxx∈var(ϕF) α(x): obtain ϕ′

F by renaming

every variable to z and let G′ = (A, ϕ′

F). Then,

minα∈W0

GF maxx∈var(ϕF) α(x) = minα∈W0 G′ F

α(z) , by the monotonicity of F≤x. ϕ′

F has a single variable, hence can be transformed into a

PROMPT − LTL formula ϕFP by replacing every F≤z by FP. Solving (A, ϕFP) gives an (double-exponential) upper bound k on minα∈W0

G′ F

α(z). Using binary search in the interval (0, k), the exact value can be found.

Martin Zimmermann RWTH Aachen University Parametric LTL Games 16/18

slide-35
SLIDE 35

PLTL: Proof Ideas

Proof Consider minα∈W0

GF maxx∈var(ϕF) α(x): obtain ϕ′

F by renaming

every variable to z and let G′ = (A, ϕ′

F). Then,

minα∈W0

GF maxx∈var(ϕF) α(x) = minα∈W0 G′ F

α(z) , by the monotonicity of F≤x. ϕ′

F has a single variable, hence can be transformed into a

PROMPT − LTL formula ϕFP by replacing every F≤z by FP. Solving (A, ϕFP) gives an (double-exponential) upper bound k on minα∈W0

G′ F

α(z). Using binary search in the interval (0, k), the exact value can be found. For the other optimization problems, analogous techniques exist.

Martin Zimmermann RWTH Aachen University Parametric LTL Games 16/18

slide-36
SLIDE 36

Outline

  • 1. Introduction
  • 2. PROMPT LTL
  • 3. Parametric LTL
  • 4. Conclusion

Martin Zimmermann RWTH Aachen University Parametric LTL Games 17/18

slide-37
SLIDE 37

Conclusion

We considered infinite games with winning conditions in extensions

  • f LTL with bounded temporal operators.

Solving them is as hard as solving LTL games. Several optimization problems can be solved effectively.

Martin Zimmermann RWTH Aachen University Parametric LTL Games 18/18

slide-38
SLIDE 38

Conclusion

We considered infinite games with winning conditions in extensions

  • f LTL with bounded temporal operators.

Solving them is as hard as solving LTL games. Several optimization problems can be solved effectively. Further research: Better algorithms for the optimization problems. Hardness results for the optimization problems. Tradeoff between size and quality of a finite-state strategy. Time-optimal winning strategies for other winning conditions.

Martin Zimmermann RWTH Aachen University Parametric LTL Games 18/18