Download presentation
Presentation is loading. Please wait.
1
Alternating tree Automata and Parity games
Based on chapter 9 Logic and infinite games, edited by Gradel, Thomas and Wilke, LNCS 2500. Lior Schneider,
2
topics Defining Alternating tree automata and its behavior
Parity games equality to Ata The word problem complexity The complementation problem complexity The Emptiness problem complexity
3
perliminaries Through all of this lecture we will fix a set ofย Propositional variables ๐. Propositional variables are theย atomic formulasย of propositional logic Transition system: ๐,๐
,๐ : ๐ : the states ๐
โ๐๐ฅ๐ : relations ๐:๐โ๐ซ(๐) : assigns a set of states to every propositional variable Transition systems are known as Kripke structure: ๐=(๐,๐ผ,๐
,๐ฟ) ๐= ๐,๐ ; ๐= ๐ 1 , ๐ 2 , ๐ 3 ;๐ผ= ๐ 1 ; ๐
= ๐ 1 , ๐ 2 , ๐ 2 , ๐ 1 , ๐ 2 , ๐ 3 , ๐ 3 , ๐ 3 ๐ฟ= ๐ 1 , ๐,๐ , ๐ 2 , ๐ , ๐ 3 , ๐ M produces the path: ๐ 1 ๐ 2 ๐ 1 ๐ 2 ๐ 3 ๐ 3 .. The word: {๐,๐},{๐},{๐,๐},{๐},{๐},{๐},{๐},โฆ ๐ 1 {๐,๐} ๐ 2 {๐} ๐ 3 {๐}
4
perliminaries ๐ 1 {๐,๐} ๐ 2 {๐} Transition system:
For every variable ๐โ๐ and every state ๐ โ๐(๐), we say that ๐ is true in ๐ , and for ๐ โ๐\ ๐(๐), we say that ๐ is false in ๐ . ๐๐๐ ๐๐๐โ ๐ โ๐, ๐ ๐
= {๐ โฒ โ ๐ | (๐ , ๐ โฒ) โ ๐
} ๐๐๐ ๐
๐ = {๐ โฒ โ ๐ | (๐ โฒ, ๐ ) โ ๐
}. Pointed transition system: (๐ฎ, ๐ ๐ผ ) We call a transition system ๐ฎ= (๐,๐
, ๐) (๐๐๐ ๐ (๐ฎ, ๐ ๐ผ )) finite iff ๐ is finite and ๐(๐) =โ
for just finitely many ๐โ๐. ๐ 3 {๐}
5
perliminaries transition conditions ๐ ๐ถ ๐ ๐๐ฃ๐๐ ๐ ๐ ๐๐ก ๐๐ ๐ ๐ก๐๐ก๐๐ :
The symbols 0 and 1 are transition condition For every ๐โ๐, ๐ and ยฌ๐ are transition conditions. For every ๐โ๐, ๐, โ๐, โ๐ are transition conditions. For every ๐ 1 , ๐ 2 โ๐, ๐ 1 โง ๐ 2 ๐๐๐ ๐ 1 โจ ๐ 2 are transition conditions. Note that this definition does not allow transition conditions like ๐ 1 โงโ ๐ 2 ๐๐ pโง q for p โ P and q โ Q.
6
perliminaries Alternating Tree Automata: ๐= ๐, ๐ ๐ผ , ๐ฟ,ฮฉ
๐= ๐, ๐ ๐ผ , ๐ฟ,ฮฉ ๐ is a finite set of states of the automaton. ๐ ๐ผ โ๐ is a state called the initial state. ๐ฟ :๐โ ๐ ๐ถ ๐ is called transition function. ฮฉ :๐โ๐ is called priority function.
7
Alternating Tree Automata behavior
An instance of Ata is a tuple ๐,๐ ๐๐ร๐. The behavior of an Ata defined by the current instance. The automaton operates ๐ฟ ๐ ๐๐๐ ๐๐๐ก๐ ๐๐๐๐๐๐๐๐๐๐๐ฆ: (๐ ๐ผ ,๐ ๐ผ ) ๐ฟ ๐ ๐ผ = 0,1 , ๐, ยฌ๐ ๐ฟ ๐ ๐ผ =โ/โ๐โฒโ๐ stops (๐โฒ,๐ 1 ) ๐ฟ ๐ ๐ผ = ๐ โฒ , ๐โฒโ๐ ๐
๐๐๐๐ฆ ๐ก๐๐๐๐ ๐ฟ ๐ ๐ผ = ๐ 1 โง/โจ ๐ 2 ; ๐ 1 , ๐ 2 โ๐ (๐โฒ,๐ 3 ) (๐โฒ,๐ ๐ผ ) (๐โฒ,๐ 2 ) ( ๐ 2 ,๐ ๐ผ ) ( ๐ 1 ,๐ ๐ผ )
8
successful instance ๐ 1 {๐,๐} ๐ 2 {๐} ๐ 3 {๐}
We define a successful instance ๐,๐ accordingly: Recall: For every variable ๐โ๐ and every state ๐ โ๐(๐), we say that ๐ is true in ๐ , and for ๐ โ๐\ ๐(๐), we say that ๐ is false in ๐ . ๐ฟ ๐ =๐ ๐๐๐ ๐ ๐๐ ๐ก๐๐ข๐ ๐๐ ๐ (๐โ๐(๐ )) ๐ฟ ๐ =ยฌ๐ ๐๐๐ ๐ ๐๐ ๐๐๐๐ ๐ ๐๐ ๐ (๐โ๐(๐ )) ๐ฟ ๐ =1 If ๐ฟ(๐) =๐โฒ The instance (๐, ๐ ) is successful iff (๐โฒ, ๐ ) is successful. If ๐ฟ(๐) = ๐ 1 โง ๐ 2 , then the instance (๐, ๐ ) succeeds iff both the instances ( ๐ 1 , ๐ ) and ( ๐ 2 , ๐ ) succeed. If ๐ฟ(๐)= ๐ 1 โจ ๐ 2 , then the instance succeeds iff at least one of the instances ( ๐ 1 , ๐ ) and ( ๐ 2 , ๐ ) succeeds. If ๐ฟ(๐) =โ๐โฒ, then the instance (๐, ๐ ) succeeds iff for every ๐ โฒโ๐ ๐
the instance (๐โฒ, ๐ โฒ) succeed. If ๐ฟ(๐) =โ๐โฒ, then the instance (๐, ๐ ) succeeds iff for at least one ๐ โฒโ๐ ๐
the instance (๐โฒ, ๐ โฒ) succeed. Finally: The automaton accepts the transition system (๐ข, ๐ ๐ฐ ) iff the initial instance ( ๐ ๐ฐ , ๐ ๐ฐ ) succeeds.
9
Formalization problem
If we have an infinite tree, how can we determine if an instance is successful or not? ๐ฟ ๐ =๐ We will convert the automaton into a parity game! (๐,๐ ) ๐ฟ ๐ =๐
10
Parity game conversion
Let ๐= ๐, ๐ ๐ผ ,๐ฟ,ฮฉ , ๐ฎ= ๐, ๐ ๐ , we will examine a word ๐ฃโ ๐ร๐ โ and a letter ๐,๐ โ๐ร๐. (notation of ๐ฃ(๐,๐ ) word concatenation with letter) We will define ๐ on ๐ฎ behavior as the least language ๐โ ๐ร๐ โ such that ๐ ๐ผ , ๐ ๐ผ โ๐ and โ๐ฃ ๐,๐ โ๐: ๐ฟ ๐ = ๐ โฒ โ๐ฃ ๐,๐ ๐ โฒ ,๐ โ๐ ๐ฟ ๐ = ๐ 1 โง ๐ 2 ๐๐ ๐ 1 โจ ๐ 2 โ๐ฃ ๐,๐ ๐ 1 ,๐ โ๐ and ๐ฃ ๐,๐ ๐ 2 ,๐ โ๐ ๐ฟ ๐ =โ๐โฒ ๐๐ โ๐โฒโ๐ฃ ๐,๐ ๐โฒ,๐ โฒ โ๐
11
Parity game conversion
The Arena ๐ 0 , ๐ 1 ,๐ธ : Moves ๐ธโ ๐ฃ, ๐ฃ ๐,๐ ๐ฃ ๐,๐ โ๐ } a word and concatenated word such that the concatenated word is in V. The parity game priority mapping function will be ฮฉ ๐ฃ ๐,๐ โฮฉ ๐ โ๐ฃ ๐,๐ โ๐ ๐ ๐๐๐๐๐๐ก๐ ๐ฎ ๐๐๐ โ winning strategy for player 0 in the equivalent parity game ๐ข=( ๐ 0 , ๐ 1 ,๐ธ , ฮฉ, ๐ ๐ผ , ๐ ๐ผ ) โ ๐ =๐๐๐ ๐กโ๐ ๐๐๐๐๐ก๐๐ ๐ก๐๐๐๐ ๐๐ก๐๐๐ ๐ ๐ฆ๐ ๐ก๐๐ ๐กโ๐๐ก ๐ ๐๐๐๐๐๐ก๐ ๐ฝ ๐ ๐ฝ ๐ ๐ฟ ๐ =1 ๐ฟ ๐ =0 ๐ฟ ๐ =๐โง๐ โ๐(๐) ๐ฟ ๐ =๐โง๐ โ๐(๐) ๐ฟ ๐ =ยฌ๐โง๐ โ๐(๐) ๐ฟ ๐ =ยฌ๐โง๐ โ๐(๐) ๐ฟ ๐ =๐โฒ ๐ฟ ๐ = ๐ 1 โง ๐ 2 ๐ฟ ๐ = ๐ 1 โจ ๐ 2 ๐ฟ ๐ =โ๐โฒ ๐ฟ ๐ =ฮ๐โฒ
12
Examples ๐= ๐ ๐ผ ; ๐ฟ ๐ ๐ผ = โ ๐ ๐ผ ;ฮฉ ๐ ๐ผ =0 ๐คโ๐๐๐ ๐ฎ ๐๐ ๐๐๐ฆ ๐๐๐๐๐ก๐๐ ๐ก๐๐๐๐ ๐๐ก๐๐๐ ๐ ๐ฆ๐ ๐ก๐๐. Priority, loacation Notice that player 0 doesnโt have any Loacation but the only priority is 0 Hence player 1 looses for every game (finite and infinite), therefor the Automaton accepts any pointed transition system. 0,1 (๐ ๐ผ ,๐ ๐ผ ) ๐ฟ ๐ =โ๐โฒโ๐ 0,1 ( ๐ ๐ผ ,๐ 1 ) ๐
๐๐๐๐ฆ ๐ก๐๐๐๐ 0,1 ( ๐ ๐ผ ,๐ 3 ) 0,1 ( ๐ ๐ผ ,๐ 2 ) ๐ฝ ๐ ๐ฝ ๐ ๐ฟ ๐ =1 ๐ฟ ๐ =0 ๐ฟ ๐ =๐โง๐ โ๐(๐) ๐ฟ ๐ =๐โง๐ โ๐(๐) ๐ฟ ๐ =ยฌ๐โง๐ โ๐(๐) ๐ฟ ๐ =ยฌ๐โง๐ โ๐(๐) ๐ฟ ๐ =๐โฒ ๐ฟ ๐ = ๐ 1 โง ๐ 2 ๐ฟ ๐ = ๐ 1 โจ ๐ 2 ๐ฟ ๐ =โ๐โฒ ๐ฟ ๐ =ฮ๐โฒ
13
Examples ๐= ๐ ๐ผ ; ๐ฟ ๐ ๐ผ = โ ๐ ๐ผ ;ฮฉ ๐ ๐ผ =1 where ๐ฎ is any pointed transition system with some infinite path starting at ๐ ๐ผ . Priority, loacation Notice that player 0 still doesnโt have any Loacation but the only priority is 1 Hence player 1 wins for every infinite Game by choosing the infinite path If ๐ฎ is any pointed transition system with no infinite path, player 1 will loose. therefor the Automaton accepts any pointed transition system with no infinite paths. 1,1 (๐ ๐ผ ,๐ ๐ผ ) ๐ฟ ๐ =โ๐โฒโ๐ 1,1 ( ๐ ๐ผ ,๐ 1 ) ๐
๐๐๐๐ฆ ๐ก๐๐๐๐ 1,1 ( ๐ ๐ผ ,๐ 3 ) 1,1 ( ๐ ๐ผ ,๐ 2 ) ๐ฝ ๐ ๐ฝ ๐ ๐ฟ ๐ =1 ๐ฟ ๐ =0 ๐ฟ ๐ =๐โง๐ โ๐(๐) ๐ฟ ๐ =๐โง๐ โ๐(๐) ๐ฟ ๐ =ยฌ๐โง๐ โ๐(๐) ๐ฟ ๐ =ยฌ๐โง๐ โ๐(๐) ๐ฟ ๐ =๐โฒ ๐ฟ ๐ = ๐ 1 โง ๐ 2 ๐ฟ ๐ = ๐ 1 โจ ๐ 2 ๐ฟ ๐ =โ๐โฒ ๐ฟ ๐ =ฮ๐โฒ
14
Examples ๐= ๐ ๐ผ ; ๐ฟ ๐ ๐ผ =ฮ ๐ ๐ผ ;ฮฉ ๐ ๐ผ =1 ๐คโ๐๐๐ ๐ฎ ๐๐ ๐๐๐ฆ ๐๐๐๐๐ก๐๐ ๐ก๐๐๐๐ ๐๐ก๐๐๐ ๐ ๐ฆ๐ ๐ก๐๐. Priority, loacation All the location are player 0 hence Player 0 can choose a finite path and therefore the automaton Doesnโt accept any ๐ฎ 1,0 (๐ ๐ผ ,๐ ๐ผ ) ๐ฟ ๐ =ฮ๐โฒโ๐ 1,0 ( ๐ ๐ผ ,๐ 1 ) ๐
๐๐๐๐ฆ ๐ก๐๐๐๐ 1,0 ( ๐ ๐ผ ,๐ 3 ) ๐ฝ ๐ ๐ฝ ๐ ๐ฟ ๐ =1 ๐ฟ ๐ =0 ๐ฟ ๐ =๐โง๐ โ๐(๐) ๐ฟ ๐ =๐โง๐ โ๐(๐) ๐ฟ ๐ =ยฌ๐โง๐ โ๐(๐) ๐ฟ ๐ =ยฌ๐โง๐ โ๐(๐) ๐ฟ ๐ =๐โฒ ๐ฟ ๐ = ๐ 1 โง ๐ 2 ๐ฟ ๐ = ๐ 1 โจ ๐ 2 ๐ฟ ๐ =โ๐โฒ ๐ฟ ๐ =ฮ๐โฒ 1,0 ( ๐ ๐ผ ,๐ 2 )
15
Current disadvantages
While ๐ฎ may be finite our parity game ๐ข may be infinite (for example ๐ฟ ๐ ๐ผ = ๐ ๐ผ ) therefor we have the need to define the behavior in more convenient way. This would be helpful for our next slides
16
Alternative Formal Definition for the Arena
The same ๐= ๐, ๐ ๐ผ ,๐ฟ,ฮฉ , ๐ฎ= ๐, ๐ ๐ , Let ๐ โ๐ร๐ and E โ ๐ ร ๐ be the smallest graph with ๐ ๐ผ , ๐ ๐ผ โ ๐ ๐ ๐ข๐โ ๐กโ๐๐ก โ ๐,๐ โ ๐ ๐ค๐ โ๐๐ฃ๐: ๐ฟ ๐ = ๐ โฒ โ ๐ โฒ ,๐ โ[๐] ๐๐๐ ๐,๐ ๐ โฒ ,๐ โ[๐ธ] ๐ฟ ๐ = ๐ 1 โง ๐ 2 ๐๐ ๐ 1 โจ ๐ 2 โ ๐ 1 ,๐ , ๐ 2 ,๐ โ[๐] and ๐,๐ , ๐ 1 ,๐ , ๐,๐ ๐ 2 ,๐ โ[๐ธ] ๐ฟ ๐ =โ ๐ โฒ ๐๐ โ ๐ โฒ โ ๐ โฒ , ๐ โฒ โ ๐ ๐๐๐ ๐,๐ , ๐ โฒ , ๐ โฒ โ ๐ธ โ ๐ โฒ โsR We split ๐ ๐๐๐ก๐ ๐ 0 ๐๐๐ ๐ 1 ๐๐ ๐๐๐๐๐๐๐ ๐๐๐ ๐กโ๐ ฮฉ ๐๐ ๐กโ๐ ๐ ๐๐๐. Previous definition: We will define ๐ on ๐ฎ behavior as the least language ๐โ ๐ร๐ โ such that ๐ ๐ผ , ๐ ๐ผ โ๐ and โ๐ฃ ๐,๐ โ๐: ๐ฟ ๐ = ๐ โฒ โ๐ฃ ๐,๐ ๐ โฒ ,๐ โ๐ ๐ฟ ๐ = ๐ 1 โง ๐ 2 ๐๐ ๐ 1 โจ ๐ 2 โ๐ฃ ๐,๐ ๐ 1 ,๐ โ๐ and ๐ฃ ๐,๐ ๐ 2 ,๐ โ๐ ๐ฟ ๐ =โ๐โฒ ๐๐ โ๐โฒโ๐ฃ ๐,๐ ๐โฒ,๐ โฒ โ๐
17
Alternative Formal Definition for the Arena
Our new Arena: ๐ข= ๐ 0 , ๐ 1 , ๐ธ , ฮฉ, ๐ ๐ผ , ๐ ๐ผ . Definition of the function []: ๐รS + โ(๐ร๐) for each word ๐รS + it assigns the value of its last letter ๐,๐ Note that [] maps location from V to [V], preserve edges and priorities, therefor ๐ขโฒ is created by applying [] on ๐ข
18
Alternative Formal Definition for the Arena
Theorem: Player 0 has a winning strategy in ๐ข iff Player 0 has a winning strategy in ๐ขโ Proof: Let ๐โฒ 0 :[ ๐ 0 ]โ[๐] be a winning strategy for Player 0 in ๐ขโฒ We define a mapping ๐ 0 : ๐ 0 โ๐ ๐๐ฆ ๐ 0 ๐ฃ โ ๐ฃ ๐ 0 โฒ ๐ฃ . Let ๐ be a play in ๐ข which is consistent with ๐ 0 . Then, [๐] is consistent with ๐โฒ 0 , and thus, [๐] and ๐ are won by Player 0. Consequently, ๐ 0 is a winning strategy for Player 0 in ๐ข. Clearly, we can apply a symmetric argument if ๐ 1 โฒ :[ ๐ 1 ]โ[๐] is a winning strategy for Player 1 in ๐ขโฒ.
19
Complex Transition Conditions
Recall: transition conditions ๐ ๐ถ ๐ ๐๐ฃ๐๐ ๐ ๐ ๐๐ก ๐๐ ๐ ๐ก๐๐ก๐๐ : The symbols 0 and 1 are transition condition For every ๐โ๐, ๐ and ยฌ๐ are transition conditions. For every ๐โ๐, ๐, โ๐, โ๐ are transition conditions. For every ๐ 1 , ๐ 2 โ๐, ๐ 1 โง ๐ 2 ๐๐๐ ๐ 1 โจ ๐ 2 are transition conditions. Note that this definition does not allow transition conditions like ๐ 1 โงโ ๐ 2 ๐๐ pโง q for p โ P and q โ Q. Example of such ๐: โChange the inner state to ๐ 1 if ๐ is true, otherwise change the inner state to ๐ 2 โ Formally: ๐=( ๐ 1 โง๐)โจ( ๐ 2 โง๏ฟข๐) So we will use some new states: ๐ ๐ , ๐ ๐ 1 โง๐ , ๐ ๐ 1 โงยฌ๐ , ๐ ๐ , ๐ ยฌ๐
20
Complex Transition Conditions
(๐ ๐ผ ,๐ ๐ผ ) 1,0 ๐ฟ ๐ ๐ โ ๐ ๐ 1 โง๐ โจ ๐ ๐ 2 โงยฌ๐ ๐ฟ ๐ ๐ 1 โง๐ โ ๐ 1 โง ๐ ๐ ๐ฟ ๐ ๐ 2 โงยฌ๐ โ ๐ 2 โง ๐ ยฌ๐ ๐ฟ ๐ ๐ โ๐ ๐ฟ ๐ ยฌ๐ โยฌ๐ Example: We set: ๐ฟ ๐ 1 =๐ฟ ๐ 2 =โ ๐ ๐ ;ฮฉ ๐ 1 =2;ฮฉ ๐\ q 1 =1; ๐ ๐ผ = ๐ ๐ Priority, loacation The automaton accepts some pointed transition system ๐ฎ iff every infinite path starting from ๐ ๐ผ contains infinitely many states in which p is true. There will be infinite amount of successful ๐ 1 , ๐ โฒ ๐๐๐ ๐ก๐๐๐๐๐ ๐ค๐๐กโ ๐๐ฃ๐๐ ๐๐๐๐๐๐๐ก๐ฆ. ๐ฟ ๐ ๐ = ๐ ๐ 1 โง๐ โจ ๐ ๐ 2 โงยฌ๐ 1,1 1,1 ( ๐ ๐ 1 โง๐ ,๐ ๐ผ ) ( ๐ ๐ 2 โงยฌ๐ ,๐ ๐ผ ) 2,1 1,? 1,1 1,1 (๐ 1 ,๐ ๐ผ ) ( ๐ ๐ ,๐ ๐ผ ) (๐ 2 ,๐ ๐ผ ) ( ๐ ยฌ๐ ,๐ ๐ผ ) 1,0 1,0 1,0 1,0 (๐ ๐ ,๐ โฒ 1 ) (๐ ๐ ,๐ โฒ 2 ) (๐ ๐ ,๐ โฒ 2 ) p (๐ ๐ ,๐ โฒ 1 ) ยฌp
21
The Word problem Means to decide whether a given alternating tree automaton ๐ accepts a given finite pointed transition system ๐ฎ. Motivation: In Section 10, this result will be used to determine the complexity of the model checking problem for the modal ฮผ-calculus. (which we will not elaborate on) A naรฏve approach to solve the word problem would be to compute the whole behavior of the Ata. This is actually impossible to solve it that way because it can be infinite behavior. Luckily we learnt some tools to deal with it. We will reduce the equivalent parity game into a finite one which will be a great help for us
22
The Word problem Theorem: Let ๐=(๐, ๐ ๐ผ , ๐ฟ,ฮฉ) be an alternating tree automaton with d different non-zero priorities and let ๐ฎ be a finite pointed transition system: There is an algorithm which computes in time: ๐ช ๐ ๐ ๐
๐ ๐ +1 ๐ ๐ 2 and in space ๐ช ๐ ๐ ๐ log ๐ ๐ The word problem is in ๐๐โฉ๐๐โ๐๐
23
The Word problem The word problem is in ๐๐โฉ๐๐โ๐๐:
ย UPย ("Unambiguous Non-deterministic Polynomial-time") decision problemsย solvable inย polynomial timeย on aย unambiguous Turing machineย with at most one accepting path for each input. ๐โ๐๐โ๐๐ A language is inย UPย if a given answer can be verified in polynomial time, and the verifier machine only accepts at mostย oneย answer for each problem instance. UP contains parity gameย problem and specifically the question weather player 0 has a winning strategy is in ๐๐โฉ๐๐โ๐๐ as explained in chapter 6.
24
The Word problem There is an algorithm which computes in time: ๐ช ๐ ๐ ๐
๐ ๐ +1 ๐ ๐ 2 and in space ๐ช ๐ ๐ ๐ log ๐ ๐ Upper bounds: Lets fix ๐ and examine ๐ฎ complexity: ๐
โค ๐ 2 ;๐ ๐ ๐๐๐ ๐ ๐๐๐๐ ๐ก๐๐๐ก there for we get:๐ช ๐ 2 ( ๐ ๐ ๐ ) Roughly we get ๐ช ( ๐ 2+ ๐ ) With ๐=2 we get ๐ 3 , with ๐=20 we get |๐|^12 โ not so nice
25
The Word problem There is an algorithm which computes in time: ๐ช ๐ ๐ ๐
๐ ๐ +1 ๐ ๐ 2 and in space ๐ช ๐ ๐ ๐ log ๐ ๐ Lets estimate ๐ธ ๐๐๐ | ๐ |: As we know, ๐ โ๐ร๐โ ๐ โค|๐||๐| Let ๐ โฒ โ๐ be the set of states in ๐ฎ which are reachable from ๐ ๐ผ Every state in ๐ except ๐ ๐ผ has at least one predecessor ( ๐ ๐ผ ๐๐๐ฆ โ๐๐ฃ๐ ๐๐ ๐๐๐), Hence, ๐
โฅ ๐ โ1โ ๐
+1โฅ ๐ To determine |[๐ธ]|, we count the number of successors of every location in |[๐]|. The successors of a location (๐, ๐ )โ[๐] are (๐, ๐ )[๐ธ]. ๐ธ = ๐โ๐ ๐,๐ โ[๐] | ๐,๐ ๐ธ | For a fixed ๐:
26
The Word problem ๐ธ = ๐โ๐ ๐,๐ โ[๐] | ๐,๐ ๐ธ | For a fixed ๐: To sum up:
๐ธ = ๐โ๐ ๐,๐ โ[๐] | ๐,๐ ๐ธ | For a fixed ๐: If ๐ฟ(๐)โ{0, 1} ๐๐ ๐ฟ(๐)โ{๐, ๏ฟข๐}, then (๐, ๐ ) has no successor: ๐,๐ โ[๐] | ๐,๐ ๐ธ | =0 If ๐ฟ(๐)โ๐, then every location (๐, ๐ )โ [๐] has exactly one successor: ๐,๐ โ[๐] | ๐,๐ ๐ธ | โค ๐ โฒ โค ๐
+1 If ๐ฟ(๐)= ๐ 1 โง ๐ 2 ๐๐ ๐ฟ(๐)= ๐ 1 โจ ๐ 2 for some ๐ 1 , ๐ 2 โ๐, then we have: ๐,๐ โ[๐] | ๐,๐ ๐ธ | โค2 ๐ โฒ โค2 ๐
+1 If ๐ฟ ๐ =โ ๐ โฒ ๐๐ โ๐โฒ, then โ ๐,๐ โ ๐ , ๐,๐ ๐ธ = ๐ โฒ ร๐ ๐
= ๐ ๐
: ๐,๐ โ[๐] | ๐,๐ ๐ธ | โค ๐ โ๐ ๐ ๐
= ๐
To sum up: ๐,๐ โ[๐] ๐,๐ ๐ธ โค 2 ๐
+1 , ๐ธ โค2|๐|( ๐
+1)
27
The Word problem There is an algorithm which computes in time: ๐ช ๐ ๐ ๐
๐ ๐ +1 ๐ ๐ 2 and in space ๐ช ๐ ๐ ๐ log ๐ ๐ ๐ธ โค2|๐|( ๐
+1) Jurdziยดnskiโs algorithm: For a parity game with ๐ vertices, ๐ edges and ๐โฅ2 ๐๐๐๐๐๐๐ก๐๐๐ can be solved in time ๐ช ๐๐ ๐ ๐ ๐ and space: ๐ช ๐๐ log ๐ And now its easy to apply: ๐= ๐ ๐ ;๐=2 ๐|( ๐
+1)
28
Complementation problem
Theorem: Let ๐=(๐, ๐ ๐ผ , ๐ฟ,ฮฉ) be an alternating tree automaton. There is an alternating tree automaton ๐ =(๐, ๐ ๐ผ , ๐ฟ , ฮฉ ) such that ๐ accepts the complement of the language of ๐. Proof: Lets start with priority function ฮฉ : โ๐โQ ฮฉ ๐ =ฮฉ+1 The transition function ๐ฟ: โ โ โ โ
29
Complementation problem
Theorem: Let ๐=(๐, ๐ ๐ผ , ๐ฟ,ฮฉ) be an alternating tree automaton. There is an alternating tree automaton ๐ =(๐, ๐ ๐ผ , ๐ฟ , ฮฉ ) such that ๐ accepts the complement of the language of ๐. Let ๐ฎ be a pointed transition system and ๐ข=( ๐ 0 , ๐ 1 ,๐ธ , ฮฉ, ๐ ๐ผ , ๐ ๐ผ ) be the parity game which determines whether A accepts ๐ฎ. We show that ๐ accepts ๐ฎ iff ๐ does not accept ๐ฎ. We examine the parity game ๐ข which determines whether ๐ accepts ๐ฎ. Intuitively, we simply change the ownership of every location, and we increase every priority by 1. Let ๐= ๐ 0 โช ๐ 1 be the locations of ๐ข and ๐ข . Let ๐ โฒ โ๐ be the locations ๐ฃ(๐, ๐ )โ๐ with ๐ฟ(๐)=๐โฒ for some ๐โฒโ๐. We do not change the ownership of locations in Vโ. The automaton ๐ accepts ๐ฎ iff there is winning strategy for Player 0 in the parity game: ๐ข =( V 1 โช ๐ โฒ , ๐ 0 \ V โฒ ,๐ธ , ฮฉ , ๐ ๐ผ , ๐ ๐ผ ) Because parity games are determined, we have to show that there is a winning strategy for Player 0 in ๐ข iff there is a winning strategy for Player 1 in ๐ข .
30
Complementation problem
Assuming a winning strategy for Player 0 in ๐ข we will construct a winning strategy for Player 1 in ๐ข : Let ๐ 0 : ๐ 0 โ๐ be a winning strategy for Player 0 in ๐ข. There is a unique extension ๐โฒ 0 : ๐ 1 โช๐โฒโ ๐. Now, assume some play ๐ in ๐ข which is consistent with ๐โฒ 0 . Then, ๐ in ๐ข is consistent with ๐0, and thus ๐ is won by Player 1. Conversely, let ๐ 1 : ๐ 1 โ๐ be a winning strategy for Player 1 in ๐ข . Clearly, the restriction of ๐ 1 ๐ก๐ ๐ 1 \ ๐โฒ is a winning strategy for Player 0 in ๐ข. Consequently, Player 0 has a winning strategy in ๐ข iff player 1 has a winning strategy in ๐ข . We can also (but we will not) show that alternating tree automatons are closed under intersection and union.
31
The Emptiness Problem On this section:
The Emptiness Problem complexity analysis
32
The Emptiness Problem Lets start by fixing ๐= ๐, ๐ ๐ผ ,๐ฟ,ฮฉ
Definition of an inflating transition condition: We call a transition condition โinflatingโ if its in the form of ๐ฟ ๐ =๐โง๐ ๐๐ ๐โจ๐ Lemma: For every alternating tree automaton ๐=(๐, ๐ ๐ผ , ๐ฟ,ฮฉ) there is an automaton ๐โฒ=(๐, ๐ ๐ผ , ๐ฟโฒ,ฮฉ) with ๐ฟ(๐)=๐ฟ(๐โฒ) such that for every ๐โ๐ ๐ฟ(๐) is not inflated. Proof: very similar to the complement problem: First we will define ๐ฟ โฒ :๐โ๐ ๐ถ ๐ ๐๐๐ ๐
33
The Emptiness Problem Lemma: For every alternating tree automaton ๐=(๐, ๐ ๐ผ , ๐ฟ,ฮฉ) there is an automaton ๐โฒ=(๐, ๐ ๐ผ , ๐ฟโฒ,ฮฉ) with ๐ฟ(๐)=๐ฟ(๐โฒ) such that for every ๐โ๐ ๐ฟ(๐) is not inflated. Let ๐ฎ be some pointed transition system. We want to show that ๐ accepts ๐ฎ iff ๐โ accepts ๐ฎ. At first, we observe that ๐ has the same behavior ๐ on ๐ฎ as ๐โฒ. Let ๐ข=( ๐ 0 , ๐ 1 ,๐ธ), ฮฉ, ( ๐ ๐ผ , ๐ ๐ผ ) be the parity game to determine whether ๐ accepts ๐ฎ. Let ๐ โฒ ={๐ฃ(๐, ๐ )โ ๐ 1 | ๐ฟ(๐)=๐โฒโง๐โฒ ๐๐๐ ๐ ๐๐๐ ๐โฒโ๐}. The locations in ๐โฒ have exactly one successor. The parity game ๐ข โฒ= V 0 โช ๐ โฒ , ๐ 1 \ V โฒ ,๐ธ ,ฮฉ, ๐ ๐ผ , ๐ ๐ผ determines whether ๐โฒ accepts ๐ฎ. From now and on its exactly the same proof as the Complementation problem
34
The Emptiness Problem Lets start by fixing ๐= ๐, ๐ ๐ผ ,๐ฟ,ฮฉ
Definition of an inflating transition condition: We call a transition condition โinflatingโ if its in the form of ๐ฟ ๐ =๐โง๐ ๐๐ ๐โจ๐ According to the lemma we can assume that our ๐ has no inflate transition conditions. Another notation: Tiles A tile over ๐ is a graph ๐=( ๐ ๐ , ๐ธ ๐ ) where ๐ ๐ โ๐, ๐ธโ ๐ ๐ ร ๐ ๐ and: A tile with port is a tuple (๐,๐) s.t ๐= ๐ธ ๐ , ๐ ๐ ๐๐๐ ๐โ ๐ ๐ โฉ ๐ ฮ
35
The Emptiness Problem A tile with port is a tuple (๐,๐) s.t ๐= ๐ธ ๐ , ๐ ๐ ๐๐๐ ๐โ ๐ ๐ โฉ ๐ ฮ ๐ ฮ โ{๐โQ|โ ๐ โฒ โ๐:๐ฟ ๐ =ฮ๐โฒ } ๐ โ โ{๐โQ|โ ๐ โฒ โ๐:๐ฟ ๐ =โ๐โฒ } We also define ๐ , ๐ : ๐ โ ๐ โฒ ๐๐ ๐ฟ ๐ =ฮ ๐ โฒ ๐๐ ๐ฟ ๐ =โ๐โฒ For subsets ๐โ๐ ๐ค๐ ๐๐๐๐๐๐ ๐ โ{ ๐ |๐โV} All tiles will be: ฮ, all tiles with port will be: ฮ ๐ We will call a tile with port ๐ 0 = ๐ ๐0 , ๐ธ ๐0 , ๐ 0 and a tile ๐ 1 =( ๐ ๐1 , ๐ธ ๐1 ) (it can be a tile with port as well) concatenable iff ๐ 0 โ ๐ ๐1 ๐๐๐ ๐ ๐0 โฉ ๐ โ โ ๐ ๐1 i.e: the port must be able to make delta\square transition into ๐ ๐1 state and that the state intersection of ๐ ๐0 ๐๐๐ ๐ โ that make delta\square transition must be contained in ๐ ๐1
36
The Emptiness Problem Let ๐=( ๐ 1 , ๐ 1 ), ( ๐ 2 , ๐ 2 ), ใปใปใปโ ฮ ๐ be an infinite sequence of tiles with port where ( ๐ ๐ , ๐ ๐ ) ๐๐๐ ( ๐ ๐+1 , ๐ ๐+1 ) are concatenable for every ๐โ๐. We define the graph of ๐ in a usual way: ๐โ ๐โ๐ ๐ ร ๐ ๐ ๐ธโ We call an infinite path ๐ in (๐, ๐ธ) even iff the maximal priority which occurs in ๐ infinitely often is even. We call the sequence ๐ even iff every infinite path ๐ ๐๐ (๐, ๐ธ) is even.
37
The Emptiness Problem Theorem: There is a deterministic parity ๐โ๐๐ข๐ก๐๐๐๐ก๐๐ ๐ถ with 2 ๐ช( ๐ 4 log ๐ ) states and priorities bounded by ๐ช( ๐ 4 ) which accepts a sequence of concatenable tiles ๐โ ฮ ๐ iff ๐ is even. Proof concept: construct non-deterministic parity ฯ-automaton B โ construct C by a determinization and a complementation of B B states are ๐ร 0,โฆ, ๐ . (m= ๐ |๐+1|) We specify the transition function ๐ฟ by a set of triples. Let ( ๐ 1 , ๐ 1 ), ๐ 2 , ๐ 2 be two states of B, and let (๐, ๐ธ, ๐) be a tile with port. There is a transition ๐ 1 , ๐ 1 , ๐, ๐ธ, ๐ , ๐ 2 , ๐ 2 in B iff:
38
The Emptiness Problem non-deterministic parity ฯ-automaton
Where ๐= ๐ 2 we get: 2 ๐ช( ๐ 4 log ๐ ) states and priorities bounded by ๐ช( ๐ 4 )
39
done
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.