HAL Id: hal-00306410
https://hal.archives-ouvertes.fr/hal-00306410
Submitted on 25 Jul 2008
HAL is a multi-disciplinary open access archive for the deposit and dissemination of sci- entific research documents, whether they are pub- lished or not. The documents may come from teaching and research institutions in France or
L’archive ouverte pluridisciplinaire HAL, est destinée au dépôt et à la diffusion de documents scientifiques de niveau recherche, publiés ou non, émanant des établissements d’enseignement et de recherche français ou étrangers, des laboratoires
Tree automata and discrete distributed games
Julien Bernet, David Janin
To cite this version:
Julien Bernet, David Janin. Tree automata and discrete distributed games. Fundamentals of Com-
putation Theory (FCT), Aug 2005, Hungary. pp.540–551. �hal-00306410�
JulienBernetandDavid Janin
⋆
LaBRI,UniversitédeBordeauxI
351,oursdelaLibération
33405TaleneedexFRANCE
{bernet|janin}labri.fr
Abstrat. Distributedgames,asdened in[6℄,is areentmultiplayer
extension of disrete two player innite games. The main motivation
for their introdution is that they provide an abstrat framework for
distributed synthesis problems, in whih most known deidable ases
anbeenodedandsolveduniformly.
In the present paper, we show that this unifying approah allows as
wella better understandingofthe role playedby lassial resultsfrom
treeautomatatheory(asopposedtoadhoautomataonstrutions) in
distributedsynthesisproblems.More preisely,we use alternatingtree
automataomposition, andsimulationof analternatingautomaton by
anon-deterministione,astwoentraltoolsforgivingasimpleproofof
knowndeidableases.
Introdution
Distributedgames,asdenedin[6℄,isareentmultiplayerextensionofdisrete
two player innite games. The main motivation for their introdution is that
theyprovideanabstratframeworkfordistributedsynthesisproblems,inwhih
mostknowndeidableases[1,35,10℄anbeenodedandsolveduniformly.
Inthe presentpaper,weshow that this unifying approah allowsaswella
betterunderstandingof theroleplayedbylassialresultsfromtree automata
theoryin distributedsynthesisproblems.
Morepreisely,intheabovementionedworks,manydeisionalgorithmsrely
(moreorlessimpliitly)onautomataonstrutionsthatarenotexpliitlyrelated
tolassialautomatatheory.
Forinstane, in[3℄,themain onstrutiongivenbytheauthorstosolvethe
pipelinesynthesisproblemsounds likethesequentialompositionoftwotree-
automata.Similarly,oneofthemainonstrution(glueoperation)denedin[6℄
sounds like Muller and Shupp simulation of an alternatingautomaton by a
nondeterministione[7℄.
Thepurposeofthispaperistovalidatethis intuition,byexpliitlydening
theenounteredautomata(ortheirinputs)whentheyaremissingintheseworks,
andtoapply knownonstrutionsin ordertoreprovethesesynthesisresults.
⋆
ThisworkispartiallysupportedbytheEuropeanCommissionResearhandTraining
NetworkGamesandAutomataforSynthesisandValidation (RTNGAMES)
groundinto whih methods andapproahesanbe enoded andomparedone
withtheother.
Thetehnial relevane of our reformulation work is illustratedby the en-
odingandsolvingofthepipelinease[3℄.
Other Related Works
Peterson and Reif ([8℄, extended in [9℄) initiated the researh on multiplayer
gamesofinompleteinformation,onsidering nitegames,andintroduingthe
notionofhierarhial games:thesegamessatisfythepropertythatoneanlin-
early order theset of playerssuh that
p 1 ≤ p 2
ifand onlyifp2
knowsmorethan
p 1
,orequivalentlyp 2
knowsthestateofp 1
.Theyprovethatthesegamesaresolvable,byiterativelyremovingtheinompleteinformationassoiatedwith
eahplayer.
Subsequentresultsondistributedsynthesis(suhas[10℄,[3℄)essentiallyused
thesameideasandtehniques,exeptinthefatthattheyonsiderinniteplays
and/orbranhingtimespeiations.
Theommontehniqueistoutoutthelastplayerfromthegame(i.e.theone
thatknowsthestateofalltheother),modifyingintheproessthespeiation
sothatit reetsallmovesthatanbetaken bythisplayer,thendothesame
withthelastbut one,et....until asimple 2-playergameislefttosolve.
Ourpaper relyon the same priniple, making the automata onstrutions
expliit.
Organization ofthe Paper
Intherstsetion,afterreviewingsomeofthenotationsusedinthispaper,we
xthedenitions oftrees,treeautomataandinnitetwoplayergames.Muller
and Shuppnon determinization theorem is stated, and anotionof sequential
omposition oftreeautomataisalsodenedandanalyzed.
Distributedgamesanddistributedstrategiesarepresentedintheseondse-
tion.These gamesareplayedbyateamof proessplayersversusasingleenvi-
ronmentopponent.Eahproessplayeronlygetsinompleteinformationabout
thepositionoftheotherproesses.Theexisteneofawinningdistributedstrat-
egy inadistributed game isshownto be undeidable,evenforsimplewinning
onditionssuhas safetyand reahability.
Inthe third setion, werst show that using an(external) tree-automaton
inordertodenewinningstrategiesina(distributed)gameisessentiallyequiv-
alentto addinganadditionalproessplayer(internalizingtheautomaton)into
the game. Then, onversely, we show that when a proess player has enough
knowledgeto dedue the positions of theother proesses, then its loal arena
anbeexternalizedasatreeautomatonreadingthestrategiesoftheremaining
proesses, in whih non-deterministi hoies orrespond to the moves of the
proess; this automaton anbe omposed with any existing external winning
ondition.
orderto reduethenumberofproessplayersandthustosolvethedistributed
game.
The long-term goal of this approah is to gain benet from the high level
ofabstrationprovidedbygametheoryand, altogether,gainbenetfrom well-
knownonstrutionsof automatatheory(as itasbeendevelopedfrom Rabin's
seminal result[11℄), to help having abetter understandingof the fundamental
obstalesto thesynthesisofdistributedsystems.
1 Trees, Automata and Games
Forany alphabet
A
, letA ∗
andA ω
be the set of all nite and innite wordswith letters from
A
. LetA ∞ = A ∗ ∪ A ω
, andA ? = {ǫ} + A
. Standard nota-tionsonwordsandlanguagesofwordsareused.Inpartiular,givenalanguage
L ⊆ A ∗
, weuse the notationsL +
and(when the emptywordǫ 6∈ L
)L ω
thatstand,respetively,forthesetofwordsbuiltbyonatenatingnitelymanyand
innitelymanynitewordsof
L
.Foranynitewordw = a 1 . . . a n
, let|w| = n
bethelengthof
w
.Foranyinnitewordw
,letinf(w) = {a ∈ A | w ∈ (A ∗ .a) ω }
betheset oflettersthat ourinnitelyoftenin
w
.Foranytwosets
A
andX
,foranywordw ∈ A ∗
,deneπ X (w)
(theprojetionof
w
overX
)asthewordobtainedbydeleting anyletterthat isnotinX
fromthewordrepresentationof
w
.Given
n
numberedsetsA 1 , . . . , A n
, givenA = A 1 × . . . × A n
, givenany setof indies
I = {i 1 , . . . , i k } ⊆ {1, . . . , n}
withi 1 < . . . < i k
, we writeA[I]
fortheset
A[I] = A i 1 × . . . A i k
, foranyx = (a 1 , . . . , a n ) ∈ A
, wewritex[I]
fortheelements
x[I] = (x i 1 , . . . , x i k ) ∈ A[I]
,and, foranyP ⊆ A
,wewriteP [I]
fortheset
P[I] = {x[I] ∈ A[I] : x ∈ P }
.Inase
I = {i, i + 1, . . . , j}
(where1 ≤ i ≤ j ≤ n
), thesenotationssimplifyto
A[i . . . j]
,x[i . . . j]
andP [i . . . j]
respetively(and even simplify toA[i]
,x[i]
and
P[i]
wheni = j
). Thesenotationsalso extendto wordsasfollows:for anyword
w = a 1 .a 2 . . . . ∈ A ∞
, for anyI ⊆ {1, . . . , n}
,w[I] = a 1 [I].a 2 [I].a 3 [I] . . .
,andtorelations:foranyrelation
R ⊆ A × A
,wewriteR[I]
therelationonA[I]
dened by
R[I] = {(x[I], y[I]) ∈ A[I] × A[I] : (x, y) ∈ R}
.Giventwonitealphabets
D
andΣ
,aΣ
-labeledD
-tree(alsoalledD
,Σ
-tree)isapartial funtion
D ∗ → Σ
whosedomainislosedunderprexoperation.Inthesequel,elementsof
Σ
arealledlabelsandelementsofD
arealleddiretions.Foranytree
t : D ∗ → Σ
,thefuntionf lat t : Dom(t) → Σ.(D.Σ) ∗
isdenedby:
f lat t (ǫ) = t(ǫ)
and, for anyw ∈ D ∗
andd ∈ D
suh thatw.d ∈ Dom(t)
,f lat t (w.d) = f lat t (w).d.t(w.d)
. Observe thatDom(t)
andf lat t (Dom(t))
or-deredbytheprexorderingareisomorphi,and,asaonsequene,
f lat t (Dom(t))
uniquelydeterminestree
t
.Thefollowing denition isa variationon Mullerand Shupp's originaldef-
inition of alternatingautomaton[7℄. Ourgoal isto have atree-transduerlike
automatondenition,evenforalternatingautomaton.
Denition1 (Alternating tree automaton). A nite
(D, Σ)
-alternating treeautomatonisatuple:A = hQ = Q ∀ ⊎ Q ∃ , D, Σ, q 0 , δ = δ ∀ ∪ δ ∃ , Acc ⊆ Q ω i
where
Q
isanitesetofstates,q 0 ∈ Q ∃
istheinitialstate,δ ∀ : Q ∀ ×D → P (Q ∃ )
and
δ ∃ : Q ∃ × Σ → P (Q ∀ )
are the transition funtions, and theω
-rationallanguage
Acc
isthe innitary aeptane riterion.Automaton
A
isanondeterministiautomaton (alsoallednonalternating) when|δ ∀ (q, d)| ≤ 1
(foranyq ∈ Q ∀
,d ∈ D
).Denition2 (Runs). A run of an automaton
A = hQ, D, Σ, i, δ, Acci
overaΣ
-labeledD
-treet : D ∗ → Σ
isaQ ∀
-labeled(D ×Q ∃ )
treeρ : (D ×Q ∃ ) ∗ → Q ∀
suhthat:
ρ(ǫ) ∈ δ ∃ (q 0 , t(ǫ))
,for all
w ∈ Dom(ρ)
, ifρ(w) = q
, then for any diretiond ∈ D
suh thata = t(w[1].d)
is dened, and for any existential stateq 1 ∈ δ ∀ (q, d)
, thereexistsa universalstate
q 2 ∈ δ ∃ (q 1 , a)
suh thatρ(w.(d, q 1 )) = q 2
.Forany innitebranh
w
ofarunρ
ofA
overt
,states ρ (w)
isthesequeneof (universal and existential) states enountered along
w
. A treet
is aeptedby
A
if and only if there exists a runρ
ofA
overt
suh that for any innitebranh
w
inρ
:states ρ (w) ∈ Acc
.DenotebyL(A)
the language ofall trees thatare aeptedby
A
.The sizeof an automatonA
isdenotedby|A|
.Observethatthese treeautomata(bothalternatingandnonalternating),if
slightlyunusual,havethesameexpressivepowerastheirstandardounterpart,
asin [7℄.Inpartiular:
Theorem1 (Simulation [7℄). Any alternating tree automaton
A
is equiva-lent to a non deterministi tree automaton
A ′
, with|A ′ | ≤ 2 2 |A|
(with Mulleraeptaneondition).
Sinetherunsofanautomatonontreesarethemselvestrees, automataat
astreetransduersandanbesequentiallyombined.
Denition3 (Automata Composition). Given two tree automata
A 1 = hQ 1 , D 1 , Σ 1 , q 0,1 , δ 1 , Acc 1 i
andA 2 = hQ 2 , D 2 , Σ 2 , q 0,2 , δ 2 , Acc 2 i
, suh that au-tomaton
A 2
isnon deterministi withD 2 = D 1 × Q ∃ 1
andΣ 2 = Q ∀ 1
,we denethe ompositionof
A 1
followedbyA 2
tobe theautomatonA 2 ◦ A 1 = h Q, D e 1 , Σ 1 , q e 0 , e δ, Acci g
denedasfollows:
Q f ∃ = Q ∃ 1 × Q ∃ 2
;Q f ∀ = Q ∀ 1 × Q ∀ 2
;
q 0 = (q 0,1 , q 0,2 )
,
(q ′ 1 , q 2 ′ ) ∈ δ e ∀ ((q 1 , q 2 ), d) ⇔
q ′ 1 ∈ δ ∀ (q 1 , d) {q 2 ′ } = δ 2 ∀ (q 2 , (d, q ′ 1 ))
(q ′ 1 , q 2 ′ ) ∈ δ e ∃ ((q 1 , q 2 ), a) ⇔
q ′ 1 ∈ δ ∃ (q 1 , a) q ′ 2 ∈ δ ∃ 2 (q 2 , q 1 ′ )
Acc g = {w ∈ Q e ω | w[1] ∈ Acc 1 ∧ w[2] ∈ Acc 2 }
Theorem2. For any tree
t : D ∗ 1 → Σ 1
,t ∈ L(A 2 ◦ A 1 )
if and only if thereexistsanaepting run
ρ : (D 1 × Q ∃ 1 ) ∗ → Q ∀ 1
ofA 1
overt
suhthatρ ∈ L(A 2 )
.The proof, although tedious, is not ompliated, and is therefore omitted
here. Observe that it is ruial that
A 2
is non-alternating ; nevertheless, by applyingTheorem1,oneanalwaysassumethatisisthease.Denition4 (Simple(orTwoPlayer)Games).Asimplearenaisaquadru-
ple
G = hP, E, T P , T E i
,whereP
isanitesetofProesspositions,E
isanitesetofEnvironmentpositions,
T P ⊆ P ×E
isthesetofProessmoves,T E ⊆ E×P
is the set of Environment moves. A simple game
G = hP, E, T P , T E , e 0 , Wi
isbuilt upon asimplearena
hP, E, T P , T E i
byequipping itwithan initial positione 0 ∈ E
andaregularwinningonditionW ⊆ (P + E) ω
.Aspartiularasesofwinningondition,areahabilityonditionisawinning
ondition of the form
W = (P + E) ∗ .X.(P + E) ω
for some set of positionsX ⊆ P + E
tobereahedforProesstowin,andasafety onditionisawinningonditionoftheform
W = ((P +E) −X )) ω
forsomesetofpositionsX ⊆ P +E
tobeavoidedforProesstowin.
Aplay
w ∈ (P + E) ∗
in asimplegameis anynon-emptypathin thearenabeginningon
e 0
.Aplayw
iswinningforProesswheneitheritisniteandendsin anEnvironmentposition,oritis inniteandbelongsto
W
.Otherwise, itiswinning forEnvironment.
A strategy forProess is apartial funtion
σ : (E.P) + → E
suh that forany
w.p ∈ Dom(σ)
, foranypositione ∈ σ(w.p)
, then(p, e) ∈ T P
,and for anysuessor
p ′
ofe
,w.p.e.p ′ ∈ Dom(σ)
. A playw = e 0 .x 1 . . . .
is onsistent withstrategy
σ
when, foranyi ∈ N
, ifσ(e 0 . . . . .x i )
andx i+1
arebothdened thentheyareequal.Astrategy
σ
isawinningstrategyforProesswhenanymaximalplay(w.r.t.theprexordering)onsistentwith
σ
iswinning forProess.Givenastrategy
σ
insomegameG
,thestrategytreet σ : P ∗ → E
ofσ
inG
isdened indutivelyby
t σ (ǫ) = e 0
,andt σ (u.x) = σ(f lat t σ (u).x)
.Theorem3 ([2℄). Onnite two-player games with regularwinning ondition,
either Proess or Environment has a winning strategy, whih an be omputed
eetively.
2 Distributed Games
Denition5 (Distributed Arena). A distributed arena isa free asynhro-
nous produt where the possible Environmentmoves may have been restrited.
More preisely, given two arenas
G 1 = hP 1 , E 1 , T P,1 , T E,1 i
andG 2 = hP 2 , E 2 , T P,2 , T E,2 i
,a(two-proess)distributedarenabuiltuponthearenasG 1
andG 2
isany simplearena
G = hP, E, T P , T E i
ofthe formEnvironmentpositions:
E = E 1 × E 2
,Proessespositions:
P = (E 1 ∪ P 1 ) × (E 2 ∪ P 2 ) − (E 1 × E 2 )
,Proesses moves:
T P
is the set of all pairs(p, e) ∈ (P × E)
suh that,fori = 1
andi = 2
:•
eitherp[i] ∈ P i
and(p[i], e[i]) ∈ T P,i
(Proessi
isativeinp
),•
orp[i] ∈ E i
andp[i] = e[i]
(Proessi
isinativeinp
),andEnvironmentmoves:
T E
issomesubsetof thesetofall pairs(e, p) ∈ (E × P)
suhthat,fori = 1
andi = 2
:•
eitherp[i] ∈ P i
and(e[i], p[i]) ∈ T P,i
(EnvironmentativatesProessi
),•
orp[i] ∈ E i
andp[i] = e[i]
(EnvironmentkeepsProessi
inative).When the set
T E
of Environmentmoves ismaximal, we all suhan arenathe freeasynhronousprodut ofarenasG 1
andG 2
anditisdenotedbyG 1 ⊗ G 2
.Thesedenitionsextendto
n
-proess distributedarena.Sineadistributedarenaisbuiltupon
n
simplearenas,weneedadenitiontospeakaboutitsloalomponents:
Denition6 (Projetion of distributedarena).Given adistributedarena
G = hP, E, T P , T E i
,withE = E 1 × . . . × E n
andP = ((P 1 ∪ E 1 ) × . . . × (P n ∪ E n )) − E
,given anonemptysetI ⊆ {1, . . . , n}
,denethe anonialprojetionG[I]
ofG
onI
as the arenaG[I] = hP ′ , E ′ , T P ′ , T E ′ i
given by:P ′ = P[I] − E[I]
(possibly smaller than
P[I]
!),E ′ = E[I]
,T P ′ = T P [I] ∩ (P[I] × E[I])
, andT E ′ = T E [I] ∩ (E[I] × P [I])
.Remark. Observethat a
n
-proess distributed arenaG
as aboveanalwaysbeseenasadistributed arenabuiltupon thegames
G[1]
,...,G[n]
.Moreover,in the sameway Cartesianprodut of sets is (up to isomorphism) assoiative,
given anarbitrarynon empty set
I ⊂ {1, . . . , n}
,givenI = {1, . . . , n} − I
, then
-proessdistributed arenaG
an,aswell,beseenasadistributedarenabuilt uponthetwo(distributed)arenasG[I]
andG[I]
.Example 1 (ThePipeline:Beginning).Adistributedarhiteture(asdened
in [10℄, [3℄)is a set of sites linked together by some ommuniation hannels.
Eahsiteanhostaprogram,whihisessentiallyasequentialfuntion 1
mapping
asequeneofinputstoasequeneofoutputs.Asatypialexample,inapipeline
arhiteture,thesites arelinearlyorderedfrom lefttoright,eah sitetakingits
inputfromthesiteonitsright,andwritingitsoutputtothesiteonitsleft.
Tobemorepreise,supposeeahommuniationhannel
x i
anarryvaluesthat rangeoversomeset
X i
.Thesites i
reeivesitsinputfrom thehannelx i
,and writesits outputsto thehannel
x i−1
; thus, aprogram forthesites i
isa1
reallthatasequentialfuntionisafuntion
f : A ∗ → B ∗
thatisrealizedbyawordtransduerwithinputalphabet
A
andoutputalphabetB
.s 1 s n − 2 s n − 1 s n
x n
x n − 1
x n − 2
x 0
Fig.1.Apipelinearhiteture
sequentialfuntion
f i : X i ∗ → X i−1 ∗
.Theenvironmentwritesinputtothesystem onhannelx n
,andthesystem'soutputisread onhannelx 0
.For any pipeline arhiteture
A
, we an build a distributed arenaG A = hP, E, T P , T E i
whereeahproessplaystheroleofaprogram:onitsloalarena,theenvironment'smovesorrespondtothepossibleinputsforthissite,andthe
proessmovesorrespondtothepossibleoutputs:
P = X 1 × . . . × X n
;E = X 0 × . . . × X n−1
.
((v 1 , . . . , v n ), (v 1 ′ , . . . , v n ′ )) ∈ T E
iv i ′ = v i+1
foreahi ∈ {1, . . . , n − 1}
andv ′ n ∈ X n
.Observethat byrestritingtheEnvironmentmoves,weensurethat theen-
vironmentarriesorretlythevaluesalongthehannels.
Denition7 (Distributed Games). A
n
-proess distributed gameG
is atuple
G = hP, E, T P , T E , e 0 , Wi
where
hP, E, T P , T E i
isan
-proess distributedarena,e 0 ∈ E
isthe initial (En-vironment)position,and
W ⊆ (E.P ) ω
isthe (regular)winning innitaryondi-tion.
Adistributedgameisapartiularaseofsimplegame.Itfollowsthatprevi-
ousnotionsof playsand strategiesarestill dened.However,in order to avoid
onfusionwithwhat mayhappenintheloal arenaadistributed gameisbuild
upon,weshallspeaknowofaglobal play andaglobal strategy.
Theloal view Proess
i
hasofaglobalplayinadistributedgameG
isgivenbythemap
view i : (E.P) ∗ .E ? → (E i .P i ) ∗ .E i ?
dened inthefollowingway:
view i (ǫ) = ǫ
view i (x) = x[i]
view i (w.x.y) =
view i (w.x)
ifx[i] = y[i]
view i (w.x).y[i]
otherwise.A play
w ∈ (E.P) +
is said to be ative for Proessi
whenw
ends in aposition
p ∈ P
suhthatp[i] ∈ P[i]
.Denition8 (Loal and distributed Strategies). Given a
n
-tuple of loalstrategies
(σ i : (E[i].P[i]) + → E[i]) i∈{1,...,n}
,the induedglobal strategyσ 1 ⊗ . . . ⊗ σ n : (E.P ) + → E
is dened as follows: for any play of the form
w.p ∈ (E.P) +
, given the setI ⊆ {1, . . . , n}
of ative proesses in the global Proesses positionp
(i.e.I =
{i ∈ {1, . . . , n} : p[i] ∈ P i }
),deneσ(w.p) = e
by:
e[i] = σ i (view i (w))
fori ∈ I
e[i] = p[i]
fori ∈ {1, . . . , n} − I
(providedeverything iswell-dened, otherwise
σ(w.p)
isleftundened).Aglobal strategy
σ : (E.P ) + → E
isa distributed strategyifσ
equals theomposition
σ 1 ⊗ . . . ⊗ σ n
of somen
loal strategies.Note that global strategiesare not alwaysdistributed. Moreover,there are
distributedgamesinwhihtheProesseshaveawinningstrategy,butnowinning
distributed strategy.
From this, wean derive an important fat: the distributed game are not
determined,inthesensethatevenwhentheenvironmentdoesnothaveawinning
strategy,theproessesmaynothaveawinningdistributedstrategy.Furthermore,
usingthefatthattheproessesdonotsharethesameinformation,weareable
toprovidethefollowingundeidabilityresult:
Theorem4. The problem of nding a winning distributed strategy in a
3-proessdistributedgame withsafety orreahability winningonditionisunde-
idable.
Theproof is omitted heredue to spae restrition. Sue it to say that it
proeeds by redutionto the Post orrespondene problem, and relies heavily
on the fat that there are three proessesin the game. It is an open problem
whethersolvinga
2
-proessdistributedgameisdeidableornot.3 Tree Automata and Distributed Games
We rst mix games and automata,dening a winning ondition by means of
a tree-automatonthat reognizesthe set of trees of winning strategies. We il-
lustrate this new oneptby dening a pipeline gameoverthe pipeline arena.
Then,wepresentanalgorithm tosolvesuhagame,usingthenotionofleader
in adistributed game.
Denition9 (External Winning Condition). A game with external win-
ningonditionisatuple
G = hP, E, T P , T E , e 0 , Ai
where
hP, E, T P , T E i
isasimplearena,e 0 ∈ E
istheinitial position,andA
isa(P, E)
-tree automaton.Insuhagame, astrategyiswinning ifits strategytreebelongsto
L(A)
.Thisdenition extendstodistributedgames.Inthesequel,in order toavoidonfusion,agame withawinningondition
dened asinsetion2isalledgame withinternal winningondition.
As we are going to show, games with external winning ondition are not
essentiallymoreexpressivethangameswithinternalone.
Theorem5 (Internalization). Forany
n
-proess gameG
withexternal win-ning ondition, thereexistsa
n + 1
-proess gameG ′
withinternal winningon-dition suh that
G ′ [1, . . . , n] = G
, and suh that the proesses have a winningstrategy
σ
inG
ifand onlyif the proesses havea winningstrategyof the formσ ⊗ σ ′
inG ′
.Proof. (sketh)Let
G = hP, E, T P , T E , e 0 , Ai
(whereA = hQ ∀ ⊎ Q ∃ , P, E, q 0 , δ = δ ∀ ∪ δ ∃ , Acci
)beadistributedgamewithexternalwinningondition.ThegameG ′ = hP ′ , E ′ , T P ′ , T E ′ , e ′ 0 , Wi
isdenedasfollows.Thepositionsandthewinningonditionaregivenby:
P ′ = (E × (Q ∃ × E)) ∪ (P × (Q ∃ × {#}))
,
E ′ = (E × Q ∃ ) ∪ (E × Q ∀ )
,
e ′ 0 = (e 0 , q 0 )
,
W = {w ∈ (E ′ .P ′ ) ω | π Q ∀ ∪Q ∃ (w) ∈ Acc}
and movesare (repeatedly) dened by: from an environmentposition
(e, q) ∈ E × Q ∃
(ortheinitialposition):1. rst, Environment (deterministially) moves to the proess position
(e, (q, e)) ∈ E × (Q ∃ × E)
,2. then, the new(automaton) proess loally hooses
q ′ ∈ δ ∃ (q, e)
, the otherproessesstayidle,thustheplayproeedsin
G ′
,totheenvironmentposition(e, q ′ ) ∈ E × Q ∀
,3. then,Environmenthooses
p ∈ T E (e)
andq 1 ∈ δ ∀ (q ′ , p)
, andtheplaypro-eedstotheProessposition
(p, (q 1 , #)) ∈ P × Q ∃
,4. nally, proesses
1
ton
(on gameG
) hoose somee 1 ∈ T P (p)
, the new(automaton) proessstays almost idle (he simplydeletes the
#
sign), andtheplayproeedstotheEnvironmentposition
(e 1 , q 1 ) ∈ E × Q ∃
.If
ρ
is an aepting runofA
overt σ
(for some strategyσ
inG
), one deduefrom
ρ
astrategyσ ′
suh thatσ ⊗ σ ′
iswinning inG ′
.Conversely,ifσ ⊗ σ ′
isawinning strategyin
G ′
,oneaninferanaeptingrun ofA
overt σ
fromσ ′
.Moreover, when
G
is a simple game with external winning ondition, theinternalization proedure anbe furthersimplied (and amounts essentiallyto
buildtheprodutof
G
withtheautomaton),andtheresultinggamewithinternal onditionisasimplegameaswell.Example 2 (Pipeline ExampleContinued).Followingthepresentationfrom
[3℄, the synthesisproblem for distributed arhitetures is presentedas follows:
given adistributed arhiteture
A
and avetorof programs(f i ) 1≤i≤n
(one foreah site of
A
), the omputation tree of the system is a( Q
1≤i≤n X i )
-labeledX n
-tree,whereeahnodew
islabeledbythevaluesheldbytheommuniationhannelsafter input
w
tothesystem.Aspeiation forthesystemisalanguageof suh treesspeiedbyatree
automaton
A
(orequivalentlybyaMSO-formula).Thesynthesisproblem is then: doesthere exists avetorof programssuh
that theresultingomputationtreebelongsto thespeiation?
Building upon thepipeline arena
G A
asdened in example 1,wean nowdeneadistributed gameinwhihtheproesseshaveawinningstrategyifand
only if there is a solution to the synthesis problem in the pipeline arhite-
ture. Suppose thespeiation for
A
is given by thenite(X n , Q
0≤i≤n−1 X i )
-automaton
A
, wean easily denea( Q
1≤i≤n X i , Q
0≤i≤n−1 X i )
-automatonA ′
thataeptsatree
t ′
ifandonlyifitisthewideningofsometreet ∈ L(A)
(i.e.if
t ′ (w) = t(w[n])
forallw ∈ Dom(t ′ )
).Usingthisautomatonasanexternalwinningondition,wegettheenoding
ofthesynthesisproblemforthepipelinearhitetureinadistributedgame.
Observethat in this game, foreah
i ∈ {1, . . . , n}
, provided that Proessi
knowsthestrategyforalltheproessesfrom
1
toi − 1
,thenheanpreditthepositionineahoftheloalarenasfrom
1
toi − 1
.Usingtheaboveobservation,onemayasknowwhetheraninverseonstru-
tion to internalization is possible ornot. Intuitively, assuming that there is a
proessinan
n + 1
-distributedgamethatanpredit,ateverystep,whatisthe globalpositioninthegame,anweexternalizeitintoanexternalwinningondi-tionsuhthat,theresulting
n
-proessdistributedgamewithexternalondition isequivalent,in someeetivesense,to theinitialgame?Thenotionofleaderdenedbelowfollowsthis intuition.Infat,itprovides
aloalonditionthatissuientforsuhaglobalknowledgetobeavailableto
aProessplayer.
Denition10 (Leader). Given a
2
-proess gameG = hP, E, T P , T E , e 0 , Ai
,wesaythatProess
2
isaleaderwhen,foranyEnvironmentpositione ∈ E
,anyProessespositions
x
andy ∈ P
suhthatboth(e, x) ∈ T E
and(e, y) ∈ T E
,if
x[2] = y[2]
thenx[1] = y[1]
,if
x[2] ∈ E[2]
ory[2] ∈ E[2]
thenx = y
.Intuitively,Proess
2
isaleaderwhen,assoonasheknowsaglobalEnviron-mentpositionthen,afteranEnvironmentmove(orseveralonseutivemovesif
Proess
2
staysidleforsometime),Proess2
anpredit,fromhisownposition,theglobalProessespositionofthegame.
Thisloalpropertyhasthefollowingformulationwhenitomestoonsider-
ingplays:
Lemma1. Let
G = hP, E, T P , T E , e 0 i
bea2
-proessarenawithinitialpositione 0
.Foranystrategyσ
fortheproesses,therestritionofview 2
tothe playsthatare onsistentwith
σ
andativefor Proess2
isone-to-one.Proof. Immediatefrom thedenition.
Rephrasedinamoreusefulway,thisobservationleadstothefollowingresult:
Lemma2. Forany
2
-proessgameG = hP, E, T P , T E , e 0 , Wi
suhthatProess2
isaleader,thereexistsa(P [1], E[1])
-automatonA 2
suhthatforanystrategiesσ
onG
,σ 1
onG 1
,the following propositionsare equivalent:(1) thereexistsastrategy
σ 2
onG[2]
suhthatσ = σ 1 ⊗ σ 2
(2) thereisanaepting run
ρ
ofA 2
overt σ 1
suhthatρ = t σ 1
.Proof. (sketh)Werstgivehereaonstrutionfor
A 2
intheasebothProess1
andProess2
arealwaysativeinthepositionsforProesses.Automaton
A 2 = hQ 2 , P [1], E[1], q 0,2 , δ 2 , Acc 2 i
anbedenedasfollows:
Q ∀ 2 = E
;Q ∃ 2 = P [2] ∪ {q 0,2 }
,
δ 2 ∀ (q, p 1 ) = {p 2 ∈ Q ∃ 2 : (q, (p 1 , p 2 )) ∈ T E } (q ∈ Q ∀ 2 , p 1 ∈ P [1])
,
δ 2 ∃ (p 2 , e 1 ) = {q ∈ Q ∀ 2 : q[1] = e 1 ∧ (p 2 , q[2]) ∈ T P [2]} (p 2 ∈ Q ∃ 2 , e 1 ∈ E[1])
with
δ 2 ∃ (q 0,2 , e 1 ) = {e 0 [2]}
,
Acc 2 = Q ω 2
.Theorrespondenebetweenruns of
A 2
onstrategytrees inG[1]
and strategytreesin
G
easilyfollowsfromthis onstrution,andfrom thefat that Proess2
isaleaderinG
.IntheaseProess
2
maybeinativatedbyEnvironmentoneanhekthat, sineProess2
isaleader,gameG
anberstnormalizedsothatthisnolongerhappens(detailsarenotgivendue tolakofspae).
IntheaseProess
1
maybeinativatedbyEnvironment,thentheonstru- tionbelowanbeextended,dening(quiteeasilythoughtediously)anautoma-ton
A 2
withǫ
-transition.However,themainargumentsremainthesame.Sinethepreviousresultholdsforarbitraryexternalonditionandarbitrary
strategiesin
G[1]
(evenifG[1]
isitselfadistributed game),itfollows:Theorem6 (Externalization).
For any
n
-proess distributed gameG = hP, E, T P , T E , e 0 , Ai
with non deter-ministiexternalwinningondition
A
suhthatProessn
isaleader,thereisa(P [1 . . . n − 1], E[1 . . . n − 1])
-automatonA n
suhthat thefollowingpropositions are equivalent:(1) theproesses haveadistributedwinning strategy on
G
.(2) theproesseshaveadistributedwinningstrategyin
hG[1 . . . n−1], e 0 [1 . . . n−
1], A ◦ A n i
.Example 3 (The Pipeline: End). Wehavealreadymentionedthat,in the
n
-proesspipelinearena,fromanyinitialposition,Proess
n
isaleader.Itfollowsthat Theorem6applies.
Moreover,observethattheresulting
(n−1)
-proessgamearenaG[1 . . . n− 1]
is nothingbut a
(n − 1)
-proesspipeline arena.This says that Theorem6anbeapplied repeatedlytill thenumberof proessesis reduedto one.Now,one
aninternalizetheautomaton,andomputeawinningstrategyintheresulting
simplegameusingTheorem3.
Transposed onour moreabstrat setting, this anbe expressed asthe fol-
lowingorollaryofthetheorem.
Corollary 1. Forany
n
-proess(n ≥ 2
) distributedgameG
suhthat for eahi ∈ {2, . . . , n}
proessi
is a leader inG[1 . . . i]
, the problem of determining whether the proesseshave awinning strategy isdeidable.is an alternating automaton that needs to be simulated by a non alternating
one sothat the omposition anbe iterated. This means that the omplexity
ofsolvingthepipelinearhiteturesynthesisproblem bymeansofitsenoding
into adistributed game is atowerof exponents of depth at least the number
of omponentsin the pipeline. This (bad) omplexitywasexpeted, sine this
problemisnon-elementary[10℄.
4 Conluding Remarks
We have dened a set of automata theoreti tools that an be used to solve
variousdistributed synthesisproblems,e.g.thepipelinearhiteture[3℄.
Comparedto[6℄wedoobtainanautomatatheoreti interpretationofmost
oftheoperationsdenedthere:intheirapproah,applyingsuessivelyDivide
andGluetoagamewhereboth
0
andn
areleadersamounts,inoursetting,toexternalize
0
,toapplythesimulationtheorem,toexternalizen
,andeventuallytointernalizetheresultingautomaton.
Still,oneappliationasepresentedbytheauthorstosolvetheloalspei-
ationase[5℄isnotsolvedin thispaper.Thisisleftforfurtherstudies. There
isahanethattreeautomata theorywillstillprovidearguments.
Referenes
1. A.Arnold,A.Vinent,andI.Walukiewiz. Gamesforsynthesisofontrollerswith
partialobservation. toappearinTheoretialComputerSienes,2002.
2. E.A. Emersonand C.S. Jutla. Treeautomata, mu-alulusand determinay. In
Pro.32thSymp.onFoudationsofComputerSienes,pages368377.IEEE,1991.
3. O. Kupferman and M. Y. Vardi. Synthesizingdistributed systems. In Logi in
Computer Sienes,pages389398,2001.
4. F. Lin and M. Wonham. Deentralized ontrol and oordination of disrete
eventsystemswithpartialobservation. IEEE Transations onautomationtrol,
33(12):13301337, 1990.
5. P.Madhusudanand P.S. Thiagarajan. Distributed ontroller synthesis for loal
speiations.In28thInternationalColloquiumonAutomata,LanguagesandPro-
gramming(ICALP),volume2076 ofLNCS,pages396407,2001.
6. S.Mohalik and I. Walukiewiz. Distributedgames. InFoundations of Software
TehnologyandTheoretialComputerSiene,pages338351,2003.
7. D.E. Muller and P.E. Shupp. Simulating alternating tree automata by non-
deterministiautomata. TheoretialComputerSienes,141:67107,1995.
8. G.L. Petersonand J.H.Reif. Multiple-personalternation. In20th AnnualIEEE
SymposiumonFoundationsofComputer Sienes,pages348363,otober1979.
9. G.L.Peterson,J.H.Reif, andS.Azhar. Deisionalgorithmsfor multiplayernon-
ooperative gamesof inomplete information. Computers andMathematis with
Appliations,43:179206,january2002.
10. AmirPnueliandRoniRosner.Distributedreativesystemsarehardtosynthesize.
InIEEESymposiumonFoundations ofComputerSiene,pages746757,1990.
11. M.O.Rabin. Deidabilityofseondordertheoriesandautomataoninnitetrees.
TransationsoftheAmerianMathematialSoiety,141:135, 1969.