## Bifix codes and interval exchanges

Val´ erie Berth´ e 1 , Clelia De Felice , Francesco Dolce , Julien Leroy , 2 3 4 Dominique Perrin , Christophe Reutenauer , Giuseppina Rindone 3 5 3

1 2

CNRS, Universit´ e Paris 7, Universit` degli Studi di Salerno, a 3 Universit´ Paris Est, LIGM, e 4 Universit´ du Luxembourg, e 5 Universit´ du Qu´ ebec ` Montr´al e a e

February 23, 2015 1 h 28

## Abstract

We investigate the relation between bifix codes and interval exchange transformations. We prove that the class of natural codings of regular interval echange transformations is closed under maximal bifix decoding.

## Contents

| 1   | Introduction                      | 2                                                                          |
|-----|-----------------------------------|----------------------------------------------------------------------------|
| 2   | Interval exchange transformations | 3                                                                          |
|     | 2.1                               | Regular interval exchange transformations . . . . . . . . . . . . . 4      |
|     | 2.2                               | Natural coding . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5   |
|     | 2.3                               | Uniformly recurrent sets . . . . . . . . . . . . . . . . . . . . . . . 6   |
|     | 2.4                               | Interval exchange sets . . . . . . . . . . . . . . . . . . . . . . . . 7   |
| 3   | Bifix codes and interval exchange | 9                                                                          |
|     | 3.1                               | Prefix codes and bifix codes . . . . . . . . . . . . . . . . . . . . . 9   |
|     | 3.2                               | Maximal bifix codes . . . . . . . . . . . . . . . . . . . . . . . . . 10   |
|     | 3.3                               | Bifix codes and regular transformations . . . . . . . . . . . . . . 13     |
| 4   | Tree sets                         | 16                                                                         |
|     | 4.1                               | Extension graphs . . . . . . . . . . . . . . . . . . . . . . . . . . . 16  |
|     | 4.2                               | Interval exchange sets and planar tree sets . . . . . . . . . . . . . 17   |
|     | 4.3                               | Exchange of pieces . . . . . . . . . . . . . . . . . . . . . . . . . . 18  |
|     | 4.4                               | Subgroups of finite index . . . . . . . . . . . . . . . . . . . . . . . 21 |

## 1 Introduction

This paper is part of a research initiated in [2] which studies the connections between the three subjects formed by symbolic dynamics, the theory of codes and combinatorial group theory. The initial focus was placed on the classical case of Sturmian systems and progressively extended to more general cases.

The starting point of the present research is the observation that the family of Sturmian sets is not closed under decoding by a maximal bifix code, even in the more simple case of the code formed of all words of fixed length n . Actually, the decoding of the Fibonacci word (which corresponds to a rotation of angle α = (3 -√ 5) / 2) by blocks of length n is an interval exchange transformation corresponding to a rotation of angle nα coded on n +1 intervals. This has lead us to consider the set of factors of interval exchange transformations, called interval exchange sets. Interval exchange transformations were introduced by Oseledec [15] following an earlier idea of Arnold [1]. These transformations form a generalization of rotations of the circle.

The main result in this paper is that the family of regular interval exchange sets is closed under decoding by a maximal bifix code (Theorem 3.13). This result invited us to try to extend to regular interval exchange transformations the results relating bifix codes and Sturmian words. This lead us to generalize in [4] to a large class of sets the main result of [2], namely the Finite Index Basis Theorem relating maximal bifix codes and bases of subgroups of finite index of the free group.

Theorem 3.13 reveals a close connection between maximal bifix codes and interval exchange transformations. Indeed, given an interval exchange transformation T each maximal bifix code X defines a new interval exchange transformation T X . We show at the end of the paper, using the Finite Index Basis Theorem, that this transformation is actually an interval exchange transformation on a stack, as defined in [7] (see also [19]).

The paper is organized as follows.

In Section 2, we recall some notions concerning interval exchange transformations. We state the result of Keane [12] which proves that regularity is a sufficient condition for the minimality of such a transformation (Theorem 2.3).

We study in Section 3 the relation between interval exchange transformations and bifix codes. We prove that the transformation associated with a finite S -maximal bifix code is an interval exchange transformation (Proposition 3.8). We also prove a result concerning the regularity of this transformation (Theorem 3.12).

We discuss the relation with bifix codes and we show that the class of regular interval exchange sets is closed under decoding by a maximal bifix code, that is, under inverse images by coding morphisms of finite maximal bifix codes (Theorem 3.13).

In Section 4 we introduce tree sets and planar tree sets. We show, reformulating a theorem of [9], that uniformly recurrent planar tree sets are the regular interval exchange sets (Theorem 4.3). We show in another paper [5] that, in the same way as regular interval exchange sets, the class of uniformly recurrent

tree sets is closed under maximal bifix decoding.

In Section 4.3, we explore a new direction, extending the results of this paper to a more general case. We introduce exchange of pieces, a notable example being given by the Rauzy fractal. We indicate how the decoding of the natural codings of exchange of pieces by maximal bifix codes are again natural codings of exchange of pieces. We finally give in Section 4.4 an alternative proof of Theorem 3.13 using a skew product of a regular interval exchange transformation with a finite permutation group.

Acknowledgements This work was supported by grants from R´ egion Ile-deFrance, the ANR projects Eqinocs and Dyna3S, the Labex Bezout, the FARB Project 'Aspetti algebrici e computazionali nella teoria dei codici, degli automi e dei linguaggi formali' (University of Salerno, 2013) and the MIUR PRIN 20102011 grant 'Automata and Formal Languages: Mathematical and Applicative Aspects'. We thank the referee for his useful remarks on the first version of the paper which was initially part of the companion paper [4].

## 2 Interval exchange transformations

Let us recall the definition of an interval exchange transformation (see [8] or [6]).

A semi-interval is a nonempty subset of the real line of the form [ α, β [= { z ∈ R | α ≤ z &lt; β } . Thus it is a left-closed and right-open interval. For two semi-intervals ∆ Γ, we denote ∆ , &lt; Γ if x &lt; y for any x ∈ ∆ and y ∈ Γ.

Let ( A,&lt; ) be an ordered set. A partition ( I a ) a ∈ A of [0 , 1[ in semi-intervals is ordered if a &lt; b implies I a &lt; I b .

Let A be a finite set ordered by two total orders &lt; 1 and &lt; 2 . Let ( I a ) a ∈ A be a partition of [0 , 1[ in semi-intervals ordered for &lt; 1 . Let λ a be the length of I a . Let µ a = ∑ b ≤ 1 a λ b and ν a = ∑ b ≤ 2 a λ b . Set α a = ν a -µ a . The interval exchange transformation relative to ( I a ) a ∈ A is the map T : [0 , 1[ → [0 , 1[ defined by

$$T ( z ) & = z + \alpha _ { a } \quad \text{if } z \in I _ { a }. \\ \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot$$

Observe that the restriction of T to I a is a translation onto J a = T I ( a ), that µ a is the right boundary of I a and that ν a is the right boundary of J a . We additionally denote by γ a the left boundary of I a and by δ a the left boundary of J a . Thus

$$I _ { a } = [ \gamma _ { a }, \mu _ { a } [, \ J _ { a } = [ \delta _ { a }, \nu _ { a } [.$$

Note that a &lt; 2 b implies ν a &lt; ν b and thus J a &lt; J b . This shows that the family ( J a ) a ∈ A is a partition of [0 , 1[ ordered for &lt; 2 . In particular, the transformation T defines a bijection from [0 , 1[ onto itself.

An interval exchange transformation relative to ( I a ) a ∈ A is also said to be on the alphabet A . The values ( α a ) a ∈ A are called the translation values of the transformation T .

Example 2.1 Let R be the interval exchange transformation corresponding to A = { a, b } , a &lt; 1 b , b &lt; 2 a , I a = [0 1 , -α [, I b = [1 -α, 1[. The transformation R is the rotation of angle α on the semi-interval [0 , 1[ defined by R z ( ) = z + α mod 1.

Since &lt; 1 and &lt; 2 are total orders, there exists a unique permutation π of A such that a &lt; 1 b if and only if π a ( ) &lt; 2 π b ( ). Conversely, &lt; 2 is determined by &lt; 1 and π and &lt; 1 is determined by &lt; 2 and π . The permutation π is said to be associated with T .

If we set A = { a , a 1 2 , . . . , a s } with a 1 &lt; 1 a 2 &lt; 1 · · · &lt; 1 a s , the pair ( λ, π ) formed by the family λ = ( λ a ) a ∈ A and the permutation π determines the map T . We will also denote T as T λ,π . The transformation T is also said to be an s -interval exchange transformation.

It is easy to verify that if T is an interval exchange transformation, then T n is also an interval exchange transformation for any n ∈ Z .

Example 2.2 A3-interval exchange transformation is represented in Figure 2.1. One has A = { a, b, c } with a &lt; 1 b &lt; 1 c and b &lt; 2 c &lt; 2 a . The associated permutation is the cycle π = ( abc ). µ µ µ

Figure 2.1: A 3-interval exchange transformation.

![image](https://ac.marcodsn.me/arxiv-markdown-images/1408.0389v2-figure-815db496-c45a-41f3-b1c7-817e738ee3cc.jpg)

## 2.1 Regular interval exchange transformations

The orbit of a point z ∈ [0 , 1[ is the set { T n ( z ) | n ∈ Z } . The transformation T is said to be minimal if, for any z ∈ [0 , 1[, the orbit of z is dense in [0 , 1[.

Set A = { a , a 1 2 , . . . , a s } with a 1 &lt; 1 a 2 &lt; 1 . . . &lt; 1 a s , µ i = µ a i and δ i = δ a i . The points 0 , µ 1 , . . . , µ s -1 form the set of separation points of T , denoted Sep( T ). Note that the singular points of the transformation T (that is the points z ∈ [0 , 1[ at which T is not continuous) are among the separation points but that the converse is not true in general (see Example 3.9).

An interval exchange transformation T λ,π is called regular if the orbits of the nonzero separation points µ , . . . , µ 1 s -1 are infinite and disjoint. Note that the orbit of 0 cannot be disjoint of the others since one has T µ ( i ) = 0 for some i with 1 ≤ i ≤ s -1. The term regular was introduced by Rauzy in [17]. A regular interval exchange transformation is also said to be without connections or to satisfy the idoc condition (where idoc stands for infinite disjoint orbit condition).

Note that since δ 2 = T µ ( 1 ) , . . . , δ s = T µ ( s -1 ), T is regular if and only if the orbits of δ 2 , . . . , δ s are infinite and disjoint.

As an example, the 2-interval exchange transformation of Example 2.1 which is the rotation of angle α is regular if and only if α is irrational.

Note that if T is a regular s -interval exchange transformation, then for any n ≥ 1, the transformation T n is an n s ( -1)+1-interval exchange transformation. Indeed, the points T i ( µ j ) for 0 ≤ i ≤ n -1 and 1 ≤ j ≤ s -1 are distinct and define a partition in n s ( -1) + 1 intervals.

The following result is due to Keane [12].

Theorem 2.3 (Keane) A regular interval exchange transformation is minimal.

The converse is not true. Indeed, consider the rotation of angle α with α irrational, as a 3-interval exchange transformation with λ = (1 -2 α, α, α ) and π = (132). The transformation is minimal as any rotation of irrational angle but it is not regular since µ 1 = 1 -2 α µ , 2 = 1 -α and thus µ 2 = T µ ( 1 ).

The following example shows that the indecomposability of π is not sufficient for T to be minimal.

The following necessary condition for minimality of an interval exchange transformation is useful. A permutation π of an ordered set A is called decomposable if there exists an element b ∈ A such that the set B of elements strictly less than b is nonempty and such that π B ( ) = B . Otherwise it is called indecomposable . If an interval exchange transformation T = T λ,π is minimal, the permutation π is indecomposable. Indeed, if B is a set as above, the set S = ∪ a ∈ B a I is closed under T and strictly included in [0 , 1[.

Example 2.4 Let A = { a, b, c } and λ be such that λ a = λ c . Let π be the transposition ( ac ). Then π is indecomposable but T λ,π is not minimal since it is the identity on I b .

## 2.2 Natural coding

Let A be a finite nonempty alphabet. All words considered below, unless stated explicitly, are supposed to be on the alphabet A . We denote by A ∗ the set of all words on A . We denote by 1 or by ε the empty word. We refer to [3] for the notions of prefix, suffix, factor of a word.

Let T be an interval exchange transformation relative to ( I a ) a ∈ A . For a given real number z ∈ [0 , 1[, the natural coding of T relative to z is the infinite word Σ T ( z ) = a a 0 1 · · · on the alphabet A defined by

$$a _ { n } = a \quad \text{if} \quad T ^ { n } ( z ) \in I _ { a }.$$

For a word w = b 0 b 1 · · · b m -1 , let I w be the set

$$I _ { w } = I _ { b _ { 0 } } \cap T ^ { - 1 } ( I _ { b _ { 1 } } ) \cap \dots \cap T ^ { - m + 1 } ( I _ { b _ { m - 1 } } ). \quad \quad ( 2. 1 )$$

Note that each I w is a semi-interval. Indeed, this is true if w is a letter. Next, assume that I w is a semi-interval. Then for any a ∈ A T I , ( aw ) = T I ( a ) ∩ I w is a

semi-interval since T I ( a ) is a semi-interval by definition of an interval exchange transformation. Since I aw ⊂ I a , T I ( aw ) is a translate of I aw , which is therefore also a semi-interval. This proves the property by induction on the length. m

$$\text{Set } J _ { w } = T ^ { m } ( I _ { w } ). \text{ Thus}$$

$$J _ { w } = T ^ { m } ( I _ { b _ { 0 } } ) \cap T ^ { m - 1 } ( I _ { b _ { 1 } } ) \cap \dots \cap T ( I _ { b _ { m - 1 } } ). \text{ \quad \ \ } ( 2. 2 )$$

In particular, we have J a = T I ( a ) for a ∈ A . Note that each J w is a semiinterval. Indeed, this is true if w is a letter. Next, for any a ∈ A , we have T -1 ( J wa ) = J w ∩ I a . This implies as above that J wa is a semi-interval and proves the property by induction. We set by convention I ε = J ε = [0 1[. , Then one has for any n ≥ 0

$$a _ { n } a _ { n + 1 } \cdots a _ { n + m - 1 } = w \Longleftrightarrow T ^ { n } ( z ) \in I _ { w }$$

and

$$a _ { n - m } a _ { n - m + 1 } \cdots a _ { n - 1 } = w \Longleftrightarrow T ^ { n } ( z ) \in J _ { w }. \quad \quad ( 2. 4 ) \\ \cdots \quad, \quad. \quad, \quad. \quad, \quad e \, \sum \, \mathbb { s } \,. \quad. \quad e \quad.$$

Let ( α a ) a ∈ A be the translation values of T . Note that for any word w ,

$$J _ { w } & = I _ { w } + \alpha _ { w } & ( 2. 5 )$$

with α w = ∑ m -1 j =0 α b j as one may verify by induction on | w | = m . Indeed it is true for m = 1. For m ≥ 2, set w = ua with a = b m -1 . One has T m ( I w ) = T m -1 ( I w )+ α a and T m -1 ( I w ) = I w + α u by the induction hypothesis and the fact that I w is included in I u . Thus J w = T m ( I w ) = I w + α u + α a = I w + α w . Equation (2.5) shows in particular that the restriction of T | w | to I w is a translation.

## 2.3 Uniformly recurrent sets

A set S of words on the alphabet A is said to be factorial if it contains the factors of its elements.

A factorial set is said to be right-extendable if for every w ∈ S there is some a ∈ A such that wa ∈ S . It is biextendable if for any w ∈ S , there are a, b ∈ A such that awb ∈ S .

A set of words S = { } ε is recurrent if it is factorial and if for every u, w ∈ S there is a v ∈ S such that uvw ∈ S . A recurrent set is biextendable. It is said to be uniformly recurrent if it is right-extendable and if, for any word u ∈ S , there exists an integer n ≥ 1 such that u is a factor of every word of S of length n . A uniformly recurrent set is recurrent.

/negationslash

We denote by A N the set of infinite words on the alphabet A . For a set X ⊂ A N , we denote by F X ( ) the set of factors of the words of X .

Let S be a set of words on the alphabet A . For w ∈ S , set R w ( ) = { a ∈ A | wa ∈ S } and L w ( ) = { a ∈ A | aw ∈ S } . A word w is called right-special if Card( R w ( )) ≥ 2 and left-special if Card( L w ( )) ≥ 2. It is bispecial if it is both right and left-special.

An infinite word on a binary alphabet is Sturmian if its set of factors is closed under reversal and if for each n there is exactly one right-special word of length n .

An infinite word is a strict episturmian word if its set of factors is closed under reversal and for each n there is exactly one right-special word w of length n , which is moreover such that Card( R w ( )) = Card( A ).

A morphism f : A ∗ → A ∗ is called primitive if there is an integer k such that for all a, b ∈ A , the letter b appears in f k ( a ). If f is a primitive morphism, the set of factors of any fixpoint of f is uniformly recurrent (see [10, Proposition 1.2.3], for example).

Example 2.5 Let A = { a, b } . The Fibonacci word is the fixpoint x = f ω ( a ) = abaababa . . . of the morphism f : A ∗ → A ∗ defined by f ( a ) = ab and f ( b ) = a . It is a Sturmian word (see [13]). The set F x ( ) of factors of x is the Fibonacci set .

Example 2.6 Let A = { a, b, c } . The Tribonacci word is the fixpoint x = f ω ( a ) = abacaba · · · of the morphism f : A ∗ → A ∗ defined by f ( a ) = ab , f ( b ) = ac , f ( c ) = a . It is a strict episturmian word (see [11]). The set F x ( ) of factors of x is the Tribonacci set .

## 2.4 Interval exchange sets

Let T be an interval exchange set. The set F (Σ T ( z )) is called an interval exchange set . It is biextendable.

/negationslash

If T is a minimal interval exchange transformation, one has w ∈ F (Σ T ( z )) if and only if I w = ∅ . Thus the set F (Σ T ( z )) does not depend on z . Since it depends only on T , we denote it by F T ( ). When T is regular (resp. minimal), such a set is called a regular interval exchange set (resp. a minimal interval exchange set).

Let T be an interval exchange transformation. Let M be the closure in A N of the set of all Σ ( ) for T z z ∈ [0 , 1[ and let σ be the shift on M . The pair ( M,σ ) is a symbolic dynamical system , formed of a topological space M and a continuous transformation σ . Such a system is said to be minimal if the only closed subsets invariant by σ are ∅ or M (that is, every orbit is dense). It is well-known that ( M,σ ) is minimal if and only if F T ( ) is uniformly recurrent (see for example [13, Theorem 1.5.9] ).

We have the following commutative diagram (Figure 2.2).

Figure 2.2: The transformations T and σ .

![image](https://ac.marcodsn.me/arxiv-markdown-images/1408.0389v2-figure-1f0a3642-4bcf-41e3-9258-85a35f297f56.jpg)

The map Σ T is neither continuous nor surjective. This can be corrected by embedding the interval [0 , 1[ into a larger space on which T is a homeomophism (see [12] or [6, page 349]). However, if the transformation T is minimal, the symbolic dynamical system ( M,S ) is minimal (see [6, page 392]). Thus, we obtain the following statement.

Proposition 2.7 For any minimal interval exchange transformation T , the set F T ( ) is uniformly recurrent.

Note that for a minimal interval exchange transformation T , the map Σ T is injective (see [12] page 30).

The following is an elementary property of the intervals I u which will be used below. We denote by &lt; 1 the lexicographic order on A ∗ induced by the order &lt; 1 on A .

Proposition 2.8 One has I u &lt; I v if and only if u &lt; 1 v and u is not a prefix of v .

Proof. For a word u and a letter a , it results from (2.1) that I ua = I u ∩ T -| u | ( I a ). Since ( I a ) a ∈ A is an ordered partition, this implies that ( T | u | ( I u ) ∩ I a ) a ∈ A is an ordered partition of T | u | ( I u ). Since the restriction of T | u | to I u is a translation, this implies that ( I ua ) a ∈ A is an ordered partition of I u . Moreover, for two words u, v , it results also from (2.1) that I uv = I u ∩ T -| u | ( I v ). Thus I uv ⊂ I u .

Conversely, assume that I u &lt; I v . Since I u ∩ I v = ∅ , the words u, v cannot be comparable for the prefix order. Set u = /lscriptas and v = /lscriptbt with a, b two distinct letters. If b &lt; 1 a , then I v &lt; I u as we have shown above. Thus a &lt; 1 b which implies u &lt; 1 v .

Assume that u &lt; 1 v and that u is not a prefix of v . Then u = /lscriptas and v = /lscriptbt with a, b two letters such that a &lt; 1 b . Then we have I /lscripta &lt; I /lscriptb , with I u ⊂ I /lscripta and I v ⊂ I /lscriptb whence I u &lt; I v .

We denote by &lt; 2 the order on A ∗ defined by u &lt; 2 v if u is a proper suffix of v or if u = waz and v = tbz with a &lt; 2 b . Thus &lt; 2 is the lexicographic order on the reversal of the words induced by the order &lt; 2 on the alphabet.

We denote by π the morphism from A ∗ onto itself which extends to A ∗ the permutation π on A . Then u &lt; 2 v if and only if π -1 (˜) u &lt; 1 π -1 (˜), v where ˜ u denotes the reversal of the word u .

The following statement is the analogue of Proposition 2.8.

Proposition 2.9 Let T λ,π be an interval exchange transformation. One has J u &lt; J v if and only if u &lt; 2 v and u is not a suffix of v .

Proof. Let ( I ′ a ) a ∈ A be the family of semi-intervals defined by I ′ a = J π a ( ) . Then the interval exchange transformation T ′ relative to ( I ′ a ) with translation values -α a is the inverse of the transformation T . The semi-intervals I ′ w defined by Equation (2.1) with respect to T ′ satisfy I ′ w = J π w ( ˜) or equivalently J w =

I ′ π -1 ( ˜) w . Thus, J u &lt; J v if and only if I ′ π -1 (˜) u &lt; I ′ π -1 (˜) v if and only if (by Proposition 2.8) π -1 (˜) u &lt; π 1 -1 (˜) or equivalently v u &lt; 2 v .

## 3 Bifix codes and interval exchange

In this section, we first introduce prefix codes and bifix codes. For a more detailed exposition, see [3]. We describe the link between maximal bifix codes and interval exchange transformations and we prove our main result (Theorem 3.13).

## 3.1 Prefix codes and bifix codes

A prefix code is a set of nonempty words which does not contain any proper prefix of its elements. A suffix code is defined symmetrically. A bifix code is a set which is both a prefix code and a suffix code.

A coding morphism for a prefix code X ⊂ A + is a morphism f : B ∗ → A ∗ which maps bijectively B onto X .

Let S be a set of words. A prefix code X ⊂ S is S -maximal if it is not properly contained in any prefix code Y ⊂ S . Note that if X ⊂ S is an S -maximal prefix code, any word of S is comparable for the prefix order with a word of X .

A map λ : A ∗ → [0 , 1] such that λ ε ( ) = 1 and, for any word w

$$\sum _ { a \in A } \lambda ( a w ) = \sum _ { a \in A } \lambda ( w a ) = \lambda ( w ),$$

is called an invariant probability distribution on A ∗ .

Let T λ,π be an interval exchange transformation. For any word w ∈ A ∗ , denote by | I w | the length of the semi-interval I w defined by Equation (2.1). Set λ w ( ) = | I w | . Then λ ε ( ) = 1 and for any word w , Equation (3.1) holds and thus λ is an invariant probability distribution.

The fact that λ is an invariant probability measure is equivalent to the fact that the Lebesgue measure on [0 1[ is invariant by , T . It is known that almost all regular interval exchange transformations have no other invariant probability measure (and thus are uniquely ergodic, see [6] for references).

Example 3.1 Let S be the set of factors of the Fibonacci word (see Example 2.5). It is the natural coding of the rotation of angle α = (3 -√ 5) / 2 with respect to α (see [13, Chapter 2]). The values of the map λ on the words of length at most 4 in S are indicated in Figure 3.1.

The following result is a particular case of a result from [2] (Proposition 3.3.4).

Proposition 3.2 Let T be a minimal interval exchange transformation, let S = F T ( ) and let λ be an invariant probability distribution on S . For any finite S -maximal prefix code X , one has ∑ x ∈ X λ x ( ) = 1 .

![image](https://ac.marcodsn.me/arxiv-markdown-images/1408.0389v2-figure-f079297a-deb4-414d-8394-a2c99a128940.jpg)

-

-

Figure 3.1: The invariant probability distribution on the Fibonacci set.

The following statement is connected with Proposition 3.2.

Proposition 3.3 Let T be a minimal interval exchange transformation relative to ( I a ) a ∈ A , let S = F T ( ) and let X be a finite S -maximal prefix code ordered by &lt; 1 . The family ( I w w ) ∈ X is an ordered partition of [0 , 1[ .

Proof. By Proposition 2.8, the sets ( I w ) for w ∈ X are pairwise disjoint. Let π be the invariant probability distribution on S defined by π w ( ) = | I w | . By Proposition 3.2, we have ∑ w X ∈ π w ( ) = 1. Thus the family ( I w w ) ∈ X is a partition of [0 , 1[. By Proposition 2.8 it is an ordered partition.

Example 3.4 Let T be the rotation of angle α = (3 -√ 5) / 2. The set S = F T ( ) is the Fibonacci set. The set X = { aa, ab, b } is an S -maximal prefix code (see the grey nodes in Figure 3.1). The partition of [0 , 1[ corresponding to X is

$$I _ { a a } = [ 0, 1 - 2 \alpha [, \ \ I _ { a b } = [ 1 - 2 \alpha, 1 - \alpha [, \ \ I _ { b } = [ 1 - \alpha, 1 [.$$

The values of the lengths of the semi-intervals (the invariant probability distribution) can also be read on Figure 3.1.

A symmetric statement holds for an S -maximal suffix code, namely that the family ( J w w ) ∈ X is an ordered partition of [0 , 1[ for the order &lt; 2 on X .

## 3.2 Maximal bifix codes

Let S be a set of words. A bifix code X ⊂ S is S -maximal if it is not properly contained in a bifix code Y ⊂ S . For a recurrent set S , a finite bifix code is S -maximal as a bifix code if and only if it is an S -maximal prefix code (see [2, Theorem 4.2.2]).

A parse of a word w with respect to a bifix code X is a triple ( v, x, u ) such that w = vxu where v has no suffix in X u , has no prefix in X and x ∈ X ∗ . We denote by δ X ( w ) the number of parses of w with respect to X .

The number of parses of a word w is also equal to the number of suffixes of w which have no prefix in X and the number of prefixes of w which have no suffix in X (see Proposition 6.1.6 in [3]).

By definition, the S -degree of a bifix code X , denoted d X ( S ), is the maximal number of parses of a word in S . It can be finite or infinite.

The set of internal factors of a set of words X , denoted I ( X ), is the set of words w such that there exist nonempty words u, v with uwv ∈ X .

Let S be a recurrent set and let X be a finite S -maximal bifix code of S -degree d . A word w ∈ S is such that δ X ( w ) &lt; d if and only if it is an internal factor of X , that is,

$$I ( X ) = \{ w \in S \, | \, \delta _ { X } ( w ) < d \} \\ \mathbb { m } \ \, \infty \ \, \begin{array} { c } I ( X ) & \delta _ { X } ( w ) < d \} \\ \mathbb { m } \ \, \infty \ \, \end{array} \dots \, \cdot \ \end{array}.$$

(Theorem 4.2.8 in [2]). Thus any word of S which is not a factor of X has d parses. This implies that the S -degree d is finite.

Example 3.5 Let S be a recurrent set. For any integer n ≥ 1, the set S ∩ A n is an S -maximal bifix code of S -degree n .

The kernel of a bifix code X is the set K X ( ) = I ( X ) ∩ X . Thus it is the set of words of X which are also internal factors of X . By Theorem 4.3.11 of [2], a finite S -maximal bifix code is determined by its S -degree and its kernel.

Example 3.6 Let S be the Fibonacci set. The set X = { a, baab, bab } is the unique S -maximal bifix code of S -degree 2 with kernel { a } . Indeed, the word bab is not an internal factor and has two parses, namely (1 , bab, 1) and ( b, a, b ).

The following result shows that bifix codes have a natural connection with interval exchange transformations.

Proposition 3.7 If X is a finite S -maximal bifix code, with S as in Proposition 3.3 , the families ( I w w ) ∈ X and ( J w w ) ∈ X are ordered partitions of [0 , 1[ , relatively to the orders &lt; 1 and &lt; 2 respectively.

Proof. This results from Proposition 3.3 and its symmetric and from the fact that, since S is recurrent, a finite S -maximal bifix code is both an S -maximal prefix code and an S -maximal suffix code.

Let T be a regular interval exchange transformation relative to ( I a ) a ∈ A . Let ( α a ) a ∈ A be the translation values of T . Set S = F T ( ). Let X be a finite S -maximal bifix code on the alphabet A .

Let T X be the transformation on [0 , 1[ defined by

$$T _ { X } ( z ) = T ^ { | u | } ( z ) \ \text{ if } \ z \in I _ { u }$$

with u ∈ X . The transformation is well-defined since, by Proposition 3.7, the family ( I u u ) ∈ X is a partition of [0 , 1[.

Let f : B ∗ → A ∗ be a coding morphism for X . Let ( K b ) b ∈ B be the family of semi-intervals indexed by the alphabet B with K b = I f ( b ) . We consider B as

ordered by the orders &lt; 1 and &lt; 2 induced by f . Let T f be the interval exchange transformation relative to ( K b ) b ∈ B . Its translation values are β b = ∑ m -1 j =0 α a j for f ( b ) = a a 0 1 · · · a m -1 . The transformation T f is called the transformation associated with f .

Proposition 3.8 Let T be a regular interval exchange transformation relative to ( I a ) a ∈ A and let S = F T ( ) . If f : B ∗ → A ∗ is a coding morphism for a finite S -maximal bifix code X , one has T f = T X .

Proof. By Proposition 3.7, the family ( K b ) b ∈ B is a partition of [0 , 1[ ordered by &lt; 1 . For any w ∈ X , we have by Equation (2.5) J w = I w + α w and thus T X is the interval exchange transformation relative to ( K b ) b ∈ B with translation values β b .

In the sequel, under the hypotheses of Proposition 3.8, we consider T f as an interval exchange transformation. In particular, the natural coding of T f relative to z ∈ [0 , 1[ is well-defined.

Example 3.9 Let S be the Fibonacci set. It is the set of factors of the Fibonacci word, which is a natural coding of the rotation of angle α = (3 -√ 5) / 2 relative to α (see Example 3.1). Let X = { aa, ab, ba } and let f be the coding morphism defined by f ( u ) = aa , f ( v ) = ab , f ( w ) = ba . The two partitions of [0 , 1[ corresponding to T f are

$$I _ { u } = [ 0, 1 - 2 \alpha [, \ \ I _ { v } = [ 1 - 2 \alpha, 1 - \alpha [ \ \ I _ { w } = [ 1 - \alpha, 1 [ \ \ }$$

and

$$J _ { v } = [ 0, \alpha [, \ \ J _ { w } = [ \alpha, 2 \alpha [ \ \ J _ { u } = [ 2 \alpha, 1 [.$$

The transformation T f is represented in Figure 3.2. It is actually a representa-

![image](https://ac.marcodsn.me/arxiv-markdown-images/1408.0389v2-figure-6430a538-3b48-411a-9883-497d0ebf6542.jpg)

tion on 3 intervals of the rotation of angle 2 α . Note that the point z = 1 -α is a separation point which is not a singularity of T f . The first row of Table 3.1 gives the two orders on X . The next two rows give the two orders for each of the two other S -maximal bifix codes of S -degree 2 (there are actually exactly three S -maximal bifix codes of S -degree 2 in the Fibonacci set, see [2]).

Let T be a minimal interval exchange transformation on the alphabet A . Let x be the natural coding of T relative to some z ∈ [0 , 1[. Set S = F x ( ). Let X be a finite S -maximal bifix code. Let f : B ∗ → A ∗ be a morphism which maps bijectively B onto X . Since S is recurrent, the set X is an S -maximal

Table 3.1: The two orders on the three S -maximal bifix codes of S -degree 2.

| ( X,< 1 )    | ( X,< 2 )    |
|--------------|--------------|
| aa, ab, ba   | ab, ba, aa   |
| a, baab, bab | bab, baab, a |
| aa, aba, b   | b, aba, aa   |

prefix code. Thus x has a prefix x 0 ∈ X . Set x = x x 0 ′ . In the same way x ′ has a prefix x 1 in X . Iterating this argument, we see that x = x x 0 1 · · · with x i ∈ X . Consequently, there exists an infinite word y on the alphabet B such that x = f ( y ). The word y is the decoding of the infinite word x with respect to f .

Proposition 3.10 The decoding of x with respect to f is the natural coding of the transformation associated with f relative to z : Σ ( ) = T z f (Σ T f ( z )) .

Proof. Let y = b 0 b 1 · · · be the decoding of x with respect to f . Set x i = f ( b i ) for i ≥ 0. Then, for any n ≥ 0, we have

$$T _ { f } ^ { n } ( z ) = T ^ { | u _ { n } | } ( z )$$

with u n = x 0 · · · x n -1 (note that | u n | denotes the length of u n with respect to the alphabet A ). Indeed, this is is true for n = 0. Next T n +1 f ( z ) = T f ( ) with t t = T n f ( z ). Arguing by induction, we have t = T | u n | ( z ). Since x = u x x n n n +1 · · · , t is in I x n by (2.3). Thus by Proposition 3.8, T f ( ) t = T | x n | ( ) t and we obtain T n +1 f ( z ) = T | x n | ( T | u n | ( z )) = T | u n +1 | ( z ) proving (3.2). Finally, for u = f ( b ) with b ∈ B ,

$$b _ { n } = b \Longleftrightarrow x _ { n } = u \Longleftrightarrow T ^ { | u _ { n } | } ( z ) \in I _ { u } \Longleftrightarrow T _ { f } ^ { n } ( z ) \in I _ { u } = K _ { b }$$

showing that y is the natural coding of T f relative to z .

Example 3.11 Let T, α, X and f be as in Example 3.9. Let x = abaababa · · · be the Fibonacci word. We have x = Σ T ( α ). The decoding of x with respect to f is y = vuwwv · · · .

## 3.3 Bifix codes and regular transformations

The following result shows that, for the coding morphism f of a finite S -maximal bifix code, the map T → T f preserves the regularity of the transformation.

↦

Theorem 3.12 Let T be a regular interval exchange transformation and let S = F T ( ) . For any finite S -maximal bifix code X with coding morphism f , the transformation T f is regular.

Proof. Set A = { a , a 1 2 , . . . , a s } with a 1 &lt; 1 a 2 &lt; 1 · · · &lt; 1 a s . We denote δ i = δ a i . By hypothesis, the orbits of δ 2 , . . . , δ s are infinite and disjoint. Set X = { x , x 1 2 , . . . , x t } with x 1 &lt; x 1 2 &lt; 1 · · · &lt; x 1 t . Let d be the S -degree of X .

/negationslash

For x ∈ X , denote by δ x the left boundary of the semi-interval J x . For each x ∈ X , it follows from Equation (2.2) that there is an i ∈ { 1 , . . . , s } such that δ x = T k ( δ i ) with 0 ≤ k &lt; | x | . Moreover, we have i = 1 if and only if x = x 1 . Since T is regular, the index i = 1 and the integer k are unique for each x = x 1 . And for such x and i , by (2.4), we have Σ T ( δ i ) = u Σ ( T δ x ) with u a proper suffix of x .

/negationslash

/negationslash

We now show that the orbits of δ x 2 , . . . , δ x t for the transformation T f are infinite and disjoint. Assume that δ x p = T n f ( δ x q ) for some p, q ∈ { 2 , . . . , t } and n ∈ Z . Interchanging p, q if necessary, we may assume that n ≥ 0. Let i, j ∈ { 2 , . . . , s } be such that δ x p = T k ( δ i ) with 0 ≤ k &lt; | x p | and δ x q = T /lscript ( δ j ) with 0 ≤ /lscript &lt; x | q | . Since T k ( δ i ) = T n f ( T /lscript ( δ j )) = T m /lscript + ( δ j ) for some m ≥ 0, we cannot have i = j since otherwise the orbits of δ , δ i j for the transformation T intersect. Thus i = j . Since δ x p = T k ( δ i ), we have Σ T ( δ i ) = u Σ ( T δ x p ) with | u | = k , and u a proper suffix of x p . And since δ x p = T n f ( δ x q ), we have Σ ( T δ x q ) = x Σ ( T δ x p ) with x ∈ X ∗ . Since on the other hand δ x q = T /lscript ( δ i ), we have Σ T ( δ i ) = v Σ ( T δ x q ) with | v | = /lscript and v a proper suffix of x q . We obtain

$$\Sigma _ { T } ( \delta _ { i } ) \ & = \ u \Sigma _ { T } ( \delta _ { x _ { p } } ) \\ & = \ v \Sigma _ { T } ( \delta _ { x _ { q } } ) = v x \Sigma _ { T } ( \delta _ { x _ { p } } ).$$

Since | u | = | vx | , this implies u = vx . But since u cannot have a suffix in X , u = vx implies x = 1 and thus n = 0 and p = . This concludes the proof. q

Let f be a coding morphism for a finite S -maximal bifix code X ⊂ S . The set f -1 ( S ) is called a maximal bifix decoding of S .

Theorem 3.13 The family of regular interval exchange sets is closed under maximal bifix decoding.

Proof. Let T be a regular interval exchange transformation such that S = F T ( ). By Theorem 3.12, T f is a regular interval exchange transformation. We show that f -1 ( S ) = F T ( f ), which implies the conclusion.

Let x = Σ T ( z ) for some z ∈ [0 , 1[ and let y = f -1 ( x ). Then S = F x ( ) and F T ( f ) = F y ( ). For any w ∈ F y ( ), we have f ( w ) ∈ F x ( ) and thus w ∈ f -1 ( S ). This shows that F T ( f ) ⊂ f -1 ( S ). Conversely, let w ∈ f -1 ( S ) and let v = f ( w ). Since S = F x ( ), there is a word u such that uv is a prefix of x . Set z ′ = T | u | ( z ) and x ′ = Σ T ( z ′ ). Then v is a prefix of x ′ and w is a prefix of y ′ = f -1 ( x ′ ). Since T f is regular, it is minimal and thus F y ( ′ ) = F T ( f ). This implies that w ∈ F T ( f ).

Since a regular interval exchange set is uniformly recurrent, Theorem 3.13 implies in particular that if S is a regular interval exchange set and f a coding morphism of a finite S -maximal bifix code, then f -1 ( S ) is uniformly recurrent.

This is not true for an arbitrary uniformly recurrent set S , as shown by the following example.

Example 3.14 Set A = { a, b } and B = { u, v } . Let S be the set of factors of ( ab ) ∗ and let f : B ∗ → A ∗ be defined by f ( u ) = ab and f ( v ) = ba . Then f -1 ( S ) = u ∗ ∪ v ∗ which is not recurrent.

We illustrate the proof of Theorem 3.12 in the following example.

Example 3.15 Let T be the rotation of angle α = (3 -√ 5) / 2. The set S = F T ( ) is the Fibonacci set. Let X = { a, baab, babaabaabab, babaabab } . The set X is an S -maximal bifix code of S -degree 3 (see [2]). The values of the µ x i (which are the right boundaries of the intervals I x i ) and δ x i are represented in Figure 3.3.

µ

![image](https://ac.marcodsn.me/arxiv-markdown-images/1408.0389v2-figure-76838f60-eaad-4c66-9da0-5229f882393e.jpg)

µ

µ

µ

Figure 3.3: The transformation associated with a bifix code of S -degree 3.

The infinite word Σ T (0) is represented in Figure 3.4. The value indicated on the word Σ T (0) after a prefix u is T | u | (0). The three values δ x 4 , δ x 2 , δ x 3 correspond to the three prefixes of Σ T (0) which are proper suffixes of X .

Figure 3.4: The infinite word Σ T (0).

![image](https://ac.marcodsn.me/arxiv-markdown-images/1408.0389v2-figure-80b718cc-51db-499f-b516-9001356c4caf.jpg)

The following example shows that Theorem 3.13 is not true when X is not bifix.

Example 3.16 Let S be the Fibonacci set and let X = { aa, ab, b } . The set X is an S -maximal prefix code. Let B = { u, v, w } and let f be the coding morphism for X defined by f ( u ) = aa , f ( v ) = ab , f ( w ) = b . The set W = f -1 ( S ) is not an interval exchange set. Indeed, we have vu, vv, wu, wv ∈ W . This implies that both J v and J w meet I u and I v , which is impossible in an interval exchange transformation.

## 4 Tree sets

We introduce in this section the notions of tree sets and planar tree sets. We first introduce the notion of extension graph which describes the possible two-sided extensions of a word.

## 4.1 Extension graphs

Let S be a biextendable set of words. For w ∈ S , we denote

$$L ( w ) = \{ a \in A \ | \ a w \in S \}, \ \ R ( w ) = \{ a \in A \ | \ w a \in S \}$$

and

$$E ( w ) = \{ ( a, b ) \in A \times A \ | \ a w b \in S \}. \\. \ \. \ \. \ \. \ \. \ \. \ \. \ \. \ \. \ \.. \ \..$$

For w ∈ S , the extension graph of w is the undirected bipartite graph G w ( ) on the set of vertices which is the disjoint union of two copies of L w ( ) and R w ( ) with edges the pairs ( a, b ) ∈ E w ( ).

Let &lt; 1 and &lt; 2 be two orders on A . For a set S and a word w ∈ S , we say that the graph G w ( ) is compatible with the orders &lt; 1 and &lt; 2 if for any ( a, b ) , ( c, d ) ∈ E w ( ), one has

Recall that an undirected graph is a tree if it is connected and acyclic. Let S be a biextendable set. We say that S is a tree set if the graph G w ( ) is a tree for all w ∈ S .

$$a < _ { 1 } c \Longrightarrow b \leq _ { 2 } d.$$

Thus, placing the vertices of L w ( ) ordered by &lt; 1 on a line and those of R w ( ) ordered by &lt; 2 on a parallel line, the edges of the graph may be drawn as straight noncrossing segments, resulting in a planar graph.

We say that a biextendable set S is a planar tree set with respect to two orders &lt; 1 and &lt; 2 on A if for any w ∈ S , the graph G w ( ) is a tree compatible with &lt; , &lt; 1 2 . Obviously, a planar tree set is a tree set.

The following example shows that the Tribonacci set is not a planar tree set.

Example 4.1 Let S be the Tribonacci set (see Example 2.6). The words a, aba and abacaba are bispecial. Thus the words ba, caba are right-special and the words ab, abac are left-special. The graphs G ε , G a ( ) ( ) and G aba ( ) are shown in Figure 4.1. One sees easily that it not possible to find two orders on A making

Figure 4.1: The graphs G ε , G a ( ) ( ) and G aba ( ) in the Tribonacci set.

![image](https://ac.marcodsn.me/arxiv-markdown-images/1408.0389v2-figure-05374bda-e49e-4d20-b30c-7a21efe571e2.jpg)

the three graphs planar.

## 4.2 Interval exchange sets and planar tree sets

The following result is proved in [9] with a converse (see below).

Proposition 4.2 Let T be an interval exchange transformation on A ordered by &lt; 1 and &lt; 2 . If T is regular, the set F T ( ) is a planar tree set with respect to &lt; 2 and &lt; 1 .

Proof. Assume that T is a regular interval exchange transformation relative to ( I a , α a ) a ∈ A and let S = F T ( ).

Since T is minimal, w is in S if and only if I w = ∅ . Thus, one has

/negationslash

- (ii) a ∈ L w ( ) if and only if J a ∩ I w = . ∅

/negationslash

- (i) b ∈ R w ( ) if and only if I w ∩ T -| w | ( I b ) = ∅ and

/negationslash

Condition (i) holds because I wb = I w ∩ T -| w | ( I b ) and condition (ii) because I aw = I a ∩ T -1 ( I w ), which implies T I ( aw ) = J a ∩ I w . In particular, (i) implies that ( I wb b ) ∈ R w ( ) is an ordered partition of I w with respect to &lt; 1 .

/negationslash

We say that a path in a graph is reduced if it does not use consecutively the same edge. For a, a ′ ∈ L w ( ) with a &lt; 2 a ′ , there is a unique reduced path in G w ( ) from a to a ′ which is the sequence a , b 1 1 , . . . a n with a 1 = a and a n = a ′ with a 1 &lt; 2 a 2 &lt; 2 · · · &lt; 2 a n , b 1 &lt; 1 b 2 &lt; 1 · · · &lt; 1 b n -1 and J a i ∩ I wb i = ∅ , J a i +1 ∩ I wb i = ∅ for 1 ≤ i ≤ n -1 (see Figure 4.2). Note that the hypothesis that T is regular is needed here since otherwise the right boundary of J a i could be the left boundary of I wb i . Thus G w ( ) is a tree. It is compatible with &lt; , &lt; 2 1 since the above shows that a &lt; 2 a ′ implies that the letters b 1 , b n -1 such that ( a, b 1 ) , ( a , b ′ n -1 ) ∈ E w ( ) satisfy b 1 ≤ 1 b n -1 .

/negationslash

Figure 4.2: A path from a 1 to a n in G w ( ).

![image](https://ac.marcodsn.me/arxiv-markdown-images/1408.0389v2-figure-db4e588c-a219-4743-b2e1-118f1fe69362.jpg)

By Proposition 4.2, a regular interval exchange set is a planar tree set, and thus in particular a tree set. Note that the analogue of Theorem 3.13 holds for the class of uniformly recurrent tree sets [5].

The main result of [9] states that a uniformly recurrent set S on an alphabet A is a regular interval exchange set if and only if A ⊂ S and there exist two orders &lt; 1 and &lt; 2 on A such that the following conditions are satisfied for any word w ∈ S .

- (i) The set L w ( ) (resp. R w ( )) is formed of consecutive elements for the order &lt; 2 (resp. &lt; 1 ).
- (ii) For ( a, b ) , ( c, d ) ∈ E w ( ), if a &lt; 2 c , then b ≤ 1 d .
- (iii) If a, b ∈ L w ( ) are consecutive for the order &lt; 2 , then the set R aw ( ) ∩ R bw ( ) is a singleton.

It is easy to see that a biextendable set S containing A satisfies (ii) and (iii) if and only if it is a planar tree set. Actually, in this case, it automatically satisfies also condition (i). Indeed, let us consider a word w and a, b, c ∈ A with a &lt; 1 b &lt; 1 c such that wa,wc ∈ S but wb / S ∈ . Since b ∈ S there is a (possibly empty) suffix v of w such that vb ∈ S . We choose v of maximal length. Since wb / S ∈ , we have w = uv with u nonempty. Let d be the last letter of u . Then we have dva, dvc ∈ S and dvb / S ∈ . Since G v ( ) is a tree and b ∈ R v ( ), there is a letter e ∈ L v ( ) such that evb ∈ S . But e &lt; 2 d and d &lt; 2 e are both impossible since G v ( ) is compatible with &lt; 2 and &lt; 1 . Thus we reach a contradiction.

This shows that the following reformulation of the main result of [9] is equivalent to the original one.

Theorem 4.3 (Ferenczi, Zamboni) A set S is a regular interval exchange set on the alphabet A if and only if it is a uniformly recurrent planar tree set containing A .

We have already seen that the Tribonacci set is a tree set which is not a planar tree set (Example 4.1). The next example shows that there are uniformly recurrent tree sets which are neither Sturmian nor regular interval exchange sets.

Example 4.4 Let S be the Tribonacci set on the alphabet A = { a, b, c } and let f : { x, y, z, t, u } ∗ → A ∗ be the coding morphism for X = S ∩ A 2 defined by f ( x ) = aa , f ( y ) = ab , f ( z ) = ac , f ( ) = t ba , f ( u ) = ca . By Theorem 7.1 in [5], the set W = f -1 ( S ) is a uniformly recurrent tree set. It is not Sturmian since y and t are two right-special words. It is not either a regular interval exchange set. Indeed, for any right-special word w of W , one has Card( R w ( )) = 3. This is not possible in a regular interval exchange set T since, Σ T being injective, the length of the interval J w tends to 0 as | w | tends to infinity and it cannot contain several separation points. It can of course also be verified directly that W is not a planar tree set.

## 4.3 Exchange of pieces

In this section, we show how one can define a generalization of interval exchange transformations called exchange of pieces. In the same way as interval exchange is a generalization of rotations on the circle, exchange of pieces is a generalization of rotations of the torus. We begin by studying this direction starting from the Tribonacci word. For more on the Tribonacci word, see [17] and also [14, Chap. 10].

The Tribonacci shift The Tribonacci set S is not an interval exchange set but it is however the natural coding of another type of geometric transformation, namely an exchange of pieces in the plane, which is also a translation acting on the two-dimensional torus T 2 . This will allow us to show that the decoding of

the Tribonacci word with respect to a coding morphism for a finite S -maximal bifix code is again a natural coding of an exchange of pieces.

The Tribonacci shift is the symbolic dynamical system ( M ,σ x ), where M x = { σ n ( x ) : n ∈ N } is the closure of the σ -orbit of x where x is the Tribonacci word. By uniform recurrence of the Tribonacci word, ( M ,σ x ) is minimal and M x = M y for each y ∈ M x ([16, Proposition 4.7]). The Tribonacci set is the set of factors of the Tribonacci shift ( M ,σ x ).

↦

Natural coding Let Λ be a full-rank lattice in R d . We say that an infinite word x is a natural coding of a toral translation T t : R d / Λ → R d / Λ , x → x + t if there exists a fundamental domain R for Λ together with a partition R = R 1 ∪·· ·∪ R k such that on each R i (1 ≤ i ≤ k ), there exists a vector t i such that the map T t is given by the translation along t i , and x is the coding of a point x ∈ R with respect to this partition. A symbolic dynamical system ( M,σ ) is a natural coding of ( R d / Λ , T t ) if every element of M is a natural coding of the orbit of some point of the d -dimensional torus R d / Λ (with respect to the same partition) and if, furthermore, ( M,σ ) and ( R d / Λ , T t ) are measurably conjugate.

↦

↦

Definition of the Rauzy fractal Let β stand for the Perron-Frobenius eigenvalue of the Tribonacci substitution. It is the largest root of z 3 -z 2 -z -1. Consider the translation R β : T 2 → T 2 , x → x +(1 /β, 1 /β 2 ). Rauzy introduces in [18] a fundamental domain for a two-dimensional lattice, called the Rauzy fractal (it has indeed fractal boundary), which provides a partition for the symbolic dynamical system ( M ,σ x ) to be a natural coding for R β . The Tribonacci word is a natural coding of the orbit of the point 0 under the action of the toral translation in T 2 : x → x + ( 1 β , 1 β 2 ). Similarly as in the case of interval exchanges, we have the following commutative diagram

![image](https://ac.marcodsn.me/arxiv-markdown-images/1408.0389v2-figure-1f21f88b-59dd-4f4f-b885-d1a7a04019a1.jpg)

The Abelianization map f of the free monoid { 1 2 3 , , } ∗ is defined by f : { 1 2 3 , , } ∗ → Z 3 , f ( w ) = | w | 1 e 1 + | w | 2 e 2 + | w | 3 e , 3 where | w | i denotes the number of occurrences of the letter i in the word w , and ( e , e 1 2 , e 3 ) stands for the canonical basis of R 3 .

↦

↦

↦

$$\text{``\nu`` *} \quad \mathbb { N } \vee \mathbb { N } / \mathbb { N } / ( \mathfrak { t }, \mathfrak { j } ) \in \mathbb { A } ^ { \prime } \ \dashv \cdots \quad \mathbb { N } \vee \mathbb { N } / \mathbb { N } \ \dashv \cdots \quad \mathbb { N } \ \dashv \cdots \quad \mathbb { N } \ \dashv \cdots \quad \mathbb { N } \ \dashv \cdots \quad \mathbb { N } \ \dashv \cdots \quad \mathbb { N } \ \dashv \cdots \quad \mathbb { N } \ \dashv \cdots \quad \mathbb { N } \ \dashv \cdots \quad \mathbb { N } \ \dashv \cdots \quad \mathbb { N } \ \dashv \cdots \quad \mathbb { N } \ \dashv \cdots \quad \mathbb { N } \ \dashv \cdots \quad \mathbb { N } \ \dashv \cdots \quad \mathbb { N } \ \dashv \cdots \quad \mathbb { W } \ \mathbb { N } \ \mathbb { N } \ \mathbb { N } \ \mathbb { N } \ \mathbb { N } \ \mathbb { N } \ \mathbb { N } \ \mathbb { N } \ \mathbb { N } \ \mathbb { N } \ \mathbb { N } \ \mathbb { N } \ \mathbb { N } \ \mathbb { N } \ \mathbb { N } \ \mathbb { N } \ \mathbb { N } \ \mathbb { N } \ \mathbb { N } \ \mathbb { N } \ \mathbb { N } \ \mathbb { N } \ \mathbb { N } \ \mathbb { N } \ \mathbb { N } \ \mathbb { N } \ \mathbb { N } \ \mathbb { N } \ \mathbb { N } \ \matrix \cdots \quad \mathbb { N } \ \mathbb { N } \ \mathbb { N } \ \mathbb { N } \ \mathbb { N } \ \mathbb { N } \ \mathbb { N } \ \mathbb { N } \ \mathbb { N } \ \mathbb { N } \ \mathbb { N } \ \mathbb { N } \ \mathbb { N } \ \mathbb { N } \ \mathbb { N } \ \mathbb { N } \ \mathbb { N } \ \mathbb { N } \ \mathbb { N } \ \mathbb { N } \ \mathbb { N } \ \mathbb { N } \ \mathbb { N } \ \mathbb { N } \ \mathbb { N } \ \mathbb { N } \ \mathbb { N } \ \mathbb { N } \ \mathbb{ N } \ \mathbb { N } \ \mathbb { N } \ \mathbb { N } \ \mathbb { N } \ \mathbb { N } \ \mathbb { N } \ \mathbb { N } \ \mathbb { N } \ \mathbb { N } \ \mathbb { N } \ \mathbb { N } \ \mathbb { N } \ \mathbb { N } \ \mathbb { N } \ \mathbb { N } \ \mathbb { N } \ \mathbb { N } \ \mathbb { N } \ \mathbb { N } \ \mathbb { N } \ \mathbb { N } \ \mathbb { N } \ \mathbb { N } \ \mathbb { N } \ \mathbb { N } \ \mathbb { N } \ \mathbb { N } \ \mathbb { N } \ \\ \text{letter} \, i \, in \, f ( j ). \, One has \, F = \left [ \begin{array} { c c c } 1 & 1 & 1 & 1 \\ 1 & 0 & 0 \\ 0 & 1 & 0 \end{array} \right ]. \, The incidence matrix \, F \, \text{admits} \, as$$

Let f be the morphism a → ab, b → ac, c → a such that the Tribonacci word is the fixpoint of f (see Example 2.6). The incidence matrix F of f is defined by F = ( | f ( j ) | i ) ( i,j ) ∈A 2 , where | f ( j ) | i counts the number of occurrences of the eigenspaces in R 3 one expanding eigenline (generated by the eigenvector with positive coordinates v β = (1 /β, 1 /β , 2 1 /β 3 ) associated with the eigenvalue β ).

We consider the projection π onto the antidiagonal plane x + y + z = 0 along the expanding direction of the matrix F .

One associates with the Tribonacci word x = ( x n n ) ≥ 0 a broken line starting from 0 in Z 3 and approximating the expanding line v β as follows. The Tribonacci broken line is defined as the broken line which joins with segments of length 1 the points f ( x x 0 1 · · · x n -1 ) , n ∈ N . In other words we describe this broken line by starting from the origin, and then by reading successively the letters of the Tribonacci word x , going one step in direction e i if one reads the letter i . The vectors f ( x x 0 1 · · · x n ), n ∈ N , stay within bounded distance of the expanding line (this comes from the fact that β is a Pisot number). The closure of the set of projected vertices of the broken line is called the Rauzy fractal and is represented on Figure 4.3. We thus define the Rauzy fractal R as

$$\mathcal { R } \coloneqq \overline { \{ \pi ( \mathbf f ( x _ { 0 } \cdots x _ { n - 1 } ) ) ; \ n \in \mathbb { N } \} },$$

where x 0 . . . x n -1 stands for the empty word when n = 0.

Figure 4.3: The Rauzy fractal

![image](https://ac.marcodsn.me/arxiv-markdown-images/1408.0389v2-figure-21fb46f9-cf2f-47f0-8d8e-c824b4ffcab1.jpg)

The Rauzy fractal is divided into three pieces, for i = { 1 2 3 , , }

$$\begin{array} { c c c } \mathcal { R } ( i ) & \coloneqq & \overline { \{ \pi ( \mathbf f ( x _ { 0 } \cdots x _ { n - 1 } ) ) ; \ x _ { n } = i, n \in \mathbb { N } \} }, \\ \mathcal { R } ^ { \prime } ( i ) & \coloneqq & \overline { \{ \pi ( \mathbf f ( x _ { 0 } \cdots x _ { n } ) ) ; \ x _ { n } = i, n \in \mathbb { N } \} }. \end{array}$$

It has been proved in [18] that these pieces have non-empty interior and are disjoint up to a set of zero measure. The following exchange of pieces E is thus well-defined

$$E \, \colon \text{Int } \mathcal { R } _ { 1 } \cup \text{Int } \mathcal { R } _ { 2 } \cup \text{Int } \mathcal { R } _ { 3 } \to \mathcal { R }, \, x \mapsto x + \pi ( e _ { i } ), \, \text{when } x \in \text{Int } \mathcal { R } _ { i }.$$

↦

One has E ( R i ) = R ′ i , for all i .

/negationslash

/negationslash

We consider the lattice Λ generated by the vectors π e ( i ) -π e ( j ), for i = . j The Rauzy fractal tiles periodically the plane, that is, ∪ γ ∈ Λ γ + R is equal to the plane x + y + z = 0, and for γ = γ ′ ∈ Λ, γ + R and γ ′ + R do not intersect (except on a set of zero measure). This is why the exchange of pieces is in fact measurably conjugate to the translation R β . Indeed the vector of coordinates of π ( f ( x x 0 1 · · · x n -1 )) in the basis ( π e ( 3 ) -π e ( 1 ) , π ( e 3 ) -π e ( 2 )) of the plane x + y + z = 0 is n · (1 /β, 1 /β 2 ) - | ( x x 0 1 · · · x n -1 1 | , | x x 0 1 · · · x n -1 2 | ) . Hence the coordinates of E n (0) in the basis ( p i ( e 3 ) -π e ( 1 ) , p i ( e 3 ) -p i ( e 2 )) are equal to R n β (0) modulo Z 2 .

Bifix codes and exchange of pieces Let ( R a ) a ∈ A and ( R ′ a ) a ∈ A be two families of subsets of a compact set R incuded in R d . We assume that the families ( R a ) a ∈ A and ( R ′ a ) a ∈ A both form a partition of R up to a set of zero measure. We assume that there exist vectors e a such that R ′ a = R a + e a for any a ∈ A . The exchange of pieces associated with these data is the map E defined on R (except a set of measure zero) by E z ( ) = z + e a if z ∈ R a . The notion of natural coding of an exchange of pieces extends here in a natural way.

Assume that E is an exchange of pieces as defined above. Let S be the set of factors of the natural codings of E . We assume that S is uniformly recurrent.

By analogy with the case of interval exchanges, let I a = R a and let J a = E ( R a ). For a word w ∈ A ∗ , one defines similarly as for interval exchanges I w and J w .

Let X be a finite S -maximal prefix code. The family I w , w ∈ X , is a partition (up to sets of zero measure) of R . If X is a finite S -maximal suffix code, then the family J w is a partition (up to sets of zero measure) of R . Let f be a coding morphism for X . If X is a finite S -maximal bifix code, then E X is the exchange of pieces E f (defined as for interval exchanges), hence the decoding of x with respect to f is the natural coding of the exchange of pieces associated with f . In particular, S being the Tribonacci set, the decoding of S by a finite S -maximal bifix code is again the natural coding of an exchange of pieces. If X is the set of factors of length n of S , then E f is in fact equal to R n β (otherwise, there is no reason for this exchange of pieces to be a translation). The analogues of Proposition 3.8 and 3.10 thus hold here also.

## 4.4 Subgroups of finite index

We denote by F A the free group on the set A .

Let S be a recurrent set containing the alphabet A . We say that S has the finite index basis property if the following holds: a finite bifix code X ⊂ S is an S -maximal bifix code of S -degree d if and only if it is a basis of a subgroup of index d of F A .

The following is a consequence of the main result of [4].

Theorem 4.5 A regular interval exchange set has the finite index basis property.

Proof. Let T be a regular interval exchange transformation and let S = F T ( ). Since T is regular, S is uniformly recurrent and by Proposition 4.2, it is a tree set. By Theorem 4.4 in [4], a uniformly recurrent tree set has the finite index basis property, and thus the conclusion follows.

Note that Theorem 4.5 implies in particular that if T is a regular s -interval exchange set and if X is a finite S -maximal bifix code of S -degree d , then Card( X ) = d s ( -1) + 1. Indeed, by Schreier's Formula a basis of a subgroup of index d in a free group of rank s has d s ( -1) + 1 elements.

We use Theorem 4.5 to give another proof of Theorem 3.12. For this, we recall the following notion.

Let T be an interval exchange transformation on I = [0 1[ , relative to ( I a ) a ∈ A . Let G be a transitive permutation group on a finite set Q . Let ϕ : A ∗ → G be a morphism and let ψ be the map from I into G defined by ψ z ( ) = ϕ a ( ) if z ∈ I a . The skew product of T and G is the transformation U on I × Q defined by

$$U ( z, q ) = ( T ( z ), q \psi ( z ) )$$

(where qψ z ( ) is the result of the action of the permutation ψ z ( ) on q ∈ Q ). Such a transformation is equivalent to an interval exchange transformation via the identification of I × Q with an interval obtained by placing the d = Card( Q ) copies of I in sequence. This is called an interval exchange transformation on a stack in [7] (see also [19]). If T is regular, then U is also regular.

Let T be a regular interval exchange transformation and let S = F T ( ). Let X be a finite S -maximal bifix code of S -degree d = d X ( S ). By Theorem 4.5, X is a basis of a subgroup H of index d of F A . Let G be the representation of F A on the right cosets of H and let ϕ be the natural morphism from F A onto G . We identify the right cosets of H with the set Q = { 1 2 , , . . . , d } with 1 identified to H . Thus G is a transitive permutation group on Q and H is the inverse image by ϕ of the permutations fixing 1.

The transformation induced by the skew product U on I × { } 1 is clearly equivalent to the transformation T f = T X where f is a coding morphism for the S -maximal bifix code X . Thus T X is a regular interval exchange transformation.

Example 4.6 Let T be the rotation of Example 3.1. Let Q = 1 2 3 { , , } and let ϕ be the morphism from A ∗ into the symmetric group on Q defined by ϕ a ( ) = (23) and ϕ b ( ) = (12). The transformation induced by the skew product of T and G on I ×{ } 1 corresponds to the bifix code X of Example 3.15. For example, we have U : (1 -α, 1) → (0 , 2) → ( α, 3) → (2 α, 2) → (3 α -1 1) (see Figure 4.4) , and the corresponding word of X is baab .

![image](https://ac.marcodsn.me/arxiv-markdown-images/1408.0389v2-figure-5bae83aa-5f7c-466b-ae11-4f9bea940302.jpg)

b

Figure 4.4: The transformation U .

## References

- [1] Vladimir I. Arnold. Small denominators and problems of stability of motion in classical and celestial mechanics. Uspehi Mat. Nauk , 18(6 (114)):91-192, 1963.
- [2] Jean Berstel, Clelia De Felice, Dominique Perrin, Christophe Reutenauer, and Giuseppina Rindone. Bifix codes and Sturmian words. J. Algebra , 369:146-202, 2012.
- [3] Jean Berstel, Dominique Perrin, and Christophe Reutenauer. Codes and Automata . Cambridge University Press, 2009.
- [4] Val´ erie Berth´, Clelia De Felice, Francesco Dolce, Julien Leroy, Dominique e Perrin, Christophe Reutenauer, and Giuseppina Rindone. The finite index basis property. J. Pure Appl. Algebra , 219:2521-2537, 2015.
- [5] Val´ erie Berth´, Clelia De Felice, Francesco Dolce, Julien Leroy, Dominique e Perrin, Christophe Reutenauer, and Giuseppina Rindone. Maximal bifix decoding. Discrete Math. , 338:725-742, 2015.
- [6] Val´ erie Berth´ e and Michel Rigo, editors. Combinatorics, automata and number theory , volume 135 of Encyclopedia of Mathematics and its Applications . Cambridge University Press, Cambridge, 2010.
- [7] Michael D. Boshernitzan and C. R. Carroll. An extension of Lagrange's theorem to interval exchange transformations over quadratic fields. J. Anal. Math. , 72:21-44, 1997.
- [8] Isaac P. Cornfeld, Sergei V. Fomin, and Yakov G. Sina˘ ı. Ergodic theory , volume 245 of Grundlehren der Mathematischen Wissenschaften [Fundamental Principles of Mathematical Sciences] . Springer-Verlag, New York, 1982. Translated from the Russian by A. B. Sosinski˘ ı.
- [9] S´ ebastien Ferenczi and Luca Q. Zamboni. Languages of k -interval exchange transformations. Bull. Lond. Math. Soc. , 40(4):705-714, 2008.
- [10] N. Pytheas Fogg. Substitutions in dynamics, arithmetics and combinatorics , volume 1794 of Lecture Notes in Mathematics . Springer-Verlag, Berlin, 2002. Edited by V. Berth´, S. Ferenczi, C. Mauduit and A. Siegel. e
- [11] Jacques Justin and Laurent Vuillon. Return words in Sturmian and episturmian words. Theor. Inform. Appl. , 34(5):343-356, 2000.
- [12] Michael Keane. Interval exchange transformations. Math. Z. , 141:25-31, 1975.
- [13] M. Lothaire. Algebraic Combinatorics on Words . Cambridge University Press, 2002.
- [14] M. Lothaire. Applied combinatorics on words , volume 105 of Encyclopedia of Mathematics and its Applications . Cambridge University Press, Cambridge, 2005.
- [15] V. I. Oseledec. The spectrum of ergodic automorphisms. Dokl. Akad. Nauk SSSR , 168:1009-1011, 1966.
- [16] Martine Queff´ elec. Substitution dynamical systems-spectral analysis , volume 1294 of Lecture Notes in Mathematics . Springer-Verlag, Berlin, second edition, 2010.
- [17] G´ erard Rauzy. ´ changes d'intervalles E et transformations induites. Acta Arith. , 34(4):315-328, 1979.

- [18] G´ erard Rauzy. Nombres alg´ ebriques et substitutions. Bull. Soc. Math. France , 110(2):147-178, 1982.
- [19] William A. Veech. Finite group extensions of irrational rotations. Israel J. Math. , 21(2-3):240-259, 1975. Conference on Ergodic Theory and Topological Dynamics (Kibbutz Lavi, 1974).
Valérie Berthé Clelia De Felice Francesco Dolce Julien Leroy Dominique Perrin Christophe Reutenauer Giuseppina Rindone
Bifix codes and interval exchanges
We investigate the relation between bifix codes and interval exchange
transformations. We prove that the class of natural codings of regular interval
echange transformations is closed under maximal bifix decoding.