Degrees of Streams Jrg Endrullis Dimitri Hendriks Jan Willem Klop - - PowerPoint PPT Presentation

degrees of streams
SMART_READER_LITE
LIVE PREVIEW

Degrees of Streams Jrg Endrullis Dimitri Hendriks Jan Willem Klop - - PowerPoint PPT Presentation

Degrees of Streams Jrg Endrullis Dimitri Hendriks Jan Willem Klop Vrije Universiteit Amsterdam Challenges in Combinatorics on Words Fields Institute, Toronto 25th of April 2013 Comparing Streams Goal Measure the complexity of streams in


slide-1
SLIDE 1

Degrees of Streams

Jörg Endrullis Dimitri Hendriks Jan Willem Klop

Vrije Universiteit Amsterdam

Challenges in Combinatorics on Words Fields Institute, Toronto 25th of April 2013

slide-2
SLIDE 2

Comparing Streams

Goal

Measure the complexity of streams in terms of their infinite pattern. Measure should be invariant under

◮ insertion/removal of finitely many elements ◮ change of alphabet

slide-3
SLIDE 3

Comparing Streams

Goal

Measure the complexity of streams in terms of their infinite pattern. Measure should be invariant under

◮ insertion/removal of finitely many elements ◮ change of alphabet

Shortcomings of existing complexity measures:

slide-4
SLIDE 4

Comparing Streams

Goal

Measure the complexity of streams in terms of their infinite pattern. Measure should be invariant under

◮ insertion/removal of finitely many elements ◮ change of alphabet

Shortcomings of existing complexity measures:

◮ Recursion theoretic degrees of unsolvability

Comparison of streams via transformability by Turing machines.

slide-5
SLIDE 5

Comparing Streams

Goal

Measure the complexity of streams in terms of their infinite pattern. Measure should be invariant under

◮ insertion/removal of finitely many elements ◮ change of alphabet

Shortcomings of existing complexity measures:

◮ Recursion theoretic degrees of unsolvability

All computable streams are identified.

slide-6
SLIDE 6

Comparing Streams

Goal

Measure the complexity of streams in terms of their infinite pattern. Measure should be invariant under

◮ insertion/removal of finitely many elements ◮ change of alphabet

Shortcomings of existing complexity measures:

◮ Recursion theoretic degrees of unsolvability

All computable streams are identified.

◮ Kolmogorov complexity

Size of the shortest program computing the stream.

slide-7
SLIDE 7

Comparing Streams

Goal

Measure the complexity of streams in terms of their infinite pattern. Measure should be invariant under

◮ insertion/removal of finitely many elements ◮ change of alphabet

Shortcomings of existing complexity measures:

◮ Recursion theoretic degrees of unsolvability

All computable streams are identified.

◮ Kolmogorov complexity

Can be increased arbitrarily by finite insertions.

slide-8
SLIDE 8

Comparing Streams

Goal

Measure the complexity of streams in terms of their infinite pattern. Measure should be invariant under

◮ insertion/removal of finitely many elements ◮ change of alphabet

Shortcomings of existing complexity measures:

◮ Recursion theoretic degrees of unsolvability

All computable streams are identified.

◮ Kolmogorov complexity

Can be increased arbitrarily by finite insertions.

◮ Subword complexity

ξσ : N → N where ξσ(n) number of subwords of length n in σ.

slide-9
SLIDE 9

Comparing Streams

Goal

Measure the complexity of streams in terms of their infinite pattern. Measure should be invariant under

◮ insertion/removal of finitely many elements ◮ change of alphabet

Shortcomings of existing complexity measures:

◮ Recursion theoretic degrees of unsolvability

All computable streams are identified.

◮ Kolmogorov complexity

Can be increased arbitrarily by finite insertions.

◮ Subword complexity

u = 1 1 1 . . . w = 0 2 1 2 2 0 2 2 2 2 0 . . . w contains u but w has trivial complexity

slide-10
SLIDE 10

Finite State Transducers

We propose: comparison via finite state transducers (FSTs). Example: FST computing the difference of consecutive elements q0 q1 q2 0|ε 1|ε 1|1 0|1 1|0 0|0 input letter | output word along the edges

slide-11
SLIDE 11

Finite State Transducers

We propose: comparison via finite state transducers (FSTs). Example: FST computing the difference of consecutive elements q0 q1 q2 0|ε 1|ε 1|1 0|1 1|0 0|0 input letter | output word along the edges Transduces Thue-Morse sequence to period doubling sequence: 0 1 1 0 1 0 0 1... → 1 0 1 1 1 0 1...

slide-12
SLIDE 12

Degrees of Streams

Principle: M is at least as complex as N if it can be transformed to N M ⊲ N ⇐ ⇒ there exists an FST transforming M into N

slide-13
SLIDE 13

Degrees of Streams

Principle: M is at least as complex as N if it can be transformed to N M ⊲ N ⇐ ⇒ there exists an FST transforming M into N

0 ultimately periodic M W sup? upper bound Π prime (only 0 below itself) ? ?

Partial order of degrees induced by ⊲. (degree is class of streams that can be transformed into each other)

slide-14
SLIDE 14

Initial Observations

Theorem

Every degree is countable.

slide-15
SLIDE 15

Initial Observations

Theorem

Every degree is countable. There are uncountably many degrees.

slide-16
SLIDE 16

Initial Observations

Theorem

Every degree is countable. There are uncountably many degrees.

Theorem

Every degree has only a countable number of degrees below itself.

slide-17
SLIDE 17

Initial Observations

Theorem

Every degree is countable. There are uncountably many degrees.

Theorem

Every degree has only a countable number of degrees below itself.

upper bound

Theorem

A set of degrees has an upper bound ⇐ ⇒ the set is countable.

slide-18
SLIDE 18

Initial Observations

Theorem

Every degree is countable. There are uncountably many degrees.

Theorem

Every degree has only a countable number of degrees below itself.

upper bound

Theorem

A set of degrees has an upper bound ⇐ ⇒ the set is countable. zip(w0,zip(w1,zip(w2,...))) ,

w0(0) w1(0) w0(1) w2(0) w0(2) w1(1) w0(3) w3(0) w0(4) w1(2) w0(5) w2(1) . . .

slide-19
SLIDE 19

Initial Observations

Theorem

Every degree is countable. There are uncountably many degrees.

Theorem

Every degree has only a countable number of degrees below itself.

upper bound

Theorem

A set of degrees has an upper bound ⇐ ⇒ the set is countable. zip(w0,zip(w1,zip(w2,...))) ,

w0(0) w1(0) w0(1) w2(0) w0(2) w1(1) w0(3) w3(0) w0(4) w1(2) w0(5) w2(1) . . .

Theorem

There are no maximal degrees.

slide-20
SLIDE 20

An Infinite Descending Chain

descending sequence

  • f degrees

q0 q1 1|1 1|ε 0|ε 0|0

Theorem

The following is an infinite descending sequence: D0 = 1020102110221023102410251026 ... ⊲ D1 = 102010221024102610281021010212 ... ⊲ D2 = 10201024102810212102161022010224 ... ⊲ ...

slide-21
SLIDE 21

An Infinite Ascending Chain

ascending sequence

  • f degrees

q0 q1 q2 1|1 1|ε 0|0 0|0 0|ε 1|1

Theorem

The following is an infinite ascending sequence: . . . ⊲ A3 = 1(10)3 1(100)3 1(10000)3 1(100000000)3 ... ⊲ A2 = 1(10)2 1(100)2 1(10000)2 1(100000000)2 ... ⊲ A1 = 11011001100001100000000... ⊲ A0 = 111111...

slide-22
SLIDE 22

Prime Degrees

ultimately periodic streams (wuuu ...) prime degree nothing in-between

Definition

A degree M = 0 is prime if there is no N between M and 0: ¬∃N. M ⊲ N ⊲ 0

slide-23
SLIDE 23

Prime Degrees

ultimately periodic streams (wuuu ...) prime degree nothing in-between

Definition

A degree M = 0 is prime if there is no N between M and 0: ¬∃N. M ⊲ N ⊲ 0

Theorem

The degree of the following stream is prime: Π = 10 100 1000 10000 100000 1... = 101 102 103 104 105 106 1...

slide-24
SLIDE 24

A Prime: Π = 1101001000100001000001...

100000000000000000000... u v v

slide-25
SLIDE 25

A Prime: Π = 1101001000100001000001...

100000000000000000000... u v v Let Z be the least common multiple of lengths of 0-loops in the FST.

slide-26
SLIDE 26

A Prime: Π = 1101001000100001000001...

100000000000000000000... u v v Let Z be the least common multiple of lengths of 0-loops in the FST.

Lemma

For all q ∈ Q, n > |Q|, there exist u,v ∈ Γ∗ s.t. for all i ∈ N: δ(q,10n+i·Z) = δ(q,10n) δ = state transition function λ(q,10n+i·Z) = u vi λ = output function

Proof.

Analogous to the pumping lemma for regular languages.

slide-27
SLIDE 27

A Prime: Π = 1101001000100001000001...

Lemma

Every transduct of Π is of the form w ·

i=0

wi where wi =

n−1

j=0

uj ·vi

j

for some n ∈ N and finite words w,uj,vj.

slide-28
SLIDE 28

A Prime: Π = 1101001000100001000001...

Lemma

Every transduct of Π is of the form w ·

i=0

wi where wi =

n−1

j=0

uj ·vi

j

for some n ∈ N and finite words w,uj,vj.

Proof.

By the pigeonhole principle we find blocks 10k and 10ℓ in Π s.t.:

◮ |Q| < k < ℓ ◮ k ≡ ℓ mod Z ◮ automaton enters 10k and 10ℓ with the same state q

slide-29
SLIDE 29

A Prime: Π = 1101001000100001000001...

Lemma

Every transduct of Π is of the form w ·

i=0

wi where wi =

n−1

j=0

uj ·vi

j

for some n ∈ N and finite words w,uj,vj.

Proof.

By the pigeonhole principle we find blocks 10k and 10ℓ in Π s.t.:

◮ |Q| < k < ℓ ◮ k ≡ ℓ mod Z ◮ automaton enters 10k and 10ℓ with the same state q

Define n = ℓ−k.

slide-30
SLIDE 30

A Prime: Π = 1101001000100001000001...

Lemma

Every transduct of Π is of the form w ·

i=0

wi where wi =

n−1

j=0

uj ·vi

j

for some n ∈ N and finite words w,uj,vj.

Proof.

By the pigeonhole principle we find blocks 10k and 10ℓ in Π s.t.:

◮ |Q| < k < ℓ ◮ k ≡ ℓ mod Z ◮ automaton enters 10k and 10ℓ with the same state q

Define n = ℓ−k. Then Z | n and

◮ automaton also enters 10k+1 and 10ℓ+1 in the same state q′ ◮ k +1 ≡ ℓ+1 mod Z, . . .

slide-31
SLIDE 31

A Prime: Π = 1101001000100001000001...

Lemma

Every transduct of Π is of the form w ·

i=0

wi where wi =

n−1

j=0

uj ·vi

j

for some n ∈ N and finite words w,uj,vj.

Proof.

By the pigeonhole principle we find blocks 10k and 10ℓ in Π s.t.:

◮ |Q| < k < ℓ ◮ k ≡ ℓ mod Z ◮ automaton enters 10k and 10ℓ with the same state q

Define n = ℓ−k. Then Z | n and

◮ automaton also enters 10k+1 and 10ℓ+1 in the same state q′ ◮ k +1 ≡ ℓ+1 mod Z, . . .

For all i ∈ N, the blocks 10k+j+i·n are entered in the same state.

slide-32
SLIDE 32

A Prime: Π = 1101001000100001000001...

Theorem

The degree of Π = 10 100 1000 10000 100000 1... is prime.

slide-33
SLIDE 33

A Prime: Π = 1101001000100001000001...

Theorem

The degree of Π = 10 100 1000 10000 100000 1... is prime.

Proof.

We consider a transduct T of Π: T = w ·

ω

i=0

wi wi =

n

j=0

uj ·vi

j

slide-34
SLIDE 34

A Prime: Π = 1101001000100001000001...

Theorem

The degree of Π = 10 100 1000 10000 100000 1... is prime.

Proof.

We consider a transduct T of Π: T = w ·

ω

i=0

wi wi =

n

j=0

uj ·vi

j

Removing ‘ambiguous’ factors, that is, factors j ≤ n for which:

◮ vω j = uj+1vω j+1 (here addition j +1 is modulo n)

slide-35
SLIDE 35

A Prime: Π = 1101001000100001000001...

Theorem

The degree of Π = 10 100 1000 10000 100000 1... is prime.

Proof.

We consider a transduct T of Π: T = w ·

ω

i=0

wi wi =

n

j=0

uj ·vi

j

Removing ‘ambiguous’ factors, that is, factors j ≤ n for which:

◮ vω j = uj+1vω j+1 (here addition j +1 is modulo n)

If everything is ambiguous, then T is ultimately periodic.

slide-36
SLIDE 36

A Prime: Π = 1101001000100001000001...

Theorem

The degree of Π = 10 100 1000 10000 100000 1... is prime.

Proof.

We consider a transduct T of Π: T = w ·

ω

i=0

wi wi =

n

j=0

uj ·vi

j

Removing ‘ambiguous’ factors, that is, factors j ≤ n for which:

◮ vω j = uj+1vω j+1 (here addition j +1 is modulo n)

If everything is ambiguous, then T is ultimately periodic. Otherwise we can choose the vj,uj s.t. no uj+1 is not a prefix of vω

j .

slide-37
SLIDE 37

A Prime: Π = 1101001000100001000001...

Theorem

The degree of Π = 10 100 1000 10000 100000 1... is prime.

Proof.

We consider a transduct T of Π: T = w ·

ω

i=0

wi wi =

n

j=0

uj ·vi

j

Removing ‘ambiguous’ factors, that is, factors j ≤ n for which:

◮ vω j = uj+1vω j+1 (here addition j +1 is modulo n)

If everything is ambiguous, then T is ultimately periodic. Otherwise we can choose the vj,uj s.t. no uj+1 is not a prefix of vω

j .

An FST can detect all transitions

slide-38
SLIDE 38

A Prime: Π = 1101001000100001000001...

Theorem

The degree of Π = 10 100 1000 10000 100000 1... is prime.

Proof.

We consider a transduct T of Π: T = w ·

ω

i=0

wi wi =

n

j=0

uj ·vi

j

Removing ‘ambiguous’ factors, that is, factors j ≤ n for which:

◮ vω j = uj+1vω j+1 (here addition j +1 is modulo n)

If everything is ambiguous, then T is ultimately periodic. Otherwise we can choose the vj,uj s.t. no uj+1 is not a prefix of vω

j .

An FST can detect all transitions

◮ from ujvi j to uj+1vi j+1,

slide-39
SLIDE 39

A Prime: Π = 1101001000100001000001...

Theorem

The degree of Π = 10 100 1000 10000 100000 1... is prime.

Proof.

We consider a transduct T of Π: T = w ·

ω

i=0

wi wi =

n

j=0

uj ·vi

j

Removing ‘ambiguous’ factors, that is, factors j ≤ n for which:

◮ vω j = uj+1vω j+1 (here addition j +1 is modulo n)

If everything is ambiguous, then T is ultimately periodic. Otherwise we can choose the vj,uj s.t. no uj+1 is not a prefix of vω

j .

An FST can detect all transitions

◮ from ujvi j to uj+1vi j+1, and thus ◮ from wi to wi+1

slide-40
SLIDE 40

A Prime: Π = 1101001000100001000001...

Theorem

The degree of Π = 10 100 1000 10000 100000 1... is prime.

Proof.

We consider a transduct T of Π: T = w ·

ω

i=0

wi wi =

n

j=0

uj ·vi

j

Removing ‘ambiguous’ factors, that is, factors j ≤ n for which:

◮ vω j = uj+1vω j+1 (here addition j +1 is modulo n)

If everything is ambiguous, then T is ultimately periodic. Otherwise we can choose the vj,uj s.t. no uj+1 is not a prefix of vω

j .

An FST can detect all transitions

◮ from ujvi j to uj+1vi j+1, and thus ◮ from wi to wi+1

The function i → |wi| is linear, so FST can transduce wi to 10i.

slide-41
SLIDE 41

Infima and Suprema

Theorem

There exist degrees X,Y that have no supremum.

Theorem

There exist degrees X,Y that have no infimum.

slide-42
SLIDE 42

Infima and Suprema

Theorem

There exist degrees X,Y that have no supremum.

Theorem

There exist degrees X,Y that have no infimum. Idea: construct σ1,σ2,τ1,τ2 such that τ1 τ2 σ1 σ2 γ and there exists no γ with the indicated properties.

slide-43
SLIDE 43

Infima and Suprema

Theorem

There exist degrees X,Y that have no supremum.

Theorem

There exist degrees X,Y that have no infimum. Idea: construct σ1,σ2,τ1,τ2 such that τ1 τ2 σ1 σ2 ∏∞

i=0 022i

1 = = ∏∞

i=0 033i

1 γ and there exists no γ with the indicated properties.

slide-44
SLIDE 44

Infima and Suprema

Theorem

There exist degrees X,Y that have no supremum.

Theorem

There exist degrees X,Y that have no infimum. Idea: construct σ1,σ2,τ1,τ2 such that τ1 τ2 σ1 σ2 ∏∞

i=0(022i

1033i 1) = = ∏∞

i=0(033i

1022i 1) ∏∞

i=0 022i

1 = = ∏∞

i=0 033i

1 γ and there exists no γ with the indicated properties.

slide-45
SLIDE 45

The Subhierarchy of Computable Streams

It is also interesting to look at subhierarchies. For example

◮ computable streams ◮ morphic streams

are closed under finite state transduction.

slide-46
SLIDE 46

The Subhierarchy of Computable Streams

It is also interesting to look at subhierarchies. For example

◮ computable streams ◮ morphic streams

are closed under finite state transduction.

Theorem

The subhierarchy of computable streams has a top degree.

slide-47
SLIDE 47

The Subhierarchy of Computable Streams

It is also interesting to look at subhierarchies. For example

◮ computable streams ◮ morphic streams

are closed under finite state transduction.

Theorem

The subhierarchy of computable streams has a top degree. Shuffling all computable streams does not work (the resulting stream is not computable).

slide-48
SLIDE 48

The Subhierarchy of Computable Streams

It is also interesting to look at subhierarchies. For example

◮ computable streams ◮ morphic streams

are closed under finite state transduction.

Theorem

The subhierarchy of computable streams has a top degree. Shuffling all computable streams does not work (the resulting stream is not computable). Idea: for every Turing machine M define a stream w(M) = xs(M,0)o(M,0) xs(M,1)o(M,1) xs(M,2)o(M,2) ...

slide-49
SLIDE 49

The Subhierarchy of Computable Streams

It is also interesting to look at subhierarchies. For example

◮ computable streams ◮ morphic streams

are closed under finite state transduction.

Theorem

The subhierarchy of computable streams has a top degree. Shuffling all computable streams does not work (the resulting stream is not computable). Idea: for every Turing machine M define a stream w(M) = xs(M,0)o(M,0) xs(M,1)o(M,1) xs(M,2)o(M,2) ... where x is a fresh symbol and

◮ o(M,n) = output of M on input n ◮ s(M,n) = number of steps of M until termination on input n

slide-50
SLIDE 50

The Subhierarchy of Computable Streams

It is also interesting to look at subhierarchies. For example

◮ computable streams ◮ morphic streams

are closed under finite state transduction.

Theorem

The subhierarchy of computable streams has a top degree. Shuffling all computable streams does not work (the resulting stream is not computable). Idea: for every Turing machine M define a stream w(M) = xs(M,0)o(M,0) xs(M,1)o(M,1) xs(M,2)o(M,2) ... where x is a fresh symbol and

◮ o(M,n) = output of M on input n ◮ s(M,n) = number of steps of M until termination on input n

The shuffling of these streams is computable.

slide-51
SLIDE 51

Open questions

◮ How to prove non-transducibility (e.g. for morphic streams)? ◮ Are Thue-Morse and Mephisto Walz transducible to each other? ◮ How many prime degrees are out there? ◮ Is Thue-Morse prime? ◮ Are there degrees forming the following structures? ◮ When does a set of degrees have a supremum? ◮ What is the structure of the subhierarchy of computable streams? ◮ What is the structure of the subhierarchy of morphic streams? ◮ . . .