• Nem Talált Eredményt

A Kleene Theorem for Weighted ω-Pushdown Automata ∗

N/A
N/A
Protected

Academic year: 2022

Ossza meg "A Kleene Theorem for Weighted ω-Pushdown Automata ∗ "

Copied!
17
0
0

Teljes szövegt

(1)

A Kleene Theorem for Weighted ω-Pushdown Automata

Manfred Droste

a

and Werner Kuich

b

Abstract

Weightedω-pushdown automata were introduced as generalization of the classical pushdown automata accepting infinite words by B¨uchi acceptance.

The main result in the proof of the Kleene Theorem is the construction of a weightedω-pushdown automaton for theω-algebraic closure of subsets of a continuous star-omega semiring.

1 Introduction

Weighted ω-pushdown automata were introduced by Droste, Kuich [4] as gener- alization of the classical pushdown automata accepting infinite words by B¨uchi acceptance (see Cohen, Gold [2]). To achieve the Kleene Theorem, the following result is needed.

Let S be a continuous star-omega semiring and let (s, υ), s, υ ∈ S, with υ = P

1≤k≤msktωk be a pair, wheres, sk, tk, 1≤k≤m, are algebraic elements. Then anω-pushdown automatonPcan be constructed whose behaviorkPkequals (s, υ).

The construction is split into three lemmas for the construction oftωk, sktωk andυ.

This proves a Kleene Theorem that is in some aspects a generalization of The- orem 4.1.8 of Cohen, Gold [2].

The paper consists of this and three more sections. In Section 2 we refer the necessary preliminaries from the theories of semirings and semiring-semimodule pairs. In Section 3, we present some definitions and results from Droste, Kuich [4] that are needed in Section 4. In the last section, existing results in connection with the Kleene Theorem are quoted and the already mentioned constructions on ω-pushdown automata are performed.

The second author was partially supported by Austrian Science Fund (FWF): grant no. I1661 - N25

aInstitut ur Informatik, Universit¨at Leipzig, Leipzig, Germany, E-mail:

droste@informatik.uni-leipzig.de

bInstitut f¨ur Diskrete Mathematik und Geometrie, Technische Universit¨at Wien, Wien, Aus- tria, E-mail:kuich@tuwien.ac.at

DOI: 10.14232/actacyb.23.1.2017.4

(2)

2 Preliminaries

For the convenience of the reader, we quote definitions and results of ´Esik, Kuich [6, 7, 9] from ´Esik, Kuich [10]. The reader should be familiar with Sections 5.1-5.6 of ´Esik, Kuich [10].

A semiring S is called complete if it is possible to define sums for all families (ai | i ∈ I) of elements of S, where I is an arbitrary index set, such that the following conditions are satisfied (see Conway [3], Eilenberg [5], Kuich [11]):

(i) X

i∈∅

ai= 0, X

i∈{j}

ai=aj, X

i∈{j,k}

ai=aj+ak forj6=k , (ii) X

j∈J

X

i∈Ij

ai

=X

i∈I

ai, if [

j∈J

Ij =I and Ij∩Ij0 =∅ for j6=j0, (iii) X

i∈I

(c·ai) =c· X

i∈I

ai

, X

i∈I

(ai·c) = X

i∈I

ai

·c .

This means that a semiring S is complete if it is possible to define “infinite sums” (i) that are an extension of the finite sums, (ii) that are associative and commutative and (iii) that satisfy the distribution laws.

A semiring S equipped with an additional unary star operation : S → S is called a starsemiring. In complete semirings for each elementa, thestar aofais defined by

a=X

j≥0

aj.

Hence, each complete semiring is a starsemiring, called acomplete starsemiring. A Conway semiring (see Conway [3], Bloom, ´Esik [1]) is a starsemiring S satisfying thesum star identity

(a+b)=a(ba) and theproduct star identity

(ab)= 1 +a(ba)b

for alla, b∈S. Observe that by ´Esik, Kuich [10], Theorem 1.2.24, each complete starsemiring is a Conway semiring.

Suppose thatSis a semiring andV is a commutative monoid written additively.

We callV a (left)S-semimodule ifV is equipped with a (left) action S×V → V

(s, v) 7→ sv subject to the following rules:

s(s0v) = (ss0)v , (s+s0)v=sv+s0v , s(v+v0) =sv+sv0, 1v=v , 0v= 0, s0 = 0,

(3)

for all s, s0 ∈ S and v, v0 ∈ V. When V is an S-semimodule, we call (S, V) a semiring-semimodule pair.

Suppose that (S, V) is a semiring-semimodule pair such thatSis a starsemiring and S and V are equipped with an omega operation ω : S → V. Then we call (S, V) astarsemiring-omegasemimodule pair. Following Bloom, ´Esik [1], we call a starsemiring-omegasemimodule pair (S, V) aConway semiring-semimodule pair if Sis a Conway semiring and if the omega operation satisfies thesum omega identity and theproduct omega identity:

(a+b)ω= (ab)ω+ (ab)aω and (ab)ω=a(ba)ω, for alla, b∈S. It then follows that theomega fixed-point equation holds, i.e.

aaω=aω, for alla∈S.

Esik, Kuich [8] define a´ complete semiring-semimodule pair to be a semiring- semimodule pair (S, V) such that S is a complete semiring and V is a complete monoid with

s X

i∈I

vi

=X

i∈I

svi and X

i∈I

si v=X

i∈I

siv ,

for alls∈S,v∈V, and for all families (si)i∈I overSand (vi)i∈I overV; moreover, it is required that aninfinite product operation

(s1, s2, . . .) 7→ Y

j≥1

sj

is given mapping infinite sequences over S to V subject to the following three conditions:

Y

i≥1

si = Y

i≥1

(sni−1+1· · · · ·sni) s1·Y

i≥1

si+1 = Y

i≥1

si

Y

j≥1

X

ij∈Ij

sij = X

(i1,i2,...)∈I1×I2×...

Y

j≥1

sij,

where in the first equation 0 = n0 ≤ n1 ≤ n2 ≤ . . . and I1, I2, . . . are arbitrary index sets. Suppose that (S, V) is complete. Then we define

s = X

i≥0

si and sω = Y

i≥1

s ,

for all s ∈ S. This turns (S, V) into a starsemiring-omegasemimodule pair. By Esik, Kuich [8], each complete semiring-semimodule pair is a Conway semiring-´ semimodule pair. Observe that, if (S, V) is a complete semiring-semimodule pair, then 0ω= 0.

(4)

A star-omega semiring is a semiringS equipped with unary operations and

ω : S → S. A star-omega semiring S is called complete if (S, S) is a complete semiring semimodule pair, i.e., if S is complete and is equipped with an infinite product operation that satisfies the three conditions stated above.

A commutative monoid (V,+,0) is continuous (cf. Section 2.2 of [10]) if it is equipped with a a partial order≤such that the supremum of any chain exists and 0 is the least element. Moreover, the sum operation + is continuous:

x+ supY = sup(x+Y)

for all nonempty chains, wherex+Y ={x+y:y∈Y}.(Actually this also holds when the set is empty.) It follows that the sum operation is monotonic: ifx≤y in V, thenx+z≤y+z for allz∈V.

Suppose now thatS= (S,+,·,0,1) is a semiring. We say thatSis acontinuous semiring(cf. Section 2.2 of [10]) if (S,+,0) is a continuous commutative monoid equipped with a partial order≤and the product operation is continuous (hence, also monotonic), i.e., it preserves the supremum of nonempty chains in either argument:

(supX)y= sup(Xy) y(supX) = sup(yX),

for all nonempty chainsX ⊆S, whereXy={xy : x∈X}and yX is defined in the same way.

By Corollary 2.2.2 of ´Esik, Kuich [10] any continuous semiring is complete.

3 Weighted ω-pushdown automata

Weighted ω-pushdown automata were introduced by Droste, Kuich [4] as gener- alization of the classical pushdown automata accepting infinite words by B¨uchi acceptance (see Cohen, Gold [2]). In this section we refer to definitions and results of Droste, Kuich [4] that are needed for this paper.

Following Kuich, Salomaa [12] and Kuich [11], we introduce pushdown transi- tions matrices. Let Γ be an alphabet, calledpushdown alphabet and letn≥1. A matrixM ∈(Sn×n)Γ×Γis termed apushdown transition matrix (withpushdown alphabet Γ andstateset {1, . . . , n}) if

(i) for eachp∈Γ there exist only finitely many blocks Mp,π, π∈ Γ, that are unequal to 0;

(ii) for allπ1, π2∈Γ, Mπ12 =

(Mp,π if there exist p∈Γ, π, π0∈Γ withπ1=pπ0, π2=ππ0, 0 otherwise.

(5)

For the remaining of this paper, M ∈ (Sn×n)Γ×Γ will denote a pushdown transition matrix with pushdown alphabet Γ and stateset{1, . . . , n}.

When we say “Gis the graph with adjacency matrixM ∈(Sn×n)Γ×Γ” then it means thatGis the graph with adjacency matrixM0∈S×n)×(Γ×n), whereM0 corresponds toM with respect to the canonical isomorphism between ((Sn×n)Γ×Γ andS×n)(Γ×n).

Let now M be a pushdown transition matrix and 0≤ k ≤ n. Then Mω,k is the column vector in (Sn)Γ defined as follows: For π ∈ Γ and 1 ≤ i ≤ n, let ((Mω,k)π)i be the sum of all weights of paths in the graph with adjacency matrix M that have initial vertex (π, i) and visit vertices (π0, i0), π0 ∈ Γ, 1 ≤ i0 ≤ k, infinitely often. Observe thatMω,0= 0 and Mω,n=Mω.

LetPk={(j1, j2, . . .)∈ {1, . . . , n}ω|jt≤kfor infinitely many t≥1}.

Then forπ∈Γ+, 1≤j≤n, we obtain ((Mω,k)π)j = X

π12,···∈Γ+

X

(j1,j2,...)∈Pk

(Mπ,π1)j,j1(Mπ12)j1,j2(Mπ23)j2,j3. . . . For the definition of an S0-algebraic system over a quemiring S×V we refer the reader to [10], page 136, and for the definition of quemirings to [10], page 110.

Here we note that a quemiringT is isomorphic to a quemiring S×V determined by the semiring-semimodule pair (S, V), cf. [10], page 110.

LetS0 ⊆S, with 0,1 ∈S0, and letM ∈(S0n×n)Γ×Γ be a pushdown matrix.

Consider theS0n×n-algebraic system over the complete semiring-semimodule pair (Sn×n, Sn)

yp= X

π∈Γ

Mp,πyπ, p∈Γ. (1)

(See Section 5.6 of ´Esik, Kuich [10].) The variables of this system (1) areyp, p∈Γ, andyπ, π∈Γ, is defined by y =ypyπ forp∈Γ,π∈Γ andyε= 1. Hence, for π=p1. . . pk,yπ=yp1. . . ypk. The variablesyp are variables for (Sn×n, Sn).

Let x = (xp)p∈Γ, where xp, p ∈ Γ, are variables for Sn×n. Then, for p ∈ Γ, π=p1p2. . . pk, (Mp,πyπ)x is defined to be

(Mp,πyπ)x

= (Mp,πyp1. . . ypk)x

=Mp,πzp1+Mp,πxp1zp2+· · ·+Mp,πxp1. . . xpk−1zpk. Herezp,p∈Γ, are variables forSn.

We obtain, forp∈Γ, π=p1. . . pk, (Mp,πyπ)x= X

p0∈Γ

X

π=p1...pk∈Γ+ pj=p0

Mp,πxp1. . . xpj−1zp0

= X

π=p1...pk∈Γ+

Mp,π

X

1≤j≤k

xp1. . . xpj−1zpj.

(6)

The system (1) induces the following mixedω-algebraic system:

xp= X

π∈Γ

Mxπ, p∈Γ, (2)

zp= X

π∈Γ

(Mp,πyπ)(xp)p∈Γ = X

p0∈Γ

X

π=p1...pk∈Γ+ pj=p0

Mp,πxp1. . . xpj−1zp0. (3)

Here (2) is an S0n×n-algebraic system over the semiringSn×n (see Section 2.3 of ´Esik, Kuich [10]) and (3) is anSn×n-linear system over the semimoduleSn (see Section 5.5 of ´Esik, Kuich [10]).

By Theorem 5.6.1 of ´Esik, Kuich [10], (A, U)∈ ((Sn×n)Γ,(Sn)Γ) is a solution of (1) iffAis a solution of (2) and (A, U) is a solution of (3).

Theorem 3.1. Let S be a complete star-omega semiring and M ∈(S0n×n)Γ×Γ be a pushdown transition matrix. Then, for all 0≤k≤n,

(((M)p,ε)p∈Γ,((Mω,k)p)p∈Γ) is a solution of (1).

We now introduce pushdown automata andω-pushdown automata (see Kuich, Salomaa [12], Kuich [11], Cohen, Gold [2]).

Let S be a complete semiring and S0 ⊆ S with 0,1 ∈ S0. An S0-pushdown automaton overS

P = (n,Γ, I, M, P, p0) is given by

(i) a finite set ofstates {1, . . . , n},n≥1, (ii) an alphabet Γ ofpushdown symbols,

(iii) apushdown transition matrix M ∈(S0n×n)Γ×Γ, (iv) aninitial state vector I∈S01×n,

(v) afinal state vector P ∈S0n×1, (vi) aninitial pushdown symbol p0∈Γ,

ThebehaviorkPkof P is an element ofSand is defined bykPk=I(M)p0P. For a complete semiring-semimodule pair (S, V), anS0-ω-pushdown automaton (over (S, V))

P = (n,Γ, I, M, P, p0, k)

is given by an S0-pushdown automaton (n,Γ, I, M, P, p0) and an k ∈ {0, . . . , n}

indicating that the states 1, . . . , karerepeated states.

(7)

Thebehavior kPkof theS0-ω-pushdown automatonP is defined by kPk=I(M)p0P+I(Mω,k)p0.

Here I(M)p0P is the behavior of the S0-ω-pushdown automaton P1 = (n,Γ, I, M, P, p0,0) and I(Mω,k)p0 is the behavior of the S0-ω-pushdown automatonP2 = (n,Γ, I, M,0, p0, k). Observe that P2 is an automaton with the B¨uchi acceptance condition: ifGis the graph with adjacency matrixM, then only paths that visit the repeated states 1, . . . , kinfinitely often contribute tokP2k. Fur- thermore,P1contains no repeated states and behaves like an ordinaryS0-pushdown automaton.

Theorem 3.2. Let S be a complete star-omega semiring and let P = (n,Γ, I, M, P, p0, k) be an S0-ω-pushdown automaton over (S, S). Then (kPk,(((M)p,ε)p∈Γ,((Mω,k)p)p∈Γ)), 0 ≤ k ≤ n, is a solution of the S0n×n- algebraic system

y0=Iyp0P, yp= X

π∈Γ

Mp,πyπ, p∈Γ over the complete semiring-semimodule pair(Sn×n, Sn).

Let now S be a continuous star-omega semiring and consider an S0-algebraic system y = p(y) over (S, S). Then the least solution of the S0-algebraic system x=p(x) over S, sayσ, exists, and the components ofσ are elements ofAlg(S0).

Moreover, write theAlg(S0)-linear system z =p0(z) over S in the formz =M z, whereM is ann×n-matrix. Then, by Theorem 5.6.1 of ´Esik, Kuich [10], (σ, Mω,k), 0≤k≤n, is a solution ofy=p(y). Given ak∈ {0,1, . . . , n}, we call this solution the solution of orderk of y =p(y). By ω-Alg(S0) we denote the collection of all components of solutions of all orders k of S0-algebraic systems over (S, S). (For details see Section 5.6 of ´Esik, Kuich [10].)

4 The Kleene Theorem

The main result of this section is the following Kleene Theorem.

Theorem 4.1. Let S be a continuous star-omega semiring. Then the following statements are equivalent for(s, v)∈S×S:

(i) (s, v) =kAk, whereAis a finiteAlg(S0)-automaton over the quemiring(S, S), (ii) (s, v)∈ω-Alg(S0),

(iii) s∈Alg(S0)andv=P

1≤k≤msktωk, wheresk, tk ∈Alg(S0),1≤k≤m, (iv) (s, v) =kPk, whereP is an S0-ω-pushdown automaton.

The proof of this Kleene Theorem is performed as follows:

(8)

1. The equivalence of (i), (ii) and (iii) is proved in [10], Theorem 5.4.9.

2. The implication (iv)⇒(ii) is a simple corollary of Theorem 13 of [4].

3. The proof of the implication (iii) ⇒ (iv) is performed by Lemmas 4.1, 4.2 and 4.3 proved in the following pages.

Lemma 4.1. Let S be a complete star-omega semiring andP be an S0-pushdown automaton. Then there exists an S0-ω-pushdown automaton P0 such thatkP0k= kPkω.

Proof. LetP = (n,Γ, M, I, P, p0). Then we constructP0 = (2n,Γ0, M0, I0,0, p00, n), Γ0 = Γ∪ {p00}as follows.

The pushdown transition matrix M0 ∈ S02n×2nΓ0∗×Γ0∗

has, for π ∈ Γ, 1≤j≤n, the entries

(Mp00

0,p00)n+i,j= (P I)i,j, (Mp00

0,πp00)i,n+j = (Mp0)i,j (Mp,π0 )n+i,n+j = (Mp,π)i,j; all other entries of the matricesMp,π0 , p∈Γ0, π∈Γ0∗, are 0.

The initial state vector I0 ∈S02n×1 has, for 1≤i≤n, the entries Ii0 =Ii, In+i0 = 0.

We have to prove that

kP0k=I0(M0ω,n)p0

0=kPkω=

I(M)p

0Pω .

The proof of this claim is as follows.

By definition, for 1≤i≤2n, (M0ω,n)p0

0

i

= X

π12,...∈Γ0∗

X

i1,i2,...∈Pn 1≤i1,i2,...≤2n

Mp00 01

i,i1

Mπ0

12

i1,i2· · ·

Inspection shows that a repeated state in the sequence i1, i2, . . . appears only if in the runp00, π1, π2, . . . a transition fromp00 top00appears.

(9)

Hence, we obtain, withi10=i, π0t=εfort≥1,

(M0ω,n)p0 0

i

=Y

t≥1

X

kt≥1

X

1≤it0,...,it

kt≤n

X

πt1,···t

kt−1∈Γ

Mp00

0t1p00

it0,n+it1

Mπ0t

1p00t2p00

n+it1,n+it2

· · ·

Mπ0t kt−1p00,p00

n+it

kt−1,n+it

kt

Mp00 0,p00

n+it

kt,it+10

=Y

t≥1

X

kt≥1

X

1≤it0,...,it

kt≤n

X

πt1,...,πt

kt−1∈Γ

Mp0t

1

it0,it1

Mπt

12t

it1,it2

· · ·

Mπt kt−1

it

kt−1,it

kt

(P I)it kt,it+10

=Y

t≥1

X

kt≥1

X

1≤it0≤n

Mkt

p0P I

it0,it+10

=Y

t≥1

X

1≤it0≤n

X

kt≥1

Mkt

p0P I

it0,it+10

=Y

t≥1

X

1≤it0≤n

(M)p

0P I

it0,it+10

= (M)p

0P Iω

i . Hence,

kP0k= X

1≤i≤2n

Ii

(M0ω,n)p0 0

i

= X

1≤i≤n

Ii

(M0ω,n)p0 0

i

=I(M0ω,n)p0 0

=I (M)p

0P Iω

=

I(M)p

0Pω

=kPkω.

Lemma 4.2. Let S be a complete star-omega semiring, P1 be anS0-ω-pushdown automaton and P2 be an S0-pushdown automaton. Then there exists an S0-ω- pushdown automaton P such thatkPk=kP2kkP1k.

Proof. Let P1 = (n11, I1, M1, P1, p1, k) and P2 = (n22, I2, M2, P2, p2) with Γ1∩Γ2=∅. Then we constructP = (n1+n21∪Γ2, I, M, P, p2, k) as follows.

(10)

Let Q1 = {1, . . . , n1} and Q2 = {n1+ 1, . . . , n2}. The pushdown transition matrixM ∈(S0(n1+n2)×(n1+n2))1∪Γ2)×(Γ1∪Γ2) has entries

1. transitions fromQ2 toQ2

(Mp2,πp1)i,j= (M2)p

2

i,j, i, j∈Q2, π∈Γ+2, (Mp,π)i,j=

(M2)p,π

i,j

, i, j∈Q2, p∈Γ2, π∈Γ+2, (Mp,ε)i,j=

(M2)p,ε

i,j, i, j∈Q2, p∈Γ2; 2. transitions fromQ2 toQ1

(Mp2,p1)i,j = (M2)p

2P2I1

i,j

, i∈Q2, j∈Q1, (Mp,ε)i,j =

(M2)p,εP2I1

i,j

, i∈Q2, j∈Q1, p∈Γ2; 3. transitions fromQ1 toQ1

(Mp,π)i,j=

(M1)p,π

i,j, i, j∈Q1, p∈Γ1, π∈Γ1. All other entries of the matricesMp,π,p∈Γ1∪Γ2,π∈(Γ1∪Γ2), are 0.

The initial state vector I ∈ S01×(n1+n2) and the final state vector P ∈S0(n1+n2)×1have the entries

Ii= 0, i∈Q1, Ii= (I2)i, i∈Q2; Pi= (P1)i, i∈Q1, Pi= 0, i∈Q2. We have to prove that

kPk=I(M)p

2P+I Mω,k

p2

=I2(M2)p

2P2I1(M1)p

1P1+I2(M2)p

2P2I1

M1ω,k

p1

=kP2kkP1k.

The proof of this claim is as follows.

By definition,

Mω,k

p2

i0

= X

π12,...∈(Γ1∪Γ2)

X

i1,i2,...∈Pk 1≤i1,i2,...≤n1 +n2

n

k

(Mp21)i

0,i1(Mπ12)i

1,i2. . . , i0∈Q2,

Mω,k

p2

i0

= 0, i0∈Q1.

(11)

As long as P remains in a state of Q2, the contents of the pushdown tape is πp1,π∈Γ2. The transition from a state ofQ2 to a state ofQ1is possible only in the following three situations:

(a) In the first step, the contentsp2of the pushdown tape is replaced by p1. (b) The contents of the pushdown tape is pp1, p ∈ Γ2, andp is replaced by the

empty word; so that after this replacement the contents is p1.

(c) The contents of the pushdown tape ispπp1, p∈Γ2,π∈Γ+2, andpis replaced by the empty word. In this situation, no continuation of the computation ofP is possible.

Since all the repeated states are states inQ1, there must be a transition from a state ofQ2 to a state ofQ1.

As long asP remains in a state ofQ2 withπp1,π∈Γ2, on the pushdown tape, it simulatesP2up to situations (a) or (b). Thenp1is the contents of the pushdown tape ofP,P is in a state ofQ1and simulates P1, since there is no transition from a state ofQ1to a state of Q2.

Hence, we obtain, fori0∈Q2,

Mω,k

p2

i0

= X

π12,...∈Γ+1

X

j0,j1,...∈Q1 (j0,j1,...)∈Pk

(Mp2,p1)i

0,j0(Mp11)j

0,j1(Mπ12)j

1,j2· · ·+ X

t≥1

X

ρ1,...,ρt−1∈Γ+2

X

ρt∈Γ2

X

π12,...∈Γ+1

X

i1,...,it∈Q2

X

j0,j1,...∈Q1 (j0,j1,...)∈Pk

(Mp21p1)i

0,i1

n

k

(Mρ1p12p2)i

1,i2. . .(Mρtp1,p1)i

t,j0(Mp11)j

0,j1(Mπ12)j

1,j2. . .

= X

j0∈Q1

(M2)p

2P2I1

i0,j0

M1ω,k

p1

j0

+X

t≥1

X

ρ1,...,ρt−1∈Γ+2

X

ρt∈Γ2

X

π12,...∈Γ+1

X

i1,...,it∈Q2

X

j0,j1,...∈Q1 (j0,j1,...)∈Pk

(M2)p

21

i0,i1

(M2)ρ

12

i1,i2

. . .

(M2)ρ

t

P2I1

it,j0

(M1)p

11

j0,j1

(M1)π

12

j1,j2. . .

= X

j0∈Q1

X

t≥0

M2t+1

p2P2I1

i0,j0

M1ω,k

p1

j0

= (M2)p

2P2I1

M1ω,k

p1

i0.

In the first equality, the first summand on the right side represents situation (a), while the second summand represents situation (b).

(12)

By definition,

(M)p

2

i0,j

= X

t≥1

X

π1,...,πt∈(Γ1∪Γ2)

X

1≤i1,...,it≤n1+n2

(Mp21)i

0,i1

n

k

(Mπ12)i

1,i2. . .(Mπt)i

t,j, i0∈Q2, j∈Q1∪Q2,

(M)p

2

i0,j = 0, i0∈Q1, j∈Q1∪Q2.

Observe that π1 =πp1, π ∈Γ2. To obtain the empty tape,P has to replace eventuallyp1by some π0∈Γ1. But this is possible only in situations (a) or (b).

Hence, we obtain, fori0∈Q2, j∈Q1,

(M)p

2

i0,j = X

j0∈Q1

(Mp2,p1)i

0,j0

(M)p

1

j0,j+ X

t≥1

X

ρ1,...,ρt−1∈Γ+2

X

ρt∈Γ2

X

i1,...,it∈Q2

X

j0∈Q1

(Mp21p1)i

0,i1. . .

(Mρtp1,p1)i

t,j0

(M)p

1

j0,j

= X

j0∈Q1

(M2)p

2P2I1

i0,j0

(M1)p

1

j0,j+ X

t≥1

X

ρ1,...,ρt−1∈Γ+2

X

ρl∈Σ2

X

i1,...,it∈Q2

X

j0∈Q1

(M2)p

21

i0,i1

. . .

(M2)ρ

t−1t

it−1,it

(M2)ρ

tP2I1

it,j0

(M1)p

1

j0,j

=

(M2)p

2P2I1(M1)p

1

j0,j

+ X

j0∈Q1

X

t≥1

M2t+1

p2P2I1

i0,j0

(M1)p

1

j0,j

= X

t≥0

M2t+1

p2P2I1(M1)p

1

i0,j

=

(M2)p2P2I1(M1)p

1

i0,j,

and, fori0∈Q2, j∈Q2,

(M)p

2

i0,j

= 0.

In the first equality, the first summand on the right side represents situation (a), while the second summand represents situation (b).

(13)

We obtain I(M)p

2P = X

i∈Q2

X

j∈Q1

(I2)i (M2)p

2P2I1(M1)p

1

i,j(P1)j

=I2(M2)p

2P2I1(M1)p

1P1

and

I Mω,k

p2= X

i∈Q2

(I2)i

(M2)p

2P2I1

M1ω,k

p1

i

=I2(M2)p

2P2I1 M1ω,k

p1. Hence,

kPk=I(M)p

2P+I Mω,k

p2

=I2(M2)p

2P2

I1(M1)p

1P1+I1 M1ω,k

p1

=kP2kkP1k.

Lemma 4.3. LetS be a complete star-omega semiring andP1,P2S0-ω-pushdown automata. Then there exists an S0-ω-pushdown automaton P such that kPk = kP1k+kP2k.

Proof. Let Pi = (nii, Ii, Mi, Pi, pi, ki), i = 1,2, with Γ1∩Γ2 = ∅. Then we constructP= (n1+n2,Γ, I, M, P, p0, k1+k2), Γ = Γ1∪Γ2∪ {p0}.

The matrixM ∈ S0(n1+n2)×(n1+n2)Γ×Γ

is defined as follows. Let, forπ1, π2∈ Γ1, (π1, π2)6= (ε, ε),

(M1)π

12=

aπ12 bπ12

cπ12 dπ12

,

where the blocks are indexed by{1, . . . , k1},{k1+ 1, . . . , n1}, and, forπ1, π2∈Γ2, (π1, π2)6= (ε, ε),

(M2)π

12=

aπ12 bπ12 cπ12 dπ12

, where the blocks are indexed by{1, . . . , k2},{k2+ 1, . . . , n2}.

Then, we define, for π∈Γ1,

Mp0=

ap1 0 bp1 0

0 0 0 0

cp1 0 dp1 0

0 0 0 0

;

(14)

forπ∈Γ2,

Mp0=

0 0 0 0

0 ap1 0 bp1

0 0 0 0

0 cp1 0 dp1

;

forp∈Γ1, π∈Γ1,

Mp,π=

ap,π 0 bp,π 0

0 0 0 0

cp,π 0 dp,π 0

0 0 0 0

;

and forp∈Γ2, π∈Γ2,

Mp,π=

0 0 0 0

0 ap,π 0 bp,π

0 0 0 0

0 cp,π 0 dp,π

 .

Here the blocks are indexed by {1, . . . , k1}, {k1+ 1, . . . , k1+k2},{k1+k2+ 1, . . . , k2+n1},{k2+n1+ 1, . . . , n1+n2}.

The initial state vector I ∈ S01×(n1+n2) and the final state vector P ∈S0(n1+n2)×1are defined by

I=

((I1)i)1≤i≤k

1,((I2)i)1≤i≤k

2,((I1)i)k

1+1≤i≤n1,((I2)i)k

2+1≤i≤n2

,

and P=

((P1)i)1≤i≤k

1,((P2)i)1≤i≤k

2,((P1)i)k

1+1≤i≤n1,((P2)i)k

2+1≤i≤n2

>

, with the same block indexing as before.

We have to prove that

kPk=kP1k+kP2k= (I1M1P1+I2M2P2) + (I1M1ω,k1+I2M2ω,k2).

The proof of this claim is as follows.

We obtain, for 1≤i≤n1+n2,

Mω,k1+k2

p0

i

= X

π12,...∈Γ+

X

(i1,i2,...)∈Pk1 +k2 1≤i1,i2,...≤n1 +n2

(Mp01)i,i

1(Mπ12)i

1,i2. . .

For 1≤i≤k1 andk1+k2+ 1≤i≤n1+k2, and by deleting the 0-block rows

Hivatkozások

KAPCSOLÓDÓ DOKUMENTUMOK

Continuous Kleene ω-algebras are idempotent complete semiring-semimodule pairs, and conceptually, ∗ -continuous Kleene ω-algebras are a generalization of continuous Kleene ω-algebras

In [11] it is shown that energy problems for one-clock weighted timed automata without updates on transitions (hence only with weights in locations) can be reduced to energy problems

In this paper, we consider a weighted FO logic, a weighted LTL, ω-star-free series and counter-free weighted B¨ uchi automata over idempotent, zero-divisor free and totally

A σ információs állapot akkor és csak akkor támasztja alá az A formulát, ha a σ-hoz tartozó automata ugyanazokat a modelleket (modellkódokat) fogadja el, mint az az automata,

After giving preliminaries on string rewriting in Section 2 and on termination proofs via weighted word automata in Section 3, we define the corresponding hier- archy of

Keywords: computational linguistics, weighted rational transductions, statistical language modeling, N-gram models, weighted finite-state automata..

Droste & Gastin [3, page 52] consider mc-rational and c-rational formal power series that are the semantics of mc-rational and c-rational expressions defined as follows:

In this paper we study finite state Mealy automata over two-symbol alphabet and finite state automata transformations defined by them.. We shall examine algebraic properties of