• Non ci sono risultati.

The monadic theory of two successors Gabriele Puppis

N/A
N/A
Protected

Academic year: 2021

Condividi "The monadic theory of two successors Gabriele Puppis"

Copied!
33
0
0

Testo completo

(1)

The monadic theory of two successors

Gabriele Puppis

LaBRI / CNRS

(2)

Decidability of S2S (Rabin’69)

One can decide if a sentence of MSO[EMSO[EMSO[E111, E, E, E222]]] holds over the binary tree.

Same approach as with (N, +1): transform formulas to automata q0

q1 q2

... ... ... ...

... ... ... ... ... ... ... ...

(3)

Decidability of S2S (Rabin’69)

One can decide if a sentence of MSO[EMSO[EMSO[E111, E, E, E222]]] holds over the binary tree.

Same approach as with (N, +1): transform formulas to automata

0 00

1 1

1 000

0

00 111 111 111

0 0

0 000 111 000 000 000 000 111 q0

q1 q2

... ... ... ...

... ... ... ... ... ... ... ...

(4)

Decidability of S2S (Rabin’69)

One can decide if a sentence of MSO[EMSO[EMSO[E111, E, E, E222]]] holds over the binary tree.

Same approach as with (N, +1): transform formulas to automata

0 00

1 1

1 000

0

00 111 111 111

0 0

0 000 111 000 000 000 000 111 q0

q1 q2

... ... ... ...

... ... ... ... ... ... ... ...

(5)

Decidability of S2S (Rabin’69)

One can decide if a sentence of MSO[EMSO[EMSO[E111, E, E, E222]]] holds over the binary tree.

Same approach as with (N, +1): transform formulas to automata

0 00

1 1

1 000

0

00 111 111 111

0 0

0 000 111 000 000 000 000 111 q0

q1 q2

... ... ... ...

... ... ... ... ... ... ... ...

(6)

Decidability of S2S (Rabin’69)

One can decide if a sentence of MSO[EMSO[EMSO[E111, E, E, E222]]] holds over the binary tree.

Same approach as with (N, +1): transform formulas to automata

0 00

1 1

1 000

0

00 111 111 111

0 0

0 000 111 000 000 000 000 111 q0

q1 q2

... ... ... ...

... ... ... ... ... ... ... ...

(7)

Decidability of S2S (Rabin’69)

One can decide if a sentence of MSO[EMSO[EMSO[E111, E, E, E222]]] holds over the binary tree.

Same approach as with (N, +1): transform formulas to automata

0 00

1 1

1 000

0

00 111 111 111

0 0

0 000 111 000 000 000 000 111 q0

q1 q2

... ... ... ...

... ... ... ... ... ... ... ...

(8)

Definition

A tree automaton is a tuple A = (Q, Σ, ∆, I , Ω), where Q is a finite set of control states

Σ is a finite alphabet for transition labels

∆ ⊆ Q × Σ × QQQ222 is a finite set of transition rules I ⊆ Q is a set of initial states

Ω ⊆ Qω defines the acceptance condition by specifying the allowed sequences of states along all pathsall pathsall paths in the tree (more details in the next slide...)

E.g. in a B¨uchi tree automaton one has

Ω = { ρ ∈ Qω ∣ inf(ρ) ∩ F ≠ ∅ }

(9)

Need ofnon-determinismandstronger acceptance conditions

∃X . X is a path ∧ ∃∃X . X is a path ∧ ∃∃X . X is a path ∧ ∃y ∈ X . a(y )y ∈ X . a(y )y ∈ X . a(y )

complement? yep!

a a a a

a

a a

a a a

a a a a

(10)

Need ofnon-determinismandstronger acceptance conditions

∃X . X is a path ∧ ∃∃X . X is a path ∧ ∃∃X . X is a path ∧ ∃y ∈ X . a(y )y ∈ X . a(y )y ∈ X . a(y ) complement?

yep!

a a a a

a

a a

a a a

a a a a

(11)

Need ofnon-determinismandstronger acceptance conditions

∃X . X is a path ∧ ∃∃X . X is a path ∧ ∃∃X . X is a path ∧ ∃y ∈ X . a(y )y ∈ X . a(y )y ∈ X . a(y )

complement? yep!

a a a a

a

a a

a a a

a a a a

(12)

Need ofnon-determinismandstronger acceptance conditions

∃X . X is a path ∧ ∃∃X . X is a path ∧ ∃∃X . X is a path ∧ ∃y ∈ X . a(y )y ∈ X . a(y )y ∈ X . a(y )

complement? yep!

a a a a

a

a a

a a a

a a a a

⋮ B¨uchi condition:

non final

states final

states

Parity condition:

odd even odd even

(13)

Decidability of S2S (Rabin’69)

One can decide if a sentence of MSO[EMSO[EMSO[E111, E, E, E222]]] holds over the binary tree.

By induction on all subformulas ϕ(X1, ..., Xm), construct tree automata Aϕsuch that

L (Aϕ) = {t ∈ Σ{1,2}m ∣t ⊧ ϕ}

L (Aϕ) = {t ∈ Σ{1,2}

m ∣t ⊧ ϕ}

L (Aϕ) = {t ∈ Σ{1,2}m ∣ t ⊧ ϕ}

logical disjunction ∨∨∨ ↦ union existential quantification ∃∃∃ ↦ projection

logical negation ¬¬¬ ↦ complementation

(14)

Complementation via parity games: Automaton vs Pathfinder

q0↦q1, q2

left

(15)

Complementation via parity games: Automaton vs Pathfinder

q0↦q1, q2

left

(16)

Complementation via parity games: Automaton vs Pathfinder

q0↦q1, q2

q1q3, q4

left

(17)

Complementation via parity games: Automaton vs Pathfinder

q0↦q1, q2

q1q3, q4

left

right

(18)

Complementation via parity games: Automaton vs Pathfinder

q0↦q1, q2

q1q3, q4

q4...

...

left

right

...

(19)

Positional determinacy of parity games

Either Automaton wins with a positional strategy, or Pathfinder does.

When a tree is rejected, Pathfinder’s winning strategy can be converted to a strategy for Automaton over a game with new transition rules

t /∈L (A) t /∈L (A) t /∈L (A)

iff Pathfinder has a winning positional strategy σ ∶ {1, 2}×∆ → {1, 2}

σ ∶ {1, 2}×∆ → {1, 2}

σ ∶ {1, 2}×∆ → {1, 2} (or, equally, σ ∶ {1, 2}σ ∶ {1, 2}σ ∶ {1, 2}→ {1, 2}→ {1, 2}→ {1, 2})

iff

iff t ∈t ∈t ∈L (AL (AL (ACCC)))

(20)

Positional determinacy of parity games

Either Automaton wins with a positional strategy, or Pathfinder does.

When a tree is rejected, Pathfinder’s winning strategy can be converted to a strategy for Automaton over a game with new transition rules

t /∈L (A) t /∈L (A) t /∈L (A)

iff Pathfinder has a winning positional strategy σ ∶ {1, 2}×∆ → {1, 2}

σ ∶ {1, 2}×∆ → {1, 2}

σ ∶ {1, 2}×∆ → {1, 2} (or, equally, σ ∶ {1, 2}σ ∶ {1, 2}σ ∶ {1, 2}→ {1, 2}→ {1, 2}→ {1, 2})

iff

iff t ∈t ∈t ∈L (AL (AL (ACCC)))

(21)

Positional determinacy of parity games

Either Automaton wins with a positional strategy, or Pathfinder does.

When a tree is rejected, Pathfinder’s winning strategy can be converted to a strategy for Automaton over a game with new transition rules

t /∈L (A) t /∈L (A) t /∈L (A)

iff Pathfinder has a winning positional strategy σ ∶ {1, 2}×∆ → {1, 2}

σ ∶ {1, 2}×∆ → {1, 2}

σ ∶ {1, 2}×∆ → {1, 2} (or, equally, σ ∶ {1, 2}σ ∶ {1, 2}σ ∶ {1, 2}→ {1, 2}→ {1, 2}→ {1, 2}) iff

iff t ∈t ∈t ∈L (AL (AL (ACCC)))

∃t ⊗ σ ∶ {1, 2}→Σ × {1, 2}

∃t ⊗ σ ∶ {1, 2} →Σ × {1, 2}

∃t ⊗ σ ∶ {1, 2} →Σ × {1, 2} expansion of t such that

∀infinite path π ∈ {1, 2}ω

∀seq. of transitions τ ∈ ∆ω

if π is consistent with (t ⊗ σ)∣π and τ , then τ violates parity condition of A

(22)

Positional determinacy of parity games

Either Automaton wins with a positional strategy, or Pathfinder does.

When a tree is rejected, Pathfinder’s winning strategy can be converted to a strategy for Automaton over a game with new transition rules

t /∈L (A) t /∈L (A) t /∈L (A)

iff Pathfinder has a winning positional strategy σ ∶ {1, 2}×∆ → {1, 2}

σ ∶ {1, 2}×∆ → {1, 2}

σ ∶ {1, 2}×∆ → {1, 2} (or, equally, σ ∶ {1, 2}σ ∶ {1, 2}σ ∶ {1, 2}→ {1, 2}→ {1, 2}→ {1, 2}) iff

iff t ∈t ∈t ∈L (AL (AL (ACCC)))

∃t ⊗ σ ∶ {1, 2}→Σ × {1, 2}

∃t ⊗ σ ∶ {1, 2} →Σ × {1, 2}

∃t ⊗ σ ∶ {1, 2} →Σ × {1, 2} expansion of t such that

∀infinite path π ∈ {1, 2}ω

∀seq. of transitions τ ∈ ∆ω

if π is consistent with (t ⊗ σ)∣π and τ , then τ violates parity condition of A

regular ω-language over {1, 2}×Σ×{1, 2}×∆

regular ω-language over {1, 2}×Σ×{1, 2}×∆

regular ω-language over {1, 2}×Σ×{1, 2}×∆

(23)

Positional determinacy of parity games

Either Automaton wins with a positional strategy, or Pathfinder does.

When a tree is rejected, Pathfinder’s winning strategy can be converted to a strategy for Automaton over a game with new transition rules

t /∈L (A) t /∈L (A) t /∈L (A)

iff Pathfinder has a winning positional strategy σ ∶ {1, 2}×∆ → {1, 2}

σ ∶ {1, 2}×∆ → {1, 2}

σ ∶ {1, 2}×∆ → {1, 2} (or, equally, σ ∶ {1, 2}σ ∶ {1, 2}σ ∶ {1, 2}→ {1, 2}→ {1, 2}→ {1, 2}) iff

iff t ∈t ∈t ∈L (AL (AL (ACCC)))

∃t ⊗ σ ∶ {1, 2}→Σ × {1, 2}

∃t ⊗ σ ∶ {1, 2} →Σ × {1, 2}

∃t ⊗ σ ∶ {1, 2} →Σ × {1, 2} expansion of t such that

∀infinite path π ∈ {1, 2}ω

∀seq. of transitions τ ∈ ∆ω

if π is consistent with (t ⊗ σ)∣π and τ , then τ violates parity condition of A

deterministic deterministic deterministic parity word parity word parity word automaton over automaton over automaton over {1, 2}×Σ×{1, 2} {1, 2}×Σ×{1, 2} {1, 2}×Σ×{1, 2} regular ω-language over {1, 2}×Σ×{1, 2}×∆

regular ω-language over {1, 2}×Σ×{1, 2}×∆

regular ω-language over {1, 2}×Σ×{1, 2}×∆

(24)

Positional determinacy of parity games

Either Automaton wins with a positional strategy, or Pathfinder does.

When a tree is rejected, Pathfinder’s winning strategy can be converted to a strategy for Automaton over a game with new transition rules

t /∈L (A) t /∈L (A) t /∈L (A)

iff Pathfinder has a winning positional strategy σ ∶ {1, 2}×∆ → {1, 2}

σ ∶ {1, 2}×∆ → {1, 2}

σ ∶ {1, 2}×∆ → {1, 2} (or, equally, σ ∶ {1, 2}σ ∶ {1, 2}σ ∶ {1, 2}→ {1, 2}→ {1, 2}→ {1, 2}) iff

iff t ∈t ∈t ∈L (AL (AL (ACCC)))

∃t ⊗ σ ∶ {1, 2}→Σ × {1, 2}

∃t ⊗ σ ∶ {1, 2} →Σ × {1, 2}

∃t ⊗ σ ∶ {1, 2} →Σ × {1, 2} expansion of t such that

∀infinite path π ∈ {1, 2}ω

∀seq. of transitions τ ∈ ∆ω

if π is consistent with (t ⊗ σ)∣π and τ , then τ violates parity condition of A

parity parity parity treetree tree automaton automaton automaton over over over Σ×{1, 2} Σ×{1, 2} Σ×{1, 2}

deterministic deterministic deterministic parity word parity word parity word automaton over automaton over automaton over {1, 2}×Σ×{1, 2} {1, 2}×Σ×{1, 2} {1, 2}×Σ×{1, 2} regular ω-language over {1, 2}×Σ×{1, 2}×∆

regular ω-language over {1, 2}×Σ×{1, 2}×∆

regular ω-language over {1, 2}×Σ×{1, 2}×∆

(25)

Positional determinacy of parity games

Either Automaton wins with a positional strategy, or Pathfinder does.

When a tree is rejected, Pathfinder’s winning strategy can be converted to a strategy for Automaton over a game with new transition rules

t /∈L (A) t /∈L (A) t /∈L (A)

iff Pathfinder has a winning positional strategy σ ∶ {1, 2}×∆ → {1, 2}

σ ∶ {1, 2}×∆ → {1, 2}

σ ∶ {1, 2}×∆ → {1, 2} (or, equally, σ ∶ {1, 2}σ ∶ {1, 2}σ ∶ {1, 2}→ {1, 2}→ {1, 2}→ {1, 2}) iff

iff t ∈t ∈t ∈L (AL (AL (ACCC)))

∃t ⊗ σ ∶ {1, 2}→Σ × {1, 2}

∃t ⊗ σ ∶ {1, 2} →Σ × {1, 2}

∃t ⊗ σ ∶ {1, 2} →Σ × {1, 2} expansion of t such that

∀infinite path π ∈ {1, 2}ω

∀seq. of transitions τ ∈ ∆ω

if π is consistent with (t ⊗ σ)∣π and τ , then τ violates parity condition of A

parity parity parity treetree tree automaton automaton automaton over over over Σ×{1, 2} Σ×{1, 2} Σ×{1, 2}

deterministic deterministic deterministic parity word parity word parity word automaton over automaton over automaton over {1, 2}×Σ×{1, 2} {1, 2}×Σ×{1, 2} {1, 2}×Σ×{1, 2} regular ω-language over {1, 2}×Σ×{1, 2}×∆

regular ω-language over {1, 2}×Σ×{1, 2}×∆

regular ω-language over {1, 2}×Σ×{1, 2}×∆

(26)

Application example 1 (interpretation of the ternary tree) Consider the binary tree t2

Inside t2one can logically define the ternary tree t3

1 select a subset of the vertices that will form the nodes of t3 ϕdom(x ) = (root, x ) ∈ (E1 ∪ E2○E1 ∪ E2○E2)

ϕdom(x ) = (root, x ) ∈ (E1 ∪ E2○E1 ∪ E2○E2) ϕdom(x ) = (root, x ) ∈ (E1 ∪ E2○E1 ∪ E2○E2)

2 define the three successor relations of t3 by the formulas ϕ1(x , y ) = (x , y ) ∈ E1

ϕ1(x , y ) = (x , y ) ∈ E1

ϕ1(x , y ) = (x , y ) ∈ E1 ϕϕϕ2/32/32/3(x , y ) = (x , y ) ∈ (E(x , y ) = (x , y ) ∈ (E(x , y ) = (x , y ) ∈ (E222○○○EEE1/21/21/2))) Decidability of S3S

One can decide MSO[EMSO[EMSO[E111, E, E, E222, E, E, E333]]] over the ternary tree.

(27)

Application example 1 (interpretation of the ternary tree) Consider the binary tree t2

Inside t2one can logically define the ternary tree t3

1 select a subset of the vertices that will form the nodes of t3 ϕdom(x ) = (root, x ) ∈ (E1 ∪ E2○E1 ∪ E2○E2)

ϕdom(x ) = (root, x ) ∈ (E1 ∪ E2○E1 ∪ E2○E2) ϕdom(x ) = (root, x ) ∈ (E1 ∪ E2○E1 ∪ E2○E2)

2 define the three successor relations of t3 by the formulas ϕ1(x , y ) = (x , y ) ∈ E1

ϕ1(x , y ) = (x , y ) ∈ E1

ϕ1(x , y ) = (x , y ) ∈ E1 ϕϕϕ2/32/32/3(x , y ) = (x , y ) ∈ (E(x , y ) = (x , y ) ∈ (E(x , y ) = (x , y ) ∈ (E222○○○EEE1/21/21/2))) Decidability of S3S

One can decide MSO[EMSO[EMSO[E111, E, E, E222, E, E, E333]]] over the ternary tree.

(28)

Application example 1 (interpretation of the ternary tree) Consider the binary tree t2

Inside t2one can logically define the ternary tree t3

1 select a subset of the vertices that will form the nodes of t3 ϕdom(x ) = (root, x ) ∈ (E1 ∪ E2○E1 ∪ E2○E2)

ϕdom(x ) = (root, x ) ∈ (E1 ∪ E2○E1 ∪ E2○E2) ϕdom(x ) = (root, x ) ∈ (E1 ∪ E2○E1 ∪ E2○E2)

2 define the three successor relations of t3by the formulas ϕ1(x , y ) = (x , y ) ∈ E1

ϕ1(x , y ) = (x , y ) ∈ E1

ϕ1(x , y ) = (x , y ) ∈ E1 ϕϕϕ2/32/32/3(x , y ) = (x , y ) ∈ (E(x , y ) = (x , y ) ∈ (E(x , y ) = (x , y ) ∈ (E222○○○EEE1/21/21/2)))

Decidability of S3S

One can decide MSO[EMSO[EMSO[E111, E, E, E222, E, E, E333]]] over the ternary tree.

(29)

Application example 1 (interpretation of the ternary tree) Consider the binary tree t2

Inside t2one can logically define the ternary tree t3

1 select a subset of the vertices that will form the nodes of t3 ϕdom(x ) = (root, x ) ∈ (E1 ∪ E2○E1 ∪ E2○E2)

ϕdom(x ) = (root, x ) ∈ (E1 ∪ E2○E1 ∪ E2○E2) ϕdom(x ) = (root, x ) ∈ (E1 ∪ E2○E1 ∪ E2○E2)

2 define the three successor relations of t3by the formulas ϕ1(x , y ) = (x , y ) ∈ E1

ϕ1(x , y ) = (x , y ) ∈ E1

ϕ1(x , y ) = (x , y ) ∈ E1 ϕϕϕ2/32/32/3(x , y ) = (x , y ) ∈ (E(x , y ) = (x , y ) ∈ (E(x , y ) = (x , y ) ∈ (E222○○○EEE1/21/21/2))) Decidability of S3S

One can decide MSO[EMSO[EMSO[E111, E, E, E222, E, E, E333]]] over the ternary tree.

(30)

Application example 2 (interpretation of the rationals) Consider again the binary tree t2

Inside t2one can logically define the the rationals QQQ

the dense order on Q can be seen as the infix order of t2

ϕ(x , y ) ϕ(x , y )

ϕ(x , y ) = ∃z .∃z .∃z . ((z , x ) ∈ E((z , x ) ∈ E((z , x ) ∈ E111○ (E○ (E○ (E111∪∪∪EEE222))) ∨∨∨ z = x )z = x )z = x )

∧∧

∧ ((z , y ) ∈ E((z , y ) ∈ E((z , y ) ∈ E222○ (E○ (E○ (E111∪∪∪EEE222))) ∨∨∨ z = y )z = y )z = y )

Monadic theories of linear orders (Shelah ’75) One can decide MSO[≤]MSO[≤]MSO[≤] over QQQ and

over the class of all countable linear orders. One cannot decide MSO[≤]MSO[≤]MSO[≤] over RRR.

(31)

Application example 2 (interpretation of the rationals) Consider again the binary tree t2

Inside t2one can logically define the the rationals QQQ

the dense order on Q can be seen as the infix order of t2

ϕ(x , y ) ϕ(x , y )

ϕ(x , y ) = ∃z .∃z .∃z . ((z , x ) ∈ E((z , x ) ∈ E((z , x ) ∈ E111○ (E○ (E○ (E111∪∪∪EEE222))) ∨∨∨ z = x )z = x )z = x )

∧∧

∧ ((z , y ) ∈ E((z , y ) ∈ E((z , y ) ∈ E222○ (E○ (E○ (E111∪∪∪EEE222))) ∨∨∨ z = y )z = y )z = y ) Monadic theories of linear orders (Shelah ’75)

One can decide MSO[≤]MSO[≤]MSO[≤] over QQQ and

over the class of all countable linear orders.

One cannot decide MSO[≤]MSO[≤]MSO[≤] over RRR.

(32)

Application example 3 (interpretation of a pushdown system)

B

Bαβ

Bβα

Bββ . . .

. . .

. . .

. . . ε

ε

ε

ε

ε

ε

ε A

Aαβ

Aβα

Aββ . . .

. . .

. . .

. . . popα

popβ

pop α pop β

pop α pop β pushα

pushβ

push α push β

push α push β

Any property of the above system expressed by an MSO formula

ψ = ... ∀X∀X∀X ... ( yyy ÐÐÐpush βpush βpush βÐÐÐÐÐÐÐÐÐ→→→zzz ) ... ( y ↓y ↓y ↓εεεzzz ) ... ( zzz ←ÐÐÐ←ÐÐÐ←ÐÐÐpop βpop βpop β yyy ) ...

can be translated into an equi-satisfiable formula over the binary tree ψ = ... ∀Xˆ ∀X∀X111, X, X, X222 ... ( (y(y(y111, z, z, z111) ∈) ∈) ∈EEE222)... ( yyy111===zzz222)... ( (y(y(y222, z, z, z222) ∈) ∈) ∈EEE222)...

(33)

Next

Riferimenti

Documenti correlati

(interpretations, context-free and prefix-rewriting graphs, unfoldings, Caucal hierarchy, recursive program schemes). 6 Reachability

Consequences (Church ’36, Turing ’37, Trakhtenbrot ’50, ...) The FO theory of the class of all finite structures is undecidable (provided that signature contains a binary

We can recursively factorize factors until we get single characters only a few nested factorizations a few nested factorizations a few nested factorizations (linear in ∣S ∣,

The graphs that can be defined in the binary tree using rational restrictions and inverse finite / rational mappings are context-free / prefix-recognizable.... We just

The examined objects were treated as typical examples of single-family buildings. The airtightness test relates to the building envelope, so the impact of the ventilation system used

Lo scopo principale del presente lavoro è stato quello di mettere a punto i protocolli sperimentali per la caratterizzazione genetica tramite marcatori molecolari ISSR

Specifically, this paper aims at investigating the relationship between mode of entry as a founder of a new firm or successor in a family business and job satisfaction, and focuses