• Non ci sono risultati.

The monadic theory of one successor Gabriele Puppis

N/A
N/A
Protected

Academic year: 2021

Condividi "The monadic theory of one successor Gabriele Puppis"

Copied!
60
0
0

Testo completo

(1)

The monadic theory of one successor

Gabriele Puppis

LaBRI / CNRS

(2)

While FO talks of elements of N, MSO talks of subsets of Nsubsets of Nsubsets of N.

These subsets can be encoded by infinite words:

Even Even

Even = { 0 , 2 , 4 , 6 , 8 , . . . } ⊆ N

[EvenEvenEven] ⊗ [SquaresSquaresSquares] = ⋯

Square

SquareSquare = { 0 , 1 , 4 , 9 , . . . } ⊆ N

Accordingly, a language L ⊆ Bω encodes a set of subsets of Nset of subsets of Nset of subsets of N.

(3)

While FO talks of elements of N, MSO talks of subsets of Nsubsets of Nsubsets of N.

These subsets can be encoded by infinite words:

Even Even

Even = { 0 , 2 , 4 , 6 , 8 , . . . } ⊆ N

[EvenEvenEven] ⊗ [SquaresSquaresSquares] = (111111)(110010)(000111)(000000)(111111)(000000)(111000)(000000)(000111)(001101) ⋯

Square

SquareSquare = { 0 , 1 , 4 , 9 , . . . } ⊆ N

Accordingly, a language L ⊆ Bω encodes a set of subsets of Nset of subsets of Nset of subsets of N.

(4)

While FO talks of elements of N, MSO talks of subsets of Nsubsets of Nsubsets of N.

These subsets can be encoded by infinite words:

Even Even

Even = { 0 , 2 , 4 , 6 , 8 , . . . } ⊆ N

[EvenEvenEven] ⊗ [SquaresSquaresSquares] = (111111)(110010)(000111)(000000)(111111)(000000)(111000)(000000)(000111)(001101) ⋯

Square

SquareSquare = { 0 , 1 , 4 , 9 , . . . } ⊆ N

Accordingly, a language L ⊆ Bω encodes a set of subsets of Nset of subsets of Nset of subsets of N.

(5)

Definition

A B¨uchi automaton is a tuple A = (Q, Σ, ∆, I , F ), where Q is a finite set of control states

Σ is a finite alphabet for transition labels

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

F ⊆ Q is a set of final states

Aaccepts a word w ∈ Σω if it admits a run ρ on w such that inf(ρ) ∩ F ≠ ∅

inf(ρ) ∩ F ≠ ∅ inf(ρ) ∩ F ≠ ∅ where inf(ρ) = { q ∈ Q ∣ ∀i . ∃j ≥ i . ρ(j ) = q } Example

q0 qf

0 1

1

0 L (A) = (01)ω

(6)

Decidability of S1S (B¨uchi ’60)

One can decide if a given sentence ψ of MSO[+1]MSO[+1]MSO[+1] holds over N.

1 Replace first-order variables x with set variables X satisfying ϕsingleton(X ) = (X ≠ ∅) ∧ ∀Y . (Y ⊆ X ) → (Y = ∅ ∨ Y = X )

2 By induction on all subformulas ϕ(X1, ..., Xm)of ψ, construct B¨uchi automata Aϕover Σm =Bm such that

L (Aϕ) = { [X1] ⊗ ⋅ ⋅ ⋅ ⊗ [Xm] ∈Σωm ∣ (N, +1) ⊧ ϕ(X1, ..., Xm) } L (Aϕ) = { [X1] ⊗ ⋅ ⋅ ⋅ ⊗ [Xm] ∈Σωm ∣ (N, +1) ⊧ ϕ(X1, ..., Xm) } L (Aϕ) = { [X1] ⊗ ⋅ ⋅ ⋅ ⊗ [Xm] ∈Σωm ∣ (N, +1) ⊧ ϕ(X1, ..., Xm) }

ϕ(X,Y) = (Y = X + 1) (

1 1 1 0 0 0) (000111) (000

000) (000 0 0 0)

ϕ(X,Y) = (X ⊆ Y ) (000000), (110100), (111111)

ϕ( ¯X ) = ϕ1( ¯X ) ∨ ϕ2( ¯X ) union ϕ( ¯X ) = ¬ϕ1( ¯X )

ϕ( ¯X ) = ∃Y . ϕ1( ¯X , Y ) projection

(111000

× )

(111 11

×1)

(7)

Decidability of S1S (B¨uchi ’60)

One can decide if a given sentence ψ of MSO[+1]MSO[+1]MSO[+1] holds over N.

1 Replace first-order variables x with set variables X satisfying ϕsingleton(X ) = (X ≠ ∅) ∧ ∀Y . (Y ⊆ X ) → (Y = ∅ ∨ Y = X )

2 By induction on all subformulas ϕ(X1, ..., Xm) of ψ, construct B¨uchi automata Aϕover Σm =Bm such that

L (Aϕ) = { [X1] ⊗ ⋅ ⋅ ⋅ ⊗ [Xm] ∈Σωm ∣ (N, +1) ⊧ ϕ(X1, ..., Xm) } L (Aϕ) = { [X1] ⊗ ⋅ ⋅ ⋅ ⊗ [Xm] ∈Σωm ∣ (N, +1) ⊧ ϕ(X1, ..., Xm) } L (Aϕ) = { [X1] ⊗ ⋅ ⋅ ⋅ ⊗ [Xm] ∈Σωm ∣ (N, +1) ⊧ ϕ(X1, ..., Xm) }

ϕ(X,Y) = (Y = X + 1) (

1 1 1 0 0 0) (000111) (000000) (000000)

ϕ(X,Y) = (X ⊆ Y ) (000000), (110100), (111111)

ϕ( ¯X ) = ϕ1( ¯X ) ∨ ϕ2( ¯X ) union ϕ( ¯X ) = ¬ϕ1( ¯X )

ϕ( ¯X ) = ∃Y . ϕ1( ¯X , Y ) projection

(111000

× )

(111 11

×1)

(8)

Decidability of S1S (B¨uchi ’60)

One can decide if a given sentence ψ of MSO[+1]MSO[+1]MSO[+1] holds over N.

1 Replace first-order variables x with set variables X satisfying ϕsingleton(X ) = (X ≠ ∅) ∧ ∀Y . (Y ⊆ X ) → (Y = ∅ ∨ Y = X )

2 By induction on all subformulas ϕ(X1, ..., Xm) of ψ, construct B¨uchi automata Aϕover Σm =Bm such that

L (Aϕ) = { [X1] ⊗ ⋅ ⋅ ⋅ ⊗ [Xm] ∈Σωm ∣ (N, +1) ⊧ ϕ(X1, ..., Xm) } L (Aϕ) = { [X1] ⊗ ⋅ ⋅ ⋅ ⊗ [Xm] ∈Σωm ∣ (N, +1) ⊧ ϕ(X1, ..., Xm) } L (Aϕ) = { [X1] ⊗ ⋅ ⋅ ⋅ ⊗ [Xm] ∈Σωm ∣ (N, +1) ⊧ ϕ(X1, ..., Xm) }

ϕ(X,Y) = (Y = X + 1) (

1 1 1 0 0 0) (000111) (000000) (000000)

ϕ(X,Y) = (X ⊆ Y ) (000000), (110100), (111111)

ϕ( ¯X ) = ϕ1( ¯X ) ∨ ϕ2( ¯X ) union ϕ( ¯X ) = ¬ϕ1( ¯X )

ϕ( ¯X ) = ∃Y . ϕ1( ¯X , Y ) projection

(111000

× )

(111 11

×1)

(9)

Decidability of S1S (B¨uchi ’60)

One can decide if a given sentence ψ of MSO[+1]MSO[+1]MSO[+1] holds over N.

1 Replace first-order variables x with set variables X satisfying ϕsingleton(X ) = (X ≠ ∅) ∧ ∀Y . (Y ⊆ X ) → (Y = ∅ ∨ Y = X )

2 By induction on all subformulas ϕ(X1, ..., Xm) of ψ, construct B¨uchi automata Aϕover Σm =Bm such that

L (Aϕ) = { [X1] ⊗ ⋅ ⋅ ⋅ ⊗ [Xm] ∈Σωm ∣ (N, +1) ⊧ ϕ(X1, ..., Xm) } L (Aϕ) = { [X1] ⊗ ⋅ ⋅ ⋅ ⊗ [Xm] ∈Σωm ∣ (N, +1) ⊧ ϕ(X1, ..., Xm) } L (Aϕ) = { [X1] ⊗ ⋅ ⋅ ⋅ ⊗ [Xm] ∈Σωm ∣ (N, +1) ⊧ ϕ(X1, ..., Xm) }

ϕ(X,Y) = (Y = X + 1) (

1 1 1 0 0 0) (000111) (000000) (000000)

ϕ(X,Y) = (X ⊆ Y ) (000000), (110100), (111111)

ϕ( ¯X ) = ϕ1( ¯X ) ∨ ϕ2( ¯X ) union ϕ( ¯X ) = ¬ϕ1( ¯X )

ϕ( ¯X ) = ∃Y . ϕ1( ¯X , Y ) projection

(111000

× )

(111 11

×1)

(10)

Decidability of S1S (B¨uchi ’60)

One can decide if a given sentence ψ of MSO[+1]MSO[+1]MSO[+1] holds over N.

1 Replace first-order variables x with set variables X satisfying ϕsingleton(X ) = (X ≠ ∅) ∧ ∀Y . (Y ⊆ X ) → (Y = ∅ ∨ Y = X )

2 By induction on all subformulas ϕ(X1, ..., Xm) of ψ, construct B¨uchi automata Aϕover Σm =Bm such that

L (Aϕ) = { [X1] ⊗ ⋅ ⋅ ⋅ ⊗ [Xm] ∈Σωm ∣ (N, +1) ⊧ ϕ(X1, ..., Xm) } L (Aϕ) = { [X1] ⊗ ⋅ ⋅ ⋅ ⊗ [Xm] ∈Σωm ∣ (N, +1) ⊧ ϕ(X1, ..., Xm) } L (Aϕ) = { [X1] ⊗ ⋅ ⋅ ⋅ ⊗ [Xm] ∈Σωm ∣ (N, +1) ⊧ ϕ(X1, ..., Xm) }

ϕ(X,Y) = (Y = X + 1) (

1 1 1 0 0 0) (000111) (000000) (000000)

ϕ(X,Y) = (X ⊆ Y ) (000000), (110100), (111111)

ϕ( ¯X ) = ϕ1( ¯X ) ∨ ϕ2( ¯X ) union

ϕ( ¯X ) = ¬ϕ1( ¯X ) complementation ϕ( ¯X ) = ∃Y . ϕ1( ¯X , Y ) projection

(111000

× )

(111 11

×1)

(11)

Decidability of S1S (B¨uchi ’60)

One can decide if a given sentence ψ of MSO[+1]MSO[+1]MSO[+1] holds over N.

1 Replace first-order variables x with set variables X satisfying ϕsingleton(X ) = (X ≠ ∅) ∧ ∀Y . (Y ⊆ X ) → (Y = ∅ ∨ Y = X )

2 By induction on all subformulas ϕ(X1, ..., Xm) of ψ, construct B¨uchi automata Aϕover Σm =Bm such that

L (Aϕ) = { [X1] ⊗ ⋅ ⋅ ⋅ ⊗ [Xm] ∈Σωm ∣ (N, +1) ⊧ ϕ(X1, ..., Xm) } L (Aϕ) = { [X1] ⊗ ⋅ ⋅ ⋅ ⊗ [Xm] ∈Σωm ∣ (N, +1) ⊧ ϕ(X1, ..., Xm) } L (Aϕ) = { [X1] ⊗ ⋅ ⋅ ⋅ ⊗ [Xm] ∈Σωm ∣ (N, +1) ⊧ ϕ(X1, ..., Xm) }

ϕ(X,Y) = (Y = X + 1) (

1 1 1 0 0 0) (000111) (000000) (000000)

ϕ(X,Y) = (X ⊆ Y ) (000000), (110100), (111111)

ϕ( ¯X ) = ϕ1( ¯X ) ∨ ϕ2( ¯X ) union

ϕ( ¯X ) = ¬ϕ1( ¯X ) complementationcomplementationcomplementation ϕ( ¯X ) = ∃Y . ϕ1( ¯X , Y ) projection

(111000

× )

(111 11

×1)

(12)

A B¨uchi automaton A induces a function f ∶ Σ→ {−∞, 0, 1}Q2 such that

f (w ) =

q

Ð→

p

⎡⎢

⎢⎢

⎢⎣ ιp,q ιp,q ιp,q

⎤⎥

⎥⎥

⎥⎦

ιp,q = −∞ if there is no path from p to q ιp,q =1 if there is a path from p to q

that visits a final state ιp,q =0 otherwise

1 f is compositional: f (w1⋅w2) = f (w1) ×f (w2)

2 w = w1 ⋅ w2 ⋅ w3 ⋅ . . .

=f

=f

=f =f=f=f =f=f=f w = w1 ⋅ w2 ⋅ w3 ⋅ . . .

⇒ w ∈L (A)

w∈L (A)

3 L (A) =

L (A) ⊇ f−1(M) ⋅ f−1(N)ω

f−1(M) ⋅ f−1(N)ω

Proof: ⊇ straightforward, ⊆ follows from Ramsey’s Theorem Every word can be factorized into w1, w2, w3, ... with f (w2) =f (w2) =...

. . . Complementation: L (A)C =

L (A) ⊉⊉⊉ f−1(M) ⋅ f−1(N)ω

f−1(M) ⋅ f−1(N)ω

(13)

A B¨uchi automaton A induces a function f ∶ Σ→ {−∞, 0, 1}Q2 such that

f (w ) =

q

Ð→

p

⎡⎢

⎢⎢

⎢⎣ ιp,q ιp,q ιp,q

⎤⎥

⎥⎥

⎥⎦

ιp,q = −∞ if there is no path from p to q ιp,q =1 if there is a path from p to q

that visits a final state ιp,q =0 otherwise

1 f is compositional: f (w1⋅w2) = f (w1) ×f (w2)

2 w = w1 ⋅ w2 ⋅ w3 ⋅ . . .

=f

=f

=f =f=f=f =f=f=f w = w1 ⋅ w2 ⋅ w3 ⋅ . . .

⇒ w ∈L (A)

w∈L (A)

3 L (A) =

L (A) ⊇ f−1(M) ⋅ f−1(N)ω

f−1(M) ⋅ f−1(N)ω

Proof: ⊇ straightforward, ⊆ follows from Ramsey’s Theorem Every word can be factorized into w1, w2, w3, ... with f (w2) =f (w2) =...

. . . Complementation: L (A)C =

L (A) ⊉⊉⊉ f−1(M) ⋅ f−1(N)ω

f−1(M) ⋅ f−1(N)ω

(14)

A B¨uchi automaton A induces a function f ∶ Σ→ {−∞, 0, 1}Q2 such that

f (w ) =

q

Ð→

p

⎡⎢

⎢⎢

⎢⎣ ιp,q ιp,q ιp,q

⎤⎥

⎥⎥

⎥⎦

ιp,q = −∞ if there is no path from p to q ιp,q =1 if there is a path from p to q

that visits a final state ιp,q =0 otherwise

1 f is compositional: f (w1⋅w2) = f (w1) ×f (w2)

2 w = w1 ⋅ w2 ⋅ w3 ⋅ . . .

=f

=f

=f =f=f=f =f=f=f w = w1 ⋅ w2 ⋅ w3 ⋅ . . .

⇒ w ∈L (A)

w∈L (A)

3 L (A) =

L (A) ⊇ f−1(M) ⋅ f−1(N)ω

f−1(M) ⋅ f−1(N)ω

Proof: ⊇ straightforward, ⊆ follows from Ramsey’s Theorem Every word can be factorized into w1, w2, w3, ... with f (w2) =f (w2) =...

. . . Complementation: L (A)C =

L (A) ⊉⊉⊉ f−1(M) ⋅ f−1(N)ω

f−1(M) ⋅ f−1(N)ω

(15)

A B¨uchi automaton A induces a function f ∶ Σ→ {−∞, 0, 1}Q2 such that

f (w ) =

q

Ð→

p

⎡⎢

⎢⎢

⎢⎣ ιp,q ιp,q ιp,q

⎤⎥

⎥⎥

⎥⎦

ιp,q = −∞ if there is no path from p to q ιp,q =1 if there is a path from p to q

that visits a final state ιp,q =0 otherwise

1 f is compositional: f (w1⋅w2) = f (w1) ×f (w2)

2 w = w1 ⋅ w2 ⋅ w3 ⋅ . . .

=f

=f

=f =f=f=f =f=f=f w = w1 ⋅ w2 ⋅ w3 ⋅ . . .

⇒ w ∈L (A)

w∈L (A)

3 L (A) =

L (A) ⊇ f−1(M) ⋅ f−1(N)ω

f−1(M) ⋅ f−1(N)ω

Proof: ⊇ straightforward, ⊆ follows from Ramsey’s Theorem Every word can be factorized into w1, w2, w3, ... with f (w2) =f (w2) =...

. . .

Complementation: L (A)C =

L (A) ⊉⊉⊉ f−1(M) ⋅ f−1(N)ω

f−1(M) ⋅ f−1(N)ω

(16)

A B¨uchi automaton A induces a function f ∶ Σ→ {−∞, 0, 1}Q2 such that

f (w ) =

q

Ð→

p

⎡⎢

⎢⎢

⎢⎣ ιp,q ιp,q ιp,q

⎤⎥

⎥⎥

⎥⎦

ιp,q = −∞ if there is no path from p to q ιp,q =1 if there is a path from p to q

that visits a final state ιp,q =0 otherwise

1 f is compositional: f (w1⋅w2) = f (w1) ×f (w2)

2 w = w1 ⋅ w2 ⋅ w3 ⋅ . . .

=f

=f

=f =f=f=f =f=f=f w = w1 ⋅ w2 ⋅ w3 ⋅ . . .

⇒ w ∈L (A)

w∈L (A)

3 L (A) =

L (A) ⊇ f−1(M) ⋅ f−1(N)ω

f−1(M) ⋅ f−1(N)ω

Proof: ⊇ straightforward, ⊆ follows from Ramsey’s Theorem Every word can be factorized into w1, w2, w3, ... with f (w2) =f (w2) =...

. . .

Complementation: L (A)C =

L (A) ⊉⊉⊉ f−1(M) ⋅ f−1(N)ω

f−1(M) ⋅ f−1(N)ω

(17)

A B¨uchi automaton A induces a function f ∶ Σ→ {−∞, 0, 1}Q2 such that

f (w ) =

q

Ð→

p

⎡⎢

⎢⎢

⎢⎣ ιp,q ιp,q ιp,q

⎤⎥

⎥⎥

⎥⎦

ιp,q = −∞ if there is no path from p to q ιp,q =1 if there is a path from p to q

that visits a final state ιp,q =0 otherwise

1 f is compositional: f (w1⋅w2) = f (w1) ×f (w2)

2 w = w1 ⋅ w2 ⋅ w3 ⋅ . . .

=f

=f

=f =f=f=f =f=f=f w = w1 ⋅ w2 ⋅ w3 ⋅ . . .

⇒ w ∈L (A)

w∈L (A)

3 L (A) =

L (A) ⊇ f−1(M) ⋅ f−1(N)ω

f−1(M) ⋅ f−1(N)ω

Proof: ⊇ straightforward, ⊆ follows from Ramsey’s Theorem Every word can be factorized into w1, w2, w3, ... with f (w2) =f (w2) =...

. . .

Complementation: L (A)C =

L (A) ⊉⊉⊉ f−1(M) ⋅ f−1(N)ω

f−1(M) ⋅ f−1(N)ω

(18)

A B¨uchi automaton A induces a function f ∶ Σ→ {−∞, 0, 1}Q2 such that

f (w ) =

q

Ð→

p

⎡⎢

⎢⎢

⎢⎣ ιp,q ιp,q ιp,q

⎤⎥

⎥⎥

⎥⎦

ιp,q = −∞ if there is no path from p to q ιp,q =1 if there is a path from p to q

that visits a final state ιp,q =0 otherwise

1 f is compositional: f (w1⋅w2) = f (w1) ×f (w2)

2 w = w1 ⋅ w2 ⋅ w3 ⋅ . . .

=f

=f

=f =f=f=f =f=f=f w = w1 ⋅ w2 ⋅ w3 ⋅ . . .

⇒ w ∈L (A)

w∈L (A)

3 L (A) =

L (A) ⊇ f−1(M) ⋅ f−1(N)ω

f−1(M) ⋅ f−1(N)ω

Proof: ⊇ straightforward, ⊆ follows from Ramsey’s Theorem Every word can be factorized into w1, w2, w3, ... with f (w2) =f (w2) =...

. . .

Complementation: L (A)C =

L (A) ⊉⊉⊉ f−1(M) ⋅ f−1(N)ω

f−1(M) ⋅ f−1(N)ω

(19)

A B¨uchi automaton A induces a function f ∶ Σ→ {−∞, 0, 1}Q2 such that

f (w ) =

q

Ð→

p

⎡⎢

⎢⎢

⎢⎣ ιp,q ιp,q ιp,q

⎤⎥

⎥⎥

⎥⎦

ιp,q = −∞ if there is no path from p to q ιp,q =1 if there is a path from p to q

that visits a final state ιp,q =0 otherwise

1 f is compositional: f (w1⋅w2) = f (w1) ×f (w2)

2 w = w1 ⋅ w2 ⋅ w3 ⋅ . . .

=f

=f

=f =f=f=f =f=f=f w = w1 ⋅ w2 ⋅ w3 ⋅ . . .

⇒ w ∈L (A)

w∈L (A)

3 L (A) =

L (A) ⊇ f−1(M) ⋅ f−1(N)ω

f−1(M) ⋅ f−1(N)ω

Proof: ⊇ straightforward, ⊆ follows from Ramsey’s Theorem Every word can be factorized into w1, w2, w3, ... with f (w2) =f (w2) =...

. . .

Complementation: L (A)C =

L (A) ⊉⊉⊉ f−1(M) ⋅ f−1(N)ω

f−1(M) ⋅ f−1(N)ω

(20)

A B¨uchi automaton A induces a function f ∶ Σ→ {−∞, 0, 1}Q2 such that

f (w ) =

q

Ð→

p

⎡⎢

⎢⎢

⎢⎣ ιp,q ιp,q ιp,q

⎤⎥

⎥⎥

⎥⎦

ιp,q = −∞ if there is no path from p to q ιp,q =1 if there is a path from p to q

that visits a final state ιp,q =0 otherwise

1 f is compositional: f (w1⋅w2) = f (w1) ×f (w2)

2 w = w1 ⋅ w2 ⋅ w3 ⋅ . . .

=f

=f

=f =f=f=f =f=f=f w = w1 ⋅ w2 ⋅ w3 ⋅ . . .

⇒ w ∈L (A)

w∈L (A)

3 L (A) =

L (A) ⊇ f−1(M) ⋅ f−1(N)ω

f−1(M) ⋅ f−1(N)ω

Proof: ⊇ straightforward, ⊆ follows from Ramsey’s Theorem Every word can be factorized into w1, w2, w3, ... with f (w2) =f (w2) =...

. . .

Complementation: L (A)C =

L (A) ⊉⊉⊉ f−1(M) ⋅ f−1(N)ω

f−1(M) ⋅ f−1(N)ω

(21)

A B¨uchi automaton A induces a function f ∶ Σ→ {−∞, 0, 1}Q2 such that

f (w ) =

q

Ð→

p

⎡⎢

⎢⎢

⎢⎣ ιp,q ιp,q ιp,q

⎤⎥

⎥⎥

⎥⎦

ιp,q = −∞ if there is no path from p to q ιp,q =1 if there is a path from p to q

that visits a final state ιp,q =0 otherwise

1 f is compositional: f (w1⋅w2) = f (w1) ×f (w2)

2 w = w1 ⋅ w2 ⋅ w3 ⋅ . . .

=f

=f

=f =f=f=f =f=f=f w = w1 ⋅ w2 ⋅ w3 ⋅ . . .

⇒ w ∈L (A)

w∈L (A)

3 L (A) =

L (A) ⊇ f−1(M) ⋅ f−1(N)ω

f−1(M) ⋅ f−1(N)ω

Proof: ⊇ straightforward, ⊆ follows from Ramsey’s Theorem Every word can be factorized into w1, w2, w3, ... with f (w2) =f (w2) =...

. . .

Complementation: L (A)C =

L (A) ⊉⊉⊉ f−1(M) ⋅ f−1(N)ω

f−1(M) ⋅ f−1(N)ω

(22)

A B¨uchi automaton A induces a function f ∶ Σ→ {−∞, 0, 1}Q2 such that

f (w ) =

q

Ð→

p

⎡⎢

⎢⎢

⎢⎣ ιp,q ιp,q ιp,q

⎤⎥

⎥⎥

⎥⎦

ιp,q = −∞ if there is no path from p to q ιp,q =1 if there is a path from p to q

that visits a final state ιp,q =0 otherwise

1 f is compositional: f (w1⋅w2) = f (w1) ×f (w2)

2 w = w1 ⋅ w2 ⋅ w3 ⋅ . . .

=f

=f

=f =f=f=f =f=f=f w = w1 ⋅ w2 ⋅ w3 ⋅ . . .

⇒ w ∈L (A)

w∈L (A)

3 L (A) =

L (A) ⊇ f−1(M) ⋅ f−1(N)ω

f−1(M) ⋅ f−1(N)ω

Proof: ⊇ straightforward, ⊆ follows from Ramsey’s Theorem Every word can be factorized into w1, w2, w3, ... with f (w2) =f (w2) =...

. . .

Complementation: L (A)C =

L (A) ⊉⊉⊉ f−1(M) ⋅ f−1(N)ω

f−1(M) ⋅ f−1(N)ω

(23)

A B¨uchi automaton A induces a function f ∶ Σ→ {−∞, 0, 1}Q2 such that

f (w ) =

q

Ð→

p

⎡⎢

⎢⎢

⎢⎣ ιp,q ιp,q ιp,q

⎤⎥

⎥⎥

⎥⎦

ιp,q = −∞ if there is no path from p to q ιp,q =1 if there is a path from p to q

that visits a final state ιp,q =0 otherwise

1 f is compositional: f (w1⋅w2) = f (w1) ×f (w2)

2 w = w1 ⋅ w2 ⋅ w3 ⋅ . . .

=f

=f

=f =f=f=f =f=f=f w = w1 ⋅ w2 ⋅ w3 ⋅ . . .

⇒ w ∈L (A)

w∈L (A)

3 L (A) =

L (A) ⊇ f−1(M) ⋅ f−1(N)ω

f−1(M) ⋅ f−1(N)ω

Proof: ⊇ straightforward, ⊆ follows from Ramsey’s Theorem Every word can be factorized into w1, w2, w3, ... with f (w2) =f (w2) =...

. . .

Complementation: L (A)C =

L (A) ⊉⊉⊉ f−1(M) ⋅ f−1(N)ω

f−1(M) ⋅ f−1(N)ω

(24)

A B¨uchi automaton A induces a function f ∶ Σ→ {−∞, 0, 1}Q2 such that

f (w ) =

q

Ð→

p

⎡⎢

⎢⎢

⎢⎣ ιp,q ιp,q ιp,q

⎤⎥

⎥⎥

⎥⎦

ιp,q = −∞ if there is no path from p to q ιp,q =1 if there is a path from p to q

that visits a final state ιp,q =0 otherwise

1 f is compositional: f (w1⋅w2) = f (w1) ×f (w2)

2 w = w1 ⋅ w2 ⋅ w3 ⋅ . . .

=f

=f

=f =f=f=f =f=f=f w = w1 ⋅ w2 ⋅ w3 ⋅ . . .

⇒ w ∈L (A)

w∈L (A)

3 L (A) =

L (A) ⊇ f−1(M) ⋅ f−1(N)ω

f−1(M) ⋅ f−1(N)ω

Proof: ⊇ straightforward, ⊆ follows from Ramsey’s Theorem Every word can be factorized into w1, w2, w3, ... with f (w2) =f (w2) =...

. . .

Complementation: L (A)C =

L (A) ⊉⊉⊉ f−1(M) ⋅ f−1(N)ω

f−1(M) ⋅ f−1(N)ω

(25)

A B¨uchi automaton A induces a function f ∶ Σ→ {−∞, 0, 1}Q2 such that

f (w ) =

q

Ð→

p

⎡⎢

⎢⎢

⎢⎣ ιp,q ιp,q ιp,q

⎤⎥

⎥⎥

⎥⎦

ιp,q = −∞ if there is no path from p to q ιp,q =1 if there is a path from p to q

that visits a final state ιp,q =0 otherwise

1 f is compositional: f (w1⋅w2) = f (w1) ×f (w2)

2 w = w1 ⋅ w2 ⋅ w3 ⋅ . . .

=f

=f

=f =f=f=f =f=f=f w = w1 ⋅ w2 ⋅ w3 ⋅ . . .

⇒ w ∈L (A)

w∈L (A)

3 L (A) =

L (A) ⊇ f−1(M) ⋅ f−1(N)ω

f−1(M) ⋅ f−1(N)ω

Proof: ⊇ straightforward, ⊆ follows from Ramsey’s Theorem Every word can be factorized into w1, w2, w3, ... with f (w2) =f (w2) =...

. . .

Complementation: L (A)C =

L (A) ⊉⊉⊉ f−1(M) ⋅ f−1(N)ω

f−1(M) ⋅ f−1(N)ω

(26)

A converse translation: from automata to logic

One can translate every B¨uchi automaton A into a formula ψψψAAA === ∃ ¯∃ ¯∃ ¯X . ϕ( ¯X . ϕ( ¯X . ϕ( ¯X )X )X ), where ϕ is a first-order formula, such that

L (A) = {w ∈ Σω ∣w ⊧ ψA}

Encode an accepting run of A into monadic variables ¯X : w ∈L (A) iff ∃ ρ accepting run of A on w

iff ∃(Xt)t ∈∆. exactly one transition on each position

∧ transitions respect symbols of w

∧ consecutive transitions agree on states

∧ first transition departs from initial state

∧ some final state is visited infinitely often

Corollary (collapse of quantifier hierarchy)

MSO[<] = B¨uchi automata = ∃MSO[+1]

(27)

A converse translation: from automata to logic

One can translate every B¨uchi automaton A into a formula ψψψAAA === ∃ ¯∃ ¯∃ ¯X . ϕ( ¯X . ϕ( ¯X . ϕ( ¯X )X )X ), where ϕ is a first-order formula, such that

L (A) = {w ∈ Σω ∣w ⊧ ψA}

Encode an accepting run of A into monadic variables ¯X : w ∈L (A) iff ∃ ρ accepting run of A on w

iff ∃(Xt)t ∈∆. exactly one transition on each position

∧ transitions respect symbols of w

∧ consecutive transitions agree on states

∧ first transition departs from initial state

∧ some final state is visited infinitely often Corollary (collapse of quantifier hierarchy)

MSO[<] = B¨uchi automata = ∃MSO[+1]

(28)

Application example 1 (interpretation of the integers)

0 1 2 3 4 . . .

One can logically define Z inside Nlogically define Z inside Nlogically define Z inside N:

ϕ

Z(x , y ) = (Even(x ) ∧ Even(y ) ∧ x ≤Ny )

∨ (Odd(x ) ∧ Odd(y ) ∧ y ≤Nx )

∨ (Odd(x ) ∧ Even(y ))

Corollary

The MSO[≤]MSO[≤]MSO[≤] theory of Z is decidable.

(29)

Application example 1 (interpretation of the integers)

0 1 2 3 4 . . .

0 1 2 3 4

One can logically define Z inside Nlogically define Z inside Nlogically define Z inside N:

ϕ

Z(x , y ) = (Even(x ) ∧ Even(y ) ∧ x ≤Ny )

∨ (Odd(x ) ∧ Odd(y ) ∧ y ≤Nx )

∨ (Odd(x ) ∧ Even(y ))

Corollary

The MSO[≤]MSO[≤]MSO[≤] theory of Z is decidable.

(30)

Application example 1 (interpretation of the integers)

0 1 2 3 4 . . .

0 1 2 3 4

One can logically define Z inside Nlogically define Z inside Nlogically define Z inside N:

ϕ

Z(x , y ) = (Even(x ) ∧ Even(y ) ∧ x ≤Ny )

∨ (Odd(x ) ∧ Odd(y ) ∧ y ≤Nx )

∨ (Odd(x ) ∧ Even(y ))

Corollary

The MSO[≤]MSO[≤]MSO[≤] theory of Z is decidable.

(31)

Application example 2 (interpretation of a counter system)

A, 0 A, 1 A, 2 . . .

B, 0 B, 1 B, 2 . . .

ε ε ε

produce produce produce

consume consume consume

Any property of the above system expressed by an MSO formula ψ = . . . ∀X∀X∀X . . . ( yyy ←←←ÐÐÐÐconsumeconsumeÐÐÐÐconsumeÐÐÐÐÐÐÐzzz ) . . . ( y ↕y ↕y ↕εεε zzz ) . . . can be translated into an equi-satisfiable formula over (N, +1) ψ = . . . ∀Xˆ ∀X∀X111, X, X, X222 . . . ( yyy222+++1 = z1 = z1 = z222 ) . . . ( yyy111===zzz222 ∨∨∨yyy222===zzz111) . . . and then checked for validity.

(32)

Application example 3 (expanded theories)

Recall inductive invariant: L (Aϕ) = {[ ¯X ] ∈ Σωm ∣N ⊧ ϕ( ¯X )}

and recall f -equivalence on factors of infinite words:

w = w1 ⋅ w2 ⋅ w3 ⋅ . . .

=f =f =f w = w1 ⋅ w2 ⋅ w3 ⋅ . . .

⇒ w ∈L (A)

w∈L (A)

We have

(N, +1, Squares) ⊧ ϕ (N, +1, Squares) ⊧ ϕ (N, +1, Squares) ⊧ ϕ iff www === 111

®w0

1 11 0 00 00 0

0 0 0 0 0 0

¯w1

1 1 1 0 0 0 00 0 0 00 0 0 0

0 0 0 0 0 0 0 00 0 0 0

´¹¹¹¹¸¹¹¹¹¶

w2

111 0 0 0 0 0 00 0 0 0 0 00 0 0 0 0 0

0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

´¹¹¹¹¹¹¹¹¹¹¹¹¹¹¹¹¸¹¹¹¹¹¹¹¹¹¹¹¹¹¹¹¹¹¶

w3

1 1 1 . . .. . .. . .

¯

where wwwnnn= (00)= (00)= (00)nnn

∈∈∈ L (AL (AL (Aϕϕϕ)))

iff www === (1w(1w(1w000...1w...1w...1wnnn000) ⋅ (1w) ⋅ (1w) ⋅ (1wnnn000+1+1+1...1w...1w...1wnnn000+`+`+`)))ωωω ∈∈∈ L (AL (AL (Aϕϕϕ)))

since f (wf (wf (wnnn) =) =) =f (wf (wf (wn+`n+`n+`)))for some ` > 0 and all n > n0

(33)

Application example 3 (expanded theories)

Recall inductive invariant: L (Aϕ) = {[ ¯X ] ∈ Σωm ∣N ⊧ ϕ( ¯X )}

and recall f -equivalence on factors of infinite words:

w = w1 ⋅ w2 ⋅ w3 ⋅ . . .

=f =f =f w = w1 ⋅ w2 ⋅ w3 ⋅ . . .

⇒ w ∈L (A)

w∈L (A)

We have

(N, +1, Squares) ⊧ ϕ (N, +1, Squares) ⊧ ϕ (N, +1, Squares) ⊧ ϕ iff www === 111

®

w0

1 11 0 00 00 0

0 0 0 0 0 0

¯

w1

1 1 1 0 0 0 00 0 0 00 0 0 0

0 0 0 0 0 0 0 0 0 0 0 0

´¹¹¹¹¸¹¹¹¹¶

w2

111 0 0 0 0 0 00 0 0 0 0 00 0 0 0 0 0

0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

´¹¹¹¹¹¹¹¹¹¹¹¹¹¹¹¹¸¹¹¹¹¹¹¹¹¹¹¹¹¹¹¹¹¹¶

w3

1 1 1 . . .. . .. . .

¯

where wwwnnn= (00)= (00)= (00)nnn

∈∈∈ L (AL (AL (Aϕϕϕ)))

iff www === (1w(1w(1w000...1w...1w...1wnnn000) ⋅ (1w) ⋅ (1w) ⋅ (1wnnn000+1+1+1...1w...1w...1wnnn000+`+`+`)))ωωω ∈∈∈ L (AL (AL (Aϕϕϕ)))

since f (wf (wf (wnnn) =) =) =f (wf (wf (wn+`n+`n+`)))for some ` > 0 and all n > n0

(34)

Application example 3 (expanded theories)

Recall inductive invariant: L (Aϕ) = {[ ¯X ] ∈ Σωm ∣N ⊧ ϕ( ¯X )}

and recall f -equivalence on factors of infinite words:

w = w1 ⋅ w2 ⋅ w3 ⋅ . . .

=f =f =f w = w1 ⋅ w2 ⋅ w3 ⋅ . . .

⇒ w ∈L (A)

w∈L (A)

We have

(N, +1, Squares) ⊧ ϕ (N, +1, Squares) ⊧ ϕ (N, +1, Squares) ⊧ ϕ iff www === 111

®

w0

1 11 0 00 00 00 00 00 0

¯

w1

1 1 1 0 0 0 00 0 0 00 0 0 00 0 0 00 0 0 00 0 0 0

´¹¹¹¹¸¹¹¹¹¶

w2

111 0 0 0 0 0 00 0 0 0 0 00 0 0 0 0 00 0 0 0 0 00 0 0 0 0 00 0 0 0 0 0

´¹¹¹¹¹¹¹¹¹¹¹¹¹¹¹¹¸¹¹¹¹¹¹¹¹¹¹¹¹¹¹¹¹¹¶

w3

1 1 1 . . .. . .. . .

¯

where wwwnnn= (00)= (00)= (00)nnn

∈∈∈ L (AL (AL (Aϕϕϕ)))

iff www === (1w(1w(1w000...1w...1w...1wnnn000) ⋅ (1w) ⋅ (1w) ⋅ (1wnnn000+1+1+1...1w...1w...1wnnn000+`+`+`)))ωωω ∈∈∈ L (AL (AL (Aϕϕϕ)))

since f (wf (wf (wnnn) =) =) =f (wf (wf (wn+`n+`n+`)))for some ` > 0 and all n > n0

Riferimenti

Documenti correlati

Using a rat model of transient cerebral I/R, we investigated the effects of an epimerised N-,O-sulfated K5 polysaccharide derivative, K5-N,OSepi, on the infarct size, motor

Find the names of the suppliers that supply at least one product supplied by suppliers of red products. D B

Need of non-determinism and stronger acceptance

His scholarship deals with topics that are still at the center of the contempo- rary constitutional debate, to mention just a few among the areas addressed in his many

The following tables give more evidence in this direction, by comparing the Vandermonde volume (Table 2) and the Lebesgue constant (Table 3) of the 1-dimensional Fekete points with

direction, by comparing the Vandermonde volume (Table 2) and the Lebesgue constant (Table 3) of the 1-dimensional Fekete points with that of equally spaced points, of the three

Ecco, questo gioco tra detto e non detto, tra rivelazione e reticenza, sostenuto da dinamiche quasi poliziesche, serve per fare riflettere sul fatto che l’esperienza della realtà

Richard J Estes, Professor and Chair, Concentration in Social and Economic Development, University of Pennsylvania School of Social Work; President, International Society for