Two-Way Alternating Automata and Finite Models Tedious proofs of - - PowerPoint PPT Presentation

two way alternating automata and finite models
SMART_READER_LITE
LIVE PREVIEW

Two-Way Alternating Automata and Finite Models Tedious proofs of - - PowerPoint PPT Presentation

Two-Way Alternating Automata and Finite Models Tedious proofs of irrelevant results Mikolaj Bojanczyk Warsaw University Two-Way Alternating Automata and Finite Models p.1/18 Intuition on the automaton A two-way alternating automaton


slide-1
SLIDE 1

Two-Way Alternating Automata and Finite Models

Tedious proofs of irrelevant results

Mikolaj Bojanczyk Warsaw University

Two-Way Alternating Automata and Finite Models – p.1/18

slide-2
SLIDE 2

Intuition on the automaton

A two-way alternating automaton recognizes a property of graphs with a distinguished starting vertex. In other words, such an automaton looks at a graph and the starting vertex and says “yes” or “no”.

Two-Way Alternating Automata and Finite Models – p.2/18

slide-3
SLIDE 3

Intuition on the automaton

A two-way alternating automaton recognizes a property of graphs with a distinguished starting vertex. In other words, such an automaton looks at a graph and the starting vertex and says “yes” or “no”. Some example properties recognized by alternating two-way automata:

Two-Way Alternating Automata and Finite Models – p.2/18

slide-4
SLIDE 4

Intuition on the automaton

A two-way alternating automaton recognizes a property of graphs with a distinguished starting vertex. In other words, such an automaton looks at a graph and the starting vertex and says “yes” or “no”. Some example properties recognized by alternating two-way automata: There is a vertex labelled by “a” in the graph

Two-Way Alternating Automata and Finite Models – p.2/18

slide-5
SLIDE 5

Intuition on the automaton

A two-way alternating automaton recognizes a property of graphs with a distinguished starting vertex. In other words, such an automaton looks at a graph and the starting vertex and says “yes” or “no”. Some example properties recognized by alternating two-way automata: There is a vertex labelled by “a” in the graph There is an infinite path in the graph

Two-Way Alternating Automata and Finite Models – p.2/18

slide-6
SLIDE 6

Intuition on the automaton

A two-way alternating automaton recognizes a property of graphs with a distinguished starting vertex. In other words, such an automaton looks at a graph and the starting vertex and says “yes” or “no”. Some example properties recognized by alternating two-way automata: There is a vertex labelled by “a” in the graph There is an infinite path in the graph There is an infinite path in the graph and no vertex of this path is the starting point of some infinite backward path

Two-Way Alternating Automata and Finite Models – p.2/18

slide-7
SLIDE 7

The automaton

  • +
  • 3

1

Two-Way Alternating Automata and Finite Models – p.3/18

slide-8
SLIDE 8

An example:

1 2 3 4 5 ...

  • +
✂ ✄ ☎
  • 3

1

Two-Way Alternating Automata and Finite Models – p.4/18

slide-9
SLIDE 9

An example:

1 2 3 4 5 ...

✁✝✆
  • +
✂ ✄ ☎
  • 3

1

Two-Way Alternating Automata and Finite Models – p.4/18

slide-10
SLIDE 10

An example:

1 2 3 4 5 ...

  • +
✂ ✄ ☎
  • 3

1

Two-Way Alternating Automata and Finite Models – p.4/18

slide-11
SLIDE 11

An example:

1 2 3 4 5 ...

✁✝✆
  • +
✂ ✄ ☎
  • 3

1

Two-Way Alternating Automata and Finite Models – p.4/18

slide-12
SLIDE 12

An example:

1 2 3 4 5 ...

  • +
✂ ✄ ☎
  • 3

1

Two-Way Alternating Automata and Finite Models – p.4/18

slide-13
SLIDE 13

An example:

1 2 3 4 5 ...

✁ ✆
  • +
✂ ✄ ☎
  • 3

1

Two-Way Alternating Automata and Finite Models – p.4/18

slide-14
SLIDE 14

An example:

1 2 3 4 5 ...

  • +
✂ ✄ ☎
  • 3

1

Two-Way Alternating Automata and Finite Models – p.4/18

slide-15
SLIDE 15

An example:

1 2 3 4 5 ...

✁✝✞
  • +
✂ ✄ ☎
  • 3

1

Two-Way Alternating Automata and Finite Models – p.4/18

slide-16
SLIDE 16

An example:

1 2 3 4 5 ...

✁✝✞
  • +
✂ ✄ ☎
  • 3

1

Two-Way Alternating Automata and Finite Models – p.4/18

slide-17
SLIDE 17

An example:

1 2 3 4 5 ...

✁✝✞
  • +
✂ ✄ ☎
  • 3

1

Two-Way Alternating Automata and Finite Models – p.4/18

slide-18
SLIDE 18

An example:

1 2 3 4 5 ...

✁✝✞
  • +
✂ ✄ ☎
  • 3

1

Two-Way Alternating Automata and Finite Models – p.4/18

slide-19
SLIDE 19

An example:

1 2 3 4 5 ...

  • +
✂ ✄ ☎
  • 3

1

Two-Way Alternating Automata and Finite Models – p.4/18

slide-20
SLIDE 20

Parity condition

An infinite sequence

✟ ✠ ✡ ✟ ☛ ✡☞ ☞ ☞
  • f elements from a finite set
  • f natural numbers satisfies the parity condition if the lowest

number occurring infinitely often is even.

Two-Way Alternating Automata and Finite Models – p.5/18

slide-21
SLIDE 21

accepts only infinite graphs

Fact 0 For any graph

, the automaton accpets in a vertex

✍ ✠

and state

✎ ✠

iff

  • 1. No infinite backward path condition.
✍ ✠

is not the beginning of a sequence

✍ ✠ ✍ ☛ ☞ ☞ ☞

where for all

✏ ✑ ✒ ✓ ✡ ✔ ✡☞ ☞ ☞ ✕

,

✖ ✍ ✗ ✘ ✠ ✡ ✍ ✗ ✙

is an edge in

.

  • 2. Infinite forward path condition.
✍ ✠

is the beginning of a sequence

✍ ✠ ✍ ☛ ☞ ☞ ☞

where for all

✏ ✑ ✒ ✓ ✡ ✔ ✡☞ ☞ ☞ ✕

,

✖ ✍ ✗ ✡ ✍ ✗ ✘ ✠ ✙

is an edge in

and accepts in

✍ ✗

and

✎ ✠

. Cor:

accepts only infinite graphs.

Two-Way Alternating Automata and Finite Models – p.6/18

slide-22
SLIDE 22

Finite model problems

Automata Instance: A two-way alternating automaton . Question: Does accept some finite graph?

Two-Way Alternating Automata and Finite Models – p.7/18

slide-23
SLIDE 23

Finite model problems

Automata Instance: A two-way alternating automaton . Question: Does accept some finite graph?

  • calculus

Instance: A formula

  • f the two-way modal
  • calculus

Question: Is

satisfiable in some finite structure?

Two-Way Alternating Automata and Finite Models – p.7/18

slide-24
SLIDE 24

Finite model problems

Automata Instance: A two-way alternating automaton . Question: Does accept some finite graph?

  • calculus

Instance: A formula

  • f the two-way modal
  • calculus

Question: Is

satisfiable in some finite structure? Guarded fragment with fixed points Instance: A formula

  • f the guarded fragment with

fixed points Question: Is

satisfiable in some finite structure?

Two-Way Alternating Automata and Finite Models – p.7/18

slide-25
SLIDE 25

Finite model problems

Automata Instance: A two-way alternating automaton . Question: Does accept some finite graph?

  • calculus

Instance: A formula

  • f the two-way modal
  • calculus

Question: Is

satisfiable in some finite structure? Guarded fragment with fixed points Instance: A formula

  • f the guarded fragment with

fixed points Question: Is

satisfiable in some finite structure? All three are equivalent

Two-Way Alternating Automata and Finite Models – p.7/18

slide-26
SLIDE 26

A strategy for the good player

1 2 3 4 5 ...

✁✝✆ ✁✝✆ ✁✝✆ ✁✝✆ ✁✝✆ ✁✝✆
  • +
✂ ✄ ☎
  • 3

1

Two-Way Alternating Automata and Finite Models – p.8/18

slide-27
SLIDE 27

Memoryless strategies

Thm:[Emmerson-Jutla/Mostowski] One of the players has a

winning strategy and, moreover, it is a memoryless strategy

Two-Way Alternating Automata and Finite Models – p.9/18

slide-28
SLIDE 28

The graph

Two-Way Alternating Automata and Finite Models – p.10/18

slide-29
SLIDE 29

Its unwinding

Two-Way Alternating Automata and Finite Models – p.10/18

slide-30
SLIDE 30

A strategy

for the green player

Two-Way Alternating Automata and Finite Models – p.10/18

slide-31
SLIDE 31

Locally possible moves under

Two-Way Alternating Automata and Finite Models – p.10/18

slide-32
SLIDE 32

Locally possible moves under

with accessible positions

Two-Way Alternating Automata and Finite Models – p.10/18

slide-33
SLIDE 33

The graph

✢✤✣ ✖✦✥ ✡ ✜ ✙

Two-Way Alternating Automata and Finite Models – p.10/18

slide-34
SLIDE 34

Parity length

The

  • length of a sequence of numbers
✟ ✧ ✟ ✠ ✟ ☛ ☞ ☞ ☞ ✟✤★

is the length of the longest sequence of

  • s in the

sequence

✟ ✩

resulting from

by taking out all numbers greater than

. For example, the

  • length of
✓ ✪ ✓ ✔ ✪ ✓

is

.

Two-Way Alternating Automata and Finite Models – p.11/18

slide-35
SLIDE 35

Parity length

The

  • length of a sequence of numbers
✟ ✧ ✟ ✠ ✟ ☛ ☞ ☞ ☞ ✟✤★

is the length of the longest sequence of

  • s in the

sequence

✟ ✩

resulting from

by taking out all numbers greater than

. For example, the

  • length of
✓ ✪ ✓ ✔ ✪ ✓

is

. The parity length of a sequence of numbers maximal

  • length of the sequence for odd

.

Two-Way Alternating Automata and Finite Models – p.11/18

slide-36
SLIDE 36

Parity length

The

  • length of a sequence of numbers
✟ ✧ ✟ ✠ ✟ ☛ ☞ ☞ ☞ ✟✤★

is the length of the longest sequence of

  • s in the

sequence

✟ ✩

resulting from

by taking out all numbers greater than

. For example, the

  • length of
✓ ✪ ✓ ✔ ✪ ✓

is

. The parity length of a sequence of numbers maximal

  • length of the sequence for odd

. The parity length of a path labelled by priorities is the parity length of the corresponding sequence of priorities.

Two-Way Alternating Automata and Finite Models – p.11/18

slide-37
SLIDE 37

Properties of

✫ ✬ ✭ ✮ ✜

is a winning strategy for the green player iff no infnite path in

✢ ✣ ✖ ✥ ✡ ✜ ✙

violates the parity condition (the parity length of paths in

✢✤✣ ✖ ✥ ✡ ✜ ✙

is finite).

Two-Way Alternating Automata and Finite Models – p.12/18

slide-38
SLIDE 38

Properties of

✫ ✬ ✭ ✮ ✜

is a winning strategy for the green player iff no infnite path in

✢ ✣ ✖ ✥ ✡ ✜ ✙

violates the parity condition (the parity length of paths in

✢✤✣ ✖ ✥ ✡ ✜ ✙

is finite).

can be wound back into a finite graph iff for some

, the parity length of paths in

✢✤✣ ✖ ✥ ✡ ✜ ✙

is bounded, i. e. there is some

such that all paths in

✢✤✣ ✖ ✥ ✡ ✜ ✙

have parity length not greater than .

Two-Way Alternating Automata and Finite Models – p.12/18

slide-39
SLIDE 39

Properties of

✫ ✬ ✭ ✮ ✜

is a winning strategy for the green player iff no infnite path in

✢ ✣ ✖ ✥ ✡ ✜ ✙

violates the parity condition (the parity length of paths in

✢✤✣ ✖ ✥ ✡ ✜ ✙

is finite).

can be wound back into a finite graph iff for some

, the parity length of paths in

✢✤✣ ✖ ✥ ✡ ✜ ✙

is bounded, i. e. there is some

such that all paths in

✢✤✣ ✖ ✥ ✡ ✜ ✙

have parity length not greater than . The finite graph question thus becomes: is there some tree

and strategy

such that the parity length of paths in

✢✤✣ ✖✦✥ ✡ ✜ ✙

is bounded.

Two-Way Alternating Automata and Finite Models – p.12/18

slide-40
SLIDE 40

Regular trees and languages

A tree language is regular iff it is recognized by some finite automaton. A tree is regular iff it contains a only finitely many non-isomorphic subtrees.

Thm:[Rabin]Every regular tree language contains some reg-

ular tree.

Two-Way Alternating Automata and Finite Models – p.13/18

slide-41
SLIDE 41

Let

✯✰

be the set of graphs

✢ ✣ ✖ ✥ ✡ ✜ ✙

where the parity length of paths is bounded.

Two-Way Alternating Automata and Finite Models – p.14/18

slide-42
SLIDE 42

Let

✯✰

be the set of graphs

✢ ✣ ✖ ✥ ✡ ✜ ✙

where the parity length of paths is bounded. Let

✯✱

be the set of graphs

✢✤✣ ✖ ✥ ✡ ✜ ✙

where the parity length (both ways) of paths is finite.

Two-Way Alternating Automata and Finite Models – p.14/18

slide-43
SLIDE 43

Let

✯✰

be the set of graphs

✢ ✣ ✖ ✥ ✡ ✜ ✙

where the parity length of paths is bounded. Let

✯✱

be the set of graphs

✢✤✣ ✖ ✥ ✡ ✜ ✙

where the parity length (both ways) of paths is finite.

✯✰

is not regular.

Two-Way Alternating Automata and Finite Models – p.14/18

slide-44
SLIDE 44

Let

✯✰

be the set of graphs

✢ ✣ ✖ ✥ ✡ ✜ ✙

where the parity length of paths is bounded. Let

✯✱

be the set of graphs

✢✤✣ ✖ ✥ ✡ ✜ ✙

where the parity length (both ways) of paths is finite.

✯✰

is not regular.

✯✰

and

✯✱

are not equal, but ...

Two-Way Alternating Automata and Finite Models – p.14/18

slide-45
SLIDE 45

Let

✯✰

be the set of graphs

✢ ✣ ✖ ✥ ✡ ✜ ✙

where the parity length of paths is bounded. Let

✯✱

be the set of graphs

✢✤✣ ✖ ✥ ✡ ✜ ✙

where the parity length (both ways) of paths is finite.

✯✰

is not regular.

✯✰

and

✯✱

are not equal, but ...

✯✱

and

✯✰

coincide on regular trees

Two-Way Alternating Automata and Finite Models – p.14/18

slide-46
SLIDE 46

Let

✯✰

be the set of graphs

✢ ✣ ✖ ✥ ✡ ✜ ✙

where the parity length of paths is bounded. Let

✯✱

be the set of graphs

✢✤✣ ✖ ✥ ✡ ✜ ✙

where the parity length (both ways) of paths is finite.

✯✰

is not regular.

✯✰

and

✯✱

are not equal, but ...

✯✱

and

✯✰

coincide on regular trees Since

✯✱

is regular and

✯✰

is a sum of regular languages, we obtain:

Two-Way Alternating Automata and Finite Models – p.14/18

slide-47
SLIDE 47

Let

✯✰

be the set of graphs

✢ ✣ ✖ ✥ ✡ ✜ ✙

where the parity length of paths is bounded. Let

✯✱

be the set of graphs

✢✤✣ ✖ ✥ ✡ ✜ ✙

where the parity length (both ways) of paths is finite.

✯✰

is not regular.

✯✰

and

✯✱

are not equal, but ...

✯✱

and

✯✰

coincide on regular trees Since

✯✱

is regular and

✯✰

is a sum of regular languages, we obtain:

Thm:

✯✱

is nonempty iff

✯ ✰

is nonempty.

Two-Way Alternating Automata and Finite Models – p.14/18

slide-48
SLIDE 48

Thm: The finite graph problem is decidable

Two-Way Alternating Automata and Finite Models – p.15/18

slide-49
SLIDE 49

Signature

1 2 3 4 5 ...

✁✝✆ ✁✝✆ ✁✝✆ ✁✝✆ ✁✝✆ ✁✝✆
  • +
✂ ✄ ☎
  • 3

1

Two-Way Alternating Automata and Finite Models – p.16/18

slide-50
SLIDE 50

Signature

1 2 3 4 5 ...

  • ✁✝✞

1

  • ✁✲✞

1 1

  • ✁✲✞

1 2

  • ✁✝✞

1 3

  • ✁✝✞

1 4

  • ✁✝✞

1 5

✁✝✆ ✁✝✆ ✁✝✆ ✁✝✆ ✁✝✆ ✁✝✆
  • +
✂ ✄ ☎
  • 3

1

Two-Way Alternating Automata and Finite Models – p.16/18

slide-51
SLIDE 51

Another graph

a a c b a a:+

✂ ✄ ☎

a:+ a:+ a:+ a:+ c:o b:+ a:o a:- 1 2

Two-Way Alternating Automata and Finite Models – p.17/18

slide-52
SLIDE 52

Another graph

a a c b a

✁ ✆ ✁✝✆ ✁✝✆ ✁✝✆ ✁✲✆ ✁✝✆

a:+

✂ ✄ ☎

a:+ a:+ a:+ a:+ c:o b:+ a:o a:- 1 2

Two-Way Alternating Automata and Finite Models – p.17/18

slide-53
SLIDE 53

Another graph

a a c b a

✁ ✆ ✁✝✆ ✁✝✆ ✁✝✆ ✁✲✆ ✁✝✆
  • 4
  • 3

2 1

a:+

✂ ✄ ☎

a:+ a:+ a:+ a:+ c:o b:+ a:o a:- 1 2

Two-Way Alternating Automata and Finite Models – p.17/18

slide-54
SLIDE 54

Tree unwinding

a a c b a

Two-Way Alternating Automata and Finite Models – p.18/18

slide-55
SLIDE 55

Tree unwinding

a a c b a a a c b a a a b a a a b c c c c

Two-Way Alternating Automata and Finite Models – p.18/18

slide-56
SLIDE 56

Tree unwinding

a a c b a

✳✵✴ ✳✶✴ ✳✶✴ ✳✵✴ ✳ ✴ ✳✵✴

a a c b a

✷✵✸ ✷ ✸ ✷ ✸ ✷✵✸ ✷✵✸ ✷✵✸

a

✷✵✸

a

✷✵✸

b

✷ ✸ ✷ ✸

a

✷✵✸

a

✷✵✸

a

✷ ✸

b

✷✵✸ ✷✵✸

c c c c

Two-Way Alternating Automata and Finite Models – p.18/18

slide-57
SLIDE 57

Tree unwinding

a a c b a

✳✵✴ ✳✶✴ ✳✶✴ ✳✵✴ ✳ ✴ ✳✵✴ ✹ ✳ ✹

4

✹ ✳ ✹ ✹ ✳ ✹ ✹ ✳ ✹ ✹ ✳ ✹

3 2 1

a a c b a

✷✵✸ ✷ ✸ ✷ ✸ ✷✵✸ ✷✵✸ ✷✵✸ ✺ ✷ ✺

4

✺ ✷ ✺ ✺ ✷ ✺ ✺ ✷ ✺ ✺ ✷ ✺

3 2 1

a

✷✵✸ ✺ ✷ ✺

4

a

✷✵✸ ✺ ✷ ✺

3

b

✷ ✸ ✷ ✸ ✺ ✷ ✺

1

a

✷✵✸ ✺ ✷ ✺

2

a

✷✵✸ ✺ ✷ ✺

2

a

✷ ✸ ✺ ✷ ✺

3

b

✷✵✸ ✷✵✸ ✺ ✷ ✺

1

c c c c

Two-Way Alternating Automata and Finite Models – p.18/18