Parametric Linear Temporal Logics Joint work with Peter Faymonville, - - PowerPoint PPT Presentation

parametric linear temporal logics
SMART_READER_LITE
LIVE PREVIEW

Parametric Linear Temporal Logics Joint work with Peter Faymonville, - - PowerPoint PPT Presentation

Parametric Linear Temporal Logics Joint work with Peter Faymonville, Florian Horn, Wolfgang Thomas, and Nico Wallmeier Martin Zimmermann Saarland University March 10th, 2015 Aalborg University, Aalborg, Denmark Martin Zimmermann Saarland


slide-1
SLIDE 1

Parametric Linear Temporal Logics

Joint work with Peter Faymonville, Florian Horn, Wolfgang Thomas, and Nico Wallmeier

Martin Zimmermann

Saarland University

March 10th, 2015

Aalborg University, Aalborg, Denmark

Martin Zimmermann Saarland University Parametric Linear Temporal Logics 1/25

slide-2
SLIDE 2

Motivation

Linear Temporal Logic (LTL) as specification language: Simple and variable-free syntax and intuitive semantics. Expressively equivalent to first-order logic on words. LTL model checking routinely applied in industrial settings.

Martin Zimmermann Saarland University Parametric Linear Temporal Logics 2/25

slide-3
SLIDE 3

Motivation

Linear Temporal Logic (LTL) as specification language: Simple and variable-free syntax and intuitive semantics. Expressively equivalent to first-order logic on words. LTL model checking routinely applied in industrial settings. Shortcomings:

  • 1. LTL cannot express timing constraints.

Martin Zimmermann Saarland University Parametric Linear Temporal Logics 2/25

slide-4
SLIDE 4

Motivation

Linear Temporal Logic (LTL) as specification language: Simple and variable-free syntax and intuitive semantics. Expressively equivalent to first-order logic on words. LTL model checking routinely applied in industrial settings. Shortcomings:

  • 1. LTL cannot express timing constraints.
  • 2. LTL cannot express all ω-regular properties.

Martin Zimmermann Saarland University Parametric Linear Temporal Logics 2/25

slide-5
SLIDE 5

Motivation

Linear Temporal Logic (LTL) as specification language: Simple and variable-free syntax and intuitive semantics. Expressively equivalent to first-order logic on words. LTL model checking routinely applied in industrial settings. Shortcomings:

  • 1. LTL cannot express timing constraints.

Add F≤k for k ∈ N.

  • 2. LTL cannot express all ω-regular properties.

Martin Zimmermann Saarland University Parametric Linear Temporal Logics 2/25

slide-6
SLIDE 6

Motivation

Linear Temporal Logic (LTL) as specification language: Simple and variable-free syntax and intuitive semantics. Expressively equivalent to first-order logic on words. LTL model checking routinely applied in industrial settings. Shortcomings:

  • 1. LTL cannot express timing constraints.

Add F≤k for k ∈ N. Not practical: how to determine appropriate k.

  • 2. LTL cannot express all ω-regular properties.

Martin Zimmermann Saarland University Parametric Linear Temporal Logics 2/25

slide-7
SLIDE 7

Motivation

Linear Temporal Logic (LTL) as specification language: Simple and variable-free syntax and intuitive semantics. Expressively equivalent to first-order logic on words. LTL model checking routinely applied in industrial settings. Shortcomings:

  • 1. LTL cannot express timing constraints.

Add F≤k for k ∈ N. Not practical: how to determine appropriate k. Add F≤x for variable x.

  • 2. LTL cannot express all ω-regular properties.

Martin Zimmermann Saarland University Parametric Linear Temporal Logics 2/25

slide-8
SLIDE 8

Motivation

Linear Temporal Logic (LTL) as specification language: Simple and variable-free syntax and intuitive semantics. Expressively equivalent to first-order logic on words. LTL model checking routinely applied in industrial settings. Shortcomings:

  • 1. LTL cannot express timing constraints.

Add F≤k for k ∈ N. Not practical: how to determine appropriate k. Add F≤x for variable x. Now: does there exist a valuation for x s.t. specification is satisfied?

  • 2. LTL cannot express all ω-regular properties.

Martin Zimmermann Saarland University Parametric Linear Temporal Logics 2/25

slide-9
SLIDE 9

Motivation

Linear Temporal Logic (LTL) as specification language: Simple and variable-free syntax and intuitive semantics. Expressively equivalent to first-order logic on words. LTL model checking routinely applied in industrial settings. Shortcomings:

  • 1. LTL cannot express timing constraints.

Add F≤k for k ∈ N. Not practical: how to determine appropriate k. Add F≤x for variable x. Now: does there exist a valuation for x s.t. specification is satisfied?

  • 2. LTL cannot express all ω-regular properties.

Many extensions that are equivalent to ω-regular languages: add regular expression-, grammar-, or automata-operators to LTL.

Martin Zimmermann Saarland University Parametric Linear Temporal Logics 2/25

slide-10
SLIDE 10

Overview

LTL

Martin Zimmermann Saarland University Parametric Linear Temporal Logics 3/25

slide-11
SLIDE 11

Overview

LTL PLTL

Martin Zimmermann Saarland University Parametric Linear Temporal Logics 3/25

slide-12
SLIDE 12

Parametric LTL

Alur et al. ’99: add parameterized operators to LTL ϕ ::= p | ¬p | ϕ ∧ ϕ | ϕ ∨ ϕ | Xϕ | ϕUϕ | ϕRϕ | F≤xϕ | G≤yϕ with x ∈ X, y ∈ Y (X ∩ Y = ∅).

Martin Zimmermann Saarland University Parametric Linear Temporal Logics 4/25

slide-13
SLIDE 13

Parametric LTL

Alur et al. ’99: add parameterized operators to LTL ϕ ::= p | ¬p | ϕ ∧ ϕ | ϕ ∨ ϕ | Xϕ | ϕUϕ | ϕRϕ | F≤xϕ | G≤yϕ with x ∈ X, y ∈ Y (X ∩ Y = ∅). Semantics w.r.t. variable valuation α: X ∪ Y → N: As usual for LTL operators. (ρ, n, α) | = F≤xϕ: ρ n n + α(x) ϕ (ρ, n, α) | = G≤yϕ: ρ n n + α(y) ϕ ϕ ϕ ϕ ϕ

Martin Zimmermann Saarland University Parametric Linear Temporal Logics 4/25

slide-14
SLIDE 14

Parametric LTL

Alur et al. ’99: add parameterized operators to LTL ϕ ::= p | ¬p | ϕ ∧ ϕ | ϕ ∨ ϕ | Xϕ | ϕUϕ | ϕRϕ | F≤xϕ | G≤yϕ with x ∈ X, y ∈ Y (X ∩ Y = ∅). Semantics w.r.t. variable valuation α: X ∪ Y → N: As usual for LTL operators. (ρ, n, α) | = F≤xϕ: ρ n n + α(x) ϕ (ρ, n, α) | = G≤yϕ: ρ n n + α(y) ϕ ϕ ϕ ϕ ϕ Fragments: PLTLF: no parameterized always operators G≤y. PLTLG: no parameterized eventually operators F≤x.

Martin Zimmermann Saarland University Parametric Linear Temporal Logics 4/25

slide-15
SLIDE 15

PLTL Games

v0 {q0} {q1} {q0, q1} {d} {p0} {p1}

Martin Zimmermann Saarland University Parametric Linear Temporal Logics 5/25

slide-16
SLIDE 16

PLTL Games

v0 {q0} {q1} {q0, q1} {d} {p0} {p1} ϕ1 = FGd ∨

i∈{0,1} G(qi → Fpi) : Player 0 wins.

Martin Zimmermann Saarland University Parametric Linear Temporal Logics 5/25

slide-17
SLIDE 17

PLTL Games

v0 {q0} {q1} {q0, q1} {d} {p0} {p1} ϕ1 = FGd ∨

i∈{0,1} G(qi → Fpi) : Player 0 wins.

ϕ2 = FGd ∨

i∈{0,1} G(qi → F≤xipi) : Player 1 wins w.r.t.

every α.

Martin Zimmermann Saarland University Parametric Linear Temporal Logics 5/25

slide-18
SLIDE 18

PLTL Games

v0 {q0} {q1} {q0, q1} {d} {p0} {p1} Wi(G) = {α | Player i has winning strategy for G w.r.t. α}

Martin Zimmermann Saarland University Parametric Linear Temporal Logics 5/25

slide-19
SLIDE 19

PLTL Games

v0 {q0} {q1} {q0, q1} {d} {p0} {p1} Wi(G) = {α | Player i has winning strategy for G w.r.t. α}

Lemma (Determinacy)

W0(G) is the complement of W1(G).

Martin Zimmermann Saarland University Parametric Linear Temporal Logics 5/25

slide-20
SLIDE 20

Decision Problems

Membership: given G, i ∈ {0, 1}, and α, is α ∈ Wi(G)? Emptiness: given G and i ∈ {0, 1}, is Wi(G) empty? Finiteness: given G and i ∈ {0, 1}, is Wi(G) finite? Universality: given G and i ∈ {0, 1}, is Wi(G) universal?

Martin Zimmermann Saarland University Parametric Linear Temporal Logics 6/25

slide-21
SLIDE 21

Decision Problems

Membership: given G, i ∈ {0, 1}, and α, is α ∈ Wi(G)? Emptiness: given G and i ∈ {0, 1}, is Wi(G) empty? Finiteness: given G and i ∈ {0, 1}, is Wi(G) finite? Universality: given G and i ∈ {0, 1}, is Wi(G) universal? The benchmark:

Theorem (Pnueli, Rosner ’89)

Solving LTL games is 2Exptime-complete.

Martin Zimmermann Saarland University Parametric Linear Temporal Logics 6/25

slide-22
SLIDE 22

Decision Problems

Membership: given G, i ∈ {0, 1}, and α, is α ∈ Wi(G)? Emptiness: given G and i ∈ {0, 1}, is Wi(G) empty? Finiteness: given G and i ∈ {0, 1}, is Wi(G) finite? Universality: given G and i ∈ {0, 1}, is Wi(G) universal? The benchmark:

Theorem (Pnueli, Rosner ’89)

Solving LTL games is 2Exptime-complete. Adding parameterized operators does not increase complexity:

Theorem (Z. ’11)

All four decision problems are 2Exptime-complete.

Martin Zimmermann Saarland University Parametric Linear Temporal Logics 6/25

slide-23
SLIDE 23

Proof Sketch (Emptiness)

  • 1. Replacing G≤yψ by ψ preserves emptiness (monotonicity).
  • 2. Apply alternating color technique (Kupferman et al. ’06):

Add new proposition p and replace every F≤xψ by (p → pU(¬pUψ)) ∧ (¬p → ¬pU(pUψ)) (ψ satisfied within one color change), obtain c(ϕ).

Martin Zimmermann Saarland University Parametric Linear Temporal Logics 7/25

slide-24
SLIDE 24

Proof Sketch (Emptiness)

  • 1. Replacing G≤yψ by ψ preserves emptiness (monotonicity).
  • 2. Apply alternating color technique (Kupferman et al. ’06):

Add new proposition p and replace every F≤xψ by (p → pU(¬pUψ)) ∧ (¬p → ¬pU(pUψ)) (ψ satisfied within one color change), obtain c(ϕ).

Lemma

ϕ and c(ϕ) “equivalent” on traces where distance between color changes is bounded.

Martin Zimmermann Saarland University Parametric Linear Temporal Logics 7/25

slide-25
SLIDE 25

Proof Sketch (Emptiness)

  • 1. Replacing G≤yψ by ψ preserves emptiness (monotonicity).
  • 2. Apply alternating color technique (Kupferman et al. ’06):

Add new proposition p and replace every F≤xψ by (p → pU(¬pUψ)) ∧ (¬p → ¬pU(pUψ)) (ψ satisfied within one color change), obtain c(ϕ).

Lemma

ϕ and c(ϕ) “equivalent” on traces where distance between color changes is bounded.

  • 3. Emptiness for game with condition ϕ equivalent to Player 0

winning LTL game with condition c(ϕ) ∧ GFp ∧ GF¬p, as finite state strategies bound distance between color changes.

  • 4. Yields doubly-exponential upper bound.

Martin Zimmermann Saarland University Parametric Linear Temporal Logics 7/25

slide-26
SLIDE 26

Optimization Problems

For PLTLF and PLTLG winning conditions, synthesis is an

  • ptimization problem:

Martin Zimmermann Saarland University Parametric Linear Temporal Logics 8/25

slide-27
SLIDE 27

Optimization Problems

For PLTLF and PLTLG winning conditions, synthesis is an

  • ptimization problem:

Theorem (Z. ’11)

Let GF be a PLTLF game with winning condition ϕF and let GG be a PLTLG game with winning condition ϕG. The following values (and winning strategies realizing them) can be computed in triply-exponential time.

  • 1. minα∈W0(GF) minx∈var(ϕF) α(x).

Martin Zimmermann Saarland University Parametric Linear Temporal Logics 8/25

slide-28
SLIDE 28

Optimization Problems

For PLTLF and PLTLG winning conditions, synthesis is an

  • ptimization problem:

Theorem (Z. ’11)

Let GF be a PLTLF game with winning condition ϕF and let GG be a PLTLG game with winning condition ϕG. The following values (and winning strategies realizing them) can be computed in triply-exponential time.

  • 1. minα∈W0(GF) minx∈var(ϕF) α(x).
  • 2. minα∈W0(GF) maxx∈var(ϕF) α(x).

Martin Zimmermann Saarland University Parametric Linear Temporal Logics 8/25

slide-29
SLIDE 29

Optimization Problems

For PLTLF and PLTLG winning conditions, synthesis is an

  • ptimization problem:

Theorem (Z. ’11)

Let GF be a PLTLF game with winning condition ϕF and let GG be a PLTLG game with winning condition ϕG. The following values (and winning strategies realizing them) can be computed in triply-exponential time.

  • 1. minα∈W0(GF) minx∈var(ϕF) α(x).
  • 2. minα∈W0(GF) maxx∈var(ϕF) α(x).
  • 3. maxα∈W0(GG) maxy∈var(ϕG) α(y).
  • 4. maxα∈W0(GG) miny∈var(ϕG) α(y).

Martin Zimmermann Saarland University Parametric Linear Temporal Logics 8/25

slide-30
SLIDE 30

Proof Sketch

minα∈W0(GF) maxx∈var(ϕF) α(x) for PLTLF-formula ϕF.

  • 1. Replacing every variable by z preserves optimum

(monotonicity).

  • 2. Doubly-exponential upper bound on optimum.
  • 3. Models of ϕ w.r.t. α recognized by deterministic parity

automaton of triply-exponential size, provided α(z) is at most doubly-exponential.

  • 4. Thus, α ∈ W0(GF) can be decided in triply-exponential time.
  • 5. Run binary search over doubly-exponential search space.

Martin Zimmermann Saarland University Parametric Linear Temporal Logics 9/25

slide-31
SLIDE 31

Proof Sketch

minα∈W0(GF) maxx∈var(ϕF) α(x) for PLTLF-formula ϕF.

  • 1. Replacing every variable by z preserves optimum

(monotonicity).

  • 2. Doubly-exponential upper bound on optimum.
  • 3. Models of ϕ w.r.t. α recognized by deterministic parity

automaton of triply-exponential size, provided α(z) is at most doubly-exponential.

  • 4. Thus, α ∈ W0(GF) can be decided in triply-exponential time.
  • 5. Run binary search over doubly-exponential search space.

Note: Doubly-exponential lower bound on optimum rules out doubly- exponential running time for this algorithm.

Martin Zimmermann Saarland University Parametric Linear Temporal Logics 9/25

slide-32
SLIDE 32

Overview

LTL PLTL

Martin Zimmermann Saarland University Parametric Linear Temporal Logics 10/25

slide-33
SLIDE 33

Overview

LTL LDL PLTL

Martin Zimmermann Saarland University Parametric Linear Temporal Logics 10/25

slide-34
SLIDE 34

Linear Dynamic Logic

Vardi ’11: Another extension of LTL expressing exactly the ω-regular languages: use PDL-like operators ϕ ::= p | ¬p | ϕ ∧ ϕ | ϕ ∨ ϕ | rϕ | [r]ϕ r ::= φ | ϕ? | r + r | r ; r | r∗ where φ ranges over boolean formulas over atomic propositions.

Martin Zimmermann Saarland University Parametric Linear Temporal Logics 11/25

slide-35
SLIDE 35

Linear Dynamic Logic

Vardi ’11: Another extension of LTL expressing exactly the ω-regular languages: use PDL-like operators ϕ ::= p | ¬p | ϕ ∧ ϕ | ϕ ∨ ϕ | rϕ | [r]ϕ r ::= φ | ϕ? | r + r | r ; r | r∗ where φ ranges over boolean formulas over atomic propositions. Semantics: (ρ, n, α) | = rϕ: ρ

r

  • n

ϕ (ρ, n, α) | = [r]ϕ: ρ

r r

  • r
  • n

ϕ ϕ ϕ

Martin Zimmermann Saarland University Parametric Linear Temporal Logics 11/25

slide-36
SLIDE 36

Results

Theorem (Vardi ’11)

LDL can be translated into linearly-sized alternating automata.

Martin Zimmermann Saarland University Parametric Linear Temporal Logics 12/25

slide-37
SLIDE 37

Results

Theorem (Vardi ’11)

LDL can be translated into linearly-sized alternating automata.

Corollary

  • 1. LDL model checking is Pspace-complete.
  • 2. Solving games with LDL winning conditions is

2Exptime-complete.

Martin Zimmermann Saarland University Parametric Linear Temporal Logics 12/25

slide-38
SLIDE 38

Results

Theorem (Vardi ’11)

LDL can be translated into linearly-sized alternating automata.

Corollary

  • 1. LDL model checking is Pspace-complete.
  • 2. Solving games with LDL winning conditions is

2Exptime-complete.

Theorem (Vardi ’11)

LDL defines exactly the ω-regular languages.

Martin Zimmermann Saarland University Parametric Linear Temporal Logics 12/25

slide-39
SLIDE 39

Overview

LTL LDL PLTL

Martin Zimmermann Saarland University Parametric Linear Temporal Logics 13/25

slide-40
SLIDE 40

Overview

LTL LDL PLTL PLDL

Martin Zimmermann Saarland University Parametric Linear Temporal Logics 13/25

slide-41
SLIDE 41

Parametric LDL

Faymonville, Z. ’14: add parameterized operators to LDL. ϕ ::= p | ¬p | ϕ ∧ ϕ | ϕ ∨ ϕ | rϕ | [r]ϕ | r≤xϕ | [r]≤yϕ r ::= φ | ϕ? | r + r | r ; r | r∗

Martin Zimmermann Saarland University Parametric Linear Temporal Logics 14/25

slide-42
SLIDE 42

Parametric LDL

Faymonville, Z. ’14: add parameterized operators to LDL. ϕ ::= p | ¬p | ϕ ∧ ϕ | ϕ ∨ ϕ | rϕ | [r]ϕ | r≤xϕ | [r]≤yϕ r ::= φ | ϕ? | r + r | r ; r | r∗ We are interested in same decision problems as for PLTL Membership: given G, i ∈ {0, 1}, and α, is α ∈ Wi(G)? Emptiness: given G and i ∈ {0, 1}, is Wi(G) empty? Finiteness: given G and i ∈ {0, 1}, is Wi(G) finite? Universality: given G and i ∈ {0, 1}, is Wi(G) universal? as well as the optimization problems.

Martin Zimmermann Saarland University Parametric Linear Temporal Logics 14/25

slide-43
SLIDE 43

The Alternating Color Technique for PLDL

  • 1. Eliminate [r]≤yψ:

Lemma

For every r there is an ˆ r such that [r]≤yψ holds for α(y) = 0 if and only if [ˆ r]ψ holds.

Martin Zimmermann Saarland University Parametric Linear Temporal Logics 15/25

slide-44
SLIDE 44

The Alternating Color Technique for PLDL

  • 1. Eliminate [r]≤yψ:

Lemma

For every r there is an ˆ r such that [r]≤yψ holds for α(y) = 0 if and only if [ˆ r]ψ holds.

  • 2. Eliminate r≤xψ using alternating color technique:

Need to match r and p∗(¬p)∗ + (¬p)∗p∗. Introduce color change aware operators: rcc only takes into account matches of r within at most one color change. Thus, replace r≤xψ by rccψ, obtain c(ϕ).

Martin Zimmermann Saarland University Parametric Linear Temporal Logics 15/25

slide-45
SLIDE 45

The Alternating Color Technique for PLDL

  • 1. Eliminate [r]≤yψ:

Lemma

For every r there is an ˆ r such that [r]≤yψ holds for α(y) = 0 if and only if [ˆ r]ψ holds.

  • 2. Eliminate r≤xψ using alternating color technique:

Need to match r and p∗(¬p)∗ + (¬p)∗p∗. Introduce color change aware operators: rcc only takes into account matches of r within at most one color change. Thus, replace r≤xψ by rccψ, obtain c(ϕ).

Lemma

ϕ and c(ϕ) “equivalent” on traces where distance between color changes is bounded.

Martin Zimmermann Saarland University Parametric Linear Temporal Logics 15/25

slide-46
SLIDE 46

Translating LDLcc into Automata

Theorem (Faymonville, Z. ’14)

LDLcc-formulas can be translated into linearly-sized alternating automata. Proof Sketch: Bottom up construction: Atomic formulas, conjunction, and disjunction straightforward.

Martin Zimmermann Saarland University Parametric Linear Temporal Logics 16/25

slide-47
SLIDE 47

Translating LDLcc into Automata

Theorem (Faymonville, Z. ’14)

LDLcc-formulas can be translated into linearly-sized alternating automata. Proof Sketch: Bottom up construction: Atomic formulas, conjunction, and disjunction straightforward. rψ: construct NFA Ar for r and alternating automaton Aψ for ψ, connect final states of Ar with initial state of Aψ.

Martin Zimmermann Saarland University Parametric Linear Temporal Logics 16/25

slide-48
SLIDE 48

Translating LDLcc into Automata

Theorem (Faymonville, Z. ’14)

LDLcc-formulas can be translated into linearly-sized alternating automata. Proof Sketch: Bottom up construction: Atomic formulas, conjunction, and disjunction straightforward. rψ: construct NFA Ar for r and alternating automaton Aψ for ψ, connect final states of Ar with initial state of Aψ. [r]ψ: as for rψ, but make all states of Ar universal to test for all matches of r.

Martin Zimmermann Saarland University Parametric Linear Temporal Logics 16/25

slide-49
SLIDE 49

Translating LDLcc into Automata

Theorem (Faymonville, Z. ’14)

LDLcc-formulas can be translated into linearly-sized alternating automata. Proof Sketch: Bottom up construction: Atomic formulas, conjunction, and disjunction straightforward. rψ: construct NFA Ar for r and alternating automaton Aψ for ψ, connect final states of Ar with initial state of Aψ. [r]ψ: as for rψ, but make all states of Ar universal to test for all matches of r. rccψ: as for rψ, but take intersection of Ar and automaton checking for at most one color change.

Martin Zimmermann Saarland University Parametric Linear Temporal Logics 16/25

slide-50
SLIDE 50

Results for LDL

Theorem (Faymonville, Z. ’14)

PLDL model checking is Pspace-complete.

Martin Zimmermann Saarland University Parametric Linear Temporal Logics 17/25

slide-51
SLIDE 51

Results for LDL

Theorem (Faymonville, Z. ’14)

PLDL model checking is Pspace-complete.

Theorem (Faymonville, Z. ’14)

Solving games with PLDL winning conditions is 2Exptime-complete.

Martin Zimmermann Saarland University Parametric Linear Temporal Logics 17/25

slide-52
SLIDE 52

Results for LDL

Theorem (Faymonville, Z. ’14)

PLDL model checking is Pspace-complete.

Theorem (Faymonville, Z. ’14)

Solving games with PLDL winning conditions is 2Exptime-complete.

Theorem (Faymonville, Z. ’14)

PLDL optimization problems are solvable in polynomial space for model checking, and triply-exponential time for games.

Martin Zimmermann Saarland University Parametric Linear Temporal Logics 17/25

slide-53
SLIDE 53

Overview

LTL LDL PLTL PLDL

Martin Zimmermann Saarland University Parametric Linear Temporal Logics 18/25

slide-54
SLIDE 54

Overview

LTL LDL PLTL PLDL RR

Martin Zimmermann Saarland University Parametric Linear Temporal Logics 18/25

slide-55
SLIDE 55

Request-Response Conditions

For propositions qj (requests) and pj (responses) ϕ = k

j=1 G(qj → Fpj)

Martin Zimmermann Saarland University Parametric Linear Temporal Logics 19/25

slide-56
SLIDE 56

Request-Response Conditions

For propositions qj (requests) and pj (responses) ϕ = k

j=1 G(qj → Fpj)

From now on: RR game (A, (Qj, Pj)j=1,...,k). Player 0 wins if every request is answered by corresponding response, i.e., if ϕ is satisfied.

Martin Zimmermann Saarland University Parametric Linear Temporal Logics 19/25

slide-57
SLIDE 57

Request-Response Conditions

For propositions qj (requests) and pj (responses) ϕ = k

j=1 G(qj → Fpj)

From now on: RR game (A, (Qj, Pj)j=1,...,k). Player 0 wins if every request is answered by corresponding response, i.e., if ϕ is satisfied.

Theorem (Wallmeier, H¨ utten, Thomas ’03)

RR games can be reduced to B¨ uchi games of size |A|k2k+1.

Martin Zimmermann Saarland University Parametric Linear Temporal Logics 19/25

slide-58
SLIDE 58

Request-Response Conditions

For propositions qj (requests) and pj (responses) ϕ = k

j=1 G(qj → Fpj)

From now on: RR game (A, (Qj, Pj)j=1,...,k). Player 0 wins if every request is answered by corresponding response, i.e., if ϕ is satisfied.

Theorem (Wallmeier, H¨ utten, Thomas ’03)

RR games can be reduced to B¨ uchi games of size |A|k2k+1.

Corollary

Finite-state winning strategies of size k2k+1 for both players. Solvable in Exptime.

Martin Zimmermann Saarland University Parametric Linear Temporal Logics 19/25

slide-59
SLIDE 59

Waiting Times

wtj(ε) = 0, and wtj(wv) =            if wtj(w) = 0 and v / ∈ Qj \ Pj,

Martin Zimmermann Saarland University Parametric Linear Temporal Logics 20/25

slide-60
SLIDE 60

Waiting Times

wtj(ε) = 0, and wtj(wv) =            if wtj(w) = 0 and v / ∈ Qj \ Pj, 1 if wtj(w) = 0 and v ∈ Qj \ Pj,

Martin Zimmermann Saarland University Parametric Linear Temporal Logics 20/25

slide-61
SLIDE 61

Waiting Times

wtj(ε) = 0, and wtj(wv) =            if wtj(w) = 0 and v / ∈ Qj \ Pj, 1 if wtj(w) = 0 and v ∈ Qj \ Pj, if wtj(w) > 0 and v ∈ Pj,

Martin Zimmermann Saarland University Parametric Linear Temporal Logics 20/25

slide-62
SLIDE 62

Waiting Times

wtj(ε) = 0, and wtj(wv) =            if wtj(w) = 0 and v / ∈ Qj \ Pj, 1 if wtj(w) = 0 and v ∈ Qj \ Pj, if wtj(w) > 0 and v ∈ Pj, wtj(w) + 1 if wtj(w) > 0 and v / ∈ Pj.

Martin Zimmermann Saarland University Parametric Linear Temporal Logics 20/25

slide-63
SLIDE 63

Waiting Times

wtj(ε) = 0, and wtj(wv) =            if wtj(w) = 0 and v / ∈ Qj \ Pj, 1 if wtj(w) = 0 and v ∈ Qj \ Pj, if wtj(w) > 0 and v ∈ Pj, wtj(w) + 1 if wtj(w) > 0 and v / ∈ Pj. val(ρ) = lim supn→∞

1 n

n−1

ℓ=0

  • j=1,...,k wtj(ρ0 · · · ρℓ)

Martin Zimmermann Saarland University Parametric Linear Temporal Logics 20/25

slide-64
SLIDE 64

Waiting Times

wtj(ε) = 0, and wtj(wv) =            if wtj(w) = 0 and v / ∈ Qj \ Pj, 1 if wtj(w) = 0 and v ∈ Qj \ Pj, if wtj(w) > 0 and v ∈ Pj, wtj(w) + 1 if wtj(w) > 0 and v / ∈ Pj. val(ρ) = lim supn→∞

1 n

n−1

ℓ=0

  • j=1,...,k wtj(ρ0 · · · ρℓ)

val(σ, v) = supρ∈Beh(v,σ) val(ρ)

Martin Zimmermann Saarland University Parametric Linear Temporal Logics 20/25

slide-65
SLIDE 65

Waiting Times

wtj(ε) = 0, and wtj(wv) =            if wtj(w) = 0 and v / ∈ Qj \ Pj, 1 if wtj(w) = 0 and v ∈ Qj \ Pj, if wtj(w) > 0 and v ∈ Pj, wtj(w) + 1 if wtj(w) > 0 and v / ∈ Pj. val(ρ) = lim supn→∞

1 n

n−1

ℓ=0

  • j=1,...,k wtj(ρ0 · · · ρℓ)

val(σ, v) = supρ∈Beh(v,σ) val(ρ) Goal: Prove that optimal winning strategies exist and are computable.

Martin Zimmermann Saarland University Parametric Linear Temporal Logics 20/25

slide-66
SLIDE 66

Main Theorem

Theorem

Optimal strategies for RR games exist, are effectively computable, and finite-state.

Martin Zimmermann Saarland University Parametric Linear Temporal Logics 21/25

slide-67
SLIDE 67

Main Theorem

Theorem

Optimal strategies for RR games exist, are effectively computable, and finite-state. Proof strategy:

  • 1. Strategies of small value can be turned into strategies with

bounded waiting times without increasing the value.

Martin Zimmermann Saarland University Parametric Linear Temporal Logics 21/25

slide-68
SLIDE 68

Main Theorem

Theorem

Optimal strategies for RR games exist, are effectively computable, and finite-state. Proof strategy:

  • 1. Strategies of small value can be turned into strategies with

bounded waiting times without increasing the value. This applies to optimal strategies as well. Makes the search space for optimal strategies finite. Involves removing parts of plays with large waiting times.

Martin Zimmermann Saarland University Parametric Linear Temporal Logics 21/25

slide-69
SLIDE 69

Main Theorem

Theorem

Optimal strategies for RR games exist, are effectively computable, and finite-state. Proof strategy:

  • 1. Strategies of small value can be turned into strategies with

bounded waiting times without increasing the value. This applies to optimal strategies as well. Makes the search space for optimal strategies finite. Involves removing parts of plays with large waiting times.

  • 2. Expand arena by keeping track of waiting time vectors up to

bound from 1.). RR-values equal to mean-payoff condition.

Martin Zimmermann Saarland University Parametric Linear Temporal Logics 21/25

slide-70
SLIDE 70

Main Theorem

Theorem

Optimal strategies for RR games exist, are effectively computable, and finite-state. Proof strategy:

  • 1. Strategies of small value can be turned into strategies with

bounded waiting times without increasing the value. This applies to optimal strategies as well. Makes the search space for optimal strategies finite. Involves removing parts of plays with large waiting times.

  • 2. Expand arena by keeping track of waiting time vectors up to

bound from 1.). RR-values equal to mean-payoff condition. Optimal strategy for mean-payoff yields optimal strategy for RR game.

Martin Zimmermann Saarland University Parametric Linear Temporal Logics 21/25

slide-71
SLIDE 71

Dickson’s Lemma

Dickson pair: ((x1, . . . , xk), (y1, . . . , yk)) ∈ Nk s.t. xj ≤ yj for all j.

Lemma (Dickson ’13)

(Nk, ≤) is a WQO, i.e., every infinite sequence has dickson pair.

Martin Zimmermann Saarland University Parametric Linear Temporal Logics 22/25

slide-72
SLIDE 72

Dickson’s Lemma

Dickson pair: ((x1, . . . , xk), (y1, . . . , yk)) ∈ Nk s.t. xj ≤ yj for all j.

Lemma (Dickson ’13)

(Nk, ≤) is a WQO, i.e., every infinite sequence has dickson pair. However, Dickson’s Lemma does not give any bound on length of infixes without dickson pairs (as there is none for Nk).

Martin Zimmermann Saarland University Parametric Linear Temporal Logics 22/25

slide-73
SLIDE 73

Dickson’s Lemma

Dickson pair: ((x1, . . . , xk), (y1, . . . , yk)) ∈ Nk s.t. xj ≤ yj for all j.

Lemma (Dickson ’13)

(Nk, ≤) is a WQO, i.e., every infinite sequence has dickson pair. However, Dickson’s Lemma does not give any bound on length of infixes without dickson pairs (as there is none for Nk). Waiting time vectors are special: either increment, or reset to zero.

Lemma

There is a function b(|A|, k) ∈ O(22|A|·k+2) such that every play infix of length b(|A|, k) has a dickson pair.

Martin Zimmermann Saarland University Parametric Linear Temporal Logics 22/25

slide-74
SLIDE 74

Bounding the Waiting Times

We have σ with val(σ, v) ≤

j=1,...,k |A|k2k =: bG for all

v ∈ W0(G).

Martin Zimmermann Saarland University Parametric Linear Temporal Logics 23/25

slide-75
SLIDE 75

Bounding the Waiting Times

We have σ with val(σ, v) ≤

j=1,...,k |A|k2k =: bG for all

v ∈ W0(G).

Lemma

Let σ be s.t. val(σ, v) ≤ bG for all v ∈ W0(G). There is σ′ with val(σ′, v) ≤ val(σ, v) for all v that uniformly bounds the waiting times for every condition j by bG + b(|A|, k − 1).

Martin Zimmermann Saarland University Parametric Linear Temporal Logics 23/25

slide-76
SLIDE 76

Bounding the Waiting Times

We have σ with val(σ, v) ≤

j=1,...,k |A|k2k =: bG for all

v ∈ W0(G).

Lemma

Let σ be s.t. val(σ, v) ≤ bG for all v ∈ W0(G). There is σ′ with val(σ′, v) ≤ val(σ, v) for all v that uniformly bounds the waiting times for every condition j by bG + b(|A|, k − 1).

wtj > bG Pj

Martin Zimmermann Saarland University Parametric Linear Temporal Logics 23/25

slide-77
SLIDE 77

Bounding the Waiting Times

We have σ with val(σ, v) ≤

j=1,...,k |A|k2k =: bG for all

v ∈ W0(G).

Lemma

Let σ be s.t. val(σ, v) ≤ bG for all v ∈ W0(G). There is σ′ with val(σ′, v) ≤ val(σ, v) for all v that uniformly bounds the waiting times for every condition j by bG + b(|A|, k − 1).

wtj > bG Pj ( , ): dickson pair

Martin Zimmermann Saarland University Parametric Linear Temporal Logics 23/25

slide-78
SLIDE 78

Bounding the Waiting Times

We have σ with val(σ, v) ≤

j=1,...,k |A|k2k =: bG for all

v ∈ W0(G).

Lemma

Let σ be s.t. val(σ, v) ≤ bG for all v ∈ W0(G). There is σ′ with val(σ′, v) ≤ val(σ, v) for all v that uniformly bounds the waiting times for every condition j by bG + b(|A|, k − 1).

wtj > bG Pj ( , ): dickson pair

Martin Zimmermann Saarland University Parametric Linear Temporal Logics 23/25

slide-79
SLIDE 79

Bounding the Waiting Times

We have σ with val(σ, v) ≤

j=1,...,k |A|k2k =: bG for all

v ∈ W0(G).

Lemma

Let σ be s.t. val(σ, v) ≤ bG for all v ∈ W0(G). There is σ′ with val(σ′, v) ≤ val(σ, v) for all v that uniformly bounds the waiting times for every condition j by bG + b(|A|, k − 1).

wtj > bG Pj

Martin Zimmermann Saarland University Parametric Linear Temporal Logics 23/25

slide-80
SLIDE 80

From RR Games to Mean-Payoff Games

Let tmaxj = valG +b(|A|, k − 1).

Martin Zimmermann Saarland University Parametric Linear Temporal Logics 24/25

slide-81
SLIDE 81

From RR Games to Mean-Payoff Games

Let tmaxj = valG +b(|A|, k − 1). Let A be DFA that keeps track of waiting vectors as long as each coordinate j is bounded by tmaxj (sink state ⊥).

Martin Zimmermann Saarland University Parametric Linear Temporal Logics 24/25

slide-82
SLIDE 82

From RR Games to Mean-Payoff Games

Let tmaxj = valG +b(|A|, k − 1). Let A be DFA that keeps track of waiting vectors as long as each coordinate j is bounded by tmaxj (sink state ⊥). Take cartesian product of A and A.

Martin Zimmermann Saarland University Parametric Linear Temporal Logics 24/25

slide-83
SLIDE 83

From RR Games to Mean-Payoff Games

Let tmaxj = valG +b(|A|, k − 1). Let A be DFA that keeps track of waiting vectors as long as each coordinate j is bounded by tmaxj (sink state ⊥). Take cartesian product of A and A. Define w by w((v, ⊥), (v′, ⊥)) = 1 +

j=1,...,k tmaxj and

w((v, (t1, . . . , tk)), (v′, (t′

1, . . . , t′ k))) =

  • j=1,...,k

tj

Martin Zimmermann Saarland University Parametric Linear Temporal Logics 24/25

slide-84
SLIDE 84

From RR Games to Mean-Payoff Games

Let tmaxj = valG +b(|A|, k − 1). Let A be DFA that keeps track of waiting vectors as long as each coordinate j is bounded by tmaxj (sink state ⊥). Take cartesian product of A and A. Define w by w((v, ⊥), (v′, ⊥)) = 1 +

j=1,...,k tmaxj and

w((v, (t1, . . . , tk)), (v′, (t′

1, . . . , t′ k))) =

  • j=1,...,k

tj Obtain mean-payoff game G′ = (A × A, w).

Martin Zimmermann Saarland University Parametric Linear Temporal Logics 24/25

slide-85
SLIDE 85

From RR Games to Mean-Payoff Games

Let tmaxj = valG +b(|A|, k − 1). Let A be DFA that keeps track of waiting vectors as long as each coordinate j is bounded by tmaxj (sink state ⊥). Take cartesian product of A and A. Define w by w((v, ⊥), (v′, ⊥)) = 1 +

j=1,...,k tmaxj and

w((v, (t1, . . . , tk)), (v′, (t′

1, . . . , t′ k))) =

  • j=1,...,k

tj Obtain mean-payoff game G′ = (A × A, w).

Theorem

Optimal strategy for mean-payoff game can be translated into

  • ptimal strategy for RR game.

Martin Zimmermann Saarland University Parametric Linear Temporal Logics 24/25

slide-86
SLIDE 86

Conclusion

LTL PLDL LDL PLTL RR LDL

Martin Zimmermann Saarland University Parametric Linear Temporal Logics 25/25

slide-87
SLIDE 87

Conclusion

MC: Pspace Games: 2Exptime LTL PLDL LDL PLTL RR LDL

Martin Zimmermann Saarland University Parametric Linear Temporal Logics 25/25

slide-88
SLIDE 88

Conclusion

MC: Pspace Games: 2Exptime

  • Opt. MC: poly. space
  • Opt. Games: 3-exp. time

LTL PLDL LDL PLTL RR LDL

Martin Zimmermann Saarland University Parametric Linear Temporal Logics 25/25

slide-89
SLIDE 89

Conclusion

MC: Pspace Games: 2Exptime

  • Opt. MC: poly. space
  • Opt. Games: 3-exp. time

Games: Exptime

  • Opt. Games: 2-exp. time

LTL PLDL LDL PLTL RR LDL

Martin Zimmermann Saarland University Parametric Linear Temporal Logics 25/25