Towards Register Minimisation of Streaming String Transducers - - PowerPoint PPT Presentation

towards register minimisation of streaming string
SMART_READER_LITE
LIVE PREVIEW

Towards Register Minimisation of Streaming String Transducers - - PowerPoint PPT Presentation

Towards Register Minimisation of Streaming String Transducers Pierre-Alain Reynier LIS, Aix-Marseille Universit e & CNRS Transducers Automata accept objects / Transducers transform objects A transduction is a function (or even a


slide-1
SLIDE 1

Towards Register Minimisation

  • f Streaming String Transducers

Pierre-Alain Reynier LIS, Aix-Marseille Universit´ e & CNRS

slide-2
SLIDE 2

Transducers

Automata accept objects / Transducers transform objects A transduction is a function (or even a relation) from words to words ➜ In this talk, we focus on functions Examples: ➜ Erase: “Oxford” → “xfrd” ➜ Last: “Oxford” → “dddddd” ➜ Reverse: “Oxford” → “drofxO” ➜ Copy: “Oxford” → “OxfordOxford” ➜ Replace: “Oxford#I love $1” → “I love Oxford” ➜ Sort: “Oxford” → “dfoOrx”

Pierre-Alain Reynier (LIS, AMU & CNRS) Towards Register Minimisation of SST Oxford, Feb 22, 2018 2 / 25

slide-3
SLIDE 3

Transducers

Some applications: language and speech processing model-checking infinite state-space systems verification of web sanitizers string pattern matching XML transformations (nested word) model for recursive programs (nested word)

Pierre-Alain Reynier (LIS, AMU & CNRS) Towards Register Minimisation of SST Oxford, Feb 22, 2018 3 / 25

slide-4
SLIDE 4

(One/Two-way) finite state transducers

Example (A transducer T)

⊢|ǫ a|a b|ǫ ⊣|ǫ Semantics T: Erase : ⊢w⊣ → a#a(w), with w ∈ {a, b}∗ Non-determinism: semantics is a relation

Pierre-Alain Reynier (LIS, AMU & CNRS) Towards Register Minimisation of SST Oxford, Feb 22, 2018 4 / 25

slide-5
SLIDE 5

(One/Two-way) finite state transducers

Example (A transducer T)

⊢|ǫ a|a b|ǫ ⊣|ǫ Semantics T: Erase : ⊢w⊣ → a#a(w), with w ∈ {a, b}∗ Non-determinism: semantics is a relation A transducer is: functional if it realizes a function deterministic if the underlying automaton is deterministic Classes: det1W, fun1W, 1W ➜ Too low expressive power (Reverse, Copy, Replace, Sort)

Pierre-Alain Reynier (LIS, AMU & CNRS) Towards Register Minimisation of SST Oxford, Feb 22, 2018 4 / 25

slide-6
SLIDE 6

(One/Two-way) finite state transducers

Example (A transducer T)

⊢|ǫ,+1 a|a,+1 b|ǫ,+1 ⊣|ǫ,-1 a|ǫ,-1 b|b,-1 ⊢|ǫ,0 Semantics T: Sort : ⊢w⊣ → a#a(w)b#b(w), with w ∈ {a, b}∗ Non-determinism: semantics is a relation A transducer is: functional if it realizes a function deterministic if the underlying automaton is deterministic Classes: det1W, fun1W, 1W, det2W, fun2W, 2W

Pierre-Alain Reynier (LIS, AMU & CNRS) Towards Register Minimisation of SST Oxford, Feb 22, 2018 4 / 25

slide-7
SLIDE 7

Regular Word Functions

[EH01]

fun2W =det2W

Pierre-Alain Reynier (LIS, AMU & CNRS) Towards Register Minimisation of SST Oxford, Feb 22, 2018 5 / 25

slide-8
SLIDE 8

Regular Word Functions

[EH01]

fun2W =det2W MSO-definable Transducers

[EH01]

(` a la Courcelle)

Pierre-Alain Reynier (LIS, AMU & CNRS) Towards Register Minimisation of SST Oxford, Feb 22, 2018 5 / 25

slide-9
SLIDE 9

Regular Word Functions

[EH01]

fun2W =det2W MSO-definable Transducers

[EH01]

copyless Streaming String Transducers (SST)

[AC10]

Pierre-Alain Reynier (LIS, AMU & CNRS) Towards Register Minimisation of SST Oxford, Feb 22, 2018 5 / 25

slide-10
SLIDE 10

Regular Word Functions

[EH01]

fun2W =det2W MSO-definable Transducers

[EH01]

copyless Streaming String Transducers (SST)

[AC10]

Regular Functions Expressions

[AFR14] [BR18]

Pierre-Alain Reynier (LIS, AMU & CNRS) Towards Register Minimisation of SST Oxford, Feb 22, 2018 5 / 25

slide-11
SLIDE 11

Regular Word Functions

[EH01]

fun2W =det2W MSO-definable Transducers

[EH01]

copyless Streaming String Transducers (SST)

[AC10]

Regular Functions Expressions

[AFR14] [BR18]

closed under composition regular languages are preserved by inverse image functionality and equivalence are decidable

Pierre-Alain Reynier (LIS, AMU & CNRS) Towards Register Minimisation of SST Oxford, Feb 22, 2018 5 / 25

slide-12
SLIDE 12

Streaming String Transducers [AC10]

1W deterministic autom. + registers Register updates: X:=u.Y.v X:=Y.Z X,Y,Z: registers u,v: words in Σ∗ XaXb ⊢| a| Xa := Xa.a Xb := Xb b| Xa := Xa Xb := Xb.b ⊣| ⊢w⊣ → a#a(w)b#b(w)

Pierre-Alain Reynier (LIS, AMU & CNRS) Towards Register Minimisation of SST Oxford, Feb 22, 2018 6 / 25

slide-13
SLIDE 13

Streaming String Transducers [AC10]

1W deterministic autom. + registers Register updates: X:=u.Y.v X:=Y.Z X,Y,Z: registers u,v: words in Σ∗ XaXb ⊢| a| Xa := Xa.a Xb := Xb b| Xa := Xa Xb := Xb.b ⊣| ⊢w⊣ → a#a(w)b#b(w) Expressiveness results : det1W ≡ 1-register appending SST X:=X.a

Pierre-Alain Reynier (LIS, AMU & CNRS) Towards Register Minimisation of SST Oxford, Feb 22, 2018 6 / 25

slide-14
SLIDE 14

Streaming String Transducers [AC10]

1W deterministic autom. + registers Register updates: X:=u.Y.v X:=Y.Z X,Y,Z: registers u,v: words in Σ∗ XaXb ⊢| a| Xa := Xa.a Xb := Xb b| Xa := Xa Xb := Xb.b ⊣| ⊢w⊣ → a#a(w)b#b(w) Expressiveness results : det1W ≡ 1-register appending SST X:=X.a fun1W ≡ appending SST X:=Y.a

Pierre-Alain Reynier (LIS, AMU & CNRS) Towards Register Minimisation of SST Oxford, Feb 22, 2018 6 / 25

slide-15
SLIDE 15

Streaming String Transducers [AC10]

1W deterministic autom. + registers Register updates: X:=u.Y.v X:=Y.Z X,Y,Z: registers u,v: words in Σ∗ XaXb ⊢| a| Xa := Xa.a Xb := Xb b| Xa := Xa Xb := Xb.b ⊣| ⊢w⊣ → a#a(w)b#b(w) Expressiveness results : det1W ≡ 1-register appending SST X:=X.a fun1W ≡ appending SST X:=Y.a fun2W ≡ copyless SST (X,Y):=(X,X) is forbidden

Pierre-Alain Reynier (LIS, AMU & CNRS) Towards Register Minimisation of SST Oxford, Feb 22, 2018 6 / 25

slide-16
SLIDE 16

Examples of SST

X σ|X := σ.X

pa

Xa

pb

Xb b|up a|up a|up b|up

up :

  • Xa := Xa.a

Xb := Xb.b

XX σ|X := X.σ

σ = #| X := X.σ Y := ε

Y

#| σ = $1| X := X Y := Y σ $1|

  • X := X

Y := YX

Pierre-Alain Reynier (LIS, AMU & CNRS) Towards Register Minimisation of SST Oxford, Feb 22, 2018 7 / 25

slide-17
SLIDE 17

Register Minimisation Problem for SST

Motivations: Streaming and simplification of models minimisation/determinisation of automata normal form learning 2way: reduce number of passes

Register Minimisation Problem for class S of SST

Input: T ∈ S and k ∈ N Question: Does there exist T ′ ∈ S with k registers s.t. T ≡ T ′? Related works

[AR13] Additive Cost Register Automata

X:=Y+c, c∈ Z

[BGMP16] concatenation-free funNSST

X:=uYv

Pierre-Alain Reynier (LIS, AMU & CNRS) Towards Register Minimisation of SST Oxford, Feb 22, 2018 8 / 25

slide-18
SLIDE 18

Classes of Functions

Regular functions det2W=copyless SST=MSOT Copy Reverse

Pierre-Alain Reynier (LIS, AMU & CNRS) Towards Register Minimisation of SST Oxford, Feb 22, 2018 9 / 25

slide-19
SLIDE 19

Classes of Functions

Regular functions det2W=copyless SST=MSOT Copy Reverse Rational functions fun1W=appending SST X:=Y.u Last

Pierre-Alain Reynier (LIS, AMU & CNRS) Towards Register Minimisation of SST Oxford, Feb 22, 2018 9 / 25

slide-20
SLIDE 20

Classes of Functions

Regular functions det2W=copyless SST=MSOT Copy Reverse Rational functions fun1W=appending SST X:=Y.u Last Sequential functions det1W=1-app.SST Erase

Pierre-Alain Reynier (LIS, AMU & CNRS) Towards Register Minimisation of SST Oxford, Feb 22, 2018 9 / 25

slide-21
SLIDE 21

Classes of Functions

Regular functions det2W=copyless SST=MSOT Copy Reverse Rational functions fun1W=appending SST X:=Y.u Last Sequential functions det1W=1-app.SST Erase Multi-seq. functions X:=X.u

Pierre-Alain Reynier (LIS, AMU & CNRS) Towards Register Minimisation of SST Oxford, Feb 22, 2018 9 / 25

slide-22
SLIDE 22

In this talk

Rational functions (X:=Y.u) ➜ [LICS16] with L. Daviaud and J.M. Talbot Multi-sequential functions (X:=X.u) ➜ [FoSSaCS17] with L. Daviaud, I. Jecker and D. Villevalois

Pierre-Alain Reynier (LIS, AMU & CNRS) Towards Register Minimisation of SST Oxford, Feb 22, 2018 10 / 25

slide-23
SLIDE 23

Overview

1

Introduction

2

Rational functions (X:=Y.u)

3

Multi-sequential functions (X:=X.u)

4

Conclusion

slide-24
SLIDE 24

Overview

1

Introduction

2

Rational functions (X:=Y.u)

3

Multi-sequential functions (X:=X.u)

4

Conclusion

slide-25
SLIDE 25

Rational functions and appending SST

Appending SST: only updates X:=Y.u Facts: appending SST = fun1W appending SST fun1W is polynomial (guess the register) appending SST with 1 register = det1W

Register minimisation for appending SST

Input: an appending SST T and k ∈ N Question: does there exist an app. SST T ′ with k registers s.t. T ≡ T ′? ➜ for k = 1, our problem is the det1W-definability of fun1W

Pierre-Alain Reynier (LIS, AMU & CNRS) Towards Register Minimisation of SST Oxford, Feb 22, 2018 11 / 25

slide-26
SLIDE 26

From rational functions to sequential ones

Sequentiality Problem [Choffrut77]

Input: a fun1WT Question: does there exist an equivalent det1W? Standard technique: subset construction starting from the set of initial states.

  • utput longest common prefix

store the unproduced outputs in the configuration Configurations of the form {(p, a), (q, ε), (s, bb)}

Pierre-Alain Reynier (LIS, AMU & CNRS) Towards Register Minimisation of SST Oxford, Feb 22, 2018 12 / 25

slide-27
SLIDE 27

From rational functions to sequential ones

Sequentiality Problem [Choffrut77]

Input: a fun1WT Question: does there exist an equivalent det1W? Standard technique: subset construction starting from the set of initial states.

  • utput longest common prefix

store the unproduced outputs in the configuration Configurations of the form {(p, a), (q, ε), (s, bb)} Issue: termination (bound the size of unproduced outputs)

Pierre-Alain Reynier (LIS, AMU & CNRS) Towards Register Minimisation of SST Oxford, Feb 22, 2018 12 / 25

slide-28
SLIDE 28

An example

Last on Σ3

i p1 p2 p3 q1 q2 q3

σ|a σ|a a|a σ|b σ|b b|b

Pierre-Alain Reynier (LIS, AMU & CNRS) Towards Register Minimisation of SST Oxford, Feb 22, 2018 13 / 25

slide-29
SLIDE 29

An example

Last on Σ3

i p1 p2 p3 q1 q2 q3

σ|a σ|a a|a σ|b σ|b b|b

{(i, ε)} (p1, a) (q1, b)

  • (p2, aa)

(q2, bb)

  • {(p3, ε)}

{(q3, ε)}

σ|ε σ|ε a|aaa b|bbb

Pierre-Alain Reynier (LIS, AMU & CNRS) Towards Register Minimisation of SST Oxford, Feb 22, 2018 13 / 25

slide-30
SLIDE 30

Twinning Property [Choffrut77]

We define: delay(u, v) = lcp(u, v)−1.(u, v) Example: lcp(aaa, aab) = aa delay(aaa, aab) = (a, b)

u|w0 u|w1 v|w′ v|w′

1

we have delay(w0, w1) = delay(w0w ′

0, w1w ′ 1)

For all situations like:

Pierre-Alain Reynier (LIS, AMU & CNRS) Towards Register Minimisation of SST Oxford, Feb 22, 2018 14 / 25

slide-31
SLIDE 31

Twinning Property [Choffrut77]

We define: delay(u, v) = lcp(u, v)−1.(u, v) Example: lcp(aaa, aab) = aa delay(aaa, aab) = (a, b)

u|w0 u|w1 v|w′ v|w′

1

we have delay(w0, w1) = delay(w0w ′

0, w1w ′ 1)

For all situations like:

T | = Twinning Property = ⇒ ∀(p, x) ∈ subset constr., |x| ≤ n2M

Theorem ([Choffrut77])

T | = Twinning Property ⇐ ⇒ There exists an equivalent det1W

Pierre-Alain Reynier (LIS, AMU & CNRS) Towards Register Minimisation of SST Oxford, Feb 22, 2018 14 / 25

slide-32
SLIDE 32

Twinning Property [Choffrut77]

We define: delay(u, v) = lcp(u, v)−1.(u, v) Example: lcp(aaa, aab) = aa delay(aaa, aab) = (a, b)

u|w0 u|w1 v|w′ v|w′

1

we have delay(w0, w1) = delay(w0w ′

0, w1w ′ 1)

For all situations like:

T | = Twinning Property = ⇒ ∀(p, x) ∈ subset constr., |x| ≤ n2M

Theorem ([Choffrut77])

T | = Twinning Property ⇐ ⇒ There exists an equivalent det1W

Theorem ([WK95])

Twinning Property can be decided in PTime.

Pierre-Alain Reynier (LIS, AMU & CNRS) Towards Register Minimisation of SST Oxford, Feb 22, 2018 14 / 25

slide-33
SLIDE 33

Register minimisation using Twinning Property

Our objective: Characterize when a fun1W can be expressed by an appending SST with k registers. Twinning property characterizes the fact that runs (on the same input) remain close. Intuition: 2 reg. needed if there are 2 runs with arbitrarily large delays k + 1 reg. needed if there are k + 1 runs with pairwise arb. large delays k registers are sufficient if for every k + 1 runs, 2 of them remain close

Pierre-Alain Reynier (LIS, AMU & CNRS) Towards Register Minimisation of SST Oxford, Feb 22, 2018 15 / 25

slide-34
SLIDE 34

Register minimisation using Twinning Property

Our objective: Characterize when a fun1W can be expressed by an appending SST with k registers. Twinning property characterizes the fact that runs (on the same input) remain close. Intuition: 2 reg. needed if there are 2 runs with arbitrarily large delays k + 1 reg. needed if there are k + 1 runs with pairwise arb. large delays k registers are sufficient if for every k + 1 runs, 2 of them remain close For every k + 1 runs, 2 of them remain close

Pierre-Alain Reynier (LIS, AMU & CNRS) Towards Register Minimisation of SST Oxford, Feb 22, 2018 15 / 25

slide-35
SLIDE 35

Twinning Property of order k

u1|w1,0 u2|w2,0 v1|w′

1,0

v2|w′

2,0

vk|w′

k,0

u1|w1,1 u2|w2,1 v1|w′

1,1

v2|w′

2,1

vk|w′

k,1

u1|w1,k u2|w2,k v1|w′

1,k

v2|w′

2,k

vk|w′

k,k

For all situations like: k synchronised loops k + 1 runs there are two runs 0 ≤ i < j ≤ k s.t. for every loop ℓ, we have delay(w1,i . . . wℓ,i, w1,j . . . wℓ,j) = delay(w1,i . . . wℓ,iw ′

ℓ,i, w1,j . . . wℓ,jw ′ ℓ,j) Pierre-Alain Reynier (LIS, AMU & CNRS) Towards Register Minimisation of SST Oxford, Feb 22, 2018 16 / 25

slide-36
SLIDE 36

Register minimisation using Twinning Property

Lemma

If a fun1W satisfies the TP of order k, then from any set of runs on the same input word, one can extract k runs such that every run is ”close” to

  • ne of these k runs.

”close”: (p, x) with |x| ≤ nk+1M

Pierre-Alain Reynier (LIS, AMU & CNRS) Towards Register Minimisation of SST Oxford, Feb 22, 2018 17 / 25

slide-37
SLIDE 37

Register minimisation using Twinning Property

Lemma

If a fun1W satisfies the TP of order k, then from any set of runs on the same input word, one can extract k runs such that every run is ”close” to

  • ne of these k runs.

”close”: (p, x) with |x| ≤ nk+1M

Theorem

A fun1W is definable by a k-app. SST iff it satisfies the TP of order k TP of order k can be decided in PSpace (k given in unary)

Pierre-Alain Reynier (LIS, AMU & CNRS) Towards Register Minimisation of SST Oxford, Feb 22, 2018 17 / 25

slide-38
SLIDE 38

Register minimisation using Twinning Property

Lemma

If a fun1W satisfies the TP of order k, then from any set of runs on the same input word, one can extract k runs such that every run is ”close” to

  • ne of these k runs.

”close”: (p, x) with |x| ≤ nk+1M

Theorem

A fun1W is definable by a k-app. SST iff it satisfies the TP of order k TP of order k can be decided in PSpace (k given in unary)

Corollary

The register minimisation problem for appending SST is PSpace-complete.

Pierre-Alain Reynier (LIS, AMU & CNRS) Towards Register Minimisation of SST Oxford, Feb 22, 2018 17 / 25

slide-39
SLIDE 39

Example

How many registers for the following function? Last2 : u1#u2 → Last(u1)#Last(u2) σ|b σ|b b|b σ|a σ|a a|a #|# #|# σ|b σ|b b|b σ|a σ|a a|a

Pierre-Alain Reynier (LIS, AMU & CNRS) Towards Register Minimisation of SST Oxford, Feb 22, 2018 18 / 25

slide-40
SLIDE 40

Example

How many registers for the following function? Last2 : u1#u2 → Last(u1)#Last(u2) σ|b σ|b b|b σ|a σ|a a|a #|# #|# σ|b σ|b b|b σ|a σ|a a|a Only 2 registers!

Pierre-Alain Reynier (LIS, AMU & CNRS) Towards Register Minimisation of SST Oxford, Feb 22, 2018 18 / 25

slide-41
SLIDE 41

Example

Last2 : u1#u2 → Last(u1)#Last(u2)

a b

b|up a|up a|up b|up Xa Xb b|up a|up a|up b|up # Xa := Xb# Xb := Xb# # Xa := Xa# Xb := Xa#

Pierre-Alain Reynier (LIS, AMU & CNRS) Towards Register Minimisation of SST Oxford, Feb 22, 2018 18 / 25

slide-42
SLIDE 42

Overview

1

Introduction

2

Rational functions (X:=Y.u)

3

Multi-sequential functions (X:=X.u)

4

Conclusion

slide-43
SLIDE 43

Multi-sequential functions

Definition ( [CS86])

Multi-sequential functions are defined as functions that can be realized as finite union of sequential transducers. ➜ allows a parallel evaluation in a streaming scenario Examples: Last on Σ = {a, b} is multi-sequential: split Σ+ as Σ∗a ⊎ Σ∗b

Pierre-Alain Reynier (LIS, AMU & CNRS) Towards Register Minimisation of SST Oxford, Feb 22, 2018 19 / 25

slide-44
SLIDE 44

Multi-sequential functions

Definition ( [CS86])

Multi-sequential functions are defined as functions that can be realized as finite union of sequential transducers. ➜ allows a parallel evaluation in a streaming scenario Examples: Last on Σ = {a, b} is multi-sequential: split Σ+ as Σ∗a ⊎ Σ∗b Last2 : u1#u2 → Last(u1)#Last(u2) is multi-sequential: split the domain according to last(u1), last(u2) ∈ {a, b}

Pierre-Alain Reynier (LIS, AMU & CNRS) Towards Register Minimisation of SST Oxford, Feb 22, 2018 19 / 25

slide-45
SLIDE 45

Multi-sequential functions

Definition ( [CS86])

Multi-sequential functions are defined as functions that can be realized as finite union of sequential transducers. ➜ allows a parallel evaluation in a streaming scenario Examples: Last on Σ = {a, b} is multi-sequential: split Σ+ as Σ∗a ⊎ Σ∗b Last2 : u1#u2 → Last(u1)#Last(u2) is multi-sequential: split the domain according to last(u1), last(u2) ∈ {a, b} Last∗ : u1# . . . #un → Last(u1)# . . . #Last(un) is not multi-seq.

Pierre-Alain Reynier (LIS, AMU & CNRS) Towards Register Minimisation of SST Oxford, Feb 22, 2018 19 / 25

slide-46
SLIDE 46

Multi-sequential functions

Definition ( [CS86])

Multi-sequential functions are defined as functions that can be realized as finite union of sequential transducers.

Definition (Appending SST with independent registers)

Only updates X := Xu: ”No communication between threads”

Pierre-Alain Reynier (LIS, AMU & CNRS) Towards Register Minimisation of SST Oxford, Feb 22, 2018 19 / 25

slide-47
SLIDE 47

Multi-sequential functions

Definition ( [CS86])

Multi-sequential functions are defined as functions that can be realized as finite union of sequential transducers.

Definition (Appending SST with independent registers)

Only updates X := Xu: ”No communication between threads” Observations: Multi-sequential functions ≡ app. SST with independent registers size of the union = number of registers ➜ Register minimisation in this class ≡ Minimisation of size of the union

Pierre-Alain Reynier (LIS, AMU & CNRS) Towards Register Minimisation of SST Oxford, Feb 22, 2018 19 / 25

slide-48
SLIDE 48

Example

Last2 : u1#u2 → Last(u1)#Last(u2)

σ|b σ|b b|b σ|a σ|a a|a #|# #|# σ|b σ|b b|b σ|a σ|a a|a

➜ Requires 4 independent registers Registers cannot be reset!

Pierre-Alain Reynier (LIS, AMU & CNRS) Towards Register Minimisation of SST Oxford, Feb 22, 2018 20 / 25

slide-49
SLIDE 49

Branching twinning property of order k

u1,0|w1,0 u2,0|w2,0 v1,0|w′

1,0

v2,0|w′

2,0

vk,0|w′

k,0

u1,1|w1,1 u2,1|w2,1 v1,1|w′

1,1

v2,1|w′

2,1

vk,1|w′

k,1

u1,k|w1,k u2,k|w2,k v1,k|w′

1,k

v2,k|w′

2,k

vk,k|w′

k,k

For all situations like: k not synchronised loops k + 1 runs there are two runs 0 ≤ i < j ≤ k s.t. for every loop ℓ with same input words, we have delay(w1,i . . . wℓ,i, w1,j . . . wℓ,j) = delay(w1,i . . . wℓ,iw ′

ℓ,i, w1,j . . . wℓ,jw ′ ℓ,j) Pierre-Alain Reynier (LIS, AMU & CNRS) Towards Register Minimisation of SST Oxford, Feb 22, 2018 21 / 25

slide-50
SLIDE 50

Branching twinning property of order k

Tree representation of input words: u1 v1 u21 u22 v21 v22 u31 u32 u33 v31 v32 v33 u41 u42 u43 u44 u45 v41 v42 v43 v44 v45

Pierre-Alain Reynier (LIS, AMU & CNRS) Towards Register Minimisation of SST Oxford, Feb 22, 2018 21 / 25

slide-51
SLIDE 51

Branching twinning property of order k

Theorem

A fun1W is definable by a k-app. SST with independent registers iff it satisfies the BTP of order k. The BTP of order k is decidable in PSpace (k in unary).

Pierre-Alain Reynier (LIS, AMU & CNRS) Towards Register Minimisation of SST Oxford, Feb 22, 2018 22 / 25

slide-52
SLIDE 52

Branching twinning property of order k

Theorem

A fun1W is definable by a k-app. SST with independent registers iff it satisfies the BTP of order k. The BTP of order k is decidable in PSpace (k in unary).

Theorem

The register minimisation problem for appending SST with independent registers is PSpace-complete.

Pierre-Alain Reynier (LIS, AMU & CNRS) Towards Register Minimisation of SST Oxford, Feb 22, 2018 22 / 25

slide-53
SLIDE 53

Overview

1

Introduction

2

Rational functions (X:=Y.u)

3

Multi-sequential functions (X:=X.u)

4

Conclusion

slide-54
SLIDE 54

Summary

Regular functions det2W=copyless SST=MSOT Copy Reverse Rational functions fun1W=appending SST X:=Y.u det1W TP

Pierre-Alain Reynier (LIS, AMU & CNRS) Towards Register Minimisation of SST Oxford, Feb 22, 2018 23 / 25

slide-55
SLIDE 55

Summary

Regular functions det2W=copyless SST=MSOT Copy Reverse Rational functions fun1W=appending SST X:=Y.u det1W TP 2-app. SST TP of order 2

Pierre-Alain Reynier (LIS, AMU & CNRS) Towards Register Minimisation of SST Oxford, Feb 22, 2018 23 / 25

slide-56
SLIDE 56

Summary

Regular functions det2W=copyless SST=MSOT Copy Reverse Rational functions fun1W=appending SST X:=Y.u det1W TP 2-app. SST TP of order 2 k-app. SST: TP of order k

Pierre-Alain Reynier (LIS, AMU & CNRS) Towards Register Minimisation of SST Oxford, Feb 22, 2018 23 / 25

slide-57
SLIDE 57

Summary

Regular functions det2W=copyless SST=MSOT Copy Reverse Rational functions fun1W=appending SST X:=Y.u det1W TP 2-app. SST TP of order 2 k-app. SST: TP of order k 2-seq. BTP of

  • rder 2

Pierre-Alain Reynier (LIS, AMU & CNRS) Towards Register Minimisation of SST Oxford, Feb 22, 2018 23 / 25

slide-58
SLIDE 58

Summary

Regular functions det2W=copyless SST=MSOT Copy Reverse Rational functions fun1W=appending SST X:=Y.u det1W TP 2-app. SST TP of order 2 k-app. SST: TP of order k 2-seq. BTP of

  • rder 2

k-seq. BTP of

  • rder k

Pierre-Alain Reynier (LIS, AMU & CNRS) Towards Register Minimisation of SST Oxford, Feb 22, 2018 23 / 25

slide-59
SLIDE 59

Summary

Regular functions det2W=copyless SST=MSOT Copy Reverse Rational functions fun1W=appending SST X:=Y.u det1W TP 2-app. SST TP of order 2 k-app. SST: TP of order k 2-seq. BTP of

  • rder 2

k-seq. BTP of

  • rder k

Multi-seq. functions

Pierre-Alain Reynier (LIS, AMU & CNRS) Towards Register Minimisation of SST Oxford, Feb 22, 2018 23 / 25

slide-60
SLIDE 60

I did not present...

Alternative characterizations: bounded variation property Lipschitz property

Pierre-Alain Reynier (LIS, AMU & CNRS) Towards Register Minimisation of SST Oxford, Feb 22, 2018 24 / 25

slide-61
SLIDE 61

I did not present...

Alternative characterizations: bounded variation property Lipschitz property Functional finite-valued

Pierre-Alain Reynier (LIS, AMU & CNRS) Towards Register Minimisation of SST Oxford, Feb 22, 2018 24 / 25

slide-62
SLIDE 62

I did not present...

Alternative characterizations: bounded variation property Lipschitz property Functional finite-valued Extension to ”weak” weighted automata on semigroups: set semantics infinitary semigroup (αβγ = β = ⇒ |{αnβγn | n ∈ N}| = +∞) finitely generated semigroup

Pierre-Alain Reynier (LIS, AMU & CNRS) Towards Register Minimisation of SST Oxford, Feb 22, 2018 24 / 25

slide-63
SLIDE 63

Perspectives

Shift from rational to regular functions ➜ deal with both prepending and appending: X:=u.Y.v (on-going) ➜ deal with concatenation of registers Weighted automata: replace set semantics with other aggregations Extensions to infinite words, nested words

Pierre-Alain Reynier (LIS, AMU & CNRS) Towards Register Minimisation of SST Oxford, Feb 22, 2018 25 / 25

slide-64
SLIDE 64

Perspectives

Shift from rational to regular functions ➜ deal with both prepending and appending: X:=u.Y.v (on-going) ➜ deal with concatenation of registers Weighted automata: replace set semantics with other aggregations Extensions to infinite words, nested words

Thanks!

Pierre-Alain Reynier (LIS, AMU & CNRS) Towards Register Minimisation of SST Oxford, Feb 22, 2018 25 / 25

slide-65
SLIDE 65

Classes of Transductions

Regular functions det2W=copyless SST =MSOT Copy Reverse

Pierre-Alain Reynier (LIS, AMU & CNRS) Towards Register Minimisation of SST Oxford, Feb 22, 2018 25 / 25

slide-66
SLIDE 66

Classes of Transductions

Regular functions det2W=copyless SST =MSOT Copy Reverse Rational functions fun1W=appending SST (X:=Y.u) Last

Pierre-Alain Reynier (LIS, AMU & CNRS) Towards Register Minimisation of SST Oxford, Feb 22, 2018 25 / 25

slide-67
SLIDE 67

Classes of Transductions

Regular functions det2W=copyless SST =MSOT Copy Reverse Rational functions fun1W=appending SST (X:=Y.u) Last Rational relations 1W=appending NSST Subword u → {u′|u′ u}

Pierre-Alain Reynier (LIS, AMU & CNRS) Towards Register Minimisation of SST Oxford, Feb 22, 2018 25 / 25

slide-68
SLIDE 68

Classes of Transductions

Regular functions det2W=copyless SST =MSOT Copy Reverse Rational functions fun1W=appending SST (X:=Y.u) Last Rational relations 1W=appending NSST Subword u → {u′|u′ u} 2W Kleene Star u → u∗

Pierre-Alain Reynier (LIS, AMU & CNRS) Towards Register Minimisation of SST Oxford, Feb 22, 2018 25 / 25

slide-69
SLIDE 69

Classes of Transductions

Regular functions det2W=copyless SST =MSOT Copy Reverse Rational functions fun1W=appending SST (X:=Y.u) Last Rational relations 1W=appending NSST Subword u → {u′|u′ u} 2W Kleene Star u → u∗ NSST =NMSOT Subwords2 u → {u′u′ | u′ u}

Pierre-Alain Reynier (LIS, AMU & CNRS) Towards Register Minimisation of SST Oxford, Feb 22, 2018 25 / 25

slide-70
SLIDE 70

Alternative characterizations

f : Σ∗ → Γ∗ det1W k registers k independent registers bounded variation Lipschitz property ∀n ∃N ∀u, v ∈ dom(f ), d(u, v) ≤ n ⇒ d(f (u), f (v)) ≤ N ∃L ∀u, v ∈ dom(f ), d(f (u), f (v)) ≤ L.(d(u, v) + 1)

Pierre-Alain Reynier (LIS, AMU & CNRS) Towards Register Minimisation of SST Oxford, Feb 22, 2018 25 / 25

slide-71
SLIDE 71

Alternative characterizations

f : Σ∗ → Γ∗ det1W k registers k independent registers bounded variation Lipschitz property ∀n ∃N ∀u, v ∈ dom(f ), d(u, v) ≤ n ⇒ d(f (u), f (v)) ≤ N ∃L ∀u, v ∈ dom(f ), d(f (u), f (v)) ≤ L.(d(u, v) + 1) ? ∀n ∃N ∀u0 . . . uk ∈ dom(f ), (∀i = j, d(ui, uj) ≤ n) ⇒ ∃i = j.d(f (ui), f (uj)) ≤ N

Pierre-Alain Reynier (LIS, AMU & CNRS) Towards Register Minimisation of SST Oxford, Feb 22, 2018 25 / 25

slide-72
SLIDE 72

Alternative characterizations

f : Σ∗ → Γ∗ det1W k registers k independent registers bounded variation Lipschitz property ∀n ∃N ∀u, v ∈ dom(f ), d(u, v) ≤ n ⇒ d(f (u), f (v)) ≤ N ∃L ∀u, v ∈ dom(f ), d(f (u), f (v)) ≤ L.(d(u, v) + 1) ? ∀n ∃N ∀u0 . . . uk ∈ dom(f ), (∀i = j, d(ui, uj) ≤ n) ⇒ ∃i = j.d(f (ui), f (uj)) ≤ N ∃L ∀u0 . . . uk ∈ dom(f ), ∃i = j s.t. d(f (ui), f (uj)) ≤ L.(d(ui, uj) + 1) ?

Pierre-Alain Reynier (LIS, AMU & CNRS) Towards Register Minimisation of SST Oxford, Feb 22, 2018 25 / 25