• Aucun résultat trouvé

Sofic-Dyck shifts

N/A
N/A
Protected

Academic year: 2021

Partager "Sofic-Dyck shifts"

Copied!
32
0
0

Texte intégral

(1)

HAL Id: hal-01801266

https://hal-upec-upem.archives-ouvertes.fr/hal-01801266

Submitted on 28 May 2018

HAL

is a multi-disciplinary open access archive for the deposit and dissemination of sci- entific research documents, whether they are pub- lished or not. The documents may come from teaching and research institutions in France or

L’archive ouverte pluridisciplinaire

HAL, est

destinée au dépôt et à la diffusion de documents scientifiques de niveau recherche, publiés ou non, émanant des établissements d’enseignement et de recherche français ou étrangers, des laboratoires

Sofic-Dyck shifts

Marie-Pierre Béal, Michel Blockelet, Catalin Dima

To cite this version:

Marie-Pierre Béal, Michel Blockelet, Catalin Dima. Sofic-Dyck shifts. Theoretical Computer Science,

Elsevier, 2016, 609, pp.226 - 244. �10.1016/j.tcs.2015.09.027�. �hal-01801266�

(2)

Sofic-Dyck shifts

Marie-Pierre B´eal

Universit´e Paris-Est, Laboratoire d’informatique Gaspard-Monge, UMR 8049 CNRS

Michel Blockelet

Universit´e Paris-Est, Laboratoire d’Algorithmique, Complexit´e et Logique

Cˇatˇalin Dima

Universit´e Paris-Est, Laboratoire d’Algorithmique, Complexit´e et Logique

Abstract

We define the class of sofic-Dyck shifts which extends the class of Markov-Dyck shifts introduced by Inoue, Krieger and Matsumoto. Sofic-Dyck shifts are shifts of sequences whose finite factors form unambiguous context-free languages. We show that they correspond exactly to the class of shifts of sequences whose sets of factors are visibly pushdown languages. We give an expression of the zeta function of a sofic-Dyck shift.

Keywords: Dyck shift, Markov-Dyck shift, sofic-Dyck shift, sofic shift, symbolic dynamics, visibly pushdown automaton, visibly pushdown language, zeta function

1. Introduction

Shifts of sequences are defined as sets of bi-infinite sequences of symbols over a finite alphabet avoiding a given set of finite factors called forbidden factors.

Well-known classes of shifts of sequences are the shifts of finite type which avoid a finite set of forbidden factors and the sofic shifts which avoid a regular set of forbidden factors. Sofic shifts may also be defined as labels of bi-infinite paths of a labeled directed graph.

Dyck shifts are shifts of sequences whose finite factors are factors of well- parenthesized words. They were introduced by Krieger in [28]. In [21], [31], [22], Inoue, Krieger, and Matsumoto investigated generalizations of Dyck shifts called

This work is supported by the French National Agency (ANR) through ”Programme d’Investissements d’Avenir” (Project ACRONYME nANR-10-LABX-58) and through the ANR EQINOCS.

Email addresses: beal@univ-mlv.fr(Marie-Pierre B´eal),michel.blockelet@u-pec.fr (Michel Blockelet),catalin.dima@u-pec.fr(Cˇatˇalin Dima)

(3)

Markov-Dyck shifts. Their languages of factors are unambiguous context-free languages. Such shifts are presented by a finite-state directed graph equipped with a graph inverse semigroup. The graph can be considered as an automaton which operates on words over an alphabet which is partitioned into two dis- joint sets, one for the left parentheses, the other one for the right parentheses.

In [22], Inoue and Krieger introduced an extension of Markov-Dyck shifts by constructing shifts from sofic systems and Dyck shifts. Examples of shifts of this type are the Motzkin shifts. Dyck shifts and their extensions are in gen- eral not synchronized but Krieger and Matsumoto introduced weaker notions of synchronization suitable for Markov-Dyck or Motzkin shifts (see [29], [36], [32]).

Flow invariants for these shifts are obtained in [36] and [15]. In [30] (see also [20] and [19]), Krieger considers subshift presentations, called R-graphs, with word-labeled edges partitioned into two disjoint sets of positive and negative edges equipped with a relation R between positive and negative edges going backwards.

In this paper, we introduce a larger class of shifts. We consider shifts of sequences presented by a finite-state automaton (a labeled graph) equipped with a set of pairs of edges called matched edges. The matched edges may not be consecutive edges of the graph. We call such structures Dyck automata. They may be equipped with a graph semigroup which is no more an inverse semigroup.

The automaton operates on words over an alphabet which is partitioned into three disjoint sets of symbols, the call symbols, the return symbols, and the internal symbols (for which no matching constraints are required).

We call the shifts presented by Dyck automata sofic-Dyck shifts. We prove that this class is exactly the class of shifts of sequences whose set of factors is a visibly pushdown language of finite words. Equivalently, they can be defined as the sets of sequences which avoid some visibly pushdown language of factors.

So these shifts could also be called visibly pushdown shifts.

Visibly pushdown languages were introduced by Mehlhorn [38] and Alur et al. [1, 2]. They form a natural and meaningful class inside the class of unambiguous context-free languages extending the parenthesis languages [37], [27], the bracketed languages [18], and the balanced languages [9], [10]. These languages share many interesting properties with regular languages like stability by intersection and complementation. Visibly pushdown languages are used as models for structured data files like XML files.

We define also a subclass of sofic-Dyck shifts called finite-type-Dyck shifts.

We prove that sofic-Dyck shifts are images of finite-type-Dyck shifts under proper block maps,i.e. block maps mapping call (resp. return, internal) sym- bols to call (resp. return, internal) symbols. The classes of sofic-Dyck shifts and finite-type-Dyck shifts are invariant by proper conjugacies.

In a second part of the paper, we address the problem of the computation of the zeta function of sofic-Dyck shift presented by a Dyck automaton. The zeta function allows to count the number of periodic points of a subshift. It is a conjugacy invariant of a class of shifts. Two subshifts which are conjugate (or isomorphic) have the same zeta functions. The invariant is not complete and it is not known, even for shifts of finite type, whether the conjugacy is a decidable

(4)

property [33].

The formula of the zeta function of a shift of finite type is due to Bowen and Lanford [14]. Formulas for the zeta function of a sofic shift were obtained by Manning [34] and Bowen [13]. Proofs of Bowen’s formula can be found in [33] and [6, 5]. AnN-rational expression of the zeta function of a sofic shift has been obtained by Reutenauer in [39] (see also [12]). Formulas for zeta functions of flip systems of finite type are given in [24], and for sofic flip systems in [25].

The zeta functions of the Dyck shifts were determined by Keller in [23]. For the Motzkin shift where some unconstrained symbols are added to the alphabet of a Dyck shift, the zeta function was determined by Inoue in [21]. In [31], Krieger and Matsumoto obtained an expression for the zeta function of a Markov-Dyck shift by applying a formula of Keller and with a clever encoding of periodic points of the shift.

In Section 6, we give an expression of the zeta function of a sofic-Dyck shift.

The proof combines techniques used for computing the zeta function of a (non Dyck) sofic shift and of a Markov-Dyck shift. We implicitly use the fact that the intersection of two visibly pushdown languages is a visibly pushdown language.

We give an example of the computation of the zeta function of a sofic-Dyck shift.

A short version of this paper appeared in [7].

2. Shifts

We introduce below some basic notions of symbolic dynamics. We refer to [33, 26] for an introduction to this theory. LetA be a finite alphabet. The set of finite sequences or words overA is denoted byA and the set of nonempty finite sequences or words overAis denoted byA+. Theshift transformation σ onAZis defined by

σ((xi)i∈Z) = (xi+1)i∈Z,

for(xi)i∈Z∈AZ. Afactor of a bi-infinite sequence xis a finite wordxi⋯xj for somei, j, the factor being the empty word ifj<i.

Asubshift (orshift) ofAZ is a closed shift-invariant subset ofAZ equipped with the product of the discrete topology. IfX is a shift, a finite word isallowed forX (or is ablock of X) if it appears as a factor of some bi-infinite sequence of X. We denote byB(X)the set of blocks ofX and byBn(X)the set blocks of lengthnofX. LetFbe a set of finite words over the alphabetA. We denote by XF the set of bi-infinite sequences ofAZavoiding all words of F,i.e.where no factor belongs toF. The setXF is a shift and any shift is the set of bi-infinite sequences avoiding all words of some set of finite words. WhenF can be chosen finite (resp. regular), the shiftXF is called ashift of finite type (resp.sofic).

LetLbe a language of finite words over a finite alphabetA. The language isextensible if for anyu∈L, there are lettersw, z∈A+ such thatwuz∈L. It is factorial if any factor of a word of the language belongs to the language.

IfX is a subshift, B(X)is a factorial extensible language. Conversely, ifL is a factorial extensible language, then the setB1(L)of bi-infinite sequencesx such that any finite factor ofxbelongs toL is a subshift [33].

(5)

LetX ⊆AZbe a shift andm, nbe nonnegative integers. A map Φ∶XÐ→BZ is called an(m, n)-block mapwith memorymand anticipationnif there exists a function φ∶ Bm+n+1(X)Ð→B such that, for all x∈X and anyi∈Z, Φ(x)i= φ(xi−m⋯xi−1xixi+1⋯xi+n). Ablock mapis a map which is an(m, n)-block map for some nonnegative integersm, n.

Aconjugacy is a bijective block map fromX toY. A property of subshifts which is invariant by conjugacies is called aconjugacy invariant.

3. Sofic-Dyck shifts

In this section, we define the class of sofic-Dyck shifts which generalizes the class of Markov-Dyck shifts introduced in [28] and [35] (see also [31]).

We consider an alphabet A which is a disjoint union of three finite sets of letters, the setAc of call letters, the set Ar ofreturn letters, and the set Ai of internal letters. The setA=Ac⊔Ar⊔Ai is called apushdown alphabet.

The two sets of call and return symbols may not have the same size. We assume that any call symbol may match any return symbol. We denote by MR(A)the set of all finite words overAwhere every return symbol is matched with a call symbol,i.e.u∈MR(A)if for every prefixuofu, the number of call symbols ofu is greater than or equal to the number of return symbols of u. These words are calledmatched-return. Similarly, MC(A)denotes the set of all words where every call symbol is matched with a return symbol,i.e.u∈MC(A) if for every suffixu ofu, the number of return symbols ofu is greater than or equal to the number of call symbols ofu. These words are calledmatched-call.

We say that a word is aDyck word if it belongs to the intersection of MC(A) and MR(A). Dyck words are well-parenthesized or well-formed words. Note that the empty word or all words over Ai are Dyck words. The set of Dyck words overA is denoted by Dyck(A). For instance forAc = {(,[}, Ar={),]}, Ai={i}, the word( ( [i)is matched-return, the word( ]i]is matched-call and ( [i] ] ( )is a Dyck word onA.

A (finite) Dyck automaton Aover Ais a pair (G, M)of an automaton (or a directed labeled graph) G = (Q, E, A) over A where Q is the finite set of states, E ⊆Q×A×Q is the set of edges, and with a set M of pairs of edges ((p, a, q),(r, b, s))such thata∈Ac andb∈Ar. The edges labeled by call letters (resp. return, internal) letters are also calledcall (resp.return, internal) edges and are denoted byEc (resp.Er, Ei). The setM is called the set ofmatched edges. Ifeis an edge we denote bys(e)its starting state and byt(e)its target state.

A finite pathπofAis said to be anadmissible pathif for any factor(p, a, q)⋅ π1⋅(r, b, s) of π with a ∈ Ac, b ∈ Ar and the label of π1 being a Dyck word on A, ((p, a, q),(r, b, s)) is a matched pair. Hence any path of length zero is admissible and factors of finite admissible paths are admissible. A bi-infinite path isadmissible if all its finite factors are admissible.

Thesofic-Dyck shift presented byAis the set of labels of bi-infinite admis- sible paths ofAand Ais called apresentation of the shift.

(6)

An equivalent semantics of Dyck automata is given in [7] with a graph semi- group associated toA. This graph semigroup is no more an inverse semigroup as for presentations associated to Markov-Dyck shifts [28].

Note that the label of a finite admissible path may not be a block of the presented shift since a finite admissible path may not be extensible to a bi- infinite admissible path.

Lemma 1. The sofic-Dyck shift presented by a Dyck automaton is exactly the set of bi-infinite sequences x such that each finite factor of x is the label of a finite admissible path.

Proof. Let X be the sofic-Dyck shift presented by a Dyck automaton A. By definition, any finite factor of a bi-infinite sequence ofX is the label of a finite admissible path.

The converse part is due to the following classical compacity argument. Let xbe a bi-infinite sequence such that each finite factor ofxis the label of a finite admissible path. Thus for any positive integeri, there is a path

pi,−i−1 x−i

ÐÐ→pi,−iÐÐ→xi−1 ⋯pi,−1 x0

Ð→pi,0 x1

Ð→pi,1⋯Ð→xi pi,i,

which is admissible forA. For each nonnegative integerm, there is an infinite number of such paths sharing the statespkat all indiceskfor−m≤k≤m. Then π= ((pk−1, xk, pk))k∈Z is a bi-infinite path whose finite factors are admissible paths ofA. Thus the label xofπbelongs toX.

Proposition 1. A sofic-Dyck shift is a subshift.

Proof. Let X be a sofic-Dyck shift defined by an automatonA. Let F be the set of finite words which are not the label of any finite admissible path ofA.

ThenX=XF by Lemma 1 and thusX is a subshift.

We denote respectively by MR(X), MC(X)and Dyck(X), the intersections of MR(A), MC(A)and Dyck(A)with the set of blocks ofX.

Example 1. LetA=Ac⊔Ar⊔Ai withAc={a1, . . , ak},Ar={b1, . . , bk}andAi

is the empty set. TheDyck shift of orderkover the alphabetAis the set of all sequences accepted by the one-state Dyck automatonA =(G, M)containing all loops(p, a, p)fora∈A, and where the edge(p, ai, p)is matched with the edge (p, bi, p)for 1≤i≤k.

A Motzkin shift is the set of bi-infinite sequences presented by the automaton A=Ac⊔Ar⊔Ai with Ac ={a1, . . , ak}, Ar ={b1, . . , bk}, the set Ai being no more the empty set. A Motzkin shift is represented in the left part of Figure 1.

It is shown in [21] that the entropy of the Motzkin shift on this alphabet is log 4.

Another example is the sofic-Dyck shiftX is presented by the Dyck automaton in the right part of Figure 1. For instance, the bi-infinite sequences⋯(([ii][])⋯ and⋯) ) ) ) )⋯belong toX while the sequences⋯( [i] [ ] )⋯or ⋯( ]⋯do not.

We have(i i) ( )∈Dyck(X)and( ) ( [i∈MR(X).

Note that a call symbol may match several return symbols and conversely although it is not the case in the above examples.

(7)

1 i ) (

[ ]

1 2

i i ( )

[ ]

Figure 1: A Motzkin shift (on the left) overA=AcAr⊔AiwithAc= {(,[},Ar={),]}and Ai={i}. A sofic-Dyck shift (on the right) over the same tri-partitioned alphabet. Matched edges are linked with a dotted line.

4. Finite-type-Dyck shifts

In this section we give a definition of a subclass of sofic-Dyck shifts called finite-type-Dyck shifts. We show that sofic-Dyck shifts are the images of finite- type-Dyck shifts by proper block maps.

Let A and B be two tri-partitioned alphabets. We say that a block-map Φ∶AZÐ→BZ isproper if and only if Φ(x)i∈Ac (resp.Ar,Ai) wheneverxi∈Ac (resp.Ar,Ai).

Let A be a tri-partitioned alphabet. If (u, v) and (u, v)are two pairs of words overA, we note(u, v)⪯(u, v)ifuis a suffix ofuandv is a prefix ofv. LetF⊆AandU ⊆(A×Ac×A)×(A×Ar×A). We say that a finite or bi- infinite sequencexavoids Fif, for each finite factoruofx, one hasu∉F. We say that a finite or bi-infinite sequencexavoids U if for each finite factoru=vawbz ofxwitha∈Ac, b∈Ar,w∈Dyck(A), there is no pair((u1, a, u2),(v1, b, v2))in U such that (u1, u2)⪯(v, wbz)and(v1, v2)⪯(vaw, z).

A finite-type-Dyck shift overA is a set of bi-infinite sequencesX for which there are twofinite setsF ⊆A,U⊆(A×Ac×A)×(A×Ar×A), such that X is the set of sequencesavoiding F andU.

Proposition 2. A finite-type-Dyck shift is a sofic-Dyck shift.

Proof. LetX be a finite-type-Dyck shift of bi-infinite sequences overAavoiding two finite setsF and U. Without loss of generality we may assume that there are positive integersm, nsuch thatF⊆Am+n+1andU ⊆(Am×Ac×An)×(Am× Ar×An).

We define the Dyck automatonA =(G, M)overAas follows. Let us denote G =(Q, E). We set

• Q={(u, v) ∣u∈Am, v∈An},

• E={((bu, av), a,(ua, vc)) ∣a, b, c∈A, u∈Am1, v∈An1, buavc∉F},

• Mis the set of pairs of edges((du, av), a,(ua, vc)),((du, bv), b,(ub, vc)), wherea∈Ac,b∈Ar,c, c, d, d∈A,u, u∈Am1, v, v∈An1and such that ((du, a, vc),(du, b, vc))∉U.

The sofic-Dyck shift presented byAisX.

(8)

Proposition 3. Sofic-Dyck shifts are the images of finite-type-Dyck shifts by proper block maps.

Proof. We first show that any sofic-Dyck shift is the image of a finite-type-Dyck shift by a proper block map.

LetA =(G, M)be a Dyck automaton accepting a sofic-Dyck shiftX overA withG =(Q, E). Let E=Ec⊔Er⊔Ei be the tri-partitioned alphabet of edges ofA whereEc (resp.Er,Ei) is the set of call (resp. return, internal) edges of A.

We define a Dyck automaton BoverE as follows. The set of states ofBis the set of statesQofA. There is an edge(p, e, q)∈ Bif and only ifeis an edge of Astarting at p and ending in q. A pair of edges ((p, e, q),(r, f, s)) of B is matched if(e, f)is a matched pair of A.

Let Y be the sofic-Dyck shift presented by B. It is the set of sequences avoiding

• F={ef∈E2∣t(e)≠s(f)},

• U ={((p, e, q),(r, f, s))∈Ec×Er∣ (e, f)∉M},

SinceF andU are finite, the shiftY is a finite-type-Dyck shift.

Let Φ ∶ EZ Ð→ AZ be the (0,0)-block map defined by φ ∶ B1(Y)Ð→ A as follows. We setφ(e)=awhereais the label of the edge eofA. The map Φ is clearly a proper block map sending each bi-infinite admissible path ofAto its label. As a consequenceX =Φ(Y).

We now prove that the image of a finite-type-Dyck shift by a proper block map is a sofic-Dyck shift.

Let Φ∶AZÐ→BZ be a proper block map andX be a finite-type-Dyck shift of sequences over A. Without loss of generality we may assume that there are positive integers m, n such that Φ is a proper (m, n)-block map and X is the set of sequences avoiding two finite sets F and U with F ⊆ Am+n+1 and U⊆(Am×Ac×An)×(Am×Ar×An).

Let φ∶ Am+n+1 Ð→ B be the function defining Φ. We define the Dyck au- tomatonA(φ, F, U)=(G, M)overA×B as follows. Let us denoteG =(Q, E). We set

• Q={(u, v) ∣u∈Am, v∈An},

• E={((bu, av),(a, φ(buavc)),(ua, vc)) ∣a, b, c∈A, u∈Am1, v∈An1 and buavc∉F},

• M is the set of pairs of edges (e, f) with e = ((bu, av),(a, φ(buavc)), (ua, vc)), f = ((bu, av),(a, φ(buavc)),(ua, vc)), where a ∈ Ac, a ∈ Ar, b, b, c, c ∈ A, u, u ∈ Am1, v, v ∈ An1 and the pair (bu, a, vc), (bu, a, vc)∉U.

Let A1 (resp. A2) be the Dyck automaton obtained by removing the second (resp. first) components of the labels of the edges. The Dyck automaton A1

is a presentation of X. Further, if x∈X, there is a unique admissible path of

(9)

A1 labeled by x. Indeed, each factor of a bi-infinite path of A1 labeled by uv withu∈Am,v∈An, goes through the state(u, v)after readingu. A pair of bi- infinite sequences(x, y)is the label of a bi-infinite admissible path ofA(φ, F, U) if and only ifx∈X and Φ(x)=y. HenceA2 is a presentation of Φ(X)which is thus sofic-Dyck.

Proposition 4. The image of a sofic-Dyck shift by a proper block map is a sofic-Dyck shift.

Proof. Let Φ a proper block map from a sofic-Dyck shiftX ontoY. By Propo- sition 3, X is the image of a finite-type-Dyck shiftS by a proper block map Ψ. The map Φ○Ψ∶S Ð→ Y is a proper block map and thus its image Y is a sofic-Dyck shift by Proposition 3.

The following corollary is a direct consequence of Proposition 4.

Corollary 1. The class of sofic-Dyck shifts is invariant by proper conjugacy.

We prove below that the same result holds for finite-type-Dyck shifts.

Proposition 5. The class of finite-type-Dyck shifts is invariant by proper con- jugacy.

Proof. LetX be a finite-type-Dyck shift overA which is properly conjugate to a shiftY over B. Let Φ be a proper block map fromAZ to BZ that induces a conjugacy fromX to Y. Without loss of generality we may assume that there are positive integers m, n such that Φ is a proper (m, n)-block map and X is the set of sequences avoiding two finite sets F and U with F ⊆ Am+n+1 and U⊆(Am×Ac×An)×(Am×Ar×An).

Let Ψ=Φ1∶Y →Xbe the proper(m, n)-block map inverse of Φ andψthe block function of Ψ. It induces a map (still denoted byψ) from Bm+m+1+n+n toAm+1+n. We setd=m+m,k=n+n, r=d+1+k. LetF=B5r∖B5r(Y) and let U⊆(Bd×Bc×Bk)×(Bd×Br×Bk)be the set of pairs (u, v)such that(ψ(u), ψ(v))∈U. Let us show thatY is the setZ of sequences avoiding F andU.

By construction, Y ⊆Z. Let now z∈Z. We prove by induction that each factor of lengthjrbelong toB(Y)forj≥5. We first have by definition ofZthat each factor of length 5rbelongs toB(Y). Assume now that each factor ofz of lengthjrbelongs toB(Y)for somej≥5. Letzbe a factor ofzof length 2(j−1)r decomposed asz=u1u2u3wv3v2v1 with∣u1∣=∣u2∣=∣v1∣=∣v2∣=r,∣w∣=2rand

∣u3∣=∣v3∣=(j−4)r. The factors u=u1u2u3w andv=wv3v2v1 of z are of lengthjr and are assumed to be blocks of Y. We set u=u1u2u3w1 = ψ(u), where∣u1∣=∣u1∣−m and∣w1∣=∣w∣−n andv=w2v3v2v1=ψ(v), where∣w2∣=

∣w∣−mand∣v1∣=∣v1∣−n. Note thatw1[m,∣w1∣−1]=w2[0,∣w2∣−n]. Hencew1 andw2overlap on a partwof length at least∣w∣−m−n=2r−m−n≥m+n.

Sinceu, v∈ B(Y), we haveu, v∈ B(X).

LetA(φ, F, U)be the Dyck automaton defined in the proof of Proposition 3. A pair of bi-infinite sequences (x, y) is the label of a bi-infinite admissible

(10)

path of A(φ, F, U)if and only ifx∈X and Φ(x)=y. Further, all finite paths of the input Dyck automaton A1 of A(φ, F, U) which are labeled by a given block x1x2∈ B(X)with∣x1∣=m and∣x2∣=ngo through the same state after readingx1. As a consequence, since∣w∣≥m+n, there is a path inA1 labeled byx=u1u2u3w1tv3v2v1=ψ(z), where w2=wt. Since z avoidU, we havex avoidsU. Hence x∈ B(X), implying φ(x)=u0u2u3wv3v2v0, whereu0 is the suffix ofu1of length∣u1∣−m−mandv0 is the prefix ofv1 of length∣v1∣−n−n.

We obtain thatu2u3wv3v2 ∈B(Y). Hence each factor of length 2(j−2)rof z belongs toB(Y)and 2(j−2)r≥(j+1)rforj≥5. This proves that each factor ofzbelongs toB(Y). We getZ=Y andY is a finite-type-Dyck shift.

5. Presentations of sofic-Dyck shifts

In this section we define several particular presentations of sofic-Dyck shifts which will be useful for the computation of zeta function.

A Dyck automaton is deterministic1 if there is at most one edge starting in a given state and with a given label. Sofic shifts (see [33]) always have a deterministic presentation. Although visibly pushdown languages are accepted by deterministic visibly pushdown automata [2], sofic-Dyck shifts may not be presented by any deterministic Dyck automaton as is shown in Example 3. In- deed, the two notions of determinism do not match. The notion of determinism for visibly pushdown languages includes the stack symbol as input for return transitions of visibly pushdown automata.

Let A be a Dyck automaton. We define the left reduction of A as the Dyck automaton obtained through some determinization process. The process is an adaptation to Dyck automata of the determinization of visibly pushdown automata [1]. It is sketched in [8] and we detail it here.

Let A =(G, M)with G =(Q, E) be a Dyck automaton over A. We define a Dyck automaton D =(H, N) over A, where H = (Q, E) with Q= P(Q× Q)×P(Q)and P(Q)is the set of subsets ofQ. States are pairs(S, R)where S is called the summary2 of the state and R is a nonempty subset ofQ. The stateI = (∅, Q)is called the initial state. For each state (S, R), the set S is empty if and only the admissible paths going fromI to(S, R)are labeled by a matched-call word. It is nonempty if all admissible paths going fromIto(S, R) are of the form

IÐ→u (S”, R”)Ð→a (T, U)Ð→w (S, R),

wherea∈Ac andwis a Dyck word. If there is such a path, the summaryS of the state(S, R)is the set of pairs(p, q)inU×Rsuch that there is an admissible path ofAlabeled by the Dyck wordwfrompto q. In both cases, if there is a path labeled byv inD fromI to(S, R), thenR is the set of statesqsuch that there is an admissible path inAlabeled byv ending inq.

1Deterministic presentations are also calledright-resolvingin [33].

2The definition of summaries differs slightly from the one given in [1].

(11)

For a subset R of Q, we denote by Diag(R) the set of all pairs (p, p) for p∈R. The edges of D are defined as follows.

• For every ℓ ∈Ai, ((S, R), ℓ,(S, R))∈ E if S={(p, q) ∣∃r ∈Q,(p, r)∈ S,(r, ℓ, q)∈E}andR={q∣∃p∈R,(p, ℓ, q)∈E}is nonempty.

• For everya∈Ac,((S, R), a,(Diag(R), R))∈EifR={q∣∃p∈R,(p, a, q)∈ E}is nonempty.

• For every b∈ Ar, the edges stating from(S, R)with S ≠∅ labeled by b are defined as follows. For any edge((S′′, R′′), a,(T, U)) witha∈Ac we define

– Update = {(p, p) ∣ ∃p1, p2∶(p, a, p1) ∈ E,(p1, p2) ∈ S,(p2, b, p) ∈ E, ((p, a, p1),(p2, b, p))∈M},

– S={(p, q) ∣∃p,(p, p)∈S”,(p, q)∈Update}, – R={q∣∃p∈R”,(p, q)∈Update}.

IfRis not empty, we define an edge ((S, R), b,(S, R))∈Eand set this edge matched with((S”, R”), a,(T, U)).

• For everyb∈Ar, we define an edge((∅, R), b,(∅, V))∈Ewhere V ={q∣

∃p∈R,(p, b, q)∈E}is nonempty. This return edge is not matched with any call edge.

We only keep inD the states reachable fromI.

Proposition 6. The left reduction of a Dyck automaton A presents the same sofic-Dyck shift asA.

Proof. Let X be the sofic-Dyck presented by A and D be the left reduction of A. Let v be the label of an admissible path of A going from p to q. By construction there is an admissible path ofDlabeled byvgoing fromIto some state(S, R)withq∈R. Thus labels of finite admissible paths ofAare labels of finite admissible paths ofD.

Conversely, let v be the label of some finite admissible path π of D. We claim thatv is the label of an admissible path ofA.

We prove the claim by recurrence on the length of v. It is true if v is the empty word. Letv=ucwhere c∈Aand π=(S1, R1)Ð→u (S, R)Ð→c (S, R). By induction hypothesis, we assume that for any stater∈Rthere is an admissible path labeled byufrom some state q∈R1 to r. If the edge ((S, R), c,(S, R)) is a call or internal edge or is a return edge not matched with a call edge ofπ, the result holds by construction foruc. Let us assume that

π=(S1, R1u→(S”, R”)Ð→a (T, U)Ð→w (S, R)Ð→b (S, R),

wherew is a Dyck word over A, a∈Ac, andb∈Ar. By induction hypothesis, we assume that for any statep∈R” there is an admissible pathqÐ→u pinAfor someq∈R1.

(12)

For any r ∈ R there are p ∈ R′′ and (p1, p2) ∈ S such that (p, a, p1) and (p2, b, r)are matched in A. Further, S is the set of pairs (s, s)∈U ×R such that there is an admissible path in A labeled by w from s to s. It follows that there is inA an admissible path labeled byw from p1 to p2 and thus an admissible pathqÐu→pÐ→a p1

Ð→w p2

Ð→b r in A which concludes the proof of the claim.

Note that since the label of an admissible path ofD is the label of an ad- missible path of A, each label of an admissible path of D is the label of an admissible path ofD starting atI.

We similarly define theright reduction ofAwith a co-determinization ofA and an exchange of roles played by call and return edges. Note the left reduction ofAmay have more states thanA.

LetLbe a language of finite words. A Dyck automaton isL-deterministic if there is at most one admissible path starting in a given state and with a given label inL.

By construction the left reduction of a Dyck automaton isAc-deterministic andAi-deterministic.

A Dyck automaton is weak-deterministic if there is a state I such that for any worduthere is at most one admissible path labeled byustarting atI.

Proposition 7. The left reduction of a Dyck automaton is weak-deterministic.

Proof. Let D be the left reduction of a Dyck automaton A and let I be the initial state of D. Let us suppose that the property is false. We consider two minimal-length distinct admissible paths starting at I and sharing the same label.

IÐ→u (S, R)Ð→b (T, U), IÐ→u (S, R)Ð→b (T, U),

withb∈A and(T, U)≠(T, U). We may assume (S, R)=(S, R)since these paths are of minimal length. SinceD isAc-deterministic andAi-deterministic, we may assume thatb∈Ar. By definition, we haveU =U. Ifubis matched-call, T andTare empty, hence (T, U)=(T, U). If ub=uawb, wherewis a Dyck word anda∈Ac, the two above paths are

I u

Ð→(S1, R1)Ð→a (S2, R2)Ð→w (S, R)Ð→b (T, U), I u

Ð→(S1, R1)Ð→a (S2, R2)Ð→w (S, R)Ð→b (T, U).

Since the paths are admissible,((S, R), b,(T, U)) is matched with((S1, R1), a, (S2, R2)) and ((S, R), b,(T, U)) is matched with ((S1, R1), a,(S2, R2)). By definition of the summary we getT =T, a contradiction.

(13)

Corollary 2. The left reduction of a Dyck automaton over A is Dyck(A)- deterministic.

Proof. Let (S, R)be a state of the left reduction of a Dyck automaton over A and w be a Dyck word over A. Let us assume that there are two admissible pathsπ1 and π2 labeled byw starting at(S, R). Since there is an admissible pathπfromIto(S, R), the pathsππ1andππ2are two admissible paths starting atI. They are then equal by Proposition 7.

Example 2. The Dyck automatonAon the left of Figure 2 has as left reduction the Dyck automaton on the right of the picture. The initial state is the state I=(∅,{1,2,3}).

(1,1);1

∅;123

∅;2 (1,2);2

(1,3);3

∅;3

∅;1 1

2

3 b

i

b i

j

k a

a

j

k

a a

b

b

b i

b i a

a j

k i

i a a

j

k b

b

Figure 2: A Dyck automatonA(on the left) overA=AcAr⊔AiwithAc={a, a},Ar={b}

andAi={i, j, k}. The left reduction ofA(on the right) over the same tri-partitioned alphabet.

Matched edges are linked with a dotted line and each state is represented by its summary set Sof pairs of edges and the setR.

Example 3. The sofic-Dyck shiftX presented by the Dyck automatonAof Fig- ure 3 has no deterministic presentation. Let us briefly give a sketch of the proof

3 1 2

i i j

k

b a b

Figure 3: A Dyck automatonAoverA, withAc={a},Ar={b}andAi={i, j, k}, presenting a sofic-Dyck shift which has no deterministic presentation. Matched edges are linked with a dotted line.

of this fact. LetBbe a deterministic Dyck automaton overAaccepting the same shiftX. For any positive integersn, m, r, the words(an+mibnj)r(ibmj)r(ibmk)r are blocks ofXand are thus factors of labels of admissible paths inB, the edges labeled bybof the path labeling(ibmj)r being matched with the edges labeled byaof the path labeling(an+mibnj). IfBis finite and deterministic, this implies

(14)

that there arem, r, s>0 andn>n>0 such that(an+n+mibnj)r(ibmj)r(ibmk)r is a block ofX, a contradiction.

5.1. Visibly pushdown shifts

In this section we show that the class of sofic-Dyck shifts is the class ofvisibly pushdown shifts, i.e. the subshifts whose set of blocks are factorial extensible visibly pushdown languages.

The class of visibly pushdown languages of finite words can be described either by pushdown automata or by context-free grammars.

A visibly pushdown automaton on finite words over A =Ac⊔Ar⊔Ai is a tuple M = (Q, I,Γ,∆, F) where Q is a finite set of states, I ⊆ Q is a set of initial states, Γ is a finite stack alphabet that contains a special bottom-of-stack symbol–, ∆⊆(Q×Ac×Q×(Γ∖{–}))∪(Q×Ar×Γ×Q)∪(Q×Ai×Q), and F⊆Qis a set of final states.

A transition (p, a, q, γ), where a ∈Ac and γ ≠–, is a push-transition. On readinga, the stack symbolγ is pushed onto the stack and the control changes from statepto q. A transition(p, a, γ, q)is a pop-transition. The symbolγ is read from the top of the stack and popped. Ifγ=–, the symbol is read but not popped. A transition(p, a, q)is a local action.

A stack is a nonempty finite sequence over Γ starting with–. A run ofM labeled by w = a1. . ak is a sequence (p0, σ0)⋯(pk, σk) where pi ∈ Q, σ0 = –, σi∈(Γ∖{–})for 1≤i≤k, and such that:

• If ai is call symbol, then there are γi ∈ Γ and (pi−1, ai, pi, γi)∈ ∆ with σii−1⋅γi.

• Ifai is a return symbol, then there areγi∈Γ and(pi1, ai, γi, pi)∈∆ with eitherγi≠–andσi⋅γii1or γi=–andσii1=–.

• Ifai is an internal symbol, then(pi1, ai, pi)∈∆ andσii1.

A run is accepting if p0∈ I, σ0 =–, and the last state is final, i.e.pk ∈ F. A word over Ais accepted if it is the label of an accepting run. The language of words accepted byM is denoted byL(M). The language accepted by a visibly pushdown automaton is called avisibly pushdown language.

We will use also the following grammar-based characterization (see [2]).

A context-free grammar over an alphabetA is a tupleG=(V, S, P), where V is a finite set of variables,S∈V is a start variable andP is a finite set of rules of the formX Ð→αsuch that X ∈ V and α∈(V ∪A). The semantics of the grammarGis defined by the derivation relation Ð→over(V ∪A). IfXÐ→αis a rule andβ, βare words of(V ∪A), thenβXβÐ→βαβholds. The language accepted by the grammar G, denotedL(G)is the set of wordsuinB such that SÔ⇒ u, where Ô⇒ is the transitive closure of the relationÐ→.

LetA be a tri-partitioned alphabet. A context-free grammarG=(V, S, P) overAis avisibly pushdown grammar with respect toAif the setV of variables is partitioned into two disjoint setsV0 and V1, such that all rules in P are of one of the following forms

(15)

• X→ε;

• X→aY, such that ifX∈V0, then a∈Ai andY ∈V0;

• X→aY bZ, such thata∈Ac,b∈Ar, Y ∈V0, and ifX∈V0, thenZ∈V0. The variables inV0 derive only Dyck words. The variables inV1 derive words that may contain unmatched call letters as well as unmatched return letters. In the ruleX →aY, if ais a call it is unmatched and the variable X must be in V1 ifa is a call or return. In the ruleX →aY bZ, the symbolsa andbare the matching call and return. The words generated by Y belong to V0 and thus are Dyck words. Furthermore, ifX is required to generate Dyck words, thenZ also.

It is shown in [2] that a language is visibly pushdown language if and only if it is accepted by a visibly pushdown grammar.

Proposition 8. The set of labels of finite admissible paths of a Dyck automaton is a visibly pushdown language.

Proof. LetA =(G, M)be a Dyck automaton overA, where G =(Q, E). We define a visibly pushdown automatonV =(Q, I,Γ,∆, F)overA, where I=F =Qand Γ is the set of edges of A. The set of transitions ∆ is obtained as follows.

• If(p, a, q)∈E witha∈Ac, then (p, a, q,(p, a, q))∈∆.

• If(p, b, q)∈E withb∈Ar, then(p, b, γ, q)∈∆ for each call edge γwhich is matched with the return edge(p, b, q).

• If(p, ℓ, q)∈E withℓ∈Ai, then(p, ℓ, q)∈∆.

Letwbe a finite word overA. There is run(p0, σ0)⋯(pk, σk)inV labeled byw such thatσ0=–,p0=pandpk=qif and only ifwbe the label of an admissible pathπofAgoing fromptoq. Thuswis the label of an admissible path ofAif and only if it is the label of an accepting run ofV, which proves the proposition.

In order to prove that the set of blocks of sofic-Dyck shift is a visibly push- down language, we have to prove that the subset of words labeling a finite admissible path which are extensible to labels of bi-infinite admissible paths is also a visibly pushdown language.

LetLbe a language of finite words overA. We denote byE(L)the set words w∈Lsuch that, for any integern, there are wordsu, vof length greater thann such thatuwv∈L. Note thatE(L)is a factorial language whenLis factorial.

This set is called in [16] thebi-extensible subset ofL.

We show below that the bi-extensible subset of a factorial visibly pushdown language is a visibly pushdown language. It is shown in [16] that it is not true that the bi-extensible subset of a context-free language is a context-free language but the result holds for factorial context-free languages. We prove a similar result for factorial visibly pushdown languages.

We first recall the following pumping lemma (see [16, Lemma 5.6]).

(16)

Lemma 2. Let G=(V, S, P) be a context-free grammar and L=L(G). Then for any integert>0, there exists an integerp(t)such that for eachz∈Land any setK of distinguished positions inz, if∣K∣≥p(t), then there is a decomposition z=ux1⋯xtwy1⋯ytv such that

There exists a variable X∈V such that

SÐ→ uXvÐ→ ux1Xy1vÐ→ ⋯Ð→ ux1⋯xtXyt⋯y1vÐ→ ux1⋯xtwyt⋯y1v.

For any i1, . . , it, we have uxi11⋯xittwytit⋯y1i1v∈L.

If K(x)denotes the distinguished positions of K in a wordx, then either K(u), K(x1), . . K(xt), K(w) ≠ ∅, or K(w), K(yt), . . K(y1), K(v) ≠ ∅. We also have∣K(x1)∪. . K(xt)∪K(w)∪K(yt)∪. . K(y1)∣≤p(t). Proposition 9. If L is a factorial visibly pushdown language, thenE(L) is a factorial visibly pushdown language.

Proof. Let G=(V, S, P) be a visibly pushdown grammar over A accepting L.

We define a grammarG=(V∪{Xi}, S, P)overA=(Ac∪{$1}, Ar∪{$1}, Ai∪ {$0})obtained by adding the following rules toG:

• X →$1X$1X1 and X1 → ε, for each X ∈V0 such that X Ð→

G uXv with u, v∈A+,

• X→$0X, for eachX∈V such thatXÐ→

G uX withu∈A+.

Note that it is not possible to have a rule X ∈V such that X Ð→ Xu with u∈A+. The grammarGis a visibly pushdown grammar over A.

Let L1 = {w ∈ A ∣ ∃wi ∈ A, w1$w2ww3$w4 ∈ L(G),$ = $0 or$1,$ =

$0 or$1},L2={w∈A∣∃wi∈A, w1$1w2ww3$1w4,∈L(G)}andL3=L1∪L2. Let us prove that L3 ⊆ E(L). We first consider a word w∈ L2 such that w1$1w2ww3$1w4 ∈ L(G). Then w2ww3 is generated in G by some variable X ∈ V0 such that X Ð→ uXv, for u, v ∈A+. Thus, for any integer n, we have unw2ww3vn∈L. Thusw∈ E(L).

Let us consider a word w∈ L1 such that w1$1w2ww3$1w4 ∈ L(G). Thus there are words u1, u2, u3, u4 such that u1$1u2$1w2ww3$1u3$1u4 ∈ L(G). It follows that there are wordsx, y, z, t∈A+such thatu1xnu2ynw2ww3znu3tnv4∈ L, for any positive integern. Thusw∈ E(L).

We now consider the case wherew∈L1withw1$0w2ww3$0w4∈L(G). Then there are variables X, Y such that X Ð→ uX for some u∈ A+, Y Ð→ vY with v ∈ A+, such that S Ð→ αXβY γ and Xβ Ð→ w2ww3. It follows that, for any positive integer n, we have unw2ww3vn ∈ L. Hencew∈ E(L). The remaining cases are proved similarly.

We now prove that E(L)⊆L3. Let z∈ E(L)of lengtht. We choosez1, z2∈ A+ of length greater than p(t), where p(t) is defined in Lemma 2, such that

(17)

z = z1zz2 ∈ L. For technical reasons that will appear below, we also choose

∣z2∣>4∣K∣(∣z1∣+∣z∣).

We consider a set of distinguished positions inz1. By Lemma 2, there is a variableX in V such that

SÐ→ uXvÐ→ ux1Xy1vÐ→ ⋯ux1⋯xtXyt⋯y1vÐ→ ux1⋯xtwyt⋯y1v=z. LetT be the induced derivation tree andTbe the subtree ofT (labeled byX) generatingw. Let πbe the path going from the root of T to the parent of the root ofT. The lengthℓ of π is at most∣ux1⋯xt∣ since all rules of Gproduce either the empty word or a non empty word overV∪Awith a terminal symbol on the left.

At least one of two following cases holds.

• K(u), K(x1), . . , K(xt), K(w)≠∅.

– If z is a factor ofwyt⋯y1 and X → $1X$1X1 is a rule of G, then u$1x1⋯xt wyt⋯y1$1v∈L(G)and thusz∈L3.

– Ifzis a factor ofwyt⋯y1andX →$1X$1X1is not a rule ofG. Then yt⋯y1=εand X → $0X is a rule of G. Thus the word ˆz obtained after inserting$0 betweenuandx1is still inL(G).

Furthermore, z is a factor of w. We set w= w1zw2. If ∣w2∣ < ∣K∣,

∣yt⋯y1v∣=∣z2∣−∣w2∣>4∣K∣×∣z1z∣−∣K∣≥3∣K∣×∣ux1⋯xt∣≥3ℓ∣K∣. We denote byR the set of nodes in T which are children of nodes ofπ on the right ofπand thus generateyt⋯y1v. The size of the set Ris at most 3ℓsince all rules of Ghave an arity at most 4.

At most 3ℓ variables generating a sequence of length greater than 3ℓ∣K∣, there is a variable Y in R such thatY generates a factor of length at least∣K∣ofyt⋯y1v which is a factor ofz2. We do a second pumping for words generated byY using distinguished positions on yt⋯y1v and get that the word obtained from ˆz after inserting either

$0 or$1 inyt⋯y1v is still inL(G).

If∣w2∣≥∣K∣, we do a second pumping for words generated byXusing distinguished positions onw2and get that the word obtained from ˆz after inserting either$0or $1 inw2 is still inL(G).

– If z is a factor of yt⋯y1v, then w can be replaced either by $1w or by $0w and gives a word ˆz. A similar argument as above for a second pumping still holds. We have this time ∣z2∣ >4∣K∣×∣z1z∣ ≥ 4∣K∣×∣ux1⋯xt∣≥3ℓ∣K∣. Hence there is a variable Y in R such that Y generates a factor of length at least ∣K∣ of z2. We do a second pumping for words generated byY using distinguished positions on z2and get that the word obtained from ˆz after inserting either$0 or

$1 inz2 is still inL(G).

– Otherwise z is a factor of wyt⋯y1v and z crosses w, yt⋯y1 and v.

Then∣yt⋯y1∣ < ∣z∣=t. Thus there is 1≤i≤tsuch that yi=ε. So we

(18)

can replacexi by$0xi obtaining ˆz. Again here there is a variableY in Rsuch that Y generates a factor of length at least∣K∣ofz2. We do a second pumping for words generated byY using distinguished positions onz2and get that the word obtained from ˆzafter inserting either$0or $1 inz2 is still inL(G).

• K(w), K(yt), . . , K(y1), K(v)≠∅. Thenzis a factor ofv since the distin- guished positions are onz1. Thenwcan be replaced either by $1wor by

$0w. The second pumping is done as the in the last item of the previous case.

We obtain that for any z ∈ E(L), there is in L(G) either a word of the form w1$w2zw3$w4 with $ = $0 or$1, $ = $0or $1 or a word of the form w1$1w2zw3$1w4. Thusz∈L3. HenceL3= E(L).

We now show thatL3 is a visibly pushdown language. Indeed, let us show thatL$$={w∈A∣w1$w2ww3$w4∈L(G)}is visibly pushdown.

LetL=Fact(L(G))∩$A$, where Fact(L(G))denotes the set of factors of L(G), and letL”=Fact(L)∩A. Since the class of visibly pushdown languages is closed by prefix and suffix, it is closed by factor. Hence the languagesLand L” are visibly pushdown. We haveL$$=L”.

As a consequence,L$$ is visibly pushdown. The class of visibly pushdown languages being closed by union, we get thatL3 is visibly pushdown.

Note that thatGcan be constructed in an effective way since it is decidable whetherXÐ→ uXv or XÐ→ uX for some wordsu, v∈A+.

Theorem 1. Let X be a sofic-Dyck shift. Then B(X) is a visibly pushdown language. Conversely, ifL is a factorial extensible visibly pushdown language, thenB1(L)is a sofic-Dyck shift.

Proof. Let X be the sofic-Dyck shift presented by a Dyck automaton A. By Propositions 8, the setL of labels of finite admissible paths of A is a visibly pushdown language. By 9, the language E(L) also. By Lemma 1, we have B(X)= E(L)and thusB(X)is a visibly pushdown language.

Conversely, let L be a factorial extensible visibly pushdown language. Let G= (V, S, P) be a visibly pushdown grammar over A accepting L. We may assume that variables that do not generate any word are discarded. We define a Dyck automatonA =(G, M)withG =(V∪(V×({$}∪(A×V)), E)as follows.

We denote below by(X,○)any state which is eitherX or(X,$), or(X,(a, Y)).

• IfX→ℓY ∈P withℓ∈Ai, then((X,○), ℓ, Y)∈E.

• IfX→aY ∈P witha∈Ac, then((X,○), a,(Y,$))∈E.

• IfX→aY bZ∈P, then ((X,○), a,(Y,(b, Z)))∈E.

• IfX→bY ∈P withb∈Ar, then((X,○), b, Y)∈E.

• If b ∈ Ar, Z Ð→ ε and Z ∈ V0, then ((Z,○), b, T) ∈ E for any T ∈ V. Each of these edges is also matched with each edge of the form ((X,○)), a,(Y,(b, T))).

(19)

Note that all states (X,○) have the same outgoing edges. A state (X,○) is nullable ifX generates the empty word.

We claim that if w is a word generated by X in G, there is an admissible path inAlabeled bywfromX to some nullable stateT or(T,$).

The proof is by induction on the size of w. Let us first consider the case w=ε. Ifwis generated byZ, thenZ→εis a rule ofG. Thus the claim is true.

If w is nonempty, since w is generated by X, then either X → aY ∈ P, w=aw1withw1is generated byY andais not matched with symbols ofw1, or X→aY bZ∈P,w=aw1bw2 andw1, w2 are generated byY andZ respectively, withY ∈V0.

In the first case, there is an edge (X, a,(Y,$)). By induction, there is an admissible path inAfrom Y to some nullable state T or (T,$). Thus there is an admissible path labeled byw1 from(Y,$)to some nullable stateT or(T,$) and thus there is an admissible path labeled bywfromXto some nullable state T or (T,$).

In the second case, there is an edge (X, a,(Y,(b, Z))). By induction, there is an admissible path labeled byw1 from (Y,(b, Z)) to some nullable state T or (T,$). There is also an admissible path labeled byw2 from (Z,○)to some nullable stateU or(U,$)and an edge((T,○), b, Z). Thus we obtain the path

XÐ→a (Y,(b, Z))Ð→w1 T(or(T,$))Ð→b ZÐ→w2 U(or(U,$)).

Since T is nullable and in V0, any edge ((T,○), b, Z) is matched with (X, a, (Y,(b, Z))), this path is an admissible path labeled bywgoing fromXto either U or (U,$). ThusLis included in the set of labels of admissible paths ofA.

Conversely, letwbe the label of an admissible pathπinAstarting at a state (X,○). Then wis a prefix of a word generated byX in G. Ifwis moreover a Dyck word andX is nullable, thenwis generated byX.

The proof is again by induction on the size of w. Note that it holds for the empty word. We first decomposeπinto one of the following paths:

1. (X,○)Ð→a Y Ð→w1 (U,○), witha∈Ai,

2. (X,○)Ð→a (Y,$)Ð→w1 (U,○),a∈Ac not matched with letters ofw1

3. (X,○)Ð→a Y Ð→w1 (U,○), witha∈Ar,

4. (X,○)Ð→a (Y,(b, Z))Ð→w1 (U,○),anot matched with letters ofw1,

5. (X,○)Ð→a (Y,(b, Z))Ð→w1 (T,○)Ð→b ZÐ→w2 (U,○), witha∈Ac, b∈Ar,andw1

is a Dyck word.

In Cases (1) to (3), by induction,w1 is a prefix of a word generated byY and there is a ruleX →aY in G. Thus aw1 is a prefix of a word generated by X.

Ifwis a Dyck word andU is nullable, then w=aw1, where w1 is a Dyck word a∈Ai. By induction hypothesis, the word w1 is generated by Y and thus wis generated byX.

In Case (4), by induction,w1is a prefix of a word generated byY and there is a ruleX→aY bZ inG. Thusaw1 is a prefix of a word generated byX. The wordwis never a Dyck word.

Références

Documents relatifs

For otherwise, a small affine contraction orthogonal to the single pair of parallel minimal sup- port ~ines would reduce A (T1) without altering/~ (T1). Nor can it

For any Fischer cover of a shift of finite type, there is a positive integer k such that any word of length k is synchronizing.. Let L be a language of

In a special case we show that symmetric Dyck tilings with fixed lower path correspond to an interval of the left weak order on signed permutations.. 2 Dyck tilings as intervals of

We show that, contrary to shifts of infinite sequences, there is no unique minimal deterministic irreducible tree automaton accepting an irreducible sofic tree-shift, but that there

with this syntati invariant: the lass of irreduible shifts of nite type and the.. lass of irreduible aperiodi

For any Fischer cover of a shift of finite type S, there is a positive integer k such that any word of length k in Fact(S) is synchronizing.. Let L be a language of

The paper is organized as follows. In Section 2.1 and Section 2.2, we give basic definitions about tree-shifts and conjugacies between tree-shifts. In Sec- tion 3, we define the

Fig. The syntati graph of the even shift of Example 1. 232℄), whih extends William's Classiation Theorem for shifts of. nite type (see