logic automata and games
play

Logic, Automata, and Games Sophie Pinchinat IRISA, university of - PowerPoint PPT Presentation

Logic, Automata, and Games Sophie Pinchinat IRISA, university of Rennes 1, France Logic Summer School 2009 Sophie Pinchinat (IRISA) Logic, Automata, and Games Logic Summer School 2009 1 / 98 Logics of Programs 1 Introductory Example


  1. The Mu-calculus Monotonic Functions f : L → L is monotonic (order preserving) if ∀ x , y ∈ L , x ≤ y ⇒ f ( x ) ≤ f ( y ) x is a fix-point of f if f ( x ) = x Define f 0 is the identity function, and f n +1 = f n ◦ f . Note: f monotonic ⇒ f n is monotonic. The identity function is monotonic and composing two monotonic functions gives a monotonic function. Sophie Pinchinat (IRISA) Logic, Automata, and Games Logic Summer School 2009 19 / 98

  2. The Mu-calculus Tarski-Knaster Fix-point Theorem A lattice ( L ≤ , , ⊔ , ⊓ ) is complete if for all A ⊆ L , ⊔ A and ⊓ A are defined; then there exist a minimum element ⊥ = ⊓ L and a maximum element ⊤ = ⊔ L . This is the case for ( P ( S ) , ⊆ ): given a set A ⊆ P ( S ) of subsets, ⊔ A = � S ′ ∈ A S ′ and ⊓ A = � S ′ ∈ A S ′ . Theorem [Tar55] Let f be a montonic function on ( L , ≤ , ⊔ , ⊓ ) a complete lattice. Let A = { y | f ( y ) ≤ y } , and let x = ⊓ A is the least fix-point of f . (1) f ( x ) ≤ x : ∀ y ∈ A , x ≤ y , therefore f ( x ) ≤ f ( y ) ≤ y . So f ( x ) ≤ ⊓ A = x . (2) x ≤ f ( x ): by monotonicity applied to (1), f 2 ( x ) ≤ f ( x ) so f ( x ) ∈ A , and x ≤ f ( x ). x is then a fix-point, and because all fix-point belong to A , x is the least. And similarly for the greatest fix-point (with A = { y | f ( y ) ≥ y } ). Sophie Pinchinat (IRISA) Logic, Automata, and Games Logic Summer School 2009 20 / 98

  3. The Mu-calculus Another Characterization of Fix-points (3) µ z . f ( z ), the least fix-point of f is equal to ⊔ i f i ( ∅ ), where i ranges over all ordinals of cardinality at most the state space L ; when L is finite, µ z . f ( z ) is the union of the following ascending chain ⊥⊆ f ( ⊥ ) ⊆ f 2( ⊥ ) ... (4) ν z . f ( z ) = ⊓ i f i ( ⊤ ), where i ranges over all ordinals of cardinality at most the state space L ; when L is finite, ν z . f ( z ) is the intersection of the following descending chain ⊤ ⊇ f ( ⊤ ) ⊇ f 2 ( ⊤ ) ... Sophie Pinchinat (IRISA) Logic, Automata, and Games Logic Summer School 2009 21 / 98

  4. The Mu-calculus The Mu-calculus Syntax of the Mu-calculus Alphabet Σ and Propositions Prop = { P a } a ∈ Σ Variables Var = { Z , Z ′ , Y , . . . } Formulas β, β ′ ∈ L µ ::= P a | Z | ¬ β | β ∧ β ′ | � 0 � β | � 1 � β | µ Z .β where Z ∈ Var . Well-formed formulas: for every formula µ Z .β , Z appears only under the scope of an even number of ¬ symbols in β . β is a sentence if all variables in β are bounded by a µ operator. Write β ′ ≤ β when β ′ is a subformula of β . Sophie Pinchinat (IRISA) Logic, Automata, and Games Logic Summer School 2009 22 / 98

  5. The Mu-calculus The Mu-calculus Semantics Assume given a tree t ∈ Trees (Σ) and a valuation val : Var → 2 { 0 , 1 } ∗ of the variables. For every N ⊆ { 0 , 1 } ∗ , we write val [ N / Z ] for val ′ defined as val except that val ′ ( Z ) = N Given labeled tree t : { 0 , 1 } ∗ → Σ, we define [ val ⊆ { 0 , 1 } ∗ by: ] t [ β ] ] t [ [ Z ] = val ( Z ) val ] t t − 1 ( a ) [ [ P a ] = val { 0 , 1 } ∗ \ [ ] t ] t [ [ ¬ β ] = [ β ] val val [ β ∧ β ′ ] [ β ′ ] ] t ] t ] t val ∩ [ [ = [ [ β ] val val { w ∈ { 0 , 1 } ∗ | w 0 ∈ [ ] t ] t [ [ � 0 � β ] = [ β ] val } val { w ∈ { 0 , 1 } ∗ | w 1 ∈ [ ] t ] t [ � 1 � β ] val } [ = [ β ] val � { S ′ ∈ P ( { 0 , 1 } ∗ ) | [ val [ S ′ / Z ] ⊆ S ′ } ] t ] t [ [ µ Z .β ] = [ β ] val Sophie Pinchinat (IRISA) Logic, Automata, and Games Logic Summer School 2009 23 / 98

  6. The Mu-calculus The Mu-calculus The meaning of µ Z .β µ Z .β denotes the least fix-point of f : 2 { 0 , 1 } ∗ → 2 { 0 , 1 } ∗ ] t f ( N ) = [ [ β ] val [ N / Z ] By the assumption on “positive” occurrences of Z in β , we can show that f is monotonic (see the literature). Henceforth, since (2 { 0 , 1 } ∗ , ∅ , { 0 , 1 } ∗ , ⊆ ) is a complete lattice, by [Tar55], the least fix-point (and the greatest fix-point) exists. Let ν Z .β def = ¬ µ Z . ¬ β [ ¬ Z / Z ]. It is a greatest fix-point. Sophie Pinchinat (IRISA) Logic, Automata, and Games Logic Summer School 2009 24 / 98

  7. The Mu-calculus The Mu-calculus Examples of formulas We assume we have true and false in the syntax, with val = { 0 , 1 } ∗ and [ ] t ] t [ [ true ] [ false ] val = ∅ . µ Z . Z ≡ false ν Z . Z ≡ true µ Z . P ≡ ν Z . P ≡ P Sophie Pinchinat (IRISA) Logic, Automata, and Games Logic Summer School 2009 25 / 98

  8. The Mu-calculus The Mu-calculus Examples of formulas (cont.) Write � � β for � 0 � β ∨ � 1 � β , and [ ] β for � 0 � β ∧ � 1 � β . What is “ µ Z . P a ∨ � � Z ” ? We will see that it is equivalent to E F a , whereas ν Z . P a ∨ � � Z ≡ true µ Z . P a ∨ � � Z ≡ P a ∨ � � ( µ Z . P a ∨ � � Z ) ≡ P a ∨ � � ( P a ∨ � � ( µ Z . P a ∨ � � Z )) ≡ P a ∨ � � ( P a ∨ � � ( P a ∨ � � ( µ Z . P a ∨ � � Z ))) ≡ ... ] t if either it is in [ ] t or it has a child A node w ∈ [ [ µ Z . P a ∨ � � Z ] [ P a ] ] t or who has a child who is in [ ] t or who has who is either in [ [ P a ] [ P a ] a child who ... The least set of nodes with this property is the set of nodes having a path eventually hitting a descendant node labeled by a . Hence the formula EF a Sophie Pinchinat (IRISA) Logic, Automata, and Games Logic Summer School 2009 26 / 98

  9. The Mu-calculus The Mu-calculus A a U b ≡ µ Z . P b ∨ P a ∧ [ ] Z , since µ Z . P b ∨ P a ∧ [ ] Z ≡ P b ∨ P a ∧ [ ]( P b ∨ P a ∧ [ ]( P b ∨ P a ∧ [ ]( ... ))) whereas ν Z . P b ∨ P a ∧ [ ] Z ≡ A a W b , the weak modality. AG a ≡ ν Y . P a ∧ [ ] Y , since ν Y . P a ∧ [ ] Y ≡ P a ∧ [ ]( P a ∧ [ ]( P a ∧ [ ]( ... ))) whereas µ Z . P a ∧ [ ] Y ≡ false ∞ F b ≡ ν Y .µ Z . � � ( b ∧ Y ∨ Z ) E Intuitively, µ (resp. ν ) refers to finite (resp. infinite) prefixes of computations. ν Z . P a ∧ [ ][ ] Z is not expressible in CTL ∗ Sophie Pinchinat (IRISA) Logic, Automata, and Games Logic Summer School 2009 27 / 98

  10. The Mu-calculus The Mu-calculus We push negation innermost in the formulas ⇒ formulas in positive normal form Notice that ¬� d � β = � d �¬ β , for d ∈ { 0 , 1 } . Sophie Pinchinat (IRISA) Logic, Automata, and Games Logic Summer School 2009 28 / 98

  11. The Mu-calculus The Mu-calculus Alternation Depth Let β ∈ L µ be in postive normal form. We define ad ( β ), the alternation depth of β inductively by: ad ( P a ) = ad ( ¬ P a ) = ad ( Z ) = 0 ad ( β ∧ β ′ ) = ad ( β ∨ β ′ ) = max { ad ( β ) , ad ( β ′ ) } ad ( � d � β ) = ad ( β ), for d ∈ { 0 , 1 } ad ( µ Z .β ) = max ( { 1 , ad ( β ) } ∪ { ad ( ν Z ′ .β ′ ) + 1 | ν Z ′ .β ′ ≤ β, Z ∈ free ( ν Z ′ .β ′ ) } ) ad ( ν Z .β ) = max ( { 1 , ad ( β ) } ∪ { ad ( µ Z ′ .β ′ ) + 1 | µ Z ′ .β ′ ≤ β, Z ∈ free ( µ Z ′ .β ′ ) } ) Sophie Pinchinat (IRISA) Logic, Automata, and Games Logic Summer School 2009 29 / 98

  12. The Mu-calculus The Mu-calculus Write L k µ = { β ∈ L µ | ad ( β ) ≤ k } . The hierarchy L 0 µ , L 1 µ , L 2 µ . . . is strict [Bra96, Len96]. ad ( AG EF a ) =?: AG EF a ≡ ν Y . ( µ Z . P a ∨ � � Z ) ∧ [ ] Y 0 � �� � ν Y . ( µ Z . P a ∨ � � Z ) ∧ [ ] Y and Y does not appear free in µ Z . P a ∨ � � Z hence ad ( ν Y . ( µ Z . P a ∨ � � Z ) ∧ [ ] Y ) = 1. CTL ⊆ L 1 µ the alternation free mu-calculus, and this is strict (recall ν Z . P a ∧ [ ][ ] Z is not expressible in CTL) ∞ F a is in L 2 ad ( ν Y .µ Z . ( � � Y ∧ P a ∨ Z )) = 2, then E µ . Sophie Pinchinat (IRISA) Logic, Automata, and Games Logic Summer School 2009 30 / 98

  13. The Mu-calculus Fundamental Questions Model-checking and Satisfiabilty ] t Write t | = β whenever ǫ ∈ [ [ β ] val . Define L ( β ) def = { t ∈ Trees (Σ) | t | = β } The Model-checking Problem: Given regular tree t and a sentence β ∈ L µ , is it the case that t | = β ? The Satisfiability Problem: Does there exist a tree t such that t | = β ? Does there exist a regular tree? (The finite model property) Model-checking = Program Verification Satisfiability = Program Synthesis Sophie Pinchinat (IRISA) Logic, Automata, and Games Logic Summer School 2009 31 / 98

  14. The Mu-calculus Fundamental Questions Next lectures Tree Automata: devices which recognize models of formulas: β ∈ L µ � A β such that L ( A β ) = { t ∈ Trees (Σ) | t | = β } The Model-checking Problem � The Membership Problem The Satisfiability Problem � The Emptiness Problem Games provide very powerful tools Sophie Pinchinat (IRISA) Logic, Automata, and Games Logic Summer School 2009 32 / 98

  15. Automata on Infinite Objects Automata on Infinite Objects Sophie Pinchinat (IRISA) Logic, Automata, and Games Logic Summer School 2009 33 / 98

  16. Automata on Infinite Objects Generalities Automata on Infinite Objects We refer to [Tho90] and [GTW02, Chap. 1]. Automata on (meaning with inputs as) words, trees, and graphs. ω -automata are automata on infinite words ◮ Acceptance conditions: B¨ uchi, Muller, Rabin and Streett, Parity ◮ All coincide with ω -regular languages ( L = � i K i R ω i ) ◮ Connection with Logic LTL: LTL corresponds to star-free ω -regular languages Connection with Games Sophie Pinchinat (IRISA) Logic, Automata, and Games Logic Summer School 2009 34 / 98

  17. Automata on Infinite Objects Generalities Automata on Infinite Trees Acceptance conditions: B¨ uchi, Muller, Rabin and Streett, Parity on each branch of the run of the automaton on its input. We will focuse on parity acceptance condition. Sophie Pinchinat (IRISA) Logic, Automata, and Games Logic Summer School 2009 35 / 98

  18. Automata on Infinite Objects Non-deterministic Parity Tree Automata Non-deterministic Parity Tree Automata A (Σ-labeled full binary) tree t is input to an automaton. In a current node in the tree, the automaton has to decide which state to assume in each of the two successor nodes. A = ( Q , Σ , q 0 , δ, c ) where ◮ Q ( ∋ q 0 ) is a finite set of states ( q 0 the initial state) ◮ δ ⊆ Q × Σ × Q × Q is the transition relation ◮ c : Q → { 0 , . . . , k } , k ∈ I N is the coloring function which assigns the index values (colors) to each states of A Sophie Pinchinat (IRISA) Logic, Automata, and Games Logic Summer School 2009 36 / 98

  19. Automata on Infinite Objects Non-deterministic Parity Tree Automata Runs A run of A = ( Q , Σ , q 0 , δ, c ) on an input tree t ∈ Trees (Σ) is a tree ρ ∈ Trees ( Q ) satisfying ◮ ρ ( ǫ ) = q 0 , and ◮ for every node w ∈ { 0 , 1 } ∗ of t (and its sons w 0 and w 1), we have ( ρ ( w 0) , ρ ( w 1)) ∈ δ ( ρ ( w ) , t ( w )) Consider the automaton with states q a (initial) , ⊤ , and transitions { ( ⊤ , ⊤ ) } { ( q a , q a ) } δ ( q a , a ) = δ ( q a , b ) = δ ( ⊤ , a ) = { ( ⊤ , ⊤ ) } δ ( ⊤ , b ) = { ( ⊤ , ⊤ ) } with c ( q a ) = 1 and c ( ⊤ ) = 0. Sophie Pinchinat (IRISA) Logic, Automata, and Games Logic Summer School 2009 37 / 98

  20. Automata on Infinite Objects Non-deterministic Parity Tree Automata δ ( q a , a ) = { ( ⊤ , ⊤ ) } δ ( q a , b ) = { ( q a , q a ) } δ ( ⊤ , a ) { ( ⊤ , ⊤ ) } δ ( ⊤ , b ) { ( ⊤ , ⊤ ) } = = q a b q a q a b b q a q a q a q a a a b b ⊤ ⊤ b b q a q a a a q a q a b b ⊤ b b ⊤ Sophie Pinchinat (IRISA) Logic, Automata, and Games Logic Summer School 2009 38 / 98

  21. Automata on Infinite Objects Non-deterministic Parity Tree Automata Acceptance Given a run ρ , for a path γ in ρ write Inf c ( γ ) def = { j ∈ { 0 , . . . , k } | γ ( i ) = j for infinitely many i } A run ρ is accepting (successful) iff for every path γ ∈ { 0 , 1 } ω of the tree ρ the parity acceptance condition is satisfied: min Inf c ( γ ) is even A tree t is accepted by A iff there exists an accepting run of A on t . The tree language recognized by A is L ( A ) def = { t | t is accepted by A} Sophie Pinchinat (IRISA) Logic, Automata, and Games Logic Summer School 2009 39 / 98

  22. Automata on Infinite Objects Non-deterministic Parity Tree Automata Example 1 Let L 0 be the set of trees whose paths have an a ( µ Z . P a ∨ [ ] Z in L µ ) It is characterized by δ ( q a , a ) = { ( ⊤ , ⊤ ) } δ ( q a , b ) = { ( q a , q a ) } δ ( ⊤ , a ) { ( ⊤ , ⊤ ) } δ ( ⊤ , b ) { ( ⊤ , ⊤ ) } = = with q a initial, c ( q a ) = 1, and c ( ⊤ ) = 0. Sophie Pinchinat (IRISA) Logic, Automata, and Games Logic Summer School 2009 40 / 98

  23. Automata on Infinite Objects Non-deterministic Parity Tree Automata Example 2 Tree automata are nondeterministic, and cannot be determinized in general. Let L ∞ a ⊆ Trees ( { a , b } ) be the set of trees having a path with infinitely many a ’s. Consider the automaton with states q a , q b , ⊤ and transitions ( ∗ stands for either a or b ). { ( q a , ⊤ ) , ( ⊤ , q a ) } δ ( q ∗ , a ) = δ ( q ∗ , b ) = { ( q b , ⊤ ) , ( ⊤ , q b ) } δ ( ⊤ , ∗ ) = { ( ⊤ , ⊤ ) } and coloring c ( q b ) = 1 and c ( q a ) = c ( ⊤ ) = 0 (only 0 and 1 colors, this a B¨ uchi condition) Sophie Pinchinat (IRISA) Logic, Automata, and Games Logic Summer School 2009 41 / 98

  24. Automata on Infinite Objects Non-deterministic Parity Tree Automata Example 2 (Cont.) δ ( q ∗ , a ) = { ( q a , ⊤ ) , ( ⊤ , q a ) } , δ ( q ∗ , b ) = { ( q b , ⊤ ) , ( ⊤ , q b ) } , δ ( ⊤ , ∗ ) = { ( ⊤ , ⊤ ) } From state ⊤ , A accepts any tree. Any run from q a consists in a tree with of a single path labeled with states q a , q b , whereas the rest of the run tree is labeled with ⊤ . There are infinitely many states q a on this path iff there are infinitely many vertices labeled by a . Sophie Pinchinat (IRISA) Logic, Automata, and Games Logic Summer School 2009 42 / 98

  25. Automata on Infinite Objects Non-deterministic Parity Tree Automata Other Acceptance Conditions B¨ uchi is specified by a set F ⊂ Q Acc = { γ | Inf ( γ ) ∩ F � = ∅} Muller is specified by a set F ⊆ P ( Q ), Acc = { γ | Inf ( γ ) ∈ F} Rabin is specified by a set { ( R 1 , G 1 ) , . . . , ( R k , G k ) } where R i , G j ⊆ Q , Acc = { γ | ∀ i , Inf ( γ ) ∩ R i = ∅ and Inf ( γ ) ∩ G i � = ∅} Streett is specified by a set { ( R 1 , G 1 ) , . . . , ( R k , G k ) } where R i , G j ⊆ Q , Acc = { γ | ∀ i , Inf ( γ ) ∩ R i = ∅ or Inf ( γ ) ∩ G i � = ∅} Sophie Pinchinat (IRISA) Logic, Automata, and Games Logic Summer School 2009 43 / 98

  26. Automata on Infinite Objects Non-deterministic Parity Tree Automata For the relationship between these conditions see [GTW02]. In the following, when the definition and results apply to any acceptance conditions presented so far (including parity condition), we simply denote by Acc this condition. B¨ uchi tree automata are less expressive than the others (which are equivalent) [Rab70]: the complement of L ∞ a (finitely many a ’s on each branch) cannot be recognized by any B¨ uchi tree automaton. Sophie Pinchinat (IRISA) Logic, Automata, and Games Logic Summer School 2009 44 / 98

  27. Automata on Infinite Objects Non-deterministic Parity Tree Automata Regular Tree Languages and Properties A tree language L ⊆ Trees (Σ) is regular iff there exists a parity (Muller, Rabin, Streett) tree automaton which recognizes L . Tree automata are closed under sum, projection, and complementation. ◮ Tree automata cannot be determinized: L ∃ a ⊆ Trees ( { a , b } ), the language of trees having one node labeled by a , is not recognizable by a deterministic tree automata (with any of the considered acceptance conditions). ◮ The proof for complementation uses the determinization result for word automata. Difficult proof [GTW02, Chap. 8], [Rab70] We see how to solve the Membership Problem and the Emptiness Problem for (nondeterministic) automata: we use Parity Games. Sophie Pinchinat (IRISA) Logic, Automata, and Games Logic Summer School 2009 45 / 98

  28. Games Generalities (Parity) Games Sophie Pinchinat (IRISA) Logic, Automata, and Games Logic Summer School 2009 46 / 98

  29. Games Generalities (Parity) Games Two-person games on directed graphs. How are they played? What is a strategy? What does it mean to say that a player wins the game? Determinacy, forgetful strategies, memoryless strategies Sophie Pinchinat (IRISA) Logic, Automata, and Games Logic Summer School 2009 47 / 98

  30. Games Generalities Arena An arena (or a game graph) is G = ( V 0 , V 1 , E ) V 0 Player 0 positions, and V 1 Player 1 positions (partition of V ) E ⊆ V × V is the edged-relation write σ ∈ { 0 , 1 } to designate a player, and σ = 1 − σ Sophie Pinchinat (IRISA) Logic, Automata, and Games Logic Summer School 2009 48 / 98

  31. Games Generalities Plays A token is placed on some initial vertex v ∈ V When v is a σ -vertex, the Player σ moves the token from v to some successor position v ′ ∈ vE . This is repeated infinitely often or until a vertex ¯ v without successor is reached (¯ vE = ∅ ) Formally, a play in the arena G is either ◮ an infinite path π = v 0 v 1 v 2 . . . ∈ V ω with v i +1 ∈ v i E for all i ∈ ω , or ◮ a finite path π = v 0 v 1 v 2 . . . v l ∈ V + with v i +1 ∈ v i E for all i < l , but v l E = ∅ . Sophie Pinchinat (IRISA) Logic, Automata, and Games Logic Summer School 2009 49 / 98

  32. Games Generalities Games and Winning sets Let be G an arena and Win ⊆ V ω be the winning condition The pair G = ( G , Win ) is called a game Player 0 is declared the winner of a play π in the game G if ◮ π is finite and last ( π ) ∈ V 1 and last ( π ) E = ∅ , or ◮ π is infinite and π ∈ Win . Player 1 wins π if Player 0 does not win π . Initialized game ( G , v I ). Sophie Pinchinat (IRISA) Logic, Automata, and Games Logic Summer School 2009 50 / 98

  33. Games Parity Games Parity Winning Conditions We color vertices of the arena by χ : V → C where C is a finite set of so-called colors; it extends to plays χ ( π ) = χ ( v 0 ) χ ( v 1 ) χ ( v 2 ) . . . . C is a finite set of integers called priorities Let Inf χ ( π ) be the set of colors that occurs infinitely often in χ ( π ). Win is the set of infinite paths π such that min ( Inf C ( π )) is even. Sophie Pinchinat (IRISA) Logic, Automata, and Games Logic Summer School 2009 51 / 98

  34. Games Parity Games Example of a Parity Game color 0 and the rest is colored 1 Sophie Pinchinat (IRISA) Logic, Automata, and Games Logic Summer School 2009 52 / 98

  35. Games Parity Games Strategies A strategy for Player σ is a function f σ : V ∗ V σ → V A prefix play π = v 0 v 1 v 2 . . . v l is conform with f σ if for every i with 0 ≤ i < l and v i ∈ V σ the function f σ is defined and we have v i +1 = f σ ( v 0 . . . v i ). A play is conform with f σ if each of its prefix is conform with f σ . f σ is a strategy for Player σ on U ⊆ V if it is defined for every prefix of a play which is conform with it, starts in a vertex in U , and does not end in a dead end of Player σ . A strategy f σ is a winning strategy for Player σ on U if all plays which are conform with f σ and start from a vertex in U are wins for Player σ . Player σ wins a game G on U ⊆ V if he has a winning strategy on U . Sophie Pinchinat (IRISA) Logic, Automata, and Games Logic Summer School 2009 53 / 98

  36. Games Parity Games Winning Regions The winning region for Player σ is the set W σ ( G ) ⊆ V of all vertices such that Player σ wins ( G , v ), i.e. ˙ Player 0 wins G on { v } . Hence, for any G , Player σ wins G on W σ ( G ). Sophie Pinchinat (IRISA) Logic, Automata, and Games Logic Summer School 2009 54 / 98

  37. Games Parity Games Example of Winning Regions W 0 W 1 color 0 and the rest is colored 1 Sophie Pinchinat (IRISA) Logic, Automata, and Games Logic Summer School 2009 55 / 98

  38. Games Memoryless Determinacy of Parity Games Determinacy of Parity Games A game G = (( V , E ) , Win ) is determined when the sets W σ ( G ) and W σ ( G ) form a partition of V . Theorem Every parity game is determined. A strategy f σ is a positional (or memoryless) strategy whenever f σ ( π v ) = f σ ( π ′ v ), for every v ∈ V σ Theorem [EJ91, Mos91] In every parity game, both players win memoryless. See [GTW02, Chaps. 6 and 7] Sophie Pinchinat (IRISA) Logic, Automata, and Games Logic Summer School 2009 56 / 98

  39. Games Memoryless Determinacy of Parity Games Games that are not Memoryless Colors 0 , 1 , 2 must all occur infinitely often to win a play. Player 0 must remember something (but the strategy is finite memory = forgetful strategy). 1 0 2 Recall: In Muller games, we specify a sets of colors F = { F 1 , . . . , F m } ⊆ 2 C such that one F i is “exactely” visited infinitely often: Win = { π ∈ V ω | Inf χ ( π ) ∈ F} Sophie Pinchinat (IRISA) Logic, Automata, and Games Logic Summer School 2009 57 / 98

  40. Games Memoryless Determinacy of Parity Games Forgetful Determinacy of Regular Games Muller games (and any other regular games, Rabin, Streett, Rabin Chain, Buchi, ... ) can be simulated by larger parity games. Hence they are also determined (from the determinacy result from [Mar75] for every game with Borel type). Corollary Regular games are forgetful determined. Sophie Pinchinat (IRISA) Logic, Automata, and Games Logic Summer School 2009 58 / 98

  41. Games Solving Parity Games Complexity Results Theorem Wins = { ( G , v ) | G a finite parity game and v a winning position of Player 0 } is in NP ∩ co-NP Guess a memoryless strategy f of Player 0 1 Check whether f is memoryless winning strategy 2 Step 2. can be carried out in polynomial time: G f is a subgraph of G where all edges ( v , v ”) where v ” � = f ( v ) have been eliminated. Given G f , check existence of a vertex v ′ reachable from v such that (1) χ ( v ′ ) is odd and (2) v ′ lies on cycle in G f containing only priorities greater than equal to χ ( v ′ ). Such v ′ does not exist iff Player 0 has a winning strategy. Hence, Wins ∈ NP. By determinacy, deciding ( G , v ) / ∈ Wins means to decide whether v is a winning position for Player 1 (as above but 1’) χ ( v ′ ) is even), or use algorithm above on the dual game. Hence, Wins ∈ co-NP. Sophie Pinchinat (IRISA) Logic, Automata, and Games Logic Summer School 2009 59 / 98

  42. Games Solving Parity Games Algorithms for Computing Winning Regions We will see simple winning conditions: Reachability (and Safety) Games Buchi Games (particular parity games with priorities 0 , 1). For the general case, there exists many algorithms, all exponential in the number of priorities; see the literature, e.g. [GTW02, Chap. 7]. Recall the problem is in NP ∩ co-NP. Fundamental Open Problem Does there exists a polynomial algorithm to solve parity games? Sophie Pinchinat (IRISA) Logic, Automata, and Games Logic Summer School 2009 60 / 98

  43. Games Solving Parity Games Reachability Games Given an arena G = ( V , V 0 , E ) and a set F ⊆ V , we consider the winning condition Player 0 wins the play π ⇔ ∃ j , π ( j ) ∈ F The winning regions W 0 and W 1 are computable. Principle: compute the sets Attr i 0 ( F ) def = { v ∈ V | from v Player 0 can force a visit of F in ≤ i moves } Sophie Pinchinat (IRISA) Logic, Automata, and Games Logic Summer School 2009 61 / 98

  44. Games Solving Parity Games 4 steps 3 steps 2 steps 1 step F W 0 W 1 Sophie Pinchinat (IRISA) Logic, Automata, and Games Logic Summer School 2009 62 / 98

  45. Games Solving Parity Games Computing Attractors  Attr i 0 ( F )  ∪{ v ∈ V 0 | ∃ vEv ′ and v ′ ∈ Attr i Attr 0 Attr i +1 0 ( F ) = F ( F ) = 0 ( F ) } 0 ∪{ v ∈ V 1 | ∀ v ′ s.t. vEv ′ , v ′ ∈ Attr i  0 ( F ) } Then Attr 0 0 ( F ) ⊆ Attr 1 0 ( F ) ⊆ Attr 2 0 ( F ) ⊆ . . . eventually stabilizes. The 0-Attractor of F is Attr 0 ( F ) def = ∪ | V | Attr i 0 ( F ) i The 1-Attractor of F , Attr 1 ( F ), is defined analoguously. Proposition W 0 = Attr 0 ( F ) and W 1 = V \ Attr 0 ( F ) Attr 0 ( F ) ⊆ W 0 : For v ∈ Attr 0 ( F ) ∩ V 0, the strategy is to choose v ′ ∈ vE such that dist ( v ′ , F ) < dist ( v , F ). W 0 ⊆ Attr 0 ( F ): if not in Attr 0 ( F ) then Player 1 has a way to keep the play away from Attr 0 ( F ), hence from F . Attr 0 ( F ) can be computed in linear time: use bacward breath-first search. Sophie Pinchinat (IRISA) Logic, Automata, and Games Logic Summer School 2009 63 / 98

  46. Games Solving Parity Games Buchi Games Given an arena G = ( V , V 0 , E ) and a set F ⊆ V , we consider the winning condition Player 0 wins the play π ⇔ ∃ ω j , π ( j ) ∈ F that is Inf ( π ) ∩ F � = ∅ . The winning regions W 0 and W 1 are computable. Principle: compute the sets 0 ( F ) def Recur i = { v ∈ V | from v Player 0 can enforce at least i visits of F } Sophie Pinchinat (IRISA) Logic, Automata, and Games Logic Summer School 2009 64 / 98

  47. Games Solving Parity Games Computing Recurrence Sets Recur 0 0 ( F ) = F 0 ( R ) def Attr + = { v ∈ V | from v Player 0 enforce visit of F in ≥ 1 moves } Recur i +1 ( F ) = F ∩ Attr + 0 ( Recur i 0 ( F ) 0 F ⊇ Recur 1 0 ( F ) ⊇ Recur 2 0 ( F ) ⊇ . . . Recur 0 ( F ) def 0 ( F ) = Recur i 0 = ∩ i ≥ 1 Recur i 0 ( F ) for some i 0 . Proposition W 0 = Attr 0 ( Recur 0 ( F )) and W 1 = V \ Attr 0 ( Recur 0 ( F )) Sophie Pinchinat (IRISA) Logic, Automata, and Games Logic Summer School 2009 65 / 98

  48. Membership and Emptiness Problems for NDPT Automata Back to Decision Problems for ND Tree Automata The Membership Problem: A � G A , t Given a tree t and an NDPT automaton A , we build a parity game 1 ( G A , t , v I ) s.t. v I is in W 0 ( G A , t ) iff t ∈ L ( A ). Moreover, if t is regular (i.e. represented by a finite KS ( S , s )), we can build a finite game. The Emptiness Problem: A � A ′ � G A ′ For each parity automaton A , we build an Input Free automaton A ′ 1 such that L ( A ) � = ∅ iff A ′ admits a successful run. From A ′ we build a parity game G A ′ such that (winning) strategies of 2 Player 0 and (successful) runs of A ′ correspond. Both problem reduce to solving parity games! Sophie Pinchinat (IRISA) Logic, Automata, and Games Logic Summer School 2009 66 / 98

  49. Membership and Emptiness Problems for NDPT Automata The Membership Problem: The Game Graph G A , t 0-positions are of the form ( w , t ( w ) , q ). Moves from ( w , t ( w ) , ), with δ ( q , t ( w )) = { ( q ′ 1 , q ” 1 ) , ( q ′ 2 , q ” 2 ) , . . . ( q ′ m , q ” m ) } are: ( w , t ( w ) , ( q , t ( w ) , q ′ 1 , q ” 1 )) ( w , t ( w ) , ( q , t ( w ) , q ′ 2 , q ” 2 )) ( w , t ( w ) , q ) . . . ( w , t ( w ) , ( q , t ( w ) , q ′ m , q ” m )) Player 0 chooses the transition ( q , t ( w ) , q ′ , q ”) from q for input t ( w ) Sophie Pinchinat (IRISA) Logic, Automata, and Games Logic Summer School 2009 67 / 98

  50. Membership and Emptiness Problems for NDPT Automata The Game Graph G A , t 1-positions are of the form ( w , t ( w ) , ( q , t ( w ) , q ′ , q ”)). 2 possible moves from ( w , t ( w ) , ( q , t ( w ) , q ′ , q ”)): ( w 0 , t ( w 0) , q ′ ) ( w , t ( w ) , ( q , t ( w ) , q ′ , q ”)) ( w 1 , t ( w 1) , q ”) Player 1 chooses the branch in the run (left q ′ , or right q ”) Sophie Pinchinat (IRISA) Logic, Automata, and Games Logic Summer School 2009 68 / 98

  51. Membership and Emptiness Problems for NDPT Automata The Game Graph G A , t A = ( Q , Σ , q 0 , δ, c ) V 0 = set of triples ( w , t ( w ) , q ) ∈ { 0 , 1 } ∗ × Σ × Q V 1 = set of triples ( w , t ( w ) , τ ) ∈ { 0 , 1 } ∗ × Σ × δ Moves ... Initial position in ( ǫ, t ( ǫ ) , q 0 ) ∈ V 0 Priorities: χ (( w , t ( w ) , q )) = c ( q ) χ (( w , t ( w ) , ( q , t ( w ) , q ′ , q ”))) = c ( q ) Sophie Pinchinat (IRISA) Logic, Automata, and Games Logic Summer School 2009 69 / 98

  52. Membership and Emptiness Problems for NDPT Automata The Game Graph G A , t V 0 : ( w , t ( w ) , state q ) V 1 : ( w , t ( w ) , transition ( q , t ( w ) , q ′ , q ”)) Moves from V 0 : from ( w , t ( w ) , q ), Player 0 can move to ( w , t ( w ) , ( q , t ( w ) , q ′ , q ”)), for every ( q , t ( w ) , q ′ , q ”) ∈ δ Moves from V 0 : from ( w , t ( w ) , ( q , t ( w ) , q ′ , q ”)), Player 1 can moves to ( w 0 , t ( w 0) , q ′ ) or to ( w 1 , t ( w 1) , q ”). Sophie Pinchinat (IRISA) Logic, Automata, and Games Logic Summer School 2009 70 / 98

  53. Membership and Emptiness Problems for NDPT Automata The Finite Game with a Regular Tree s 0 b b s 0 1 0 1 b a s 1 s 1 s 2 a 0 , 1 0 s 0 b With the automaton: δ ( q ∗ , a ) = { ( q a , ⊤ ) , ( ⊤ , q a ) } a s 1 δ ( q ∗ , b ) = { ( q b , ⊤ ) , ( ⊤ , q b ) } b b δ ( ⊤ , ∗ ) = { ( ⊤ , ⊤ ) } s 0 b c ( q a ) = c ( ⊤ ) = 0 c ( q b ) = 1 a s 1 Sophie Pinchinat (IRISA) Logic, Automata, and Games Logic Summer School 2009 71 / 98

  54. Membership and Emptiness Problems for NDPT Automata Example of G A , t priorities 0 s 0 , b , q a 0 s 0 , b , ( q a , b , ⊤ , q b ) 0 s 0 , b , ( q a , b , q b , ⊤ ) 0 s 1 , a , ⊤ 1 0 1 s 1 , a , q b s 2 , b , ⊤ s 2 , b , q b 0 s 1 , a , ( ⊤ , a , ⊤ , ⊤ ) 0 s 2 , b , ( ⊤ , b , ⊤⊤ ) 1 s 1 , a , ( q b , a , q a , ⊤ ) 1 1 0 s 2 , b , ( q b , b , q b , ⊤ ) s 2 , b , ( q b , b , ⊤ , q b ) s 1 , a , ( ⊤ , a , ⊤ , q a ) 1 0 s 2 , b , q b , s 2 , b , q a Sophie Pinchinat (IRISA) Logic, Automata, and Games Logic Summer School 2009 72 / 98

  55. Membership and Emptiness Problems for NDPT Automata The Emptiness Problem: Input-free Automata An input-free (IF) automaton is A ′ = ( Q , δ, q I , Acc ) where δ ⊆ Q × Q × Q . Lemma For each parity automaton A there exists an IF automaton A ′ such that L ( A ) � = ∅ iff A ′ admits a successful run. A = ( Q , Σ , q 0 , δ, c ) and define A ′ = ( Q × Σ , { q I } × Σ , δ ′ , c ′ ). A ′ will guess non-deterministically the second component of its states, i.e. the labeling of a model. Formally, ◮ for each ( q , a , q ′ , q ”) ∈ δ , we generate (( q , a ) , ( q ′ , x ) , ( q ” , y )) ∈ δ ′ , if ( q ′ , x , p , p ′ ) , ( q ” , y , r , r ′ ) ∈ δ for some p , p ′ , q , q ′ ∈ Q ◮ c ′ ( q , a ) = c ( q ) Sophie Pinchinat (IRISA) Logic, Automata, and Games Logic Summer School 2009 73 / 98

  56. Membership and Emptiness Problems for NDPT Automata Example IF Automaton A ′ A � ( q a , a , q a , ⊤ ) , ( q a , a , ⊤ , q a ) (( q a , a ) , ( q a , a ) , ( ⊤ , a )) , (( q a , a ) , ( ⊤ , a ) , ( q a , a )) � (( q a , a ) , ( q a , b ) , ( ⊤ , a )) , (( q a , a ) , ( ⊤ , b ) , ( q a , a )) (( q a , a ) , ( q a , a ) , ( ⊤ , b )) , (( q a , a ) , ( ⊤ , a ) , ( q a , b )) (( q a , a ) , ( q a , b ) , ( ⊤ , b )) , (( q a , a ) , ( ⊤ , b ) , ( q a , b )) ( q a , b , q b , ⊤ ) , ( q a , b , ⊤ , q b ) (( q a , b ) , ( q b , a ) , ( ⊤ , a )) , (( q a , a ) , ( ⊤ , a ) , ( q b , a )) � (( q a , b ) , ( q b , b ) , ( ⊤ , a )) , (( q a , a ) , ( ⊤ , b ) , ( q b , a )) (( q a , b ) , ( q b , a ) , ( ⊤ , b )) , (( q a , a ) , ( ⊤ , a ) , ( q b , b )) (( q a , b ) , ( q b , b ) , ( ⊤ , b )) , (( q a , a ) , ( ⊤ , b ) , ( q b , b )) ( q b , a , q a , ⊤ ) , ( q b , a , ⊤ , q a ) � . . . ( q b , b , q b , ⊤ ) , ( q b , b , ⊤ , q b ) � . . . ( ⊤ , a , ⊤ , ⊤ ) (( ⊤ , a ) , ( ⊤ , a ) , ( ⊤ , a )) ( ⊤ , b , ⊤ , ⊤ ) � . . . � (( ⊤ , a ) , ( ⊤ , b ) , ( ⊤ , a )) (( ⊤ , a ) , ( ⊤ , a ) , ( ⊤ , b )) (( ⊤ , a ) , ( ⊤ , b ) , ( ⊤ , b )) c ′ (( q a , ∗ )) = c ( q a ) = 0 , c ′ (( ⊤ , ∗ )) = c ( ⊤ ) = 0 , c ′ (( q b , ∗ )) = c ( q b ) = 1 Sophie Pinchinat (IRISA) Logic, Automata, and Games Logic Summer School 2009 74 / 98

  57. Membership and Emptiness Problems for NDPT Automata From IF Automata to Parity Games A an IF automaton � a parity game G A Positions V 0 = Q and V 1 = δ Moves for all ( q , q ′ , q ′′ ) ∈ δ ◮ ( q , ( q , q ′ , q ”)) ∈ E ◮ (( q , q ′ , q ”) , q ′ ) , (( q , q ′ , q ”) , q ”) ∈ E Priorities χ ( q ) = c ( q ) = χ (( q , q ′ , q ”)) Lemma (Winning) Strategies of Player 0 and (successful) runs of A correspond. Notice that G A has a finite number of positions. Sophie Pinchinat (IRISA) Logic, Automata, and Games Logic Summer School 2009 75 / 98

  58. Membership and Emptiness Problems for NDPT Automata Example of G A 0 q a , a 0 0 0 q a , a q a , a q a , a q a , a ⊤ , a q a , b ⊤ , a q a , b ⊤ , b 0 ⊤ , a 0 ⊤ , a ⊤ , a ⊤ , a ⊤ , a ⊤ , a ⊤ , b ⊤ , a ⊤ , b ⊤ , b Sophie Pinchinat (IRISA) Logic, Automata, and Games Logic Summer School 2009 76 / 98

  59. Membership and Emptiness Problems for NDPT Automata Decidability of Emptiness for NDPT Automata Theorem For parity tree automata it is decidable whether their recognized language is empty or not. A � A ′ � G A ′ , and combined previous results. Sophie Pinchinat (IRISA) Logic, Automata, and Games Logic Summer School 2009 77 / 98

  60. Membership and Emptiness Problems for NDPT Automata Finite Model Property Corollary If L ( A ) � = ∅ then L ( A ) contains a regular tree. Use the memoryless winning strategy in G A ′ . Formally, Take A and its corresponding IF automatan A ′ . Assume a successful run of A ′ and a memoryless strategy f for Player 0 in G A ′ from some position ( q I , a ). The subgraph G A ′ f induces a deteministic IF automaton A ” (without acc): extract the transitions out of G A f from positions in V 1 . A ” is a subautomaton of A ′ . A ” generates a regular tree t in the second component of its states. Now, t ∈ L ( A ) because A ′ behaves like A . Sophie Pinchinat (IRISA) Logic, Automata, and Games Logic Summer School 2009 78 / 98

  61. Membership and Emptiness Problems for NDPT Automata Complexity Issues Corollary The Emptiness Problem for NDPT automata is in NP ∩ co-NP. Notice that the size of G A ′ is polynomial in the size of A (see [GTW02, p. 150, Chap. 8]). Important remark: the universality problem is EXPTIME-complete (already for finite trees). Sophie Pinchinat (IRISA) Logic, Automata, and Games Logic Summer School 2009 79 / 98

  62. Membership and Emptiness Problems for NDPT Automata Alternating Tree Automata Mu-Calculus and Parity Tree Automata Sophie Pinchinat (IRISA) Logic, Automata, and Games Logic Summer School 2009 80 / 98

  63. Membership and Emptiness Problems for NDPT Automata Alternating Tree Automata Mu-calculus Syntax for this lecture we use L and R as the directions for successors: Alphabet Σ and Propositions Prop = { P a } a ∈ Σ Variables Var = { Z , Z ′ , Y , . . . } Formulas β, β ′ ∈ L µ ::= P a | Z | ¬ β | β ∧ β ′ | � L � β | � R � β | µ Z .β where Z ∈ Var . Sophie Pinchinat (IRISA) Logic, Automata, and Games Logic Summer School 2009 81 / 98

  64. Membership and Emptiness Problems for NDPT Automata Alternating Tree Automata Recall G A , t a tree t × A × a KS ( S , s 0 ) G A , ( S , s 0 ) Sophie Pinchinat (IRISA) Logic, Automata, and Games Logic Summer School 2009 82 / 98

  65. Membership and Emptiness Problems for NDPT Automata Alternating Tree Automata ǫ b b s 0 R a L R b L R b s 1 s 2 b LR LR b a L , R L state ( LRLL ) = s 2 a hence the label b LRL LRR b b LRLL LRLR b Sophie Pinchinat (IRISA) Logic, Automata, and Games Logic Summer School 2009 83 / 98

  66. Membership and Emptiness Problems for NDPT Automata Alternating Tree Automata Automaton for the Formula EF a Or equivalently, for the Mu-calculus formula µ Z . P a � � Z 1 µ Z . P a ∨ � � Z 1 P a ∨ � � Z 1 1 P a � � Z 1 input a 1 � R � Z input not a 1 1 � L � Z ⊤ ⊥ R 1 Z L Sophie Pinchinat (IRISA) Logic, Automata, and Games Logic Summer School 2009 84 / 98

  67. Membership and Emptiness Problems for NDPT Automata Alternating Tree Automata 1 µ Z . P a ∨ � � Z , s 0 1 P a ∨ � � Z , s 0 1 1 P a , s 0 � � Z , s 0 1 as input not a 1 � R � Z , s 0 1 � L � Z , s 0 ⊥ 1 1 Z , s 1 Z , s 0 L 1 1 µ Z . P a ∨ � � Z , s 2 µ Z . P a ∨ � � Z , s 1 R 1 1 P a ∨ � � Z , s 2 P a ∨ � � Zs 1 1 1 1 1 P a , s 2 � � Z , s 2 � � Z , s 1 P a , s 1 1 1 � L � Z , s 2 as input not a 1 as input a 1 1 � R � Z , s 1 � L � Z , s 2 1 ⊥ � L � Z , s 1 ⊤ R L 1 Z , s 0 Sophie Pinchinat (IRISA) Logic, Automata, and Games Logic Summer School 2009 85 / 98

  68. Membership and Emptiness Problems for NDPT Automata Alternating Tree Automata The Game G ( A ( E F a ) , ( S , s 0 )) 1 b µ Z . P a ∨ � � Z s 0 R 1 L P a ∨ � � Z R b × s 1 s 2 1 1 � � Z P a a L , R L 1 input a 1 � R � Z input not a 1 1 � L � Z ⊤ ⊥ R 1 Z L On the board ... Sophie Pinchinat (IRISA) Logic, Automata, and Games Logic Summer School 2009 86 / 98

  69. Membership and Emptiness Problems for NDPT Automata Alternating Tree Automata ∞ Automaton for the Formula E F a Or equivalently, for the Mu-calculus formula ν Y .µ Z . � � ( P a ∧ Y ∨ Z ) 0 ν Y µ Z . � � ( P a ∧ Y ∨ Z ) 1 µ Z . � � ( P a ∧ Y ∨ Z ) 1 � � ( P a ∧ Y ∨ Z ) 1 1 � L � ( P a ∧ Y ∨ Z ) � R � ( P a ∧ Y ∨ Z ) 1 L R P a ∧ Y ∨ Z 1 1 1 ⊥ P a ∧ Y Z if input not a 1 1 1 Y P a if input a ⊤ Sophie Pinchinat (IRISA) Logic, Automata, and Games Logic Summer School 2009 87 / 98

  70. Membership and Emptiness Problems for NDPT Automata Alternating Tree Automata ∞ The Game G ( A ( E F a ) , ( S , s 0 )) 0 ν Y µ Z . � � ( P a ∧ Y ∨ Z ) b s 0 1 µ Z . � � ( P a ∧ Y ∨ Z ) R L 1 R b � � ( P a ∧ Y ∨ Z ) 1 1 s 1 s 2 × � L � ( P a ∧ Y ∨ Z ) � R � ( P a ∧ Y ∨ Z ) a 1 L , R L L R P a ∧ Y ∨ Z 1 1 1 ⊥ P a ∧ Y Z if input not a 1 1 1 Y P a if input a ⊤ On the board ... Sophie Pinchinat (IRISA) Logic, Automata, and Games Logic Summer School 2009 88 / 98

  71. Membership and Emptiness Problems for NDPT Automata Alternating Tree Automata Automaton for the Formula AG EF a Or equivalently, for the Mu-calculus formula ν Y . [ ] Y ∧ ( µ Z . P a ∨ � � Z ) 0 1 ν Y . [ ] Y ∧ EF a µ Z . P a ∨ � � Z ǫ 1 1 [ ] Y ∧ EF a P a ∨ � � Z 1 1 1 [ ] Y EF a � � Z P a 1 1 1 input a � R � Z input not a 1 � L � Y � R � Y 1 1 � L � Z ⊤ ⊥ 1 L R 1 R Y L ALTERNATION Z Use UNIVERSAL states Sophie Pinchinat (IRISA) Logic, Automata, and Games Logic Summer School 2009 89 / 98

  72. Membership and Emptiness Problems for NDPT Automata Alternating Tree Automata Alternating Tree Automata For NDPT automata δ ( q , a ) = { ( q ′ 1 , q ” 1 ) , ( q ′ 2 , q ” 2 ) } means: From state q on input labeled by a , (1) non-deterministically choose between the two “disjuncts” ( q ′ 1 , q ” 1 ) and ( q ′ 2 , q ” 2 ), and (2) proceed accordingly to the Left and Right sons of w in t . Notice: ( q ′ 1 , q ” 1 ) and ( q ′ 2 , q ” 2 )] are disjuncts, e.g. ( q ′ 1 , q ” 1 ) is the instruction: “Proceed left with q ′ 1 and proceed right with q ” 1 ” ( q ′ 1 , L ) ∧ ( q ” 1 , R ) We then write, δ ( q , a ) = ( q ′ 1 , L ) ∧ ( q ” 1 , R ) ∨ ( q ′ 2 , L ) ∧ ( q ” 2 , R ) Sophie Pinchinat (IRISA) Logic, Automata, and Games Logic Summer School 2009 90 / 98

  73. Membership and Emptiness Problems for NDPT Automata Alternating Tree Automata Formal Definition of ATA Universal moves, similar to alternating Turing machines extend non-deterministic Turing machines. An alternating tree automaton is A = ( Q , Q ∃ , Q ∀ , Σ , q 0 , δ, Acc ) ◮ { Q ∃ , Q ∀ } is a partition of Q ◮ δ : Q × Σ → P ( Q × { L , R , ǫ } ) is a function and ǫ -transitions are allowed. δ ( q , a ) = ( q ′ , ǫ ) ∧ ( q 1 , L ) ∧ ( q 2 , L ) ∧ ( q 3 , R ) ∨ ... Alternating Tree Automata extend NDPT Automata Notice that different “copies” of the automaton can proceed along the same subtree, e.g. A , q 1 and A , q ′ 1 on the left subtree of nodes labeled by a . Sophie Pinchinat (IRISA) Logic, Automata, and Games Logic Summer School 2009 91 / 98

  74. Membership and Emptiness Problems for NDPT Automata Alternating Tree Automata Semantics of ATA see [GTW02, Chap. 9] Parity games provide a natural way to define L ( A ) for every ATA A . Determinacy of games gives the closure by complemention, and the construction is easy: Dualize “Players” and shift the colors. δ ( q , a ) = [( q ′ , ǫ ) ∧ ( q 1 , L ) ∧ ( q 2 , L ) ∧ ( q 3 , R )] ∨ . . . � ¯ δ ( q , a ) = [( q ′ , ǫ ) ∨ ( q 1 , L ) ∨ ( q 2 , L ) ∨ ( q 3 , R )] ∧ . . . Sophie Pinchinat (IRISA) Logic, Automata, and Games Logic Summer School 2009 92 / 98

  75. Membership and Emptiness Problems for NDPT Automata Alternating Tree Automata Properties of Alternating Tree Automata Closed under disjunction and conjunction Closed under negation (complementation), see proof next slide Unfortunately, it is difficult to show that alternating automata are closed under projection. [MS95] showed that any alternating automaton is equivalent to a non-deterministic automaton (exponential number of states). Sophie Pinchinat (IRISA) Logic, Automata, and Games Logic Summer School 2009 93 / 98

  76. Membership and Emptiness Problems for NDPT Automata Alternating Tree Automata Complementation of Alternating Parity Tree Automata Lemma For every alternating parity tree automaton A there is a dual parity tree automaton ¯ A such that L ( ¯ A ) = Trees (Σ) \ L ( A ) . Moreover, regarding size, | ¯ A| = |A| A = ( Q , Q ∃ , Q ∀ , Σ , q 0 , δ, Acc ) � ¯ A = ( Q , Q ∀ , Q ∃ , Σ , q 0 , ¯ δ, ¯ c ) where c ( q ) = c ( q ) + 1 for every q ∈ Q . Now, compare G ( A , t ) and G ( ¯ A , t ) ¯ Same graph but positions of Player 0 become positions of Player 1, and vice versa. For every infinite play π , π is winning for Player 0 in G ( A , t ) iff π is winning for Player 1 in G ( ¯ A , t ). Hence Player 0 has a winning strategy in G ( A , t ) iff Player 1 has a winning strategy in G ( ¯ A , t ) (same strategy). ∈ L ( ¯ So, t ∈ L ( A ) iff t / A ) Sophie Pinchinat (IRISA) Logic, Automata, and Games Logic Summer School 2009 94 / 98

  77. Membership and Emptiness Problems for NDPT Automata Decision Problems Decision Problems Membership Problem for ATA A = ( Q , Q ∃ , Q ∀ , Σ , q 0 , δ, c ), k colors, and t ∈ Trees (Σ), does t ∈ L ( A )? ◮ t is regular, as the unravelling of some finite Kripke Structure ( S , s 0 ). ◮ Build the finite parity game G ( A , ( S , s 0 )) and solve it (decidable). ◮ The size of G ( A , ( S , s 0 )): | Q | × | S | positions and k priorities ◮ Complexity in NP ∩ co-NP (as for parity games) Emptiness Problem for ATA A = ( Q , Q ∃ , Q ∀ , Σ , q 0 , δ, c ), is L ( A ) = ∅ ? ◮ See [GTW02, Chap. 9] ◮ Alternatively, transform A into a non-deterministic tree automaton B , and solve emptiness of non-deterministic tree automata ◮ Complexity: EXPTIME-complete Sophie Pinchinat (IRISA) Logic, Automata, and Games Logic Summer School 2009 95 / 98

  78. Membership and Emptiness Problems for NDPT Automata Mu-calculus and Alternating Parity Tree Automata Mu-calculus and Alternating Parity Tree Automata From the Mu-calculus to Alternating Tree Automata: Given a sentence β ∈ L µ (in positive normal form), we construct in polynomial time an ATA A β such that L ( β ) = L ( A β ) The automaton has | β | states and O ( | ad ( β | ) colors. From Alternating Tree Automata to the Mu-calculus: given an AT Automaton A we can build a formula β A “equivalent” to A . The translation from Alternating Parity Tree Automata to the Mu-calculus uses vectorial Mu-calulus, see [AN01]. Sophie Pinchinat (IRISA) Logic, Automata, and Games Logic Summer School 2009 96 / 98

  79. Membership and Emptiness Problems for NDPT Automata Mu-calculus and Alternating Parity Tree Automata Summary about the Mu-Calculus The Mu-calculus ≡ Alternating Parity Tree Automata ( ≡ NDPT Automata) They all characterize regular languages of infinite trees. The Mu-calculus ≡ MSO on trees More generally: The Mu-calculus ≡ bisimulation invariant properties of MSO [JW95] Complexity results: ◮ Satisfiability is EXPTIME-complete ([SE89, EJ88]). ◮ Model-checking is NP ∩ co-NP; it is open whether it is in P. The Mu-calculus subsumes every temporal logics. ◮ CTL translates into the alternation free fragment of the Mu-calculus. It has a polynomial time model-checking procedure (retrieve why according to previous results). ◮ CTL ∗ can be translated into the Mu-calculus [Dam94], but there is an exponential blow-up. Sophie Pinchinat (IRISA) Logic, Automata, and Games Logic Summer School 2009 97 / 98

  80. Membership and Emptiness Problems for NDPT Automata Mu-calculus and Alternating Parity Tree Automata Importance of Games Useful for fundamental problems on automata henceforth for the Satisfiability and Model-checking Problem of modal and temporal logics. A “reversed” reduction: A parity game G , V 0 , V 1 , E ) with a priority function χ : V → { 0 , . . . , k − 1 } ( k priorities) can be seen as a Kripke Structure ( V , E , λ ) where λ maps states onto the set of propositions { V 0 , V 1 , P 0 , . . . , P k } where P i = { v | χ ( v ) = i } . The formula k − 1 � def Win k = ν Z 0 .µ Z 1 . . . . θ Z k − 1 (( V 0 ∧ P j ∧ ( � . � Z j ) ∨ ( V 1 ∧ P j ∧ ([ . ] Z j )) j =0 (where θ = ν if k is odd, and θ = µ if k is even) characterizes the winning region W 0 of Player 0 in any parity game with priorities 0 , . . . , k − 1. Sophie Pinchinat (IRISA) Logic, Automata, and Games Logic Summer School 2009 98 / 98

  81. Membership and Emptiness Problems for NDPT Automata Mu-calculus and Alternating Parity Tree Automata A. Arnold and D. Niwinski. Rudiments of mu-calculus . North-Holland, 2001. J. C. Bradfield. The modal mu-calculus alternation hierarchy is strict. In Proc. Concurrency Theory, 7th International Conference, CONCUR’96, Pisa, Italy, LNCS1119 , pages 233–246, 1996. M. Dam. CTL ⋆ and ECTL ⋆ as fragments of the modal µ -calculus. Theoretical Computer Science , 126(1):77–96, 1994. E. A. Emerson and J. Y. Halpern. “Sometimes” and “Not Never” revisited: On branching versus linear time. In Proc. 10th ACM Symp. Principles of Programming Languages, Austin, Texas , pages 127–140, January 1983. E. A. Emerson and C. S. Jutla. Sophie Pinchinat (IRISA) Logic, Automata, and Games Logic Summer School 2009 98 / 98

  82. Membership and Emptiness Problems for NDPT Automata Mu-calculus and Alternating Parity Tree Automata The complexity of tree automata and logics of programs. In Proc. 29th IEEE Symp. Foundations of Computer Science, White Plains, New York , pages 328–337, October 1988. E. A. Emerson and C. S. Jutla. Tree automata, mu-calculus and determinacy. In Proceedings 32nd Annual IEEE Symp. on Foundations of Computer Science, FOCS’91, San Jose, Puerto Rico, 1–4 Oct 1991 , pages 368–377. IEEE Computer Society Press, Los Alamitos, California, 1991. E. A. Emerson. Temporal and modal logic. In J. van Leeuwen, editor, Handbook of Theoretical Computer Science, vol. B , chapter 16, pages 995–1072. Elsevier Science Publishers, 1990. E. Gr¨ adel, W. Thomas, and T. Wilke, editors. Automata, Logics, and Infinite Games: A Guide to Current Research [outcome of a Dagstuhl seminar, February 2001] , volume 2500 of Lecture Notes in Computer Science . Sophie Pinchinat (IRISA) Logic, Automata, and Games Logic Summer School 2009 98 / 98

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend