Equations over sets of natural numbers. Artur Je z University of - - PowerPoint PPT Presentation

equations over sets of natural numbers
SMART_READER_LITE
LIVE PREVIEW

Equations over sets of natural numbers. Artur Je z University of - - PowerPoint PPT Presentation

Equations over sets of natural numbers. Artur Je z University of Wroclaw December 13, 2007 Artur Je z ( University of Wroclaw ) Equations over sets of natural numbers. December 13, 2007 1 / 27 Part I Conjunctive Grammars Artur Je


slide-1
SLIDE 1

Equations over sets of natural numbers.

Artur Je˙ z

University of Wroclaw

December 13, 2007

Artur Je˙ z ( University of Wroclaw ) Equations over sets of natural numbers. December 13, 2007 1 / 27

slide-2
SLIDE 2

Part I Conjunctive Grammars

Artur Je˙ z ( University of Wroclaw ) Equations over sets of natural numbers. December 13, 2007 2 / 27

slide-3
SLIDE 3

Conjunctive grammars

Context-free grammars: Rules of the form A → α “If w is generated by α, then w is generated by A”.

Artur Je˙ z ( University of Wroclaw ) Equations over sets of natural numbers. December 13, 2007 3 / 27

slide-4
SLIDE 4

Conjunctive grammars

Context-free grammars: Rules of the form A → α “If w is generated by α, then w is generated by A”. Multiple rules for A: disjunction.

Artur Je˙ z ( University of Wroclaw ) Equations over sets of natural numbers. December 13, 2007 3 / 27

slide-5
SLIDE 5

Conjunctive grammars

Context-free grammars: Rules of the form A → α “If w is generated by α, then w is generated by A”. Multiple rules for A: disjunction. Conjunctive grammars (Okhotin, 2000) Rules of the form A → α1& . . . &αm “If w is generated by each αi, then w is generated by A”.

Artur Je˙ z ( University of Wroclaw ) Equations over sets of natural numbers. December 13, 2007 3 / 27

slide-6
SLIDE 6

Definition of conjunctive grammars

Quadruple G = (Σ, N, P, S), where S ∈ N and rules in P are A → α1& . . . &αm with A ∈ N, αi ∈ (Σ ∪ N)∗

Artur Je˙ z ( University of Wroclaw ) Equations over sets of natural numbers. December 13, 2007 4 / 27

slide-7
SLIDE 7

Definition of conjunctive grammars

Quadruple G = (Σ, N, P, S), where S ∈ N and rules in P are A → α1& . . . &αm with A ∈ N, αi ∈ (Σ ∪ N)∗ Semantics by language equations: A =

  • A→α1&...&αm∈P

m

  • i=1

αi

Artur Je˙ z ( University of Wroclaw ) Equations over sets of natural numbers. December 13, 2007 4 / 27

slide-8
SLIDE 8

Definition of conjunctive grammars

Quadruple G = (Σ, N, P, S), where S ∈ N and rules in P are A → α1& . . . &αm with A ∈ N, αi ∈ (Σ ∪ N)∗ Semantics by language equations: A =

  • A→α1&...&αm∈P

m

  • i=1

αi

◮ LG(A) is the A-component of the least solution. Artur Je˙ z ( University of Wroclaw ) Equations over sets of natural numbers. December 13, 2007 4 / 27

slide-9
SLIDE 9

Definition of conjunctive grammars

Quadruple G = (Σ, N, P, S), where S ∈ N and rules in P are A → α1& . . . &αm with A ∈ N, αi ∈ (Σ ∪ N)∗ Semantics by language equations: A =

  • A→α1&...&αm∈P

m

  • i=1

αi

◮ LG(A) is the A-component of the least solution.

Semantics by term rewriting: ϕ(A) = ⇒ ϕ(α1& . . . &αm)

Artur Je˙ z ( University of Wroclaw ) Equations over sets of natural numbers. December 13, 2007 4 / 27

slide-10
SLIDE 10

Definition of conjunctive grammars

Quadruple G = (Σ, N, P, S), where S ∈ N and rules in P are A → α1& . . . &αm with A ∈ N, αi ∈ (Σ ∪ N)∗ Semantics by language equations: A =

  • A→α1&...&αm∈P

m

  • i=1

αi

◮ LG(A) is the A-component of the least solution.

Semantics by term rewriting: ϕ(A) = ⇒ ϕ(α1& . . . &αm) ϕ(w& . . . &w) = ⇒ ϕ(w)

Artur Je˙ z ( University of Wroclaw ) Equations over sets of natural numbers. December 13, 2007 4 / 27

slide-11
SLIDE 11

Definition of conjunctive grammars

Quadruple G = (Σ, N, P, S), where S ∈ N and rules in P are A → α1& . . . &αm with A ∈ N, αi ∈ (Σ ∪ N)∗ Semantics by language equations: A =

  • A→α1&...&αm∈P

m

  • i=1

αi

◮ LG(A) is the A-component of the least solution.

Semantics by term rewriting: ϕ(A) = ⇒ ϕ(α1& . . . &αm) ϕ(w& . . . &w) = ⇒ ϕ(w)

◮ LG(A) = {w | A =

⇒∗ w}

Artur Je˙ z ( University of Wroclaw ) Equations over sets of natural numbers. December 13, 2007 4 / 27

slide-12
SLIDE 12

Part II Unary alphabet and equations over sets of numbers

Artur Je˙ z ( University of Wroclaw ) Equations over sets of natural numbers. December 13, 2007 5 / 27

slide-13
SLIDE 13

The case of a unary alphabet

Unary: Σ = {a}.

Artur Je˙ z ( University of Wroclaw ) Equations over sets of natural numbers. December 13, 2007 6 / 27

slide-14
SLIDE 14

The case of a unary alphabet

Unary: Σ = {a}. an ← → number n

Artur Je˙ z ( University of Wroclaw ) Equations over sets of natural numbers. December 13, 2007 6 / 27

slide-15
SLIDE 15

The case of a unary alphabet

Unary: Σ = {a}. an ← → number n an · am ← → n + m

Artur Je˙ z ( University of Wroclaw ) Equations over sets of natural numbers. December 13, 2007 6 / 27

slide-16
SLIDE 16

The case of a unary alphabet

Unary: Σ = {a}. an ← → number n an · am ← → n + m Language ← → set of numbers

Artur Je˙ z ( University of Wroclaw ) Equations over sets of natural numbers. December 13, 2007 6 / 27

slide-17
SLIDE 17

The case of a unary alphabet

Unary: Σ = {a}. an ← → number n an · am ← → n + m Language ← → set of numbers K · L ← → X ⊞ Y = {x + y | x ∈ X, y ∈ Y }

Artur Je˙ z ( University of Wroclaw ) Equations over sets of natural numbers. December 13, 2007 6 / 27

slide-18
SLIDE 18

The case of a unary alphabet

Unary: Σ = {a}. an ← → number n an · am ← → n + m Language ← → set of numbers K · L ← → X ⊞ Y = {x + y | x ∈ X, y ∈ Y } Language equations ← → Equations over subsets of N

Artur Je˙ z ( University of Wroclaw ) Equations over sets of natural numbers. December 13, 2007 6 / 27

slide-19
SLIDE 19

The case of a unary alphabet

Unary: Σ = {a}. an ← → number n an · am ← → n + m Language ← → set of numbers K · L ← → X ⊞ Y = {x + y | x ∈ X, y ∈ Y } Language equations ← → Equations over subsets of N Resolved equations over sets of natural numbers.

Artur Je˙ z ( University of Wroclaw ) Equations over sets of natural numbers. December 13, 2007 6 / 27

slide-20
SLIDE 20

Equations over sets of numbers

     X1 = ϕ1(X1, . . . , Xn) . . . Xn = ϕn(X1, . . . , Xn)

Artur Je˙ z ( University of Wroclaw ) Equations over sets of natural numbers. December 13, 2007 7 / 27

slide-21
SLIDE 21

Equations over sets of numbers

     X1 = ϕ1(X1, . . . , Xn) . . . Xn = ϕn(X1, . . . , Xn) Xi: subset of N = {0, 1, 2, . . .}.

Artur Je˙ z ( University of Wroclaw ) Equations over sets of natural numbers. December 13, 2007 7 / 27

slide-22
SLIDE 22

Equations over sets of numbers

     X1 = ϕ1(X1, . . . , Xn) . . . Xn = ϕn(X1, . . . , Xn) Xi: subset of N = {0, 1, 2, . . .}. ϕi contains variables, singleton constants, operations on sets.

Artur Je˙ z ( University of Wroclaw ) Equations over sets of natural numbers. December 13, 2007 7 / 27

slide-23
SLIDE 23

Equations over sets of numbers

     X1 = ϕ1(X1, . . . , Xn) . . . Xn = ϕn(X1, . . . , Xn) Xi: subset of N = {0, 1, 2, . . .}. ϕi contains variables, singleton constants, operations on sets. Operations : ∪, ∩, ⊞

Definition

X ⊞ Y = {x + y : x ∈ X, y ∈ Y }

Artur Je˙ z ( University of Wroclaw ) Equations over sets of natural numbers. December 13, 2007 7 / 27

slide-24
SLIDE 24

Equations over sets of numbers

     X1 = ϕ1(X1, . . . , Xn) . . . Xn = ϕn(X1, . . . , Xn) Xi: subset of N = {0, 1, 2, . . .}. ϕi contains variables, singleton constants, operations on sets. Operations : ∪, ∩, ⊞

Definition

X ⊞ Y = {x + y : x ∈ X, y ∈ Y } Example: X = (X ⊞ X) ∪ {2}

Artur Je˙ z ( University of Wroclaw ) Equations over sets of natural numbers. December 13, 2007 7 / 27

slide-25
SLIDE 25

Equations over sets of numbers

     X1 = ϕ1(X1, . . . , Xn) . . . Xn = ϕn(X1, . . . , Xn) Xi: subset of N = {0, 1, 2, . . .}. ϕi contains variables, singleton constants, operations on sets. Operations : ∪, ∩, ⊞

Definition

X ⊞ Y = {x + y : x ∈ X, y ∈ Y } Example: X = (X ⊞ X) ∪ {2} EQ(∪, ∩, ⊞)—sets expressible as least solutions

Artur Je˙ z ( University of Wroclaw ) Equations over sets of natural numbers. December 13, 2007 7 / 27

slide-26
SLIDE 26

Questions

Problem

Expressive power?

Artur Je˙ z ( University of Wroclaw ) Equations over sets of natural numbers. December 13, 2007 8 / 27

slide-27
SLIDE 27

Questions

Problem

Expressive power? Complexity of the membership problem?

Artur Je˙ z ( University of Wroclaw ) Equations over sets of natural numbers. December 13, 2007 8 / 27

slide-28
SLIDE 28

Questions

Problem

Expressive power? Complexity of the membership problem?

Remark

Operations {∪, ⊞}:

Artur Je˙ z ( University of Wroclaw ) Equations over sets of natural numbers. December 13, 2007 8 / 27

slide-29
SLIDE 29

Questions

Problem

Expressive power? Complexity of the membership problem?

Remark

Operations {∪, ⊞}: Context-free grammars over an alphabet {a}.

Artur Je˙ z ( University of Wroclaw ) Equations over sets of natural numbers. December 13, 2007 8 / 27

slide-30
SLIDE 30

Questions

Problem

Expressive power? Complexity of the membership problem?

Remark

Operations {∪, ⊞}: Context-free grammars over an alphabet {a}. Least solutions are ultimately periodic.

Artur Je˙ z ( University of Wroclaw ) Equations over sets of natural numbers. December 13, 2007 8 / 27

slide-31
SLIDE 31

Questions

Problem

Expressive power? Complexity of the membership problem?

Remark

Operations {∪, ⊞}: Context-free grammars over an alphabet {a}. Least solutions are ultimately periodic. General membership problem: NP-complete

Artur Je˙ z ( University of Wroclaw ) Equations over sets of natural numbers. December 13, 2007 8 / 27

slide-32
SLIDE 32

Tool: positional notation

Using base-k notation.

Artur Je˙ z ( University of Wroclaw ) Equations over sets of natural numbers. December 13, 2007 9 / 27

slide-33
SLIDE 33

Tool: positional notation

Using base-k notation. Σk = {0, 1, . . . , k − 1}.

Artur Je˙ z ( University of Wroclaw ) Equations over sets of natural numbers. December 13, 2007 9 / 27

slide-34
SLIDE 34

Tool: positional notation

Using base-k notation. Σk = {0, 1, . . . , k − 1}. Numbers ← → strings in Σ∗

k \ 0Σ∗ k.

Artur Je˙ z ( University of Wroclaw ) Equations over sets of natural numbers. December 13, 2007 9 / 27

slide-35
SLIDE 35

Tool: positional notation

Using base-k notation. Σk = {0, 1, . . . , k − 1}. Numbers ← → strings in Σ∗

k \ 0Σ∗ k.

Sets of numbers ← → formal languages over Σk.

Artur Je˙ z ( University of Wroclaw ) Equations over sets of natural numbers. December 13, 2007 9 / 27

slide-36
SLIDE 36

Tool: positional notation

Using base-k notation. Σk = {0, 1, . . . , k − 1}. Numbers ← → strings in Σ∗

k \ 0Σ∗ k.

Sets of numbers ← → formal languages over Σk.

Example

(10∗)4 = {4n | n 0}

Artur Je˙ z ( University of Wroclaw ) Equations over sets of natural numbers. December 13, 2007 9 / 27

slide-37
SLIDE 37

Example of non-periodic solution (k = 4)

Solution

L1 = 10∗ , L2 = 20∗ , L3 = 30∗ , L12 = 120∗ .

Artur Je˙ z ( University of Wroclaw ) Equations over sets of natural numbers. December 13, 2007 10 / 27

slide-38
SLIDE 38

Example of non-periodic solution (k = 4)

Solution

L1 = 10∗ , L2 = 20∗ , L3 = 30∗ , L12 = 120∗ .

Equations

B1 = (B2 ⊞ B2 ∩ B1 ⊞ B3) ∪ {1} , B2 = (B12 ⊞ B2 ∩ B1 ⊞ B1) ∪ {2} , B3 = (B12 ⊞ B12 ∩ B1 ⊞ B2) ∪ {3} , B12 = (B3 ⊞ B3 ∩ B1 ⊞ B2) .

Artur Je˙ z ( University of Wroclaw ) Equations over sets of natural numbers. December 13, 2007 10 / 27

slide-39
SLIDE 39

What needs to be proved

By general knowledge there is a unique ε-free solution.

Artur Je˙ z ( University of Wroclaw ) Equations over sets of natural numbers. December 13, 2007 11 / 27

slide-40
SLIDE 40

What needs to be proved

By general knowledge there is a unique ε-free solution. Vector of sets (. . . , i0∗, . . .) is ε-free.

Artur Je˙ z ( University of Wroclaw ) Equations over sets of natural numbers. December 13, 2007 11 / 27

slide-41
SLIDE 41

What needs to be proved

By general knowledge there is a unique ε-free solution. Vector of sets (. . . , i0∗, . . .) is ε-free. We need to show that it is a solution.

Artur Je˙ z ( University of Wroclaw ) Equations over sets of natural numbers. December 13, 2007 11 / 27

slide-42
SLIDE 42

What needs to be proved

By general knowledge there is a unique ε-free solution. Vector of sets (. . . , i0∗, . . .) is ε-free. We need to show that it is a solution.

Example

For example 10∗, the rule is B1 = (B2 ⊞ B2 ∩ B1 ⊞ B3) ∪ {1} So we want to prove that 10∗ = 20∗ ⊞ 20∗ ∩ 10∗ ⊞ 30∗ ∪ {1}

Artur Je˙ z ( University of Wroclaw ) Equations over sets of natural numbers. December 13, 2007 11 / 27

slide-43
SLIDE 43

Calculations

Rule: B1 = (B2 ⊞ B2 ∩ B1 ⊞ B3) ∪ {1}

Artur Je˙ z ( University of Wroclaw ) Equations over sets of natural numbers. December 13, 2007 12 / 27

slide-44
SLIDE 44

Calculations

Rule: B1 = (B2 ⊞ B2 ∩ B1 ⊞ B3) ∪ {1}

Proof.

20∗ ⊞ 20∗ = 10+ ∪ 20∗20∗

Artur Je˙ z ( University of Wroclaw ) Equations over sets of natural numbers. December 13, 2007 12 / 27

slide-45
SLIDE 45

Calculations

Rule: B1 = (B2 ⊞ B2 ∩ B1 ⊞ B3) ∪ {1}

Proof.

20∗ ⊞ 20∗ = 10+ ∪ 20∗20∗ 10∗ ⊞ 30∗ = 10+ ∪ 10∗30∗ ∪ 30∗10∗

Artur Je˙ z ( University of Wroclaw ) Equations over sets of natural numbers. December 13, 2007 12 / 27

slide-46
SLIDE 46

Calculations

Rule: B1 = (B2 ⊞ B2 ∩ B1 ⊞ B3) ∪ {1}

Proof.

20∗ ⊞ 20∗ = 10+ ∪ 20∗20∗ 10∗ ⊞ 30∗ = 10+ ∪ 10∗30∗ ∪ 30∗10∗ 20∗ ⊞ 20∗ ∩ 10∗ ⊞ 30∗ = 10+

Artur Je˙ z ( University of Wroclaw ) Equations over sets of natural numbers. December 13, 2007 12 / 27

slide-47
SLIDE 47

Calculations

Rule: B1 = (B2 ⊞ B2 ∩ B1 ⊞ B3) ∪ {1}

Proof.

20∗ ⊞ 20∗ = 10+ ∪ 20∗20∗ 10∗ ⊞ 30∗ = 10+ ∪ 10∗30∗ ∪ 30∗10∗ 20∗ ⊞ 20∗ ∩ 10∗ ⊞ 30∗ = 10+ 20∗ ⊞ 20∗ ∩ 10∗ ⊞ 30∗ ∪ {1} = 10∗

Artur Je˙ z ( University of Wroclaw ) Equations over sets of natural numbers. December 13, 2007 12 / 27

slide-48
SLIDE 48

Calculations

Rule: B1 = (B2 ⊞ B2 ∩ B1 ⊞ B3) ∪ {1}

Proof.

20∗ ⊞ 20∗ = 10+ ∪ 20∗20∗ 10∗ ⊞ 30∗ = 10+ ∪ 10∗30∗ ∪ 30∗10∗ 20∗ ⊞ 20∗ ∩ 10∗ ⊞ 30∗ = 10+ 20∗ ⊞ 20∗ ∩ 10∗ ⊞ 30∗ ∪ {1} = 10∗

Remark

Similar proof for ij0∗ in base-k notation.

Artur Je˙ z ( University of Wroclaw ) Equations over sets of natural numbers. December 13, 2007 12 / 27

slide-49
SLIDE 49

Any regular language

Theorem (Je˙ z, DLT 2007)

For every k and R ⊂ {0, . . . , k − 1}∗ if R is regular then R ∈ EQ(∩, ∪, ⊞).

Artur Je˙ z ( University of Wroclaw ) Equations over sets of natural numbers. December 13, 2007 13 / 27

slide-50
SLIDE 50

Any regular language

Theorem (Je˙ z, DLT 2007)

For every k and R ⊂ {0, . . . , k − 1}∗ if R is regular then R ∈ EQ(∩, ∪, ⊞).

Idea

Let {0, . . . , k − 1}, Q, q0, F, δ recognize R.

Artur Je˙ z ( University of Wroclaw ) Equations over sets of natural numbers. December 13, 2007 13 / 27

slide-51
SLIDE 51

Any regular language

Theorem (Je˙ z, DLT 2007)

For every k and R ⊂ {0, . . . , k − 1}∗ if R is regular then R ∈ EQ(∩, ∪, ⊞).

Idea

Let {0, . . . , k − 1}, Q, q0, F, δ recognize R. We introduce variable Bi,j,q for set {ijw : δ(q0, w) = q}

Artur Je˙ z ( University of Wroclaw ) Equations over sets of natural numbers. December 13, 2007 13 / 27

slide-52
SLIDE 52

Any regular language

Theorem (Je˙ z, DLT 2007)

For every k and R ⊂ {0, . . . , k − 1}∗ if R is regular then R ∈ EQ(∩, ∪, ⊞).

Idea

Let {0, . . . , k − 1}, Q, q0, F, δ recognize R. We introduce variable Bi,j,q for set {ijw : δ(q0, w) = q} Information the indices carry: leading symbol i second leading symbol j q—the computation of M on the rest of the word

Artur Je˙ z ( University of Wroclaw ) Equations over sets of natural numbers. December 13, 2007 13 / 27

slide-53
SLIDE 53

Equations for Bi,j,q

Example

Bi,j,q =

  • (x,q′):q∈δ(q′,x)

4

  • n=1

Bi−1,j+n ⊞ Bk−n,x,q′ ∪ . . .

Artur Je˙ z ( University of Wroclaw ) Equations over sets of natural numbers. December 13, 2007 14 / 27

slide-54
SLIDE 54

Equations for Bi,j,q

Example

Bi,j,q =

  • (x,q′):q∈δ(q′,x)

4

  • n=1

Bi−1,j+n ⊞ Bk−n,x,q′ ∪ . . . k − n x

state q′

  • . . .

+ i − 1 j + n 00 . . . 0 i j x . . . . . .

state q

Artur Je˙ z ( University of Wroclaw ) Equations over sets of natural numbers. December 13, 2007 14 / 27

slide-55
SLIDE 55

Trellis automata

(one-way real-time cellular automata)

Theorem (Je˙ z, Okhotin, CSR 2007)

∀ trellis automaton M over Σk with L(M) ⊆ Σ∗

k \ 0Σ∗ k,

set L(M) is in EQ(∩, ∪, ⊞).

Artur Je˙ z ( University of Wroclaw ) Equations over sets of natural numbers. December 13, 2007 15 / 27

slide-56
SLIDE 56

Trellis automata

(one-way real-time cellular automata)

Theorem (Je˙ z, Okhotin, CSR 2007)

∀ trellis automaton M over Σk with L(M) ⊆ Σ∗

k \ 0Σ∗ k,

set L(M) is in EQ(∩, ∪, ⊞).

Definition (Culik, Gruska, Salomaa, 1981)

A trellis automaton is a M = (Σ, Q, I, δ, F) where:

Artur Je˙ z ( University of Wroclaw ) Equations over sets of natural numbers. December 13, 2007 15 / 27

slide-57
SLIDE 57

Trellis automata

(one-way real-time cellular automata)

Theorem (Je˙ z, Okhotin, CSR 2007)

∀ trellis automaton M over Σk with L(M) ⊆ Σ∗

k \ 0Σ∗ k,

set L(M) is in EQ(∩, ∪, ⊞).

Definition (Culik, Gruska, Salomaa, 1981)

A trellis automaton is a M = (Σ, Q, I, δ, F) where: Σ: input alphabet; Q: finite set of states;

Artur Je˙ z ( University of Wroclaw ) Equations over sets of natural numbers. December 13, 2007 15 / 27

slide-58
SLIDE 58

Trellis automata

(one-way real-time cellular automata)

Theorem (Je˙ z, Okhotin, CSR 2007)

∀ trellis automaton M over Σk with L(M) ⊆ Σ∗

k \ 0Σ∗ k,

set L(M) is in EQ(∩, ∪, ⊞).

Definition (Culik, Gruska, Salomaa, 1981)

A trellis automaton is a M = (Σ, Q, I, δ, F) where: Σ: input alphabet; Q: finite set of states; I : Σ → Q sets initial states;

Artur Je˙ z ( University of Wroclaw ) Equations over sets of natural numbers. December 13, 2007 15 / 27

slide-59
SLIDE 59

Trellis automata

(one-way real-time cellular automata)

Theorem (Je˙ z, Okhotin, CSR 2007)

∀ trellis automaton M over Σk with L(M) ⊆ Σ∗

k \ 0Σ∗ k,

set L(M) is in EQ(∩, ∪, ⊞).

Definition (Culik, Gruska, Salomaa, 1981)

A trellis automaton is a M = (Σ, Q, I, δ, F) where: Σ: input alphabet; Q: finite set of states; I : Σ → Q sets initial states;

Artur Je˙ z ( University of Wroclaw ) Equations over sets of natural numbers. December 13, 2007 15 / 27

slide-60
SLIDE 60

Trellis automata

(one-way real-time cellular automata)

Theorem (Je˙ z, Okhotin, CSR 2007)

∀ trellis automaton M over Σk with L(M) ⊆ Σ∗

k \ 0Σ∗ k,

set L(M) is in EQ(∩, ∪, ⊞).

Definition (Culik, Gruska, Salomaa, 1981)

A trellis automaton is a M = (Σ, Q, I, δ, F) where: Σ: input alphabet; Q: finite set of states; I : Σ → Q sets initial states; δ : Q × Q → Q, transition function;

Artur Je˙ z ( University of Wroclaw ) Equations over sets of natural numbers. December 13, 2007 15 / 27

slide-61
SLIDE 61

Trellis automata

(one-way real-time cellular automata)

Theorem (Je˙ z, Okhotin, CSR 2007)

∀ trellis automaton M over Σk with L(M) ⊆ Σ∗

k \ 0Σ∗ k,

set L(M) is in EQ(∩, ∪, ⊞).

Definition (Culik, Gruska, Salomaa, 1981)

A trellis automaton is a M = (Σ, Q, I, δ, F) where: Σ: input alphabet; Q: finite set of states; I : Σ → Q sets initial states; δ : Q × Q → Q, transition function;

Artur Je˙ z ( University of Wroclaw ) Equations over sets of natural numbers. December 13, 2007 15 / 27

slide-62
SLIDE 62

Trellis automata

(one-way real-time cellular automata)

Theorem (Je˙ z, Okhotin, CSR 2007)

∀ trellis automaton M over Σk with L(M) ⊆ Σ∗

k \ 0Σ∗ k,

set L(M) is in EQ(∩, ∪, ⊞).

Definition (Culik, Gruska, Salomaa, 1981)

A trellis automaton is a M = (Σ, Q, I, δ, F) where: Σ: input alphabet; Q: finite set of states; I : Σ → Q sets initial states; δ : Q × Q → Q, transition function;

Artur Je˙ z ( University of Wroclaw ) Equations over sets of natural numbers. December 13, 2007 15 / 27

slide-63
SLIDE 63

Trellis automata

(one-way real-time cellular automata)

Theorem (Je˙ z, Okhotin, CSR 2007)

∀ trellis automaton M over Σk with L(M) ⊆ Σ∗

k \ 0Σ∗ k,

set L(M) is in EQ(∩, ∪, ⊞).

Definition (Culik, Gruska, Salomaa, 1981)

A trellis automaton is a M = (Σ, Q, I, δ, F) where: Σ: input alphabet; Q: finite set of states; I : Σ → Q sets initial states; δ : Q × Q → Q, transition function; F ⊆ Q: accepting states.

Artur Je˙ z ( University of Wroclaw ) Equations over sets of natural numbers. December 13, 2007 15 / 27

slide-64
SLIDE 64

Trellis automata

(one-way real-time cellular automata)

Theorem (Je˙ z, Okhotin, CSR 2007)

∀ trellis automaton M over Σk with L(M) ⊆ Σ∗

k \ 0Σ∗ k,

set L(M) is in EQ(∩, ∪, ⊞).

Definition (Culik, Gruska, Salomaa, 1981)

A trellis automaton is a M = (Σ, Q, I, δ, F) where: Σ: input alphabet; Q: finite set of states; I : Σ → Q sets initial states; δ : Q × Q → Q, transition function; F ⊆ Q: accepting states. Closed under ∪, ∩, ∼, not closed under concatenation.

Artur Je˙ z ( University of Wroclaw ) Equations over sets of natural numbers. December 13, 2007 15 / 27

slide-65
SLIDE 65

Main lemma

Lemma

For every trellis automaton M over Σk with L(M) ⊆ Σ∗

k \ 0Σ∗ k,

there exists a system of equations in EQ = (∪, ∩, ⊞) with least solution {1w10∗ | w + 1 ∈ L(M)}, . . . ,

Artur Je˙ z ( University of Wroclaw ) Equations over sets of natural numbers. December 13, 2007 16 / 27

slide-66
SLIDE 66

Main lemma

Lemma

For every trellis automaton M over Σk with L(M) ⊆ Σ∗

k \ 0Σ∗ k,

there exists a system of equations in EQ = (∪, ∩, ⊞) with least solution {1w10∗ | w + 1 ∈ L(M)}, . . . , 1w10∗ represents w.

Artur Je˙ z ( University of Wroclaw ) Equations over sets of natural numbers. December 13, 2007 16 / 27

slide-67
SLIDE 67

The construction

Set of variables {Xq | q ∈ Q}.

Artur Je˙ z ( University of Wroclaw ) Equations over sets of natural numbers. December 13, 2007 17 / 27

slide-68
SLIDE 68

The construction

Set of variables {Xq | q ∈ Q}. Actually, Xq = {1w10∗ | w + 1 ∈ LM(q)}

Artur Je˙ z ( University of Wroclaw ) Equations over sets of natural numbers. December 13, 2007 17 / 27

slide-69
SLIDE 69

The construction

Set of variables {Xq | q ∈ Q}. Actually, Xq = {1w10∗ | w + 1 ∈ LM(q)} aub ∈ LM(q)

Artur Je˙ z ( University of Wroclaw ) Equations over sets of natural numbers. December 13, 2007 17 / 27

slide-70
SLIDE 70

The construction

Set of variables {Xq | q ∈ Q}. Actually, Xq = {1w10∗ | w + 1 ∈ LM(q)} aub ∈ LM(q) ⇔

Artur Je˙ z ( University of Wroclaw ) Equations over sets of natural numbers. December 13, 2007 17 / 27

slide-71
SLIDE 71

The construction

Set of variables {Xq | q ∈ Q}. Actually, Xq = {1w10∗ | w + 1 ∈ LM(q)} aub ∈ LM(q) ⇔ ∃q′, q′′ : δ(q′, q′′) = q,

Artur Je˙ z ( University of Wroclaw ) Equations over sets of natural numbers. December 13, 2007 17 / 27

slide-72
SLIDE 72

The construction

Set of variables {Xq | q ∈ Q}. Actually, Xq = {1w10∗ | w + 1 ∈ LM(q)} aub ∈ LM(q) ⇔ ∃q′, q′′ : δ(q′, q′′) = q, au ∈ LM(q′),

Artur Je˙ z ( University of Wroclaw ) Equations over sets of natural numbers. December 13, 2007 17 / 27

slide-73
SLIDE 73

The construction

Set of variables {Xq | q ∈ Q}. Actually, Xq = {1w10∗ | w + 1 ∈ LM(q)} aub ∈ LM(q) ⇔ ∃q′, q′′ : δ(q′, q′′) = q, au ∈ LM(q′), ub ∈ LM(q′′).

Artur Je˙ z ( University of Wroclaw ) Equations over sets of natural numbers. December 13, 2007 17 / 27

slide-74
SLIDE 74

The construction

Set of variables {Xq | q ∈ Q}. Actually, Xq = {1w10∗ | w + 1 ∈ LM(q)} aub ∈ LM(q) ⇔ ∃q′, q′′ : δ(q′, q′′) = q, au ∈ LM(q′), ub ∈ LM(q′′). Let 1au10∗ ⊆ Xq′, 1ub10∗ ⊆ Xq′′. Xq =

  • q′,q′′:δ(q′,q′′)=q

a,b∈Σk

ρb(Xq′)∩λa(Xq′′)

Artur Je˙ z ( University of Wroclaw ) Equations over sets of natural numbers. December 13, 2007 17 / 27

slide-75
SLIDE 75

The construction

Set of variables {Xq | q ∈ Q}. Actually, Xq = {1w10∗ | w + 1 ∈ LM(q)} aub ∈ LM(q) ⇔ ∃q′, q′′ : δ(q′, q′′) = q, au ∈ LM(q′), ub ∈ LM(q′′). Let 1au10∗ ⊆ Xq′, 1ub10∗ ⊆ Xq′′. Xq =

  • q′,q′′:δ(q′,q′′)=q

a,b∈Σk

ρb(Xq′)∩λa(Xq′′) λa(1w10k) = 1aw10k ρb(1w10k) = 1wb10k−1

Artur Je˙ z ( University of Wroclaw ) Equations over sets of natural numbers. December 13, 2007 17 / 27

slide-76
SLIDE 76

Part III Complexity of equations with {∪, ∩, ⊞}

Artur Je˙ z ( University of Wroclaw ) Equations over sets of natural numbers. December 13, 2007 18 / 27

slide-77
SLIDE 77

Computational complexity: basic notions

Fix X ⊆ N0.

Artur Je˙ z ( University of Wroclaw ) Equations over sets of natural numbers. December 13, 2007 19 / 27

slide-78
SLIDE 78

Computational complexity: basic notions

Fix X ⊆ N0. Determine algorithmically whether x ∈ X.

Artur Je˙ z ( University of Wroclaw ) Equations over sets of natural numbers. December 13, 2007 19 / 27

slide-79
SLIDE 79

Computational complexity: basic notions

Fix X ⊆ N0. Determine algorithmically whether x ∈ X. n = log x: length of notation of x

Artur Je˙ z ( University of Wroclaw ) Equations over sets of natural numbers. December 13, 2007 19 / 27

slide-80
SLIDE 80

Computational complexity: basic notions

Fix X ⊆ N0. Determine algorithmically whether x ∈ X. n = log x: length of notation of x Time complexity: in t(n) elementary steps.

Artur Je˙ z ( University of Wroclaw ) Equations over sets of natural numbers. December 13, 2007 19 / 27

slide-81
SLIDE 81

Computational complexity: basic notions

Fix X ⊆ N0. Determine algorithmically whether x ∈ X. n = log x: length of notation of x Time complexity: in t(n) elementary steps. Space complexity: using s(n) elementary memory cells.

Artur Je˙ z ( University of Wroclaw ) Equations over sets of natural numbers. December 13, 2007 19 / 27

slide-82
SLIDE 82

Computational complexity: basic notions

Fix X ⊆ N0. Determine algorithmically whether x ∈ X. n = log x: length of notation of x Time complexity: in t(n) elementary steps. Space complexity: using s(n) elementary memory cells. P polynomial time.

Artur Je˙ z ( University of Wroclaw ) Equations over sets of natural numbers. December 13, 2007 19 / 27

slide-83
SLIDE 83

Computational complexity: basic notions

Fix X ⊆ N0. Determine algorithmically whether x ∈ X. n = log x: length of notation of x Time complexity: in t(n) elementary steps. Space complexity: using s(n) elementary memory cells. P polynomial time. NP nondeterministic polynomial time (may guess).

Artur Je˙ z ( University of Wroclaw ) Equations over sets of natural numbers. December 13, 2007 19 / 27

slide-84
SLIDE 84

Computational complexity: basic notions

Fix X ⊆ N0. Determine algorithmically whether x ∈ X. n = log x: length of notation of x Time complexity: in t(n) elementary steps. Space complexity: using s(n) elementary memory cells. P polynomial time. NP nondeterministic polynomial time (may guess). PSPACE polynomial space.

Artur Je˙ z ( University of Wroclaw ) Equations over sets of natural numbers. December 13, 2007 19 / 27

slide-85
SLIDE 85

Computational complexity: basic notions

Fix X ⊆ N0. Determine algorithmically whether x ∈ X. n = log x: length of notation of x Time complexity: in t(n) elementary steps. Space complexity: using s(n) elementary memory cells. P polynomial time. NP nondeterministic polynomial time (may guess). PSPACE polynomial space. EXPTIME exponential time. P ⊆ NP ⊆ PSPACE ⊆ EXPTIME

Artur Je˙ z ( University of Wroclaw ) Equations over sets of natural numbers. December 13, 2007 19 / 27

slide-86
SLIDE 86

Computational complexity: basic notions

Fix X ⊆ N0. Determine algorithmically whether x ∈ X. n = log x: length of notation of x Time complexity: in t(n) elementary steps. Space complexity: using s(n) elementary memory cells. P polynomial time. NP nondeterministic polynomial time (may guess). PSPACE polynomial space. EXPTIME exponential time. P ⊆ NP ⊆ PSPACE ⊆ EXPTIME C-complete set X: every problem in C can be reduced to X.

Artur Je˙ z ( University of Wroclaw ) Equations over sets of natural numbers. December 13, 2007 19 / 27

slide-87
SLIDE 87

Complexity of solutions

Trellis automata recognize P-complete languages.

Artur Je˙ z ( University of Wroclaw ) Equations over sets of natural numbers. December 13, 2007 20 / 27

slide-88
SLIDE 88

Complexity of solutions

Trellis automata recognize P-complete languages. P-complete sets of numbers.

Artur Je˙ z ( University of Wroclaw ) Equations over sets of natural numbers. December 13, 2007 20 / 27

slide-89
SLIDE 89

Complexity of solutions

Trellis automata recognize P-complete languages. P-complete sets of numbers. NP-complete sets: relatively easy.

Artur Je˙ z ( University of Wroclaw ) Equations over sets of natural numbers. December 13, 2007 20 / 27

slide-90
SLIDE 90

Complexity of solutions

Trellis automata recognize P-complete languages. P-complete sets of numbers. NP-complete sets: relatively easy. PSPACE-complete sets: requires some efforts.

Artur Je˙ z ( University of Wroclaw ) Equations over sets of natural numbers. December 13, 2007 20 / 27

slide-91
SLIDE 91

Complexity of solutions

Trellis automata recognize P-complete languages. P-complete sets of numbers. NP-complete sets: relatively easy. PSPACE-complete sets: requires some efforts. Upper bound:

Theorem (Okhotin, 2001)

Every conjunctive language can be recognized in time O(n3).

Artur Je˙ z ( University of Wroclaw ) Equations over sets of natural numbers. December 13, 2007 20 / 27

slide-92
SLIDE 92

Complexity of solutions

Trellis automata recognize P-complete languages. P-complete sets of numbers. NP-complete sets: relatively easy. PSPACE-complete sets: requires some efforts. Upper bound:

Theorem (Okhotin, 2001)

Every conjunctive language can be recognized in time O(n3).

Corollary

Every set of numbers in EQ(∪, ∩, ⊞) is in EXPTIME.

Artur Je˙ z ( University of Wroclaw ) Equations over sets of natural numbers. December 13, 2007 20 / 27

slide-93
SLIDE 93

Complexity of solutions

Trellis automata recognize P-complete languages. P-complete sets of numbers. NP-complete sets: relatively easy. PSPACE-complete sets: requires some efforts. Upper bound:

Theorem (Okhotin, 2001)

Every conjunctive language can be recognized in time O(n3).

Corollary

Every set of numbers in EQ(∪, ∩, ⊞) is in EXPTIME.

Theorem (Je˙ z, Okhotin, STACS 2008)

EQ(∪, ∩, ⊞) contains an EXPTIME-complete set.

Artur Je˙ z ( University of Wroclaw ) Equations over sets of natural numbers. December 13, 2007 20 / 27

slide-94
SLIDE 94

Alternating Turing machines

Tape alphabet Γ, set of states Q = QE ∪ QA ∪ {qacc}.

Artur Je˙ z ( University of Wroclaw ) Equations over sets of natural numbers. December 13, 2007 21 / 27

slide-95
SLIDE 95

Alternating Turing machines

Tape alphabet Γ, set of states Q = QE ∪ QA ∪ {qacc}. Transition function δ : Q × Γ → 2Q×Γ×{←,↓,→}.

Artur Je˙ z ( University of Wroclaw ) Equations over sets of natural numbers. December 13, 2007 21 / 27

slide-96
SLIDE 96

Alternating Turing machines

Tape alphabet Γ, set of states Q = QE ∪ QA ∪ {qacc}. Transition function δ : Q × Γ → 2Q×Γ×{←,↓,→}. If q = qacc, accepts from here.

Artur Je˙ z ( University of Wroclaw ) Equations over sets of natural numbers. December 13, 2007 21 / 27

slide-97
SLIDE 97

Alternating Turing machines

Tape alphabet Γ, set of states Q = QE ∪ QA ∪ {qacc}. Transition function δ : Q × Γ → 2Q×Γ×{←,↓,→}. If q = qacc, accepts from here. If q ∈ QE, accepts from here if accepts from some next conf.

Artur Je˙ z ( University of Wroclaw ) Equations over sets of natural numbers. December 13, 2007 21 / 27

slide-98
SLIDE 98

Alternating Turing machines

Tape alphabet Γ, set of states Q = QE ∪ QA ∪ {qacc}. Transition function δ : Q × Γ → 2Q×Γ×{←,↓,→}. If q = qacc, accepts from here. If q ∈ QE, accepts from here if accepts from some next conf. If q ∈ QA, accepts from here if accepts from every next conf.

Artur Je˙ z ( University of Wroclaw ) Equations over sets of natural numbers. December 13, 2007 21 / 27

slide-99
SLIDE 99

Alternating Turing machines

Tape alphabet Γ, set of states Q = QE ∪ QA ∪ {qacc}. Transition function δ : Q × Γ → 2Q×Γ×{←,↓,→}. If q = qacc, accepts from here. If q ∈ QE, accepts from here if accepts from some next conf. If q ∈ QA, accepts from here if accepts from every next conf.

Theorem (A. Chandra, D. Kozen, L. Stockmeyer 1981)

APSPACE = EXPTIME APTIME = PSPACE

Artur Je˙ z ( University of Wroclaw ) Equations over sets of natural numbers. December 13, 2007 21 / 27

slide-100
SLIDE 100

Idea of encoding

Problem

How to encode a configuration?

Artur Je˙ z ( University of Wroclaw ) Equations over sets of natural numbers. December 13, 2007 22 / 27

slide-101
SLIDE 101

Idea of encoding

Problem

How to encode a configuration?

Idea

Arithmetization of a configuration

Artur Je˙ z ( University of Wroclaw ) Equations over sets of natural numbers. December 13, 2007 22 / 27

slide-102
SLIDE 102

Idea of encoding

Problem

How to encode a configuration?

Idea

Arithmetization of a configuration Define final accepting configurations

Artur Je˙ z ( University of Wroclaw ) Equations over sets of natural numbers. December 13, 2007 22 / 27

slide-103
SLIDE 103

Idea of encoding

Problem

How to encode a configuration?

Idea

Arithmetization of a configuration Define final accepting configurations Calculate previous accepting configurations

Artur Je˙ z ( University of Wroclaw ) Equations over sets of natural numbers. December 13, 2007 22 / 27

slide-104
SLIDE 104

Idea of encoding

Problem

How to encode a configuration?

Idea

Arithmetization of a configuration Define final accepting configurations Calculate previous accepting configurations Alternation is not a problem

Artur Je˙ z ( University of Wroclaw ) Equations over sets of natural numbers. December 13, 2007 22 / 27

slide-105
SLIDE 105

Idea of encoding

Problem

How to encode a configuration?

Idea

Arithmetization of a configuration Define final accepting configurations Calculate previous accepting configurations Alternation is not a problem Problem: numbers increase with every step, encodings not

Artur Je˙ z ( University of Wroclaw ) Equations over sets of natural numbers. December 13, 2007 22 / 27

slide-106
SLIDE 106

Idea of encoding

Problem

How to encode a configuration?

Idea

Arithmetization of a configuration Define final accepting configurations Calculate previous accepting configurations Alternation is not a problem Problem: numbers increase with every step, encodings not Solution: restricting the model and adding a counter

Artur Je˙ z ( University of Wroclaw ) Equations over sets of natural numbers. December 13, 2007 22 / 27

slide-107
SLIDE 107

Restrictions of the model

Circular tape.

Artur Je˙ z ( University of Wroclaw ) Equations over sets of natural numbers. December 13, 2007 23 / 27

slide-108
SLIDE 108

Restrictions of the model

Circular tape. Moving to the right at every step.

Artur Je˙ z ( University of Wroclaw ) Equations over sets of natural numbers. December 13, 2007 23 / 27

slide-109
SLIDE 109

Restrictions of the model

Circular tape. Moving to the right at every step. Next configuration:

Artur Je˙ z ( University of Wroclaw ) Equations over sets of natural numbers. December 13, 2007 23 / 27

slide-110
SLIDE 110

Restrictions of the model

Circular tape. Moving to the right at every step. Next configuration: (q′, a′) ∈ δ(q, a)

Artur Je˙ z ( University of Wroclaw ) Equations over sets of natural numbers. December 13, 2007 23 / 27

slide-111
SLIDE 111

Restrictions of the model

Circular tape. Moving to the right at every step. Next configuration: (q′, a′) ∈ δ(q, a)

Artur Je˙ z ( University of Wroclaw ) Equations over sets of natural numbers. December 13, 2007 23 / 27

slide-112
SLIDE 112

Restrictions of the model

Circular tape. Moving to the right at every step. Next configuration:

Artur Je˙ z ( University of Wroclaw ) Equations over sets of natural numbers. December 13, 2007 23 / 27

slide-113
SLIDE 113

Restrictions of the model

Circular tape. Moving to the right at every step. Next configuration:

Remark

Still APSPACE = EXPTIME.

Artur Je˙ z ( University of Wroclaw ) Equations over sets of natural numbers. December 13, 2007 23 / 27

slide-114
SLIDE 114

Arithmetization of alternating Turing machines

Tape alphabet Γ = {a0, . . . , a|Γ|−1}.

Artur Je˙ z ( University of Wroclaw ) Equations over sets of natural numbers. December 13, 2007 24 / 27

slide-115
SLIDE 115

Arithmetization of alternating Turing machines

Tape alphabet Γ = {a0, . . . , a|Γ|−1}. Let k = 8 + |Q| + max(|Q| + 7, |Γ|), let Σ = {0, . . . , k − 1}.

Artur Je˙ z ( University of Wroclaw ) Equations over sets of natural numbers. December 13, 2007 24 / 27

slide-116
SLIDE 116

Arithmetization of alternating Turing machines

Tape alphabet Γ = {a0, . . . , a|Γ|−1}. Let k = 8 + |Q| + max(|Q| + 7, |Γ|), let Σ = {0, . . . , k − 1}. · : Q ∪ Γ → Σ.

Artur Je˙ z ( University of Wroclaw ) Equations over sets of natural numbers. December 13, 2007 24 / 27

slide-117
SLIDE 117

Arithmetization of alternating Turing machines

Tape alphabet Γ = {a0, . . . , a|Γ|−1}. Let k = 8 + |Q| + max(|Q| + 7, |Γ|), let Σ = {0, . . . , k − 1}. · : Q ∪ Γ → Σ.

◮ qi = 7 + i for qi ∈ Q. Artur Je˙ z ( University of Wroclaw ) Equations over sets of natural numbers. December 13, 2007 24 / 27

slide-118
SLIDE 118

Arithmetization of alternating Turing machines

Tape alphabet Γ = {a0, . . . , a|Γ|−1}. Let k = 8 + |Q| + max(|Q| + 7, |Γ|), let Σ = {0, . . . , k − 1}. · : Q ∪ Γ → Σ.

◮ qi = 7 + i for qi ∈ Q. ◮ aj = 7 + |Q| + j for ai ∈ Γ, Artur Je˙ z ( University of Wroclaw ) Equations over sets of natural numbers. December 13, 2007 24 / 27

slide-119
SLIDE 119

Arithmetization of alternating Turing machines

Tape alphabet Γ = {a0, . . . , a|Γ|−1}. Let k = 8 + |Q| + max(|Q| + 7, |Γ|), let Σ = {0, . . . , k − 1}. · : Q ∪ Γ → Σ.

◮ qi = 7 + i for qi ∈ Q. ◮ aj = 7 + |Q| + j for ai ∈ Γ,

Instantaneous description:

Artur Je˙ z ( University of Wroclaw ) Equations over sets of natural numbers. December 13, 2007 24 / 27

slide-120
SLIDE 120

Arithmetization of alternating Turing machines

Tape alphabet Γ = {a0, . . . , a|Γ|−1}. Let k = 8 + |Q| + max(|Q| + 7, |Γ|), let Σ = {0, . . . , k − 1}. · : Q ∪ Γ → Σ.

◮ qi = 7 + i for qi ∈ Q. ◮ aj = 7 + |Q| + j for ai ∈ Γ,

Instantaneous description:

◮ Tape containing ai1 . . . ain Artur Je˙ z ( University of Wroclaw ) Equations over sets of natural numbers. December 13, 2007 24 / 27

slide-121
SLIDE 121

Arithmetization of alternating Turing machines

Tape alphabet Γ = {a0, . . . , a|Γ|−1}. Let k = 8 + |Q| + max(|Q| + 7, |Γ|), let Σ = {0, . . . , k − 1}. · : Q ∪ Γ → Σ.

◮ qi = 7 + i for qi ∈ Q. ◮ aj = 7 + |Q| + j for ai ∈ Γ,

Instantaneous description:

◮ Tape containing ai1 . . . ain ◮ In state q over aij. Artur Je˙ z ( University of Wroclaw ) Equations over sets of natural numbers. December 13, 2007 24 / 27

slide-122
SLIDE 122

Arithmetization of alternating Turing machines

Tape alphabet Γ = {a0, . . . , a|Γ|−1}. Let k = 8 + |Q| + max(|Q| + 7, |Γ|), let Σ = {0, . . . , k − 1}. · : Q ∪ Γ → Σ.

◮ qi = 7 + i for qi ∈ Q. ◮ aj = 7 + |Q| + j for ai ∈ Γ,

Instantaneous description:

◮ Tape containing ai1 . . . ain ◮ In state q over aij. ◮ At most r rotations over the tape, with r = ℓ

i=0 2ici, ci ∈ {0, 1}.

Artur Je˙ z ( University of Wroclaw ) Equations over sets of natural numbers. December 13, 2007 24 / 27

slide-123
SLIDE 123

Arithmetization of alternating Turing machines

Tape alphabet Γ = {a0, . . . , a|Γ|−1}. Let k = 8 + |Q| + max(|Q| + 7, |Γ|), let Σ = {0, . . . , k − 1}. · : Q ∪ Γ → Σ.

◮ qi = 7 + i for qi ∈ Q. ◮ aj = 7 + |Q| + j for ai ∈ Γ,

Instantaneous description:

◮ Tape containing ai1 . . . ain ◮ In state q over aij. ◮ At most r rotations over the tape, with r = ℓ

i=0 2ici, ci ∈ {0, 1}.

As a number in base-k notation: 1cℓ−1 . . . c1c0

  • counter

55 0ai1 . . . 0aij−1qaij0aij+1 . . . 0ain0

  • tape

∈ Σ∗

Artur Je˙ z ( University of Wroclaw ) Equations over sets of natural numbers. December 13, 2007 24 / 27

slide-124
SLIDE 124

Arithmetization of alternating Turing machines

Tape alphabet Γ = {a0, . . . , a|Γ|−1}. Let k = 8 + |Q| + max(|Q| + 7, |Γ|), let Σ = {0, . . . , k − 1}. · : Q ∪ Γ → Σ.

◮ qi = 7 + i for qi ∈ Q. ◮ aj = 7 + |Q| + j for ai ∈ Γ,

Instantaneous description:

◮ Tape containing ai1 . . . ain ◮ In state q over aij. ◮ At most r rotations over the tape, with r = ℓ

i=0 2ici, ci ∈ {0, 1}.

As a number in base-k notation: 1cℓ−1 . . . c1c0

  • counter

55 0ai1 . . . 0aij−1qaij0aij+1 . . . 0ain0

  • tape

∈ Σ∗ Decreases at every step of computation.

Artur Je˙ z ( University of Wroclaw ) Equations over sets of natural numbers. December 13, 2007 24 / 27

slide-125
SLIDE 125

Constructing equations: lower level

Moveq′,a′,q,a(X): transition of the ATM.

Artur Je˙ z ( University of Wroclaw ) Equations over sets of natural numbers. December 13, 2007 25 / 27

slide-126
SLIDE 126

Constructing equations: lower level

Moveq′,a′,q,a(X): transition of the ATM. Moveq′,a′,q,a(X) contains all IDs 1cℓ−1 . . . c1c0550ai1 . . . 0aij−1qa0aij+1 . . . 0ain0, for which

Artur Je˙ z ( University of Wroclaw ) Equations over sets of natural numbers. December 13, 2007 25 / 27

slide-127
SLIDE 127

Constructing equations: lower level

Moveq′,a′,q,a(X): transition of the ATM. Moveq′,a′,q,a(X) contains all IDs 1cℓ−1 . . . c1c0550ai1 . . . 0aij−1qa0aij+1 . . . 0ain0, for which 1cℓ−1 . . . c1c0550ai1 . . . 0aij−10a′q′aij+1 . . . 0ain0 ∈ X

Artur Je˙ z ( University of Wroclaw ) Equations over sets of natural numbers. December 13, 2007 25 / 27

slide-128
SLIDE 128

Constructing equations: lower level

Moveq′,a′,q,a(X): transition of the ATM. Moveq′,a′,q,a(X) contains all IDs 1cℓ−1 . . . c1c0550ai1 . . . 0aij−1qa0aij+1 . . . 0ain0, for which 1cℓ−1 . . . c1c0550ai1 . . . 0aij−10a′q′aij+1 . . . 0ain0 ∈ X Equation: Moveq,a,q′,a′(X) = (X ∩ Counter 55 Tapeq′a′) ⊞

  • qa0 ⊟ a′q′
  • (00)∗

∩ Counter 55 Tapeaq

Artur Je˙ z ( University of Wroclaw ) Equations over sets of natural numbers. December 13, 2007 25 / 27

slide-129
SLIDE 129

Constructing equations: upper level

X = Final ∪ Step(X) ∪

  • Y ∩ Counter 55 Tape
  • Y = Jump(X) ∪ Carry(Y )

Final: the set of accepting configurations.

Artur Je˙ z ( University of Wroclaw ) Equations over sets of natural numbers. December 13, 2007 26 / 27

slide-130
SLIDE 130

Constructing equations: upper level

X = Final ∪ Step(X) ∪

  • Y ∩ Counter 55 Tape
  • Y = Jump(X) ∪ Carry(Y )

Final: the set of accepting configurations. Counter 55 Tape: the set of valid IDs.

Artur Je˙ z ( University of Wroclaw ) Equations over sets of natural numbers. December 13, 2007 26 / 27

slide-131
SLIDE 131

Constructing equations: upper level

X = Final ∪ Step(X) ∪

  • Y ∩ Counter 55 Tape
  • Y = Jump(X) ∪ Carry(Y )

Final: the set of accepting configurations. Counter 55 Tape: the set of valid IDs. Step(X) = {n | ∃m ∈ X : m ⊢ n}: to the next square.

Artur Je˙ z ( University of Wroclaw ) Equations over sets of natural numbers. December 13, 2007 26 / 27

slide-132
SLIDE 132

Constructing equations: upper level

X = Final ∪ Step(X) ∪

  • Y ∩ Counter 55 Tape
  • Y = Jump(X) ∪ Carry(Y )

Final: the set of accepting configurations. Counter 55 Tape: the set of valid IDs. Step(X) = {n | ∃m ∈ X : m ⊢ n}: to the next square. Jump(X) = {n | ∃m ∈ X : m ⊢′ n}: to the first symbol.

Artur Je˙ z ( University of Wroclaw ) Equations over sets of natural numbers. December 13, 2007 26 / 27

slide-133
SLIDE 133

Constructing equations: upper level

X = Final ∪ Step(X) ∪

  • Y ∩ Counter 55 Tape
  • Y = Jump(X) ∪ Carry(Y )

Final: the set of accepting configurations. Counter 55 Tape: the set of valid IDs. Step(X) = {n | ∃m ∈ X : m ⊢ n}: to the next square. Jump(X) = {n | ∃m ∈ X : m ⊢′ n}: to the first symbol. Carry(X): processing the carry in the counter.

Artur Je˙ z ( University of Wroclaw ) Equations over sets of natural numbers. December 13, 2007 26 / 27

slide-134
SLIDE 134

Constructing equations: upper level

X = Final ∪ Step(X) ∪

  • Y ∩ Counter 55 Tape
  • Y = Jump(X) ∪ Carry(Y )

Final: the set of accepting configurations. Counter 55 Tape: the set of valid IDs. Step(X) = {n | ∃m ∈ X : m ⊢ n}: to the next square. Jump(X) = {n | ∃m ∈ X : m ⊢′ n}: to the first symbol. Carry(X): processing the carry in the counter. Step(X) =

  • q∈QE ,a∈Γ
  • (q′,a′)∈δ(q,a)

Moveq′,a′,q,a(X)

Artur Je˙ z ( University of Wroclaw ) Equations over sets of natural numbers. December 13, 2007 26 / 27

slide-135
SLIDE 135

Constructing equations: upper level

X = Final ∪ Step(X) ∪

  • Y ∩ Counter 55 Tape
  • Y = Jump(X) ∪ Carry(Y )

Final: the set of accepting configurations. Counter 55 Tape: the set of valid IDs. Step(X) = {n | ∃m ∈ X : m ⊢ n}: to the next square. Jump(X) = {n | ∃m ∈ X : m ⊢′ n}: to the first symbol. Carry(X): processing the carry in the counter. Step(X) =

  • q∈QE ,a∈Γ
  • (q′,a′)∈δ(q,a)

Moveq′,a′,q,a(X)

  • q∈QA,a∈Γ
  • (q′,a′)∈δ(q,a)

Moveq′,a′,q,a(X)

  • Artur Je˙

z ( University of Wroclaw ) Equations over sets of natural numbers. December 13, 2007 26 / 27

slide-136
SLIDE 136

Conclusion

A basic mathematical object.

Artur Je˙ z ( University of Wroclaw ) Equations over sets of natural numbers. December 13, 2007 27 / 27

slide-137
SLIDE 137

Conclusion

A basic mathematical object. Using methods of theoretical computer science.

Artur Je˙ z ( University of Wroclaw ) Equations over sets of natural numbers. December 13, 2007 27 / 27

slide-138
SLIDE 138

Conclusion

A basic mathematical object. Using methods of theoretical computer science. High expressive power and hard recognition

Artur Je˙ z ( University of Wroclaw ) Equations over sets of natural numbers. December 13, 2007 27 / 27

slide-139
SLIDE 139

Conclusion

A basic mathematical object. Using methods of theoretical computer science. High expressive power and hard recognition Any number-theoretic methods?

Artur Je˙ z ( University of Wroclaw ) Equations over sets of natural numbers. December 13, 2007 27 / 27

slide-140
SLIDE 140

Conclusion

A basic mathematical object. Using methods of theoretical computer science. High expressive power and hard recognition Any number-theoretic methods?

Problem

Construct a set not representable by equations with {∪, ∩, ⊞}.

Artur Je˙ z ( University of Wroclaw ) Equations over sets of natural numbers. December 13, 2007 27 / 27