winning caret games with modular strategies · ilaria de crescenzo and salvatore la torre winning...

45
Winning CaRet Games with Modular Strategies Ilaria De Crescenzo and Salvatore La Torre University of Salerno Pescara, 31 st August - CILC 2011 Ilaria De Crescenzo and Salvatore La Torre Winning CaRet Games with Modular Strategies

Upload: others

Post on 20-Jan-2020

4 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Winning CaRet Games with Modular Strategies · Ilaria De Crescenzo and Salvatore La Torre Winning CaRet Games with Modular Strategies. Recursive Game Graphs We chose to use recursive

Winning CaRet Games with Modular Strategies

Ilaria De Crescenzo and Salvatore La Torre

University of Salerno

Pescara, 31st August - CILC 2011

Ilaria De Crescenzo and Salvatore La Torre Winning CaRet Games with Modular Strategies

Page 2: Winning CaRet Games with Modular Strategies · Ilaria De Crescenzo and Salvatore La Torre Winning CaRet Games with Modular Strategies. Recursive Game Graphs We chose to use recursive

Pushdown systems

In this work we focus on pushdown systems

They can model systems with potentially recursive procedurecalls, as:

control flows in programs of sequential imperative and objectoriented programming languagesdistributed architecturescommunication protocols

In an open pushdown system, some of the choices dependupon the controllable inputs and some representuncontrollable nondeterminism (as a two-players game)

Ilaria De Crescenzo and Salvatore La Torre Winning CaRet Games with Modular Strategies

Page 3: Winning CaRet Games with Modular Strategies · Ilaria De Crescenzo and Salvatore La Torre Winning CaRet Games with Modular Strategies. Recursive Game Graphs We chose to use recursive

Recursive Game Graphs

We chose to use recursive game graphs as model.An RGG is composed of game modules, one of which is the startmodule.

- Vertices are partitioned into twosets depending on player whocontrols the next move.The playerare

GreenPlayer

and

RedPlayer

- Each module has entry nodes

and exit nodes.

The boxes map the other gamemodules.- An edge that goes from a nodeto box is a call- An edge that goes from a box toa node is a return

e1

n1

n2

x1

x2b2

S1

e2

n3

n4

x3

x4

b1

S2

Ilaria De Crescenzo and Salvatore La Torre Winning CaRet Games with Modular Strategies

Page 4: Winning CaRet Games with Modular Strategies · Ilaria De Crescenzo and Salvatore La Torre Winning CaRet Games with Modular Strategies. Recursive Game Graphs We chose to use recursive

Recursive Game Graphs

We chose to use recursive game graphs as model.An RGG is composed of game modules, one of which is the startmodule.

- Vertices are partitioned into twosets depending on player whocontrols the next move.The playerare

GreenPlayer

and

RedPlayer

- Each module has entry nodes

and exit nodes.

The boxes map the other gamemodules.- An edge that goes from a nodeto box is a call- An edge that goes from a box toa node is a return

e1

n1

n2

x1

x2b2

S1

e2

n3

n4

x3

x4

b1

S2

Ilaria De Crescenzo and Salvatore La Torre Winning CaRet Games with Modular Strategies

Page 5: Winning CaRet Games with Modular Strategies · Ilaria De Crescenzo and Salvatore La Torre Winning CaRet Games with Modular Strategies. Recursive Game Graphs We chose to use recursive

Recursive Game Graphs

We chose to use recursive game graphs as model.An RGG is composed of game modules, one of which is the startmodule.

- Vertices are partitioned into twosets depending on player whocontrols the next move.The playerare

GreenPlayer

and

RedPlayer- Each module has entry nodes

and exit nodes.

The boxes map the other gamemodules.- An edge that goes from a nodeto box is a call- An edge that goes from a box toa node is a return

e1

n1

n2

x1

x2b2

S1

e2

n3

n4

x3

x4

b1

S2

Ilaria De Crescenzo and Salvatore La Torre Winning CaRet Games with Modular Strategies

Page 6: Winning CaRet Games with Modular Strategies · Ilaria De Crescenzo and Salvatore La Torre Winning CaRet Games with Modular Strategies. Recursive Game Graphs We chose to use recursive

Recursive Game Graphs

We chose to use recursive game graphs as model.An RGG is composed of game modules, one of which is the startmodule.

- Vertices are partitioned into twosets depending on player whocontrols the next move.The playerare GreenPlayer and

RedPlayer- Each module has entry nodes

and exit nodes.

The boxes map the other gamemodules.- An edge that goes from a nodeto box is a call- An edge that goes from a box toa node is a return

e1

n1

n2

x1

x2b2

S1

e1

x1

x2

e2

n3

n4

x3

x4

b1

S2

n4e2

x3

x4

Ilaria De Crescenzo and Salvatore La Torre Winning CaRet Games with Modular Strategies

Page 7: Winning CaRet Games with Modular Strategies · Ilaria De Crescenzo and Salvatore La Torre Winning CaRet Games with Modular Strategies. Recursive Game Graphs We chose to use recursive

Recursive Game Graphs

We chose to use recursive game graphs as model.An RGG is composed of game modules, one of which is the startmodule.

- Vertices are partitioned into twosets depending on player whocontrols the next move.The playerare GreenPlayer and RedPlayer

- Each module has entry nodes

and exit nodes.

The boxes map the other gamemodules.- An edge that goes from a nodeto box is a call- An edge that goes from a box toa node is a return

e1

n1

n2

x1

x2b2

S1

n1

n2

e2

n3

n4

x3

x4

b1

S2

n3

Ilaria De Crescenzo and Salvatore La Torre Winning CaRet Games with Modular Strategies

Page 8: Winning CaRet Games with Modular Strategies · Ilaria De Crescenzo and Salvatore La Torre Winning CaRet Games with Modular Strategies. Recursive Game Graphs We chose to use recursive

Recursive Game Graphs

We chose to use recursive game graphs as model.An RGG is composed of game modules, one of which is the startmodule.

- Vertices are partitioned into twosets depending on player whocontrols the next move.The playerare GreenPlayer and RedPlayer- Each module has entry nodes

and exit nodes.

The boxes map the other gamemodules.- An edge that goes from a nodeto box is a call- An edge that goes from a box toa node is a return

e1

n1

n2

x1

x2b2

S1

e1

e2

n3

n4

x3

x4

b1

S2

e2

Ilaria De Crescenzo and Salvatore La Torre Winning CaRet Games with Modular Strategies

Page 9: Winning CaRet Games with Modular Strategies · Ilaria De Crescenzo and Salvatore La Torre Winning CaRet Games with Modular Strategies. Recursive Game Graphs We chose to use recursive

Recursive Game Graphs

We chose to use recursive game graphs as model.An RGG is composed of game modules, one of which is the startmodule.

- Vertices are partitioned into twosets depending on player whocontrols the next move.The playerare GreenPlayer and RedPlayer- Each module has entry nodesand exit nodes.

The boxes map the other gamemodules.- An edge that goes from a nodeto box is a call- An edge that goes from a box toa node is a return

e1

n1

n2

x1

x2b2

S1x1

x2

e2

n3

n4

x3

x4

b1

S2x3

x4

Ilaria De Crescenzo and Salvatore La Torre Winning CaRet Games with Modular Strategies

Page 10: Winning CaRet Games with Modular Strategies · Ilaria De Crescenzo and Salvatore La Torre Winning CaRet Games with Modular Strategies. Recursive Game Graphs We chose to use recursive

Recursive Game Graphs

We chose to use recursive game graphs as model.An RGG is composed of game modules, one of which is the startmodule.

- Vertices are partitioned into twosets depending on player whocontrols the next move.The playerare GreenPlayer and RedPlayer- Each module has entry nodesand exit nodes.

The boxes map the other gamemodules.

- An edge that goes from a nodeto box is a call- An edge that goes from a box toa node is a return

e1

n1

n2

x1

x2b2

S1

e2

n3

n4

x3

x4

b1

S2

Ilaria De Crescenzo and Salvatore La Torre Winning CaRet Games with Modular Strategies

Page 11: Winning CaRet Games with Modular Strategies · Ilaria De Crescenzo and Salvatore La Torre Winning CaRet Games with Modular Strategies. Recursive Game Graphs We chose to use recursive

Recursive Game Graphs

We chose to use recursive game graphs as model.An RGG is composed of game modules, one of which is the startmodule.

- Vertices are partitioned into twosets depending on player whocontrols the next move.The playerare GreenPlayer and RedPlayer- Each module has entry nodesand exit nodes.

The boxes map the other gamemodules.- An edge that goes from a nodeto box is a call

- An edge that goes from a box toa node is a return

e1

n1

n2

x1

x2b2

S1

e2

n3

n4

x3

x4

b1

S2

Ilaria De Crescenzo and Salvatore La Torre Winning CaRet Games with Modular Strategies

Page 12: Winning CaRet Games with Modular Strategies · Ilaria De Crescenzo and Salvatore La Torre Winning CaRet Games with Modular Strategies. Recursive Game Graphs We chose to use recursive

Recursive Game Graphs

We chose to use recursive game graphs as model.An RGG is composed of game modules, one of which is the startmodule.

- Vertices are partitioned into twosets depending on player whocontrols the next move.The playerare GreenPlayer and RedPlayer- Each module has entry nodesand exit nodes.

The boxes map the other gamemodules.- An edge that goes from a nodeto box is a call- An edge that goes from a box toa node is a return

e1

n1

n2

x1

x2b2

S1

e2

n3

n4

x3

x4

b1

S2

Ilaria De Crescenzo and Salvatore La Torre Winning CaRet Games with Modular Strategies

Page 13: Winning CaRet Games with Modular Strategies · Ilaria De Crescenzo and Salvatore La Torre Winning CaRet Games with Modular Strategies. Recursive Game Graphs We chose to use recursive

Recursive Game Graphs

A play of an RGG is a sequence of vertices starting from an entrynode of the start module and from a node to its successor there isa permitted transition

A winning set over an RGG is a language on the alphabet ofthe RGG

A winning set can be expressed by a winning condition(automata, formulas, etc...)

A play is said to be winning if its labeling is a string thatbelongs to the winning set

Ilaria De Crescenzo and Salvatore La Torre Winning CaRet Games with Modular Strategies

Page 14: Winning CaRet Games with Modular Strategies · Ilaria De Crescenzo and Salvatore La Torre Winning CaRet Games with Modular Strategies. Recursive Game Graphs We chose to use recursive

Strategies

A strategy for a player is a function that encodes how theplayer must play the game. It associates a move to every runthat ends in a node controlled by that player

A strategy is winning for a player if all plays according withthat strategy are winning, whatever are the moves of theother player

On RGGs can be defined a specific type of strategy, calledmodular

A strategy is said modular iff it can only refer to the localmemory of the module to choose the next move

Ilaria De Crescenzo and Salvatore La Torre Winning CaRet Games with Modular Strategies

Page 15: Winning CaRet Games with Modular Strategies · Ilaria De Crescenzo and Salvatore La Torre Winning CaRet Games with Modular Strategies. Recursive Game Graphs We chose to use recursive

Strategies

We consider a reachability condition on x2

e1

n1

n2

x1

x2b2

S1

e2

n3

n4

x3

x4

b1

S2

Ilaria De Crescenzo and Salvatore La Torre Winning CaRet Games with Modular Strategies

Page 16: Winning CaRet Games with Modular Strategies · Ilaria De Crescenzo and Salvatore La Torre Winning CaRet Games with Modular Strategies. Recursive Game Graphs We chose to use recursive

Strategies

We consider a reachability condition on x2

The following strategy iswinning:

from n4 go to x4from e2 call b1from e1, if the previousmove was a call, go to x1,else go to b2

e1

n1

n2

x1

x2b2

S1

e2

n3

n4

x3

x4

b1

S2

Ilaria De Crescenzo and Salvatore La Torre Winning CaRet Games with Modular Strategies

Page 17: Winning CaRet Games with Modular Strategies · Ilaria De Crescenzo and Salvatore La Torre Winning CaRet Games with Modular Strategies. Recursive Game Graphs We chose to use recursive

Strategies

We consider a reachability condition on x2

The following strategy iswinning:

from n4 go to x4from e2 call b1from e1, if the previousmove was a call, go to x1,else go to b2

e1

n1

n2

x1

x2b2

S1

e2

n3

n4

x3

x4

b1

S2

e1

Ilaria De Crescenzo and Salvatore La Torre Winning CaRet Games with Modular Strategies

Page 18: Winning CaRet Games with Modular Strategies · Ilaria De Crescenzo and Salvatore La Torre Winning CaRet Games with Modular Strategies. Recursive Game Graphs We chose to use recursive

Strategies

We consider a reachability condition on x2

The following strategy iswinning:

from n4 go to x4from e2 call b1from e1, if the previousmove was a call, go to x1,else go to b2

e1

n1

n2

x1

x2b2

S1

e2

n3

n4

x3

x4

b1

S2

e2

Ilaria De Crescenzo and Salvatore La Torre Winning CaRet Games with Modular Strategies

Page 19: Winning CaRet Games with Modular Strategies · Ilaria De Crescenzo and Salvatore La Torre Winning CaRet Games with Modular Strategies. Recursive Game Graphs We chose to use recursive

Strategies

We consider a reachability condition on x2

The following strategy iswinning:

from n4 go to x4from e2 call b1from e1, if the previousmove was a call, go to x1,else go to b2

e1

n1

n2

x1

x2b2

S1

e2

n3

n4

x3

x4

b1

S2

e1

x1

Ilaria De Crescenzo and Salvatore La Torre Winning CaRet Games with Modular Strategies

Page 20: Winning CaRet Games with Modular Strategies · Ilaria De Crescenzo and Salvatore La Torre Winning CaRet Games with Modular Strategies. Recursive Game Graphs We chose to use recursive

Strategies

We consider a reachability condition on x2

The following strategy iswinning:

from n4 go to x4from e2 call b1from e1, if the previousmove was a call, go to x1,else go to b2

e1

n1

n2

x1

x2b2

S1

e2

n3

n4

x3

x4

b1

S2

e2

n3

n4

x4

Ilaria De Crescenzo and Salvatore La Torre Winning CaRet Games with Modular Strategies

Page 21: Winning CaRet Games with Modular Strategies · Ilaria De Crescenzo and Salvatore La Torre Winning CaRet Games with Modular Strategies. Recursive Game Graphs We chose to use recursive

Strategies

We consider a reachability condition on x2

The following strategy iswinning:

from n4 go to x4from e2 call b1from e1, if the previousmove was a call, go to x1,else go to b2

e1

n1

n2

x1

x2b2

S1

e2

n3

n4

x3

x4

b1

S2

e1

Ilaria De Crescenzo and Salvatore La Torre Winning CaRet Games with Modular Strategies

Page 22: Winning CaRet Games with Modular Strategies · Ilaria De Crescenzo and Salvatore La Torre Winning CaRet Games with Modular Strategies. Recursive Game Graphs We chose to use recursive

Strategies

We consider a reachability condition on x2

The strategy seen before isnot modular. because thethird rule must knowinformations of the previousmodule to choose theinternal move to e1 or thecall to b2

The strategy modularhighlighted in this example iswinning

e1

n1

n2

x1

x2b2

S1

e2

n3

n4

x3

x4

b1

S2

e1

e2 n4

Ilaria De Crescenzo and Salvatore La Torre Winning CaRet Games with Modular Strategies

Page 23: Winning CaRet Games with Modular Strategies · Ilaria De Crescenzo and Salvatore La Torre Winning CaRet Games with Modular Strategies. Recursive Game Graphs We chose to use recursive

Strategies

We consider a reachability condition on x2

The strategy seen before isnot modular. because thethird rule must knowinformations of the previousmodule to choose theinternal move to e1 or thecall to b2

The strategy modularhighlighted in this example iswinning

e1

n1

n2

x1

x2b2

S1

e2

n3

n4

x3

x4

b1

S2

e1

e2 n4

n3 x4

Ilaria De Crescenzo and Salvatore La Torre Winning CaRet Games with Modular Strategies

Page 24: Winning CaRet Games with Modular Strategies · Ilaria De Crescenzo and Salvatore La Torre Winning CaRet Games with Modular Strategies. Recursive Game Graphs We chose to use recursive

Reasons

Studying games on graphs allows to analize behaviours of opensystems

In open system settings, the execution depends on theinteraction between a controller and an externalenviroment

Design a controller that supplies inputs to the system so thatthe product of controller and system satisfies correctnessspecification corresponds to computing winning strategies intwo-player games

If a winning modular strategy can be found, it means that we candesign for every module a controller that guarantees thecorrectness of the system whatever is the context in which themodule is invoked

Ilaria De Crescenzo and Salvatore La Torre Winning CaRet Games with Modular Strategies

Page 25: Winning CaRet Games with Modular Strategies · Ilaria De Crescenzo and Salvatore La Torre Winning CaRet Games with Modular Strategies. Recursive Game Graphs We chose to use recursive

Reasons

Studying games on graphs allows to analize behaviours of opensystems

In open system settings, the execution depends on theinteraction between a controller and an externalenviroment

Design a controller that supplies inputs to the system so thatthe product of controller and system satisfies correctnessspecification corresponds to computing winning strategies intwo-player games

If a winning modular strategy can be found, it means that we candesign for every module a controller that guarantees thecorrectness of the system whatever is the context in which themodule is invoked

Ilaria De Crescenzo and Salvatore La Torre Winning CaRet Games with Modular Strategies

Page 26: Winning CaRet Games with Modular Strategies · Ilaria De Crescenzo and Salvatore La Torre Winning CaRet Games with Modular Strategies. Recursive Game Graphs We chose to use recursive

Problem

It is not always possibile to have a winning strategy for theprotagonist on a RGG, and not all RGGs that have a winningstrategy have also a winning modular strategy for the protagonist

Problem

Given a RGG G and a winning condition, is there a modularwinning strategy for the GreenPlayer?

Ilaria De Crescenzo and Salvatore La Torre Winning CaRet Games with Modular Strategies

Page 27: Winning CaRet Games with Modular Strategies · Ilaria De Crescenzo and Salvatore La Torre Winning CaRet Games with Modular Strategies. Recursive Game Graphs We chose to use recursive

Problem

It is not always possibile to have a winning strategy for theprotagonist on a RGG, and not all RGGs that have a winningstrategy have also a winning modular strategy for the protagonist

Problem

Given a RGG G and a winning condition, is there a modularwinning strategy for the GreenPlayer?

Ilaria De Crescenzo and Salvatore La Torre Winning CaRet Games with Modular Strategies

Page 28: Winning CaRet Games with Modular Strategies · Ilaria De Crescenzo and Salvatore La Torre Winning CaRet Games with Modular Strategies. Recursive Game Graphs We chose to use recursive

Our contribution

In this work we analize and resolve the problem fora new class of games that we have defined

Modular CaRet Games

Ilaria De Crescenzo and Salvatore La Torre Winning CaRet Games with Modular Strategies

Page 29: Winning CaRet Games with Modular Strategies · Ilaria De Crescenzo and Salvatore La Torre Winning CaRet Games with Modular Strategies. Recursive Game Graphs We chose to use recursive

CaRet

CaRet is a temporal logic designed for recursive machines

Allows to express also stack inspection properties andspecifications of partial and total correctness with respect topre and post conditions

The syntax is:

ϕ := p | ϕ ∨ ϕ | ¬ ϕ | ©gϕ | ©aϕ | ©−ϕ | ϕ Ugϕ |ϕ Uaϕ | ϕ U−ϕ

Temporal operators are defined in three different modalities:Global successorAbstract successorCaller

Ilaria De Crescenzo and Salvatore La Torre Winning CaRet Games with Modular Strategies

Page 30: Winning CaRet Games with Modular Strategies · Ilaria De Crescenzo and Salvatore La Torre Winning CaRet Games with Modular Strategies. Recursive Game Graphs We chose to use recursive

Differences between modalities

e1

n1

n2

x1

x2b2

S1

e2

n3

n4

x3

x4

b1S2

e1

e2

e1 x1

n3 n4 x4

x2

e2

e1

a

e1

a

x1

b

n3

b

n4

a

x4

a

x2

a

e2

X ga

e1

global

e2

X ab

n3

abstract

e2

X−a

e1caller

Ilaria De Crescenzo and Salvatore La Torre Winning CaRet Games with Modular Strategies

Page 31: Winning CaRet Games with Modular Strategies · Ilaria De Crescenzo and Salvatore La Torre Winning CaRet Games with Modular Strategies. Recursive Game Graphs We chose to use recursive

Differences between modalities

e1

n1

n2

x1

x2b2

S1

e2

n3

n4

x3

x4

b1S2

e1

e1

e2

e1 x1

n3 n4 x4

x2

e2

e1

a

e1

a

x1

b

n3

b

n4

a

x4

a

x2

a

e2

X ga

e1

global

e2

X ab

n3

abstract

e2

X−a

e1caller

Ilaria De Crescenzo and Salvatore La Torre Winning CaRet Games with Modular Strategies

Page 32: Winning CaRet Games with Modular Strategies · Ilaria De Crescenzo and Salvatore La Torre Winning CaRet Games with Modular Strategies. Recursive Game Graphs We chose to use recursive

Differences between modalities

e1

n1

n2

x1

x2b2

S1

e2

n3

n4

x3

x4

b1S2

e2

e1

e2

e1 x1

n3 n4 x4

x2

e2

e1

a

e1

a

x1

b

n3

b

n4

a

x4

a

x2

a

e2

X ga

e1

global

e2

X ab

n3

abstract

e2

X−a

e1caller

Ilaria De Crescenzo and Salvatore La Torre Winning CaRet Games with Modular Strategies

Page 33: Winning CaRet Games with Modular Strategies · Ilaria De Crescenzo and Salvatore La Torre Winning CaRet Games with Modular Strategies. Recursive Game Graphs We chose to use recursive

Differences between modalities

e1

n1

n2

x1

x2b2

S1

e2

n3

n4

x3

x4

b1S2

e1

x1

e1

e2

e1 x1

n3 n4 x4

x2

e2

e1

a

e1

a

x1

b

n3

b

n4

a

x4

a

x2

a

e2

X ga

e1

global

e2

X ab

n3

abstract

e2

X−a

e1caller

Ilaria De Crescenzo and Salvatore La Torre Winning CaRet Games with Modular Strategies

Page 34: Winning CaRet Games with Modular Strategies · Ilaria De Crescenzo and Salvatore La Torre Winning CaRet Games with Modular Strategies. Recursive Game Graphs We chose to use recursive

Differences between modalities

e1

n1

n2

x1

x2b2

S1

e2

n3

n4

x3

x4

b1S2

e2

n3

n4

x4

e1

e2

e1 x1

n3 n4 x4

x2

e2

e1

a

e1

a

x1

b

n3

b

n4

a

x4

a

x2

a

e2

X ga

e1

global

e2

X ab

n3

abstract

e2

X−a

e1caller

Ilaria De Crescenzo and Salvatore La Torre Winning CaRet Games with Modular Strategies

Page 35: Winning CaRet Games with Modular Strategies · Ilaria De Crescenzo and Salvatore La Torre Winning CaRet Games with Modular Strategies. Recursive Game Graphs We chose to use recursive

Differences between modalities

e1

n1

n2

x1

x2b2

S1

e2

n3

n4

x3

x4

b1S2

e1

x2

e1

e2

e1 x1

n3 n4 x4

x2

e2

e1

a

e1

a

x1

b

n3

b

n4

a

x4

a

x2

a

e2

X ga

e1

global

e2

X ab

n3

abstract

e2

X−a

e1caller

Ilaria De Crescenzo and Salvatore La Torre Winning CaRet Games with Modular Strategies

Page 36: Winning CaRet Games with Modular Strategies · Ilaria De Crescenzo and Salvatore La Torre Winning CaRet Games with Modular Strategies. Recursive Game Graphs We chose to use recursive

Differences between modalities

e1

n1

n2

x1

x2b2

S1

e2

n3

n4

x3

x4

b1S2

e1

e2

e1 x1

n3 n4 x4

x2

e2

e1

a

e1

a

x1

b

n3

b

n4

a

x4

a

x2

a

e2

X ga

e1

global

e2

X ab

n3

abstract

e2

X−a

e1caller

Ilaria De Crescenzo and Salvatore La Torre Winning CaRet Games with Modular Strategies

Page 37: Winning CaRet Games with Modular Strategies · Ilaria De Crescenzo and Salvatore La Torre Winning CaRet Games with Modular Strategies. Recursive Game Graphs We chose to use recursive

Differences between modalities

e1

n1

n2

x1

x2b2

S1

e2

n3

n4

x3

x4

b1S2

e1

e2

e1 x1

n3 n4 x4

x2

e2

e1

a

e1

a

x1

b

n3

b

n4

a

x4

a

x2

a

e2

X ga

e1

global

e2

X ab

n3

abstract

e2

X−a

e1caller

Ilaria De Crescenzo and Salvatore La Torre Winning CaRet Games with Modular Strategies

Page 38: Winning CaRet Games with Modular Strategies · Ilaria De Crescenzo and Salvatore La Torre Winning CaRet Games with Modular Strategies. Recursive Game Graphs We chose to use recursive

Differences between modalities

e1

n1

n2

x1

x2b2

S1

e2

n3

n4

x3

x4

b1S2

e1

e2

e1 x1

n3 n4 x4

x2

e2

e1

a

e1

a

x1

b

n3

b

n4

a

x4

a

x2

a

e2

X ga

e1

global

e2

X ab

n3

abstract

e2

X−a

e1caller

Ilaria De Crescenzo and Salvatore La Torre Winning CaRet Games with Modular Strategies

Page 39: Winning CaRet Games with Modular Strategies · Ilaria De Crescenzo and Salvatore La Torre Winning CaRet Games with Modular Strategies. Recursive Game Graphs We chose to use recursive

Differences between modalities

e1

n1

n2

x1

x2b2

S1

e2

n3

n4

x3

x4

b1S2

e1

e2

e1 x1

n3 n4 x4

x2

e2

e1

a

e1

a

x1

b

n3

b

n4

a

x4

a

x2

a

e2

X ga

e1

global

e2

X ab

n3

abstract

e2

X−a

e1caller

Ilaria De Crescenzo and Salvatore La Torre Winning CaRet Games with Modular Strategies

Page 40: Winning CaRet Games with Modular Strategies · Ilaria De Crescenzo and Salvatore La Torre Winning CaRet Games with Modular Strategies. Recursive Game Graphs We chose to use recursive

Differences between modalities

e1

n1

n2

x1

x2b2

S1

e2

n3

n4

x3

x4

b1S2

e1

e2

e1 x1

n3 n4 x4

x2

e2

e1

a

e1

a

x1

b

n3

b

n4

a

x4

a

x2

a

e2

X ga

e1

global

e2

X ab

n3

abstract

e2

X−a

e1caller

Ilaria De Crescenzo and Salvatore La Torre Winning CaRet Games with Modular Strategies

Page 41: Winning CaRet Games with Modular Strategies · Ilaria De Crescenzo and Salvatore La Torre Winning CaRet Games with Modular Strategies. Recursive Game Graphs We chose to use recursive

Differences between modalities

e1

n1

n2

x1

x2b2

S1

e2

n3

n4

x3

x4

b1S2

e1

e2

e1 x1

n3 n4 x4

x2

e2

e1

a

e1

a

x1

b

n3

b

n4

a

x4

a

x2

a

e2

X ga

e1

global

e2

X ab

n3

abstract

e2

X−a

e1caller

Ilaria De Crescenzo and Salvatore La Torre Winning CaRet Games with Modular Strategies

Page 42: Winning CaRet Games with Modular Strategies · Ilaria De Crescenzo and Salvatore La Torre Winning CaRet Games with Modular Strategies. Recursive Game Graphs We chose to use recursive

Our result

We show that deciding the existence of a winning modularstrategy in a CaRet game is 2ExpTime-Complete

The lower bound derives from the fact that LTL-games for notrecursive graph are already 2ExpTime-Hard

We’ll show only that the upper bound of the proposedconstruction is 2ExpTime

Ilaria De Crescenzo and Salvatore La Torre Winning CaRet Games with Modular Strategies

Page 43: Winning CaRet Games with Modular Strategies · Ilaria De Crescenzo and Salvatore La Torre Winning CaRet Games with Modular Strategies. Recursive Game Graphs We chose to use recursive

Our Solution

Idea

Reduce the decision problem to a problem of emptiness ofnondeterministic automata with parity condition

Let 〈G , ϕ〉 be a modular CaRet game

Costructing an equivalent game 〈G ′, color〉 with a paritywinning condition such that |G ′| = O(2|ϕ|)

Costructing from 〈G ′, color〉 a two-way alternating parity treeautomaton Awin that accepts a strategy iff corresponds to awinning modular strategiey

Convert Awin in a one-way nondeterministic automaton, takeits intersection with the tree automaton that accepts strategytrees and check the emptiness of this resulting automaton

Ilaria De Crescenzo and Salvatore La Torre Winning CaRet Games with Modular Strategies

Page 44: Winning CaRet Games with Modular Strategies · Ilaria De Crescenzo and Salvatore La Torre Winning CaRet Games with Modular Strategies. Recursive Game Graphs We chose to use recursive

Conclusions

Deciding existence of modular winning strategies is solved in[Alur, La Torre, Madhusudan, 2003] for:

Reachability and safety winning condition (finite plays)External winning condition given as deterministic/universalBuchi/coBuchi or LTL formulas (infinite plays)

As far as we know, studies that analyze the problem withnon-regular winning condition are not known

Our work extends the previous results to this class of winningconditions, because CaRet formulas can express also notregular properties

Ilaria De Crescenzo and Salvatore La Torre Winning CaRet Games with Modular Strategies

Page 45: Winning CaRet Games with Modular Strategies · Ilaria De Crescenzo and Salvatore La Torre Winning CaRet Games with Modular Strategies. Recursive Game Graphs We chose to use recursive

Conclusions

The implementability of the proposed technique in tools,however, is countered by the high complexity, exponential inthe size of the graph and doubly exponential in the size of theformula

Typically, the analysis of real systems are done for smallformulas

Regarding the structural complexity, deciding the existence ofmodular strategies for LTL games is NP-complete

In this paper we have not analyzed the structural complexityand the question remains open

Ilaria De Crescenzo and Salvatore La Torre Winning CaRet Games with Modular Strategies