• Aucun résultat trouvé

A Kleene-Schützenberger theorem for Lindenmayerian rational power series

N/A
N/A
Protected

Academic year: 2022

Partager "A Kleene-Schützenberger theorem for Lindenmayerian rational power series"

Copied!
10
0
0

Texte intégral

(1)

I NFORMATIQUE THÉORIQUE ET APPLICATIONS

J UHA H ONKALA

A Kleene-Schützenberger theorem for Lindenmayerian rational power series

Informatique théorique et applications, tome 34, no4 (2000), p. 297-305

<http://www.numdam.org/item?id=ITA_2000__34_4_297_0>

© AFCET, 2000, tous droits réservés.

L’accès aux archives de la revue « Informatique théorique et applications » im- plique l’accord avec les conditions générales d’utilisation (http://www.numdam.

org/conditions). Toute utilisation commerciale ou impression systématique est constitutive d’une infraction pénale. Toute copie ou impression de ce fichier doit contenir la présente mention de copyright.

Article numérisé dans le cadre du programme Numérisation de documents anciens mathématiques

http://www.numdam.org/

(2)

Theoret. Informaties Appl. 34 (2000) 297-305

A KLEENE-SCHUTZENBERGER THEOREM FOR LINDENMAYERIAN RATIONAL POWER SERIES *

JUHA HONKALA1'2

Abstract. We define L rational and L recognizable power series, and establish a Kleene-Schützenberger theorem for Lindenmayerian power series by showing that a power series is L rational if and only if it is L recognizable.

AMS Subject Classification. 68Q45.

1. INTRODUCTION

The study of formai power series constitutes an important area of theoreti- cal computer science (see Eilenberg [2], Kuich and Salomaa [17]). The formai power series considered most often in connection with automata and languages are the rational series. One of the key results in the theory of rational series is Schützenberger's theorem stating that a formai series is rational if and only if it is recognizable (see Salomaa and Soittola [20], Berstel and Reutenauer [1]). This theorem generalizes Kleene's theorem giving the équivalence of finite deterministic automata and regular expressions.

In this paper we define Lindenmayerian rational and Lindenmayerian recog- nizable (shortly, L rational and L recognizable) power series. The définition of L rational series is obtained from the définition of rational series by replacing the Kleene star by morphic star. The basic idea in the définition of L recognizable series is that the coefficients of the terms of the series are computed by a matrix représentation similarly as for recognizable series. The définition of L recognizable series is new; L rational series are also considered in Honkala and Kuich [14,15]

(see also Honkala [81).

* Research supported by the Academy of Finland.

1 Department of Mathematics, University of Turku, 20014 Turku, Finland;

e-mail: juha.honkala@utu.fi

2 Turku Centre for Computer Science (TUCS), Lemminkâisenkatu 14, 20520 Turku, Finland.

© EDP Sciences 2000

(3)

298 J. HONKALA

The purpose of this paper is to prove that a power series r is L rational if and only if r is L recognizable. This gives a Kleene-Schützenberger theorem for L rational power series. In the proof of the theorem the close connection between growth functions of DTOL Systems and N-rational series plays an important role.

For further background and motivation we refer to Honkala [4-13], Honkala and Kuich [14,15] and the références given therein. A very different Kleene theorem for L algebraic power series is obtained in Esik and Kuich [3].

It is assumed that the reader is familiar with the basics concerning semirings, formai power series and L Systems (see Kuich and Salomaa [17], Rozenberg and Salomaa [18,19]). Notions and notations that are not defined are taken from these références.

2. L RATIONAL AND L RECOGNIZABLE SERIES

In this paper A will always be a commutative semiring. If E is a finite alphabet, the set of formai power series (resp. polynomials) with noncommuting variables in E and coefficients in A is denoted by i C S* > (resp. A(£*}).

Suppose that E and A are finite alphabets. A semialgebra morphism h : A(£*) —>• A{A*} is called semimonomial if for each a G E there exist a G A and w G A* such that h(a) = aw. (Hère it is possible that a = 0.) In what follows, if a morphism h is called semimonomial, it is always assumed that there exist finite alphabets E and A such that h is s, semimonomial morphism from A(E*) into A(A*) even if the alphabets E and A are not specified explicitly.

Suppose again that E is a finite alphabet and dénote by E° the monoid E* U{0}

obtained from the free monoid E* by adjoining a zero. If h : A(£*) —> ^4(A*} is a semimonomial morphism the underlying monoid morphism h : S0 —> A0 of h is defined by

= aw and a ^ 0 if h{o) = 0.

Next, assume that hi : A(E*) —> A{A*)y 1 < i < m, are semimonomial mor- phisms where Ei and Ai are finite alphabets. Then, if 1 < i\,... , ik < rn and w is a word or w = 0 we say that hik ... h^ (w) exists if w G S^ and hit ... hix (w) G E^É+I

for ail 1 < t < k- 1.

In the sequel any finite set H of semimonomial (resp. monoid) morphisms is also regarded as a finite alphabet with caxd(H) letters. Then, if L Ç H* is a language and r G A <§C E* ^> we say that L(r) exists if u(w) exists whenever u G L and w G supp(r), and the family

^={o !!

is locally finite. If L(r) exists we dénote

(4)

(Here e(w) = w if e is the empty word.)

In what follows EQO will be a fixed countably infinité alphabet. We dénote E ^ = E ^ U {0} and

o,£ finite

We are now in a position to define L rational series.

Définition 1. The family of Lindenmayerian rational (shortly, L rational) series over A is the least family 1Z Ç ^{{E^}} satisfying the following conditions:

(i) A<E*) C n if E C Eoo is finite;

(ii) if ru r2 G U then n + r2 G 7£ and rir2 G 7£;

(iii) if r G 7£ and /i is a semimonomial morphism, then h(r) G 7£ if /i(r) exists;

(iv) if r G 1Z and i ï — {/ix,... , hm} is a set of semimonomial morphisms, then H*(r) eniïH*(r) exists.

The définition of L rational series is a modification of the définition of rational series obtained by replacing the Kleene star by morphic star. In this context it turns out to be necessary to postulate separately closure under morphic image; for rational series this is a conséquence of the other conditions.

In Honkala and Kuich [14,15] arbitrary semialgebra morphisms are used instead of semimonomial morphisms in the définition of L rational series. The choice dépends upon whether we are interested in generalizing DTOL or TOL languages.

Next we define L recognizable series. The basic idea is that an L recognizable series is a sum of terms obtained by morphic itération where the coefficient of a given term can be computed by a matrix représentation as in the définition of recognizable series (see Salomaa and Soittola [20], Berstel and Reutenauer [1]).

A Lindenmayerian représentation (shortly, L représentation) is a triple (T, fi, a) such that the following conditions hold:

(i) There exist finite alphabets E and A, a finite set H of morphisms of the monoid A0, a morphism h : A° —• E° and w G A° such that T is the mapping T : H* —> E° defined by

T(u) = hu(w)

(ii) There exists a positive integer k such that \i : H* —> js^kxk jg a morphism.

(iii) a : Nkxk — • A is a morphism from the additive monoid of Nfcxfc into the multiplicative monoid of A.

Note that if a : Nkxk ^—• A is as in (iii) there exist aij G Ay 1 < i,j < k, such that

for M G N***. (As usual in group theory we have hère a° = î for any a G A )

(5)

300 J. HONKALA

Now we can define L recognizable series and state the Kleene-Schutzenberger theorem for L rational series.

Définition 2. A series r G ^{{E^}} is called Lindenmayerian recognizable (shortly, L recognizable) if there exists an L représentation (T, /^, a) such that the family {a/j,(u)T(u)}ueH* is locally finite and

r =

Theorem 1. A series r G ^ { { 2 ^ } } is L rational if and only ifr is L recognizable.

The proof of Theorem 1 requires several lemmas and will be given in the next section.

3. PROOFS

We show first that L rational series are L recognizable.

Lemma 1. Suppose r G A{{E£Q}} is L rational. Then there exist a finite set H of semimonomial morphisms, a rational language L Ç H * and w G E^o such that L(w) exists and

r = L(w).

Proof The proof is by L rational induction. Suppose first that r is a polynomial.

Choose a letter a G E ^ . It is clear that there exists a finite set H of semimonomial morphisms such that r = H(o~).

Suppose then that n = Li(wi) and r2 = £2(^2) where Li Ç H* and L2 Ç H% are rational languages and W1)VÜ2 E E^,. Without restriction we assume that Hi and H2 are disjoint. First, let a € EQQ be a letter and choose two new semimonomial morphisms hi1h2 such that h\{a) = w\ and ^ ( c ) = u>2- Then

T\ + r2 = (Lihi U L2h2)(a).

Consider then the product rir2. Suppose first that there exist disjoint alphabets Ex and E2 such that u(wi) G A < EJ > and v(w2) e A <T EJ > for all u G Hi and v € H%. Furthermore, suppose that each element hi G H\ satisfies hi(a2) — o~2 ïia2 e E2 and each element h2 G H2 satisfies ^2(^1) = 0"i-if Ö"I G Ex.

(If necessary we are free to change the pertinent images.) Then-, if u G Li, v •€ Z/2) we have

Hence LiL2(wiw2) is defined and

Now the claim for the product in the gênerai case follows by renaming. More precisely, we first replace rx and r2 by letter-equivalent series s\ and s2 over

(6)

disjoint alphabets and then apply a letter-to-letter morphism to Sis2 to obtain nr2-

In the remaining cases the inductive step is clear. G If u = h\h2..-hrn E H* where hi E H for 1 < i < m, we dénote uT = hmhm-i - • • h\. By définition, eT = e. This notation is extended to languages by LT = {uT \ueL}.

Lemma 2. Suppose H is a finite set of semimonomial morphisms, L Ç H* is a rational language and w G E ^ . If L(w) exists> there are finite alphabets A and E,

semimonomial morphisms p i , . . . , #m : ^4{A*) — • A { A * ); g : A{A*) —>• >1{E*) an<i tüi € A ° such that

L{w)=g{g1U...Ugm)*{w1).

Furthermore, g(x) e E° for all x E A.

Proof. Without restriction we assume that there is a finite alphabet Ai such that each h e H is from A{A£) into A(Al). Let A ~ (Q, ö, qOi F) be a finite determin- istic automaton such that LT = L(A). (Here Q, 5, go and F are the state set, transition function, initial state and final state set of A, respectively.) Consider the éléments of Q as new letters and extend each h € H by

for q E Q- Let G be the set of the extended hs. Let ^ be a semimonomial morphism such that g(q) = e if q G F and #(<?) = 0 if q G Q - F. Furthermore, let g act as the identity for the other relevant letters. Then for any u G G* we have

j otherwise .

Hence gG*(qow) is defined and

L(w) ^gG*{qow).

Now we have the tools to prove Theorem 1 in one direction.

Lemma 3. If r E ^ { { 2 ^ } } is L rational then r is L recognizable.

Proof Suppose r G AIJE^}} is L rational. By Lemmas 1 and 2 there exist finite alphabets A and E, semimonomial morphisms <?i,... ,<?m : A(A*) —> A{A*), g : ,4<A*) —> A(E*) and wx E A° such that

r = 9(91 U...U5m)*(u/i).

(7)

302 J. HONKALA

Furthermore, g(x) G H° for all x G A. Dénote G = {gu... , <?m}. If 1 < i < m and x G A, define the series S(Ï, 3;) G N « G* > by

(s(i,x),e) = 0

(s(z, x), QiU) = (s(ï, x), Ifc) + |ü(lUi)U

= (s(i, x), u) if jf 7^ ^

for ti G G* where |ü(iüi)|x is the number of occurrences of x in ü(wi). Intuitively, (s(i, x), u) counts the number of times gi is applied to the letter x when we compute

Next, for 1 < i < m, x G A, dénote

gi{x) = a(i,x)gi(x)> (1)

where a{iyx) G A. We claim that

u(wx) = fi a&x^rtrtüiw!) (2)

for u e G*. First, (2) is clear if u = e. Then, if (2) holds for u G G*, we have for

9jeG

l<i<rn,xeA

JJ

Hence (2) holds for all u G G*.

Now, if in (1) each a(i,x) is regarded as a new letter, the same computation shows that (2) holds in the free commutative monoid generated by A U {a(i,x)

1 < i < m, x G A}. (Here, if g%{x) = 0 for some 1 < z < m, x G A, we take a new letter z and replace each Qi{x) = 0 by g%{x) = z. Furthermore, the ^ s act as the identity on the new letters.) Hence there exist a positive integer fc, a morphism 77 : G* —> Nfcxfc, row vectors /?(i,x) G Nl x / c, 1 < i < m, x G A, and a column vector (3 G Nf c x l such that

for 1 < z < m, x G A, u G G*. Consequently,

l<p,q<k

(8)

and

u(Wl)=

l<p,q<k

for W G G * , where

(3)

for 1 <p,q < k.

It is now easy to see that r is L recognizable by considering the L représentation (T, /i, a) defined as follows. Let H = G = {g^ ... , #m} and define T : H* —^ X°

by

Define the morphism /x : 7/* —> ]>jfcxfc ^ ^ ^ = ^ j £Qr x e Q pinally, define a:Nkxk —• A by

a(M)= J ] •<$«,

for M G Nfcxfc, where apg is given by (3). Then

afi{u)T{u) = 5(^(IÜI)) = ^u(iüi)

for u G G*. Hence the family {aii{v)T{v)}v^H- is locally finite and

This concludes the proof that r is L recognizable. D To prove that L recognizability implies L rationality one simple lemma is needed.

Lemma 4. Suppose w G E ^; G = {<?i,... ,gm} is a set of semimonomial mor- phisms and g is a semimonomial morphism such that r — gG* (w) exists. Then r is L rational.

Proof. Without restriction we assume that gj(a) G £ ^ for ail a G S, 1 < j < m.

If G*(w) exists, the claim is an immédiate conséquence of Définition 1. In the gênerai case, let x G Eoo be a new letter and extend each gj G G by gj(x) = x2. Furthermore, extend g by g(x) = e. Then G*(wx) exists and is L rational. Hence also

r = gG*(wx)

is L rational. • Lemma 5. Ifre AjjE^}} is L recognizable then r is L rational.

(9)

304 J. HONKALA

Proof. Suppose (T, /z, a) is an L représentation such that r=

Here T, \i, a and H are as explained above in the définition of an L représentation and

for M G Nfcxfc where a G A, 1 < ij < k. Let H = {hu ... ,ftg}.

Because the series Y2ueH* /j,(u)ijU are N-rational for all 1 < i, j < k} there exist a DTOL system (Ei, / i , . . . , fq,wi) and distinct letters x(i,j) € Ei for 1 < i,j < k such that

for all u G Jï*, 1 < i, j < &, where the word u is obtained from ti by replacing each hm by /m, 1 < m < q. Here we may assume that £ U A and Ei are disjoint. For 1 < m < q define gm : A((A U Ei)*) —• i ( ( A u Ei)*) by

fm(x) i f x G E i .

Let G = {gu... ,gq} and define g : A{{A U Ei)*) —> A{E*) by

{

h{x) if x e A dij e iïx = x(ij)

e if x G Ei - {x(z, j) | 1 < i, j < k}- Then for T; e G* we have

gv(wxw) = gv(wi)gv(w)

4

(tui)lx(i

'

j>

^(^)= n <

(tt)

°T(ti)=

where u G £T* is the word obtained from v G G* by replacing each ^m by /im, 1 < ^ < ç- Consequently,

r = gG*(wiw).

Now the L rationality of r follows by Lemma 4. • Theorem 1 now follows from Lemmas 3 and 5.

REFERENCES

[1] J. Berstel and C. Reutenauer, Rational Series and Their Languages. Springer, Berlin (1988).

[2] S. Eilenberg, Automata, Languages and Machines, Vol. A. Academie Press, New York (1974).

(10)

[3] Z. Ésik and W. Kuich, A Kleene theorem for Lindenmayerian algebraic power series. J.

Autom. Lang. Comb. 5 (2000) 109-122.

[4] J. Honkala, On Lindenmayerian series in complete semirings, edited by G. Rozenberg and A. Salomaa, Developments in Language Theory. World Scientific, Singapore (1994) 179- 192.

[5] J. Honkala, An itération property of Lindenmayerian power series, edited by J. Karhumàki, H. Maurer and G. Rozenberg, Results and Trends in Theoretical Computer Science.

Springer, Berlin (1994) 159-168.

[6] J. Honkala, On morphically generated formai power series. Theoret. Informaties Appl. 29 (1995) 105-127.

[7] J. Honkala, On the decidability of some équivalence problems for L algebraic series. Inter- nat J. Algebra Comput. 7 (1997) 339-351.

[8] J. Honkala, On Lindenmayerian rational subsets of monoids. Theoret. Informaties AppL 31 (1997) 81-96.

[9] J. Honkala, On Lindenmayerian algebraic séquences. Theoret. Comput. Sci. 183 (1997) 143-154.

[10] J. Honkala, Décision problems concerning a power series generalization of DT0L Systems.

Pand. Inform. 32 (1997) 341-348.

[11] J. Honkala, On algebraicness of DOL power series. J. Univ. Comput. Sci. 5 (1999) 11-19.

[12] J. Honkala, On DOL power series. Theoret. Comput. Sci. (to appear).

[13] J. Honkala, On séquences defined by DOL power series. Theoret. Informaties Appl. 33 (1999) 125-132.

[14] J. Honkala and W. Kuich, On a power series generalization of ET0L languages. Pand.

Inform. 25 (1996) 257-270.

[15] J. Honkala and W. Kuich, On Lindenmayerian algebraic power series. Theoret. Comput.

Sci. 183 (1997) 113-142.

[16] W. Kuich, Lindenmayer Systems generalized to formai power series and their growth func- tions, edited by G. Rozenberg and A. Salomaa, Developments in Language Theory. World Scientific, Singapore (1994) 171-178.

[17] W. Kuich and A. Salomaa, Semirings, Automata, Languages. Springer, Berlin (1986).

[18] G. Rozenberg and A. Salomaa, The Mathematical Theory of L Systems. Academie Press, New York (1980).

[19] G. Rozenberg and A. Salomaa, Handbook of Formai Languages, Vols. 1-3. Springer, Berlin (1997).

[20] A. Salomaa and M. Soittola, Automata-Theoretic Aspects of Formai Power Series.

Springer, Berlin (1978).

Communicated by J. Berstel.

Received March 2, 2000. Accepted May 22, 2000.

To access this journal online:

www.edpsciences.org

Références

Documents relatifs

Jadis, mystérieux, un problème bloquait Tout l’admirable procédé, l’œuvre grandiose Que Pythagore découvrit aux anciens Grecs..

Formal solutions of the heat equation, and their association to solutions obtained by inverse Laplace transform are studied in §3.. It is shown that power series are

Sondow, Analytic continuation of Riemann’s zeta function and values at negative integers via Euler’s transformation of

It is the distribution of the number of successes in a sequence of n independent Bernoulli trials, with the odds of success at a trial varying geometrically with the number of

In the differential case, when k = 0 and the characteristic is 0, the algorithms in [5, 11] compute an invertible ma- trix of power series solution of the homogeneous equation by

We prove that a cyclically valued ring is a subring of a power series ring k[[C, θ]] with twisted multiplication if and only if there exist invertible monomials of every degree, and

one or several variables with real coefficients. Our main result states that over these fields K every symmetric matrix can be orthogonally diagonalized. We shall

Theorem 4.2. By the Closed Graph Theorem [Gr, chapter 4.1.5, Theorem 2] we conclude that k^-5-D^o ls even an isomorphism of topological vector spaces. Therefore, ify: G^ -^Gy is