• Aucun résultat trouvé

On the groups of codes with empty kernel

N/A
N/A
Protected

Academic year: 2022

Partager "On the groups of codes with empty kernel"

Copied!
24
0
0

Texte intégral

(1)

HAL Id: hal-00790630

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

Submitted on 20 Feb 2013

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

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

On the groups of codes with empty kernel

Jean Berstel, Clelia de Felice, Dominique Perrin, Giuseppina Rindone

To cite this version:

Jean Berstel, Clelia de Felice, Dominique Perrin, Giuseppina Rindone. On the groups of codes with

empty kernel. Semigroup Forum, Springer Verlag, 2010, 80 (3), pp.351-374. �hal-00790630�

(2)

On the groups of codes with empty kernel

Jean Berstel

1

, Clelia De Felice

2

, Dominique Perrin

1

and Giuseppina Rindone

1

1

Universit´e Paris Est, LIGM, 77454 Marne-la-Vall´ee France,

2

Universit`a degli Studi di Salerno, via Ponte Don Melillo, Fisciano (SA) 84084 Italy February 19, 2010

Abstract

An internal factor of a wordxis a wordvsuch that x=uvwfor some nonempty words u, w. The kernel of a set X of words is the set of words of X which are internal factors of words of X. Let ϕ be the syntactic morphism of the submonoidX generated by X. We prove that ifX is a code with empty kernel, the groups contained in the image byϕ of the complement of the set of internal factors of the words ofXare cyclic. This generalizes a result announced by Sch¨utzenberger in 1964.

1 Introduction

Groups contained in finite monoids play an important role in their description. In particular, the finite monoids containing only groups in a given variety of finite groups form a variety of finite monoids. These varieties have been studied in several cases including the trivial variety of groups, corresponding to the variety of aperiodic monoids. The study of groups contained in syntactic monoids of sets of words is an important chapter of automata theory. To a given variety of finite monoids corresponds a family of rational sets called a∗-variety(see [2] or [4] for an introduction to this subject). We will prove here results which show that the groups in the syntactic monoids of some sets are cyclic and thus belong to the variety of Abelian groups.

We actually prove here a result (Theorem 1 below) which is a generalization of the fact that the group of a semaphore code is cyclic. The starting point of this research is the articleOn the synchronizing properties of certain prefix codespublished by Sch¨utzenberger in 1964 [5]. This paper presents a family of maximal prefix codes calledJ-codes, that we callsemaphore codes. The main result of [5] is that a semaphore code is always of the formXnwhereXis a synchronized semaphore code andn≥1. Two proofs are presented of this result in [5]. The first one is combinatorial and rather hard to follow. The second one uses intermediary results which are interesting in their own (this is the proof presented in [1]). First, it is proved ([5], Remark 1) that the group of a semaphore code is a regular permutation group. Next, it is proved ([5], Property 2) that if the groupGof a maximal prefix codeX is regular (the statement says Abelian but the proof uses only the fact that it is regular), then there is a decompositionX =Y ◦Z◦T such thatY, T are synchronizing and Z is a group code withG(Z) =G. A third result ([5], Remark 2) shows that ifX is a semaphore code such thatX=Y ◦Z◦T withZ a regular group code, thenX =Un withU a synchronized semaphore code andn≥1. This implies that the group of a semaphore code is cyclic sinceG(U)

(3)

is trivial andG(X) =Z/nZ. At the end of the paper, it is claimed that all groups in the syntactic monoid ofX which are not included in the image of the set of factors ofX are cyclic, but the proof is not correct.

We prove here a generalization replacing semaphore codes by codes with empty kernel. An internal factor of a wordx is a word v such that x=uvw for some nonempty wordsu, w. The kernel of a set of wordsX ⊂A+ is the set of words ofX which are internal factors of words ofX.

In particular, a semaphore code has empty kernel but codes with empty kernel are more general since they need not be prefix nor maximal. LetXbe a code with empty kernel and letF be the set of internal factors of words ofX. Letϕbe the morphism from A onto the transition monoid of an unambiguous automatonA= (Q,1,1) recognizingX. We prove that any groupGcontained inϕ(A\F) is cyclic (Theorem 1). We deduce from this result a closure property of the ∗-variety corresponding to the variety of monoids containing only Abelian groups (Theorem 2).

The article is organized as follows. In the first section, we introduce preliminary results and recall some definitions about codes and unambiguous automata. We prove in particular a result on sets of interpretations of a word with respect to a code with empty kernel (Lemma 2). In Section 3, we prove the main result (Theorem 1) and list some corollaries. We illustrate these results on several examples. They were computed with the help of the software Semigroupes [3]

available at http://www.liafa.jussieu.fr/~jep/Semigroupe2.0/semigroupe2.html. In the last section, we use Theorem 1 to prove a closure property of the∗-varietyV of recognizable sets such that their syntactic monoid contains only Abelian groups. In fact, we prove that if X is a code with empty kernel which is inV, then X is also inV (Theorem 2).

2 Preliminaries

In this section, we introduce the notions used in the paper. For a more detailed exposition, see [1].

2.1 Codes and interpretations

LetAbe a finite alphabet. We denote byA the free monoid onAand byA+ the free semigroup onA. The empty word is denoted by 1.

Codes. A code is a set X ⊂A+ such that x1· · ·xn =y1· · ·ym withxi, yj ∈X implies n=m andxi=yifor 1≤i≤n.

WhenX ⊂A+ is a code, the submonoid X generated by X is stable. This means that, for any wordsu, v, w inA, ifu, uv, vwandware inX thenv is also inX.

A setX ⊂A is said to bedense if any word inA is a factor of a word inX. A set which is not dense is said to bethin. A setX ⊂A iscomplete ifX is dense.

A prefix code is a setX ⊂A+ such that no word ofX is a prefix of another word ofX. The definition of a suffix code is symmetrical. A bifix code is a set which is simultaneously a prefix code and a suffix code.

Aninfix code is a setX⊂A+ such that no word ofX is a factor of another word ofX.

A semaphore code is a set of the form AS \ASA+ for some nonempty set S ⊂ A+. A semaphore code is prefix by definition. Conversely, it can be shown that a prefix codeX ⊂A+ is a semaphore code if and only ifAX ⊂XA. A semaphore code is thin and complete.

For any semaphore codeX⊂A+, the setY =X\AX is an infix code.

(4)

An internal factor of a word x∈A is a wordv ∈A such that x=uvw for some nonempty words u, w. The kernel of a set of words X ⊂ A+ is the set of words of X which are internal factors of words ofX.

Examples of codes with empty kernel include infix codes and semaphore codes.

Factorizations. A factorization of a word w ∈ A is a sequence (u1, u2, . . . , un) with n ≥ 1, ui ∈ A+ for 2 ≤ i ≤ n−1 and u1, un ∈ A such that w = u1u2· · ·un. Thus the terms of a factorization are all nonempty, except possibly the first and the last one.

Thecontent of a sequence α= (u1, u2, . . . , un) of wordsui ∈A is the wordw=u1u2· · ·un. We denotew=c(α).

For a factorizationα= (u1, u2, . . . , un), we denote

P(α) ={u1, u1u2, . . . , u1u2· · ·un−1}.

We say thatβ refines α, denoted α < β, if P(α) ⊂P(β). The supremum of two factorizations α= (u1, u2, . . . , un) andβ= (v1, v2, . . . , vm) of a wordw, denotedα∨β, is the unique factorization γ= (w1, w2,· · ·, wp) ofw such thatP(γ) =P(α)∪P(β).

Example 1 The word w = ab has 8 distinct factorizations represented in Figure 1 with the refinement order indicated vertically.

(ab)

(1, ab) (a, b) (ab,1) (1, a, b) (1, ab,1) (a, b,1)

(1, a, b,1)

Figure 1: The 8 factorizations ofw=ab.

Two factorizations α and β of a word w are adjacent if P(α) ∩P(β) 6= ∅. Thus α = (u1, u2, . . . , un) and β = (v1, v2, . . . , vm) are adjacent if there exists i, j with 1 ≤ i < n and 1≤j < msuch thatu1· · ·ui =v1· · ·vj and ui+1· · ·un =vj+1· · ·vm. Two factorizations which are not adjacent aredisjoint.

Interpretations. LetX ⊂A+ be a code. LetP be the set of proper prefixes of the words ofX and letS be the set of proper suffixes of the words ofX. Aninterpretation of a wordw∈Awith respect toX is a factorizationα= (s, x1, x2, . . . , xn, p) ofw such that s∈S, n≥0,xi ∈X and p∈P.

(5)

p x1 x2 q

r y1 y2 s

Figure 2: Two adjacent interpretations

Thus an interpretationαis made of three parts: a proper suffixsofX denotedsα, a possibly empty sequence (x1, x2,· · · , xn) of words ofX denotedfαand a proper prefixpofX denotedpα. In particular, an interpretation is a factorization with at least two terms.

Two interpretations of a word ware said to be adjacent (resp. disjoint) if the corresponding factorizations are adjacent (resp. disjoint) (see Figure 2).

p x1 x2 q

r y1 x y2 s

Figure 3: Two connected interpretations

Two interpretationsα, β of a word ware connected ifw=uxv for some wordsu, v∈A and x∈X such thatu∈P(α) andux∈P(β).

Note thatα, βare connected if and only if there exists an interpretationγofwwhich is adjacent toαandβ (see Figure 3). Thus adjacent interpretations are connected. The converse is not true in general as shown by the following example.

Example 2 LetA={a, b}and letX ={aab, bbb, bba, baa, aabbb}. The wordw=aabbbahas two disjoint interpretationsα= (aa, bbb, a) andβ = (1, aab, bba,1). They are connected since both are adjacent toγ= (1, aabbb, a).

Two interpretations of a word which are not connected are said to beindependent.

For each set of interpretations of a word w, one may consider their supremum, which is a factorization ofw. Let (u1, u2, . . . , um) be the supremum of a set I of interpretations of a word w. Then for each k with 1 ≤ k < m there is an element of I which refines the factorization (u1· · ·uk, uk+1· · ·um).

(6)

Residuals. For a wordu∈A and a set X ⊂A, we denoteu−1X ={v ∈A | uv ∈X}. In particular, whenX ={w}has just one element, we writeu−1winstead ofu−1{w}. Ifu−1wis not empty, we identify the setu−1wwith the wordv such thatw=uv.

For a letter a∈A and a sequenceα= (u1, u2, . . . , un) of wordsui ∈A, we define a sequence of wordsa−1αas follows. Firsta−1α=∅ ifn= 0. Next, forn≥1, we define by induction onn

a−1α=





a−1(u2, . . . , un) ifu1= 1 (a−1u1, u2, . . . , un) ifu1∈aA

∅ otherwise.

Letαbe a factorization of a wordw∈A+and leta∈Abe a letter. Thena−1αanda−1ware nonempty if and only ifais the first letter ofw. In this casea−1αis a factorization ofa−1w.

Example 3 We have already seen that the wordw=abhas 8 distinct factorizations (Example 1) represented in Figure 4 on the left with the refinement order. The 4 distinct factorizations of the worda−1w=bare represented on the right.

(ab)

(1, ab) (a, b) (ab,1) (1, a, b) (1, ab,1) (a, b,1)

(1, a, b,1)

(b) (1, b) (b,1)

(1, b,1)

Figure 4: The 8 factorizations ofw=ab and the 4 factorizations ofa−1w=b.

Letαbe an interpretation of a nonempty wordw∈A+with respect to a codeX and letabe the first letter ofw. Suppose thatsα6= 1 or thatfαis not empty. Then a−1αis an interpretation of a−1w. Indeed, let α = (s, x1, x2, . . . , xn, p). If s 6= 1, then a−1α = (a−1s, x1, x2, . . . , xn, p).

Next, ifs= 1 andn≥1, thena−1α= (a−1x1, x2, . . . , xn, p).

Lemma 1 Let α, β, be two independent interpretations of a nonempty wordw. Let abe the first letter ofw and letw =a−1w,α =a−1α,β=a−1β. We assume that sα6= 1 orfα is not empty and thatsβ6= 1 orfβ is not empty. Then α, β are independent interpretations of w.

Proof. The condition guarantees that α andβ are interpretations ofw. Suppose thatα, β are connected. Letu, v∈Aandx∈Xbe such thatw =uxvwithu∈P(α) andux∈P(β). Then w=auxvwithau∈P(α) andaux∈P(β) implies thatαandβ are connected, a contradiction.

(7)

LetI be a set ofn interpretations of a wordw. Let (u1, u2, . . . , um) be the supremum of the elements of I. For α ∈I, set w = sxp with s = sα, x= c(fα) and p =pα. There are unique integersi, j with 1≤i≤nandi≤j < msuch that

s=u1· · ·ui, x=ui+1· · ·uj, p=uj+1· · ·um. (1) We define

λ(α, I) =i−1, µ(α, I) =j−i, ν(α, I) =m−j−1. (2) Thusλ(α, I), µ(α, I) andν(α, I) are the number of words uk which compose each element of the interpretation, not taking in account the (possibly empty) first and last one.

A factorization (u1, u2, . . . , um) of a wordwis said to be n-periodic with respect to a code X if for anyr, ℓ with 1 ≤ℓ ≤r ≤m−1, one hasuℓ+1· · ·ur ∈X if and only ifr−ℓ =n. Thus, in other terms, the factorization isn-periodic if and only if the number of consecutive nonempty factorsui with 2≤i≤m−1 whose product is inX is constant and equal ton.

A set I of ninterpretations of a word w with respect to a code X is said to be cyclic if the supremum (u1, u2, . . . , um) of theninterpretations isn-periodic with respect toX (see Figure 5).

LetI be a set ofn interpretations of a wordw with respect to a codeX. If I is cyclic, then for eachα∈I,

µ(α, I)≡0 modn (3)

Indeed, let σ = (u1, u2, . . . , um) be the supremum of the elements of I. Since I is cyclic, the factorizationσisn-periodic. Thus, each word ofX which appears in the content offαis a product ofnconsecutive nonempty elements ofσ.

Note that if the set I is cyclic, the elements of I are pairwise independent. Let indeed (u1, . . . , um) be the supremum of the elements ofI. Letαbe an element ofIand setsα=u1· · ·ui

with 1≤i < n. Then for i≤r≤m−1,u1· · ·ur∈P(α) impliesui+1· · ·ur∈Xand thus r≡i modn. Thusu1· · ·ur∈P(α) implies r−1≡λ(α, I) modn.

Let thenα, β∈Ibe connected. By definition, we havew=uxv for some wordsu, v∈A and x∈X such thatu∈P(α) andux∈P(β). Setu=u1· · ·u andx=uℓ+1· · ·ur. Then, by the above argument, we haveλ(α, I)≡ℓ−1 modnand λ(β, I)≡r−1 modn. Since x∈X, we have alsor−ℓ≡0 modn. Finally, we obtainλ(α, I)≡λ(β, I) modnand thusλ(α, I) =λ(β, I).

In the same wayν(α, I) =ν(β, I) and thusα=β.

u1 u2 u3 um−1 um

Figure 5: A cyclic set of two interpretations

(8)

Example 4 LetA={a, b}andX ={aab, abaa, abab, baba}. The setX is a code with empty ker- nel. The wordw=ababaababahas the setIof 3 interpretations (1, abab, aab, aba), (a, baba, abab, a) and (ab, abaa, baba,1). The supremum of these interpretations is the 3-periodic factorization (1, a, b, ab, a, a, b, ab, a,1) ofwwithm= 10 factors. ThusI is cyclic.

We will use the following result.

Lemma 2 LetX ⊂A+ be a code with empty kernel. Any set of independent interpretations of a word with respect toX is cyclic.

Proof. Letwbe a word withnpairwise independent interpretations. The proof is by induction on the length ofw. It is true for the empty word since in this case there is at most one interpretation, which is (1,1) and the property holds trivially.

Assume that the property holds for the words shorter than a nonempty wordw. LetIbe a set ofnpairwise independent interpretations ofw. SetI={α0, α1, . . . , αn−1}in such a way thatsαi

is a proper prefix ofsαi+1 for 0≤i≤n−2. We first consider the case wheresα0 6= 1 orfα0 is not empty.

In this case, setw=aw witha∈Aandw ∈A. By Lemma 1 the setI={a−1α|α∈I}is a set ofnpairwise independent interpretations ofw. By induction hypothesis the setI is cyclic and the supremumµ= (u1, . . . , um) of the elements ofI isn-periodic.

Ifsα0 6= 1, then the sequenceν = (au1, . . . , um) is the supremum of the elements ofI. Sinceν is alson-periodic, the setI is cyclic.

If sα0 = 1 and fα0 is nonempty, the sequence ν = (1, au1, . . . , um) is the supremum of the elements of I. We verify that ν is n-periodic. Since µ = (u1, . . . , um) is n-periodic, one has uℓ+1· · ·ur∈X if and only ifr−ℓ=nfor 1≤ℓ≤r≤m−1.

We have to show that additionally,au1u2· · ·ur∈X if and only ifr=n. Let us prove that we cannot haveau1u2· · ·ur ∈X withr < n. Indeed, sinceX is a code with empty kernel, no word x∈Xcan be a proper prefix (or a proper factor) ofsαifori∈ {1, . . . , n−1}(otherwisexwould be proper factor ofzsαi, wherez∈A+is such that zsαi ∈X). As a consequence,au1u2· · ·ur=sαr, r∈ {1, . . . , n−1}(see also Equation (1)) andau1u2· · ·ur=sαr 6∈X forr < n−1. Furthermore, ifau1u2· · ·un−1 =sαn−1 ∈X,γ = (1, sαn−1fαn−1, pαn−1) would be adjacent to α0 and toαn−1, a contradiction. Let us prove that we cannot have au1u2· · ·ur ∈ X with r > n. Notice that u2· · ·un+1 ∈ X (I is cyclic) and so, u2· · ·un+1 is the first term in fα1. Furthermore, ui 6= 1 for i ∈ {2, . . . , m−1}, since µ is a factorization. Thus, we cannot have au1u2· · ·ur ∈ X with n+ 1< r≤m−1 since u2· · ·un+1 ∈X andX is a code with empty kernel and we cannot have au1u2· · ·un+1 ∈X sinceγ = (1, sα1fα1, pα1) would be adjacent to α0 and to α1. Finally, since au1u2· · ·un is the first term in the sequencefα0, we haveau1u2· · ·un ∈X.

Suppose finally thatsα0 = 1 and fα0 is empty. In this case w=pα0 and thus the sequences fαj for j ∈ {1, . . . , n−1} are empty. Indeed, otherwise their terms would be proper factors of pα0y, where y ∈ A+ is such that pα0y ∈ X (as sαj 6= 1 for j ∈ {1, . . . , n−1}). Consequently, αj = (sαj, pαj),Pαj ={sαj}, 0≤j≤n−1, and the supremum of the setI is (u0, . . . , un−1, un), withu0· · ·uj =sαj, 0≤j≤n−1, and un =pαn−1. In order to conclude that this factorization isn-periodic we have to prove thatu0· · ·uj=sαj 6∈X, for 0< j ≤n−1. Now, we cannot have u0· · ·uj=sαj ∈X, for 0< j < n−1, since otherwisesαj ∈X would be proper factor ofzsαn−1, wherez∈A+ is such thatzsαn−1∈X, nor can we haveu0· · ·un−1=sαn−1 ∈X, since otherwise γ= (1, sαn−1, pαn−1) would be adjacent toα0 and to αn−1, a contradiction.

(9)

Observe that Lemma 2 is not true for a set of disjoint interpretations (instead of independent) as shown by the following example.

Example 5 Let A = {a, b} and let X = {aab, bbb, bba, baa, aabbb}as in Example 2. The code X has empty kernel. The word w=aabbba has two disjoint interpretationsα= (aa, bbb, a) and β= (1, aab, bba,1). The supremum ofα, βis the factorization (1, aa, b, bb, a,1). It is not 2-periodic sinceaabbbis inX although it is a product of three terms of the factorization.

2.2 Groups, monoids and automata

We now give definitions concerning groups, monoids and automata. Again, for a more detailed presentation, see [1].

Permutation groups. Let us recall some terminology about permutation groups (see also [7]).

LetG be a permutation group on a setR. We denote the action ofG onR on the right. Thus an elementg ofGmaps eachr∈R to somerg∈R. Thedegree ofGis the cardinality of the set R. The order ofG is the cardinality ofG. The orbits ofG are the classes of the equivalence on Rdefined byp≡qif there existsg∈Gsuch that pg=q. The groupGis said to betransitive if there is only one orbit.

A permutation group is calledregular if no element distinct from the identity has a fixpoint. All orbits in a regular group have the same cardinality equal to the order of the group. In particular, the order of a regular group is a divisor of its degree. A finite permutation group is cyclic and regular if and only if it is generated by a permutation composed of disjoint cycles of the same length. As mentionned in the introduction, a transitive permutation group which is Abelian is regular (see [7], Proposition 4.4). Indeed, suppose thatrg =rfor somer∈R andg∈G. Let us show thatsg=sfor anys∈R. SinceGis transitive, there is someh∈Gsuch thatr=sh. Since Gis Abelian, hg=gh and thusshg =shimpliessgh=sh. Since his a permutation onR, this impliessg=s. Thusgis the identity and this shows thatGis regular.

Ideals in monoids. A group in a monoid M is a subset G of M such that the operation of M gives to Ga group structure. More precisely, a group inM is a subset GofM containing an idempotente, such that for any g, h∈ G one hasgh ∈ G and such that for any g ∈ Gthere is someh∈Gsuch thatgh=hg=e.

For any idempotentein a monoidM, there is a largest groupGcontained in M which hase as neutral element, called the maximal group containing e. It is the set of allm∈ M such that em=me=mand such that there existsn∈M such thatmn=nm=e.

An ideal of a monoidM is a nonempty subsetI ofM such that for anym, n∈M andx∈I, one hasmxn∈I. IfIis an ideal andGis a group contained inM, then eitherG∩I=∅orG⊂I.

Indeed, letx∈G∩I. Then for anyg∈G, we haveg=x−1xgand thusg is inI.

Automata. Given an alphabet A, we denote byA= (Q, I, T) an automaton with Qas set of states,I as set of initial states andT as set of terminal states. The automaton is defined by its set of edgesE⊂Q×A×Q. The automaton is said to befinite if the set Eis finite. Apath in A is a sequencep0

a1

→p1· · ·→anpn of consecutive edges. Itslabel is the wordw=a1· · ·an. The path isnull if the sequence is empty, that is ifw= 1.

(10)

We denote by L(A) the set of labels of paths fromI to T. We say thatArecognizes the set L(A). A setX⊂A is said to be recognizable if it can be recognized by a finite automaton.

The automaton A= (Q, I, T) istrim if for any state q ∈Q, there is a path fromI to qand fromqtoT. An automaton is called simple if

(i) it is trim,

(ii) there is a unique initial state, a unique terminal state and they are equal.

LetA= (Q,1,1) be a simple automaton. A path p→w qin Ais said to be simple if it is not the null path (that is w6= 1) and if for any factorizationp→u r→v q of the path into nonnull paths, one hasr6= 1.

We denote byϕAthe morphism fromA into the monoid of relations on the setQdefined by ϕA(w) ={(p, q)∈ Q×Q | p→w q}. For a wordw, we will often talk of ϕA(w) as the relation onQdefined by w. The monoid M =ϕA(A) is a monoid of relations onQ which is called the transition monoid of the automatonA. We denote by 1 the identity relation and by 0 the empty relation.

An automatonA= (Q, I, T) isdeterministic if it has a unique initial state and for anyp∈Q anda∈A, there is at most oneq∈Qsuch that (p, a, q) is an edge ofA.

For any setX⊂A+theminimal automaton ofXis the deterministic automatonA= (Q, i, T) defined as follows. The elements of Qare the classes of the equivalence on A defined by u≡v if for anyw∈A, one hasuw ∈X if and only ifvw ∈X. For eacha∈A there is an edge with label afrom the class of a word uto the class ofua. The initial state is the class of the empty word. The terminal states are the classes included inX. The transition monoid of the minimal automaton is thesyntactic monoid ofX.

The automaton isunambiguous if for anyp, q∈Qandw∈A there is at most one path from ptoq labeledw. A deterministic automaton is clearly unambiguous.

For any codeX ⊂A+, there exists a simple unambiguous automaton recognizing X. It can be obtained as follows. LetA= (Q, I, T) be a trim unambiguous automaton recognizingX. LetE be the set of edges ofA. Letω6∈Qbe a new state. LetB= (Q∪ω, ω, ω) be the automaton with edges formed of the edges ofA plus the edges (ω, a, q) such that (i, a, q)∈E for somei∈I, the edges (p, a, ω) such that (p, a, t)∈E for somet∈T and the edges (ω, a, ω) such that (i, a, t)∈E for somei∈I and t∈T. Then the trim part ofB is a simple unambiguous automaton denoted Awhich recognizesX. Moreover,X is the set of labels of simple paths inA.

WhenX is prefix, provided the automatonAis deterministic, the automatonA is also deter- ministic. Moreover, the minimal automaton ofX is simple.

Unambiguous monoids of relations. Letmbe a relation between two setsP andQand letn be a relation between two setsQandR. The productmnisunambiguous if for any (p, r)∈P×R there is at most oneq∈Qsuch that (p, q)∈mand (q, r)∈n. A monoidM of relations on a setQ isunambiguous if for anym, n∈M the productmnis unambiguous. WhenAis an unambiguous automaton, the monoidM =ϕA(A) is unambiguous.

A monoidM of relations on a set Q is transitive if for anyp, q ∈Q there exists an element m∈M such that (p, q)∈m(note that this term is in agreement with the notion of a transitive permutation group).

(11)

Therank of a relationmbetween setsP andQis the minimal cardinality of a setRfor which there exist relationsuonP×R andvonR×Qsuch thatm=uvand such that the productuv is unambiguous. Thus, the rank ofmis zero if and only ifmis the empty relation.

LetM be a transitive unambiguous monoid of relations containing relations of finite rank and not containing the empty relation. Letr(M) be the minimal rank of the elements of M. The set of relations of rankr(M) is theminimal ideal ofM (see [1] Theorem 9.3.15). It is the intersection of all the ideals ofM.

Let M be an unambiguous monoid of relations on a setQ. We denote by Fix(m) the set of fixpoints of an element m ∈ M. It is the set of q ∈ Q such that (q, q) ∈ m. The rank of an idempotent is equal to the number of its fixpoints (see [1], Proposition 9.3.6).

The following characterization of idempotents is useful (see [1] for more details).

Lemma 3 Let M be an unambiguous monoid of relations on a set Q. An element m ∈ M is idempotent if and only if the following condition is satisfied: For anyp, q∈Q, one has(p, q)∈m if and only if there is a fixpointrof msuch that (p, r),(r, q)∈m.

Proof. The condition is sufficient. Indeed, it implies directly that m ⊂m2. Conversely, suppose that (p, q)∈m2. Letr∈Qbe such that (p, r),(r, q)∈m. By the condition, there ares, t∈Fix(m) such that (p, s),(s, r),(r, t),(t, q) ∈m. Thus we have (p, r),(p, t)∈ m2 and (r, q),(t, q) ∈m. By unambiguity, this impliesr=t. Thusr∈Fix(m) and (p, q) is in mby the condition.

Conversely, suppose thatmis idempotent. Letp, q∈Qbe such that (p, q)∈m. Sincem=m3, there existr, s∈Q such that (p, r),(r, s),(s, q)∈m. Since m =m2 we have also (r, q)∈mand (p, s)∈m. By unambiguity, we obtainr=sand thusr∈Fix(m).

LetM be an unambiguous monoid of relations on a setQ. LetG⊂M be a group inM and let ebe the neutral element ofG. The groupGis faithfully represented as a permutation group on the setR= Fix(e). This means that the restriction of the elements ofGto R×Ris an isomorphism from Gonto a permutation group on R. We will often, by abuse of notation, identify the group Gwith this permutation group (although the elements ofGare relations onQ). Since Card(R) is equal to the rank ofe, the groupGis a a permutation group of degree equal to the rank ofe.

Forr∈Fix(e) andg∈G, we denote byrgthe image ofr by the permutation defined byg on R. It is the unique fixpoints∈Rsuch that (r, s)∈g. Thus the permutation defined bygonRis the restriction of the relationg toR×R. It is thus contained in the relationg.

For an unambiguous automatonAon a setQof states and a wordw, we say thatw contains a permutation π on R ⊂ Q if π is the restriction of ϕA(w) to R×R. When R is finite and is the set of fixpoints of an idempotente, the permutationπis an element of the maximal groupG containinge. Set indeedm=eϕA(w)e. Thenem=me=m. Moreover, since Ris finite there is an integerk≥1 such that the restriction toR ofmk is the identity and thusmk =e. This shows thatmk−1 is the inverse ofmin G.

LetM be a transitive unambiguous monoid of relations not containing the empty relation. Let I be the minimal ideal ofM, which is formed of the elements ofM of rankr(M). The setI is a union of equivalent transitive groups of degreer(M) (see [1], Theorem 9.3.15). TheSuschkevitch groupofM is any of them.

LetX ⊂A+ be a code and letA be a simple unambiguous automaton recognizingX. Some of the groups inϕA(A) do not depend on the choice of the unambiguous automaton. Indeed, let F be the set of factors of the words ofX. IfAandBare two simple unambiguous automata such

(12)

thatX=L(A) =L(B), any group contained inϕA(A\F) is equivalent to a group inϕB(A\F) (see [1], Proposition 9.5.1). In particular, this is true for the groupG(X) of the code X, which is the Suschkevitch group of the monoid of transitions of any simple unambiguous automaton recognizingX(see [1], Proposition 9.5.2).

We will use later the following elementary results (see [1]). The first one is a property of unambiguous automata.

Proposition 1 LetX ⊂A+ be a code and let Abe a simple unambiguous automaton recognizing X. LetGbe a group which meetsϕA(X). Then G∩ϕA(X)is a subgroup ofG.

Proof. We use the fact that the submonoidN =ϕA(X) is stable. Indeed, letube inG∩ϕA(X).

Letebe the neutral element ofG. Thenue=eu=uimplies thate∈N. Next, ifvis the inverse ofuin G, thenuv, vu∈N implyv∈N. ThusG∩N is a subgroup ofG.

The second one is a classical property of monoids.

Proposition 2 Let G be a group in a monoid M. Let m, n ∈ M be such that mn ∈ G. Then nGmis a group isomorphic toG.

Proof. Sincemn∈G, we havenGmnGm⊂nGm. Nexte=n(mn)−1m∈nGmis an idempotent.

ThusnGmis a monoid. For anyg∈G, the elementh=n((mn)−1g−1(mn)−1)mis the inverse of ngm. ThusnGmis a group and finally, the mapf :G→nGmdefined byf(g) =n(mn)−1gmis an isomorphism fromGontonGm.

3 Main result

We will prove the following result.

Theorem 1 Let X ⊂A+ be a code with empty kernel and let F be the set of internal factors of the words ofX. LetA be a simple unambiguous automaton recognizingX. Any group contained inϕA(A\F)is a finite cyclic group which is regular.

Observe that that sinceϕA(A\F) is an ideal, for a groupGcontained inϕA(A), the condition G⊂ϕA(A\F) is equivalent toG∩ϕA(A\F)6=∅. Observe also that the groups above are not always transitive (see Example 8). Before giving the proof, we list some corollaries. The following statement is the result appearing at the end of [5] with an incorrect proof.

Corollary 1 Let X ⊂ A+ be a semaphore code and let F be the set of internal factors of the words ofX. LetA be a simple deterministic automaton recognizing X. Any group contained in ϕA(A\F)is a finite cyclic group which is regular.

Proof. The result follows directly from Theorem 1 since a semaphore code has empty kernel.

The second corollary concerns the groupG(X) which is a finite transitive permutation group for any thin complete code (thus the fact that such a group is cyclic implies that it is regular).

Corollary 2 Let X be a semaphore code. Then the groupG(X)is cyclic.

(13)

Proof. Let F be the set of internal factors of the words of X. LetA be a simple deterministic automaton recognizing X. Set ϕ = ϕA and M = ϕ(A). Since X is a semaphore code, it is thin and complete. ThusM has elements of finite rank and does not contain the empty relation (see [1], Theorem 9.4.1). Letebe an idempotent of minimal rank inM. Since the minimal ideal of M is the set of elements of minimal rank, e belongs to the minimal ideal. ThenG= eM eis the maximal group containinge. Thus it is the Suschkevitch group of the monoidM. Since the elements ofGbelong to the minimal ideal of M, the groupGis contained in the idealϕ(A\F) and the result follows.

Corollary 3 Let X ⊂ A+ be a finite code with empty kernel. Let A be a simple unambiguous automaton recognizingX. Then any group in ϕA(A)is cyclic and regular.

Proof. Let F be the set of internal factors of the words ofX and letM =ϕA(A). Since X is finite, the idealϕA(A\F) contains any groupGdistinct from 1 inM and the result follows.

The following lemma is used in the proof of Theorem 1.

Lemma 4 Let X ⊂ A+ be a code and let F be the set of internal factors of words in X. Let A = (Q,1,1) be a simple unambiguous automaton recognizing X. Let G be a group contained in ϕA(A\F), let e be the neutral element of G and let R = Fix(e) be the set of fixpoints of e.

For any g ∈ G, any word w ∈ ϕ−1A (g)\F and each r ∈ R, there is a unique interpretation αr

of w such that there are paths rsαr 1 and 1 pαr rg which are simple or null. Moreover, the set I={αr|r∈R} is formed of independent interpretations.

Proof. For each r ∈R, there is a pathr →w rg. SinceA is trim, there exist f, h ∈A such that 1 →f r and rg →h 1. Since w /∈ F, there exists an interpretation αr of w such that r sαr 1 and 1pαr rg are simple or null paths. This interpretation is clearly unique.

The interpretationsαr, forr∈R, are independent. Suppose indeed that forr, s∈Rthere are u, v∈A and x∈X such thatw=uxv, u∈ P(αr) andux∈P(αs). Then we have the paths r→u 1→xvrg andsux→1→v sg, which imply the existence of a pathr→u 1→x 1→v sg(see Figure 6).

This means that (r, sg)∈g contradicting the fact thatgis a permutation onR.

r rg

u x v

s sg

Figure 6: The interpretationsαrandαsare independent.

Proof of Theorem 1. Set A= (Q,1,1), and ϕ =ϕA. LetGbe a group contained in ϕ(A\F) and letebe the neutral element ofG. We first show that one may assume thatGmeets ϕ(X).

We may suppose that Gis not reduced to the empty relation since otherwise the group Gis trivial and there is nothing to prove. Letw∈ϕ−1(e)\F. Sinceeis an idempotent which is not

(14)

the empty relation, it has at least one fixpointq. Since the automatonAis trim, there are words u, v∈A such that 1→u qandq→v 1. Thenuwv is inX. Sincew /∈F, there existt, z∈A such that w=tz with ut, zv∈X. Thenq →t 1 and 1→z q and thuszt ∈X. The set ϕ(z)Gϕ(t) is a group isomorphic to Gby Proposition 2. It meets ϕ(X) since ϕ(z)eϕ(t) =ϕ(ztzt)∈ ϕ(X).

This shows that we may assumeGmeetsϕ(X).

SinceGmeetsϕ(X), the intersectionG∩ϕ(X) is a subgroup by Proposition 1. This implies thate∈ϕ(X). Letw∈ϕ−1(e)\F. Thusw∈X. Let R= Fix(e). Sincee∈ϕ(X), we have 1∈R. By Lemma 4, the wordwhas a setI of independent interpretationsαrforr∈Rsuch that rsαr 1 and 1pαr rare simple or null paths. Setsr=sαr,fr=fαr, xr=c(fr) andpr=pαr (see Figure 7).

r r

sr xr pr

Figure 7: The interpretationαr.

The mapr7→sr is injective since the interpretations are disjoint. This implies thatRis finite and thus thatGis finite.

SetR={1,2, . . . , n}. We may suppose thatsiis a proper prefix ofsi+1 for 1≤i < n. We are going to prove that all elements ofGare powers of the permutationα= (1 2· · ·n). This implies our conclusion since a subgroup of a cyclic and regular group is also cyclic and regular.

Denote byγ= (v1, v2, . . . , v) the supremum of the interpretationsαiofw. Sinces1=p1= 1, we havev1=v= 1. For 1≤i≤n, setw=sixipi withxi =c(fi). We have

si=v1· · ·vi, xi =vi+1· · ·vj andpi=vj+1· · ·v (4) with 1≤i≤j < ℓ. Then, by Lemma 2,γis n-periodic. Sincew∈Xand xi∈X, Equation (3) implies

j−i≡ℓ−2≡0 modn. (5)

Consider an element g ∈ G and a word z ∈ ϕ−1(g). Then ϕ(wzw) = g. Since g ∈ G, by Lemma 4 the word wzw has a set J of n independent interpretationsβi such that i sβi 1 and 1pβi ig are simple or null paths.

The pathi→w i→z ig→w ig decomposes as

i→si 1→xi 1→pi i→z igsig1xig1pigig.

Thus the sequence (si, xipizsigxig, pig) is an interpretation ofwzw. Since the paths i →si 1 and 1 pig are simple or null, this implies by uniqueness ofβi that sβi =si, c(fβi) = xipizsigxig and pβi =pig for 1≤i≤n(see Figure 8). In particular, we have for eachi∈R,pizsig∈X.

The supremum of the interpretationsβi is of the form

δ= (v1, v2, . . . , vℓ−1, u1, u2, . . . , um, v2, . . . , v)

for somem >0 and some nonempty words u1, . . . , um such thatz =u1· · ·um. Indeed, the first ℓ−1 terms of γ and δ coincide and the term of index ℓ of δ is u1 instead ofv which is empty.

(15)

u si

w xi

z u

pizsig

u

xig pig

w

u

Figure 8: An interpretation ofwzw.

Similarly, the lastℓ−1 terms ofγandδcoincide and the term of indexmofδisuminstead ofv1

which is empty.

We then have for 1≤i≤n, by Equation (4),

pizsig=vj+1· · ·vℓ−1u1· · ·umv2· · ·vig.

Thus, sincec(fβi) =xipizsigxig, we obtain, with the functionsλ, µ, ν defined in (2), µ(βi, J) =µ(αi, I) +ν(αi, I) +m+λ(αig, I) +µ(αig, I).

Sinceµ(αi, I)≡µ(αig, I)≡0 modn, we obtainµ(βi, J)≡ℓ−j−1 +m+ig−1 modn. Since δisn-periodic, we haveℓ−j−1 +m+ig−1≡0 modn. Sinceℓ≡2 modnandi≡j modn by Equation (5), this implies that−i+m+ig≡0 modn. Thusig≡i−m modn. Since this holds for 1≤i≤n, we conclude thatg=α−m. This shows thatGis included in the cyclic group generated byαand thus that Gis cyclic and regular.

Note that the permutationαof the above proof is not necessarily inG. This is the difficulty:

the groupGis cyclic but it has no obvious generator (see Example 8).

4 Examples

We illustrate the results on a series of examples.

The next three examples give instances of cyclic groups in the syntactic monoid of X for a finite code X ⊂ A+ with empty kernel on the alphabet A = {a, b}. Note that when the code is finite, by Corollary 3, all groups are cyclic and we do not have to distinguish between groups contained inϕ(F) and groups contained inϕ(A\F).

Example 6 LetX ={aa, bb, baa, bba}. The setX is a code with empty kernel. A simple unam- biguous automaton recognizingX is shown in Figure 9. The wordacontains the cycle (12) and the wordb the cycle (13).

Example 7 LetX ={aa, aba, bab, bb}. The setX is an infix code. The minimal automatonAof X is represented in Figure 10.

The transition monoidM ofAcontains groups which are cyclic of order 1, 2 or 3. For example, ab contains the cycle (134) whilea contains the cycle (12). Let us note an interesting feature of

(16)

1

3

2 a

a b b

a, b

Figure 9: A code with empty kernel defining cyclic groups of order 2.

4

5

1

3 2 a

a b

a b

b

a b

Figure 10: An infix code defining cyclic groups of degree (and order) 2 and 3.

this example. LetG be the cyclic group of order 2 formed by the images of aa and aaa in M. The set ϕ−1(G) is a submonoid which is not cyclic. It is not even finitely generated. Indeed, Figure 11 shows that any wordw in (a∪babbaba) fixes globally the set{1,2} and thus is such thatϕ(a2wa2)∈G.

12

34 15

14 25

13 a

b

a

b

b a

b a

Figure 11: The action ofA on the 2-element subsets reachable from{1,2}

Example 8 LetX ={aaa, aab, abaa, abab, baba, babb, bba, bbb}. The set X is an infix code. The minimal automatonAofX is represented in Figure 12. The transition monoidM =ϕ(A) ofA contains cyclic groups of degree 1, 2, 3 and 4. For example the wordacontains the cycle (123).

In turn, ba contains the permutation (16)(23). This example shows another interesting feature.

Consider the groupGcontaining ϕ(ba). The neutral element of Gis e =ϕ(baba) and its set of fixpoints is {1,2,3,6}. The group Gis of degree 4. It is composed of the permutation (16)(23) and the identity. It is thus of order 2. The permutationαof the proof of Theorem 1 is (1362) (see Figure 13). It does not belong toG. Actually,M does not contain any cyclic group of order 4.

Let us mention an interesting case where the hypothesis of the above theorem are satisfied.

LetGbe a transitive permutation group onR={1,2, . . . , n} and letϕ:A →Gbe a surjective morphism. Let H be the subgroup ofG which fixes 1. Let Z be the bifix code generating the submonoidϕ−1(H). LetX be the set of elements ofZ which have no proper factor inZ.

(17)

1 2

3 4

6

5 a

a, b a

b

a b

a b

b

Figure 12: An infix code with a group of degree 4 and order 2.

1 3

6 2

b a b a

Figure 13: The interpretations ofbaba.

Proposition 3 The set X is a finite infix code. The groups in the syntactic monoid M of X, not reduced to the neutral element ofM, are cyclic of degree at mostn.

Proof. The set X is clearly an infix code. To prove that X is finite, consider a wordz of Z of length at least equal ton+ 2. Sincezhas at leastn+ 1 nonempty proper suffixes, there exist two distinct nonempty proper suffixesu, v of z such that 1ϕ(u) = 1ϕ(v). We may suppose that uis shorter thanv. Then v=wuwith 1ϕ(w) = 1ϕ(v)ϕ(u)−1= 1 and thusw∈Z+. This shows that z6∈X. This implies that the words inX have length at mostn+ 1 and thus thatX is finite.

LetMbe the syntactic monoid ofXand letAbe the minimal automaton ofX. By definition, we haveM =ϕA(A).

Let G be a group contained in M not reduced to the neutral element ofM. Let e be the neutral element ofG. By Corollary 3,G is cyclic and regular. The degree ofG is equal to the rank ofe.

Since G 6= 1, the set ϕ−1(e) contains nonempty words. Since it is a submonoid, it contains words of arbitrary large length. In particular, ϕ−1(e) contains words of length larger than the length of any word inX and thus words which are not factor of a word inX. Letwbe a word in ϕ−1A (e) which is not a factor of a word inX. For any fixpointpofe, there is an interpretationα ofwwith respect toX such thatp→sα 1 and 1→pαp. The interpretations corresponding to distinct fixpoints are distinct (and even independent). SinceX ⊂Z, these interpretations of w are also interpretations with respect toZ.

The number of interpretations ofw with respect toZ is at most equal ton. Indeed, for each

(18)

interpretation αof w with respect to Z, there is a unique r =r(α) ∈ R such that rϕ(sα) = 1.

Since the mapα7→r(α) is injective, the number of interpretationsαis at mostn.

Thus w cannot have more than n interpretations with respect to X. This implies that the number of fixpoints ofeis at mostnand the degree ofG is also at mostn.

Example 9 Let G be the symmetric group on the set R = {1,2,3} and let A = {a, b}. Let ϕ:A→Gbe the morphism defined byϕ(a) = (12),ϕ(b) = (13). The bifix codeZ is the infinite set represented on the left of Figure 14. The codeX corresponding to the above construction is

1

2 3

1 2 3 1

1 2 3 1

... ...

1

2 4

1 3 5 1

1 1

Figure 14: The infinite group code Z and the finite codeX represented on the right of Figure 14. It is the code of Example 7.

Example 10 The code X of Example 8 corresponds to the above construction with Gbeing the symmetric group on the set{1,2,3,4}andϕ(a) = (123),ϕ(b) = (143).

Example 11 Let us consider the morphism from {a, b}to the symmetric group on {1,2,3,4,5}

defined byϕ(a) = (123),ϕ(b) = (145). Then

X={aaa, aaba, aabba, abaa, ababa, abbaa, baabb, babab, babb, bbaab, bbab, bbb}.

The transitions of the minimal automatonAofX are represented in Figure 15. The monoidM has 14351 elements. It contains cyclic groups of degrees from 1 to 5 and orders 1,2,3,5. The word ab contains the cycle (1 6 11 4 9) of length 5 and (ab)2 has rank 5 (there is a second D-class of elements of degree 5 containing the image ofa2b2). The word a2ba2b2 contains the permutation (1 12)(5 11) of degree 4 but there is no cyclic group of order 4 inM. The wordsaandb contains cycles of degree 3. The word a4ba5 contains the identity on {1,2} while the word a2bab2a2ba4 contains the transposition (1 2).

1 2 3 4 5 6 7 8 9 10 11 12 13

a 2 3 1 8 9 7 1 13 10 − 1 11 −

b 4 6 7 5 1 12 11 9 1 1 − − 10

Figure 15: The transitions ofA

(19)

5 Complements

We first show in the following example that Theorem 1 becomes false for groups which do not meet the idealϕA(A\F) and that the transition monoid of a simple unambiguous automaton recognizingX may contain any finite or infinite group.

Example 12 Let G be a transitive permutation group on a set R and let ϕ : A → G be a surjective morphism. Let 1 be an element of R and let H be the subgroup of G formed by the permutations fixing 1. Let Z be the bifix code such that Z = ϕ−1(H). Let B = (R,1,1) be the deterministic automaton recognizing Z with edges (p, a, pϕ(a)) for p ∈ R and a ∈ A. Let B=A∪bwhereb6∈Ais a new letter. Then X =bZbis an infix code. LetA= (Q, i, i) be the automaton obtained fromBadding a statei /∈R and the two edges (i, b,1),(1, b, i). ThenA is a simple unambiguous automaton recognizingX. MoreoverG is isomorphic to a group contained in the transition monoid of A. It is formed of the images inMA of the words in A acting as a permutation group (identical toG) on the elements ofR.

We now prove the following result concerning the groups which do not satisfy the hypothesis of Theorem 1. We denote byMA the transition monoid of an automatonA.

Proposition 4 Let X ⊂A+ be a code with empty kernel and let F be the set of internal factors of the words ofX. LetA= (Q, I, T)be a trim unambiguous automaton recognizingX. Any group H inMA such that ϕ−1A(H)⊂F is isomorphic to a group inMA.

Note that this statement is false if the kernel of X is nonempty, as shown in the following example.

Example 13 LetX =a2∪bab and letA be the automaton represented on Figure 16 withA on the right. The monoidMAcontains only trivial groups. On the contrary, the setG=ϕA(a)

0 1 2

3 b

a b

a a

ω 1

3

b

a a b

a

Figure 16: The automataAandA. is a cyclic group of order 2 such thatϕ−1A(G)⊂F.

We will use the following technical lemma.

Lemma 5 LetX be a code with empty kernel and letF be the set of internal factors of the words of X. Let A be a trim unambiguous automaton recognizing X. Let w be a nonempty word such thatw⊆F. Then:

1. w∩AXA=∅,

(20)

2. a path p→w q in the automatonA can pass at most once byω, 3. no path r→w r in the automatonA can pass by ω,

4. F ix(ϕA(w)) =F ix(ϕA(w)).

Proof 1. No power ofwcan have a factor inX. Indeed, ifwn has a factorx∈X, thenx∈F and thus belongs to the kernel ofX. This proves the first assertion.

2. A path labeled bywcan pass at most once byω since otherwise it would have a factor inX. 3. Follows from 2 since, otherwise, the pathr→w r→w rinA passes twice byω.

4. All fixpoints of ϕA(w) are also fixpoints ofϕA(w) and, by assertion 3, ϕA(w) cannot have other fixpoints.

Note that if a wordwsatisfies the hypotheses of Lemma 5, they are also satisfied by any power wn withn≥1 ofw. We prove a second technical lemma.

Lemma 6 LetX ⊂A+ be a code with empty kernel and let F be the set of internal factors of the words ofX. LetA= (Q, I, T)be a trim unambiguous automaton recognizingX. For a nonempty wordwsuch thatw ⊂F, there is an idempotent inϕA(w+)if and only if there is one inϕA(w+).

Proof.

1. Suppose first that ϕA(w+) contains an idempotent. Changing w into some of its powers, we may assume thate=ϕA(w) is an idempotent ofMA. Setf =ϕA(w). Let us show thatf2=f3, which implies that f2 is idempotent. Suppose indeed that we have a path p w

2

→q in A. If this path does not pass byω, then it is a path inAand thus we have alsopw

3

→q. Otherwise, sincew2 does not have a factor inX by Lemma 5, it can have only one occurrence ofω. We may suppose that this occurrence is in the first half of the path. The other case is symmetrical. Thus, suppose that we havew =uv with p→u ω and ω vw→ q. Then, since the path ω vw→ q does not pass by ω except at its origin, there is a path ivw→ qin Afor some i∈ I. Since e=ϕA(w) is idempotent, we also have a pathivw2 q inA and consequently a pathω vw2q in A. Finally, there is a path pw

3

→q inA. This shows thatf2⊂f3.

To show the converse inclusion, consider a path p w

3

→q in A. If this path does not pass by ω, then it is a path inA and thus we have also a path pw

2

→q in A and thus in A. Otherwise, suppose first that there is a factorizationw=uv such thatp→u ω vw2 q. Since ω does not have a second occurence on this path by Lemma 5, the pathω vw

2

→ qdoes not pass by ω except at its origin. Thus, there is a path ivw

2

→ q in Afor some i∈I. Sincee =ϕA(w) is idempotent, there there is also a pathivw→qinAand thus a pathωvw→qinA. Thus there is also a pathp→u ωvw→q inAwhich is a pathpw

2

→q. The case where there is a pathpw

2u

→ ω→v qinAis similar. Finally, there cannot exist a pathpwu→ωvw→q inA with w=uv. Indeed, sinceeis idempotent, we have also pathspw

2

→r→u ω →v s→w qand p→w r→u ω→v sw

2

→q for somer, s∈Q. By unambiguity, we obtainr=sand thus the existence of a path r→u ω →v r, which is impossible. This shows that f3⊂f2.

(21)

2. Conversely, suppose that f =ϕA(w) is idempotent. Let e=ϕA(w). We show thate2 =e3, which implies thate2 is idempotent. Consider first a path pw2 qin A. Letu, v∈A and s∈Q be such thati→u p→w s→w q→v twithi∈Iand t∈T.

By definition ofA, we also have a pathω→u p→w s→w q→v ω. Sincef =ϕA(w) is idempotent with (p, q)∈f, by Lemma 3, there is a path p→w r→w q in A withr∈Fix(f). By unambiguity we haver=s.

By Lemma 5 the paths→w sdoes not pass byω. Thus we also have a pathp→w s→w s→w qin Aand finally a pathpw

3

→q.

This shows that e2 ⊂e3. The converse inclusion is proved in the same way by reversing the implications.

Note that Lemma 6 is obvious when the codeX is recognizable and the automatonAis finite.

Indeed, in this case, the monoidsMA andMA are finite and in a finite monoid, any element has a power which is idempotent.

0 1 2 3 4

5

c b c

b

d

a b

ω 1 2 3

5

c b c

b

a d b

Figure 17: The automataAandA forX=ab∪(cb)+cd.

The following examples illustrate the proof of Lemma 6.

Example 14 Let X = ab∪(cb)+cd which is a code with empty kernel on the alphabet A = {a, b, c, d}. A trim deterministic automaton A recognizing X and the corresponding automaton Aare shown on Figure 17.

It is easy to verify thate=ϕA(bc) is idempotent whilef =ϕA(bc) satisfiesf2=f3 (butf is not idempotent) illustrating point 1 in the proof of Lemma 6.

Example 15 LetX =ab∪abcd∪(cb)+cdwhich is a code with empty kernel on the alphabetA= {a, b, c, d}. A trim unambiguous automaton A recognizing X and the corresponding automaton A are shown on Figure 18. It is easy to verify thatf =ϕA(bc) is idempotent whilee=ϕA(bc) satisfiese2=e3 (buteis not idempotent), thus illustrating point 2 in the proof of Lemma 6.

Proof of Proposition 4. Since the monoidsMA and MA both contain the group reduced to the identity, we may discard the case of groups reduced to the identity ofMA or MA, and thus of groupsGsuch thatϕ−1A(G) = 1 orϕ−1A (G) = 1. Note that ifϕ−1A (G)6= 1, thenϕ−1A (g)6= 1 for any g∈G. The same holds forϕA. We may also discard the case of the group reduced to the empty relation inMA.

Letf be an idempotent inMA such that ϕ−1A(f)⊂F. We may assume thatX is not empty and thus that f 6= 0. By the above discussion, we may assume ϕ−1A(f) 6= 1. Let w ∈ F be a

Références

Documents relatifs

Stability of representation with respect to increasing lim- its of Newtonian and Riesz potentials is established in ([16], Theorem 1.26, Theorem 3.9).. Convergence properties

n} having exactly k fixed points.. (hint: argue

Show that a (connected) topological group is generated (as a group) by any neighborhood of its

In the global theory with irreducible automorphic representations, if we fix the archimedean data (the “weight”) then the space of invariant vectors under a compact open subgroup of

However an easy calculation on q-multinomial co- efficients shows that there exists another transformation on words having one more property that would make it the definitive

The construction of M G is not unique, that is, given a finite connected graph G with more than one vertex, there exist infinitely many non-isomorphic minimal Sullivan algebras

If the connection ∇ is Hermitian, i.e., if there exists a Hermitian metric on E which is preserved by ∇, then the refined analytic torsion T is a complex number whose absolute value

The aim of this paper is to give a proof of the calculation of the flabby class group of a finite cyclic group due to Endo and Miyata [2].. In the next section I will recall