Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
1 Preliminaries
An alphabet Σ is a finite non-empty set of symbols, and Σ ∗ denotes the set of all
words over Σ including the empty word λ, while Σ + is the set of all non-empty
words over Σ. The length of a word u ∈ Σ ∗ (i.e., the number of symbols in a
word) is denoted by |u|. We denote by |u|a the number of occurrences of a letter
a in u. By Σ m we denote the set of all words of length m > 0 over Σ. A language
L is a subset of Σ ∗ . The complement of a language L ⊆ Σ ∗ is Lc = Σ ∗ \L. For a
language L ⊆ Σ ∗ and i ≥ 2, let L(i) = {ui |u ∈ L} and L1 = L and Ln = Ln−1 L
for n ≥ 2.
A word x ∈ Σ ∗ is said to be a prefix of w ∈ Σ + (suffix, respectively) if
w = xα (w = βx, respectively) where α, β ∈ Σ ∗ . If α ∈ Σ + (β ∈ Σ + , respec-
tively), then x is said to be a proper prefix (proper suffix, respectively) of w.
By Pref(w) (Suff(w), respectively), let us denote the set of all prefixes of w.
(suffixes, respectively).
A word is called primitive if it cannot be expressed as a power of another
word. Let Q denote the set of all primitive words. For every word w ∈ Σ + ,
there exists a unique word ρ(w) ∈ Σ + , called the primitive root of w, such that
ρ(w) ∈ Q and w = ρ(w)n for some n ≥ 1.
For a word x = a1 a2 · · · ak with ai ∈ Σ, the reverse of x denoted by xR is
the word xR = ak ak−1 · · · a2 a1 . A word x is a palindrome if x = xR . We denote
by P the set of all palindromes over Σ ∗ . A function ϕ : Σ ∗ → Σ ∗ is said to be
a morphism if for all words u, v ∈ Σ ∗ we have that ϕ(uv) = ϕ(u)ϕ(v), and an
antimorphism if ϕ(uv) = ϕ(v)ϕ(u). The function ϕ is called an involution if ϕ2
is an identity on Σ ∗ .
Given a morphic or antimorphic involution ϕ : Σ ∗ → Σ ∗ – we sometimes
refer to such a function as an (anti)morphic involution) – and given a word
u ∈ Σ + , a ϕ-power of the word u is any word of the form w = u1 u2 · · · un , n ≥ 1
where u1 = u and ui ∈ {u, ϕ(u)}, for 2 ≤ i ≤ n [5]. Any word u such that w is a
ϕ-power of u is called a ϕ-period of w [5]. A word w ∈ Σ + is called ϕ-primitive
if w being a ϕ-power of u implies w = u and n = 1 [5]. By Qϕ we denote the set
of all ϕ-primitive words. As it was shown in [5], for every word w ∈ Σ + , there
uniquely exists a ϕ-primitive word ρϕ (w) ∈ Σ + , called the ϕ-root of w, such
that w is a ϕ-power of ρϕ (w).
A word w ∈ Σ + is called a weak ϕ-power of a word u if w ∈ {u, ϕ(u)}+ . Note
that, unlike ϕ-powers of u, a weak ϕ-power of a word u does not need to start
with u, it can also start with ϕ(u). Thus, if w is a ϕ-power of u, then w is also
a weak ϕ-power of u, but the converse does not hold. For example, for a given
(anti)morphic involution ϕ and word u ∈ Σ + , the words ui and ui ϕ(u)j , i, j ≥ 1
are both ϕ-powers and weak ϕ-powers of u, while ϕ(u)i and ϕ(u)i uj , i, j ≥ 1,
are weak ϕ-powers of u but not ϕ-powers of u.
1
A word x ∈ Σ ∗ is said to be a border of w ∈ Σ + if w = xα = βx where
α, β ∈ Σ ∗ , and a proper border of w if, in addition, x 6= w, see []1 . A word
w ∈ Σ + is called bordered if it has a proper border, and unbordered otherwise.
Similarly, for an (anti)morphic involution ϕ, a word x ∈ Σ ∗ is said to be a ϕ-
border of w ∈ Σ + if w = xα = βϕ(x) for some α, β ∈ Σ ∗ , and a proper ϕ-border
if, in addition, |x| 6= |w|, see [4]. Note that for any (anti)morphic involution ϕ
and any word w ∈ Σ + , the empty word λ is a ϕ-border of w. A nonempty word
is called ϕ-bordered if it has a proper ϕ-border, and is called ϕ-unbordered if it
is not ϕ-bordered, [4]. For w ∈ Σ + , let Lϕ d (w) denote the set of all proper ϕ-
borders of w, and Dϕ (i) denote the set of all words with exactly i ϕ-borders, [4].
In particular, Dϕ (1) denotes the set of all nonempty words that have λ as their
only ϕ-border, that is, they are ϕ-unbordered.
For convenience, in the remainder of this paper we use the convention that
ϕ denotes an (anti)morhic involution, θ denotes an antimorphic involution and
µ denotes a morphic involution. We recall the following results.
u ϕ v = {uv, uϕ(v)}.
L1 ⊗ϕ L2 = {u ⊗ v| u ∈ L1 , v ∈ L2 }.
Wn = Wn−1 ⊗ Wn−2 .
1
Note that a border, respectively proper border of a word, is sometimes called d-
factor, respectively proper d-factor, see [?].
2
2 ϕ-Fibonacci words
In the following, if the first two Fibonacci words are obvious from the context,
the argument (u, v) will be ignored, and we will simply write the nth standard
Fibonacci word as fn , the nth reverse Fibonacci word as fn0 , the standard Fi-
bonacci sequence as F , and the reverse Fibonacci sequence as F 0 .
The notation F, F’ is from ”Properties of Fibonacci languages”,
Yu, Zhao, 2000; they denoted f by w and f ’ by w’
It was noted in [2], that every standard (reverse) Fibonacci sequence F (u, v)
(respectively F 0 (u, v)) is a homomorphic image of the standard (reverse) Fi-
bonacci sequence F (a, b) (respectively F 0 (a, b)), via the homorphism h(a) = u
and h(b) = v, where a 6= b. (check of this is true or we can have swaps F
to F’)
Thus, properties of the Fibonacci words and sequences over a two-letter al-
phabet, which are sometime called atom Fibonacci words and sequences [2] are
especially important. We recall the following.
Lemma 2. [1] Let Σ = {a, b}, with a 6= b, and let f1 = a and f2 = b. Then,
for all n ≥ 3, one has that fn = αn dn , where αn is palindrome, while dn = ab if
n is even and dn = ba if n is odd.
Lemma 3. [2] Let Σ = {a, b}, with a 6= b, and let f1 = a and f2 = b. For
all n ≥ 3, let fn = αn dn and fn0 = d0n αn0 where αn , dn , αn0 , d0n ∈ Σ ∗ , with
|dn | = |d0n | = 2. Then αn = αn0 .
Note that the proof Lemma 3 also entails that dn = ab and d0n = ba if n is
even, and dn = ba, d0n = ab if n is odd.
We now have the following observation.
Lemma 4. Let Σ = {a, b}, f1 = f10 = a, f2 = f20 = b, a 6= b. If fk and fk0 are
the kth standard and reverse Fibonacci words respectively, then fk0 = fkR .
3
Proof. We know that by Lemma 2 fk = αk dk . Then fkR = dR R
k αk . Moreover,
by Lemma 2, we have that αk is a palindrome, and by Lemma 3 we have that
αk = αk0 and d0k = dR R 0 0 0
k . Thus fk = dk αk = fk .
fn = fn−1 fn−2
fn0 = fn−2
0 0
fn−1
wn = ϕ(wn−1 )ϕ(wn−2 )
wn0 = ϕ(wn−2
0 0
)ϕ(wn−1 )
Fig. 1. Three possible ways of defining standard and reverse ϕ-Fibonacci Words.
4
Fibonacci words in the rightmost branch are nothing but subsequences of Fi-
bonacci words fn and fn0 . For example, consider the alphabet Σ = {A, C, G, T }
such that ϕ(A) = T , ϕ(G) = C, and vice versa. Without loss of generality, we
can choose g1 = g10 = A and g2 = g20 = C. Then we have the following,
Note that the words gn and gn0 are Fibonacci words fn and fn0 over binary
alphabet {A, G} when n is odd and are Fibonacci words fn and fn0 over the
binary alphabet {C, T } when n is even.
QN: May be we should prove this in general..without using an
example
5
Consider the case that i = n + 1, we have that:
t
u
6
– the longest square suffix of gn is gn−2 gn−2 ;
– For n is odd, n ≥ 6, gn has a square prefix θ(g2 )g3 g5 ...gn−4 θ(g2 )g3 g5 ...gn−4 ;
– For n is even, n ≥ 6, gn has a square prefix θ(g1 )g2 g4 ...gn−4 θ(g1 )g2 g4 ...gn−4 ;
– For n ≥ 6, gn has a square prefix (gn−2 (gn−4 )−1 )(gn−2 (gn−4 )−1 );
for n is even:
7
zn = zn−1 ϕ(zn−2 ) zn0 = ϕ(zn−2 )zn−1
0
MI AMI MI AMI
A A A A
C C C C
CT CT TC TC
CT G CT G GT C GT C
CT GGA CT GAG AGGT C GAGT C
CT GGAGAC CT GAGCAG CAGAGGT C GACGAGT C
.. .. .. ..
. . . .
w3k = Aw3
w3k+1 = Bw4
w3k+2 = Cw2
where A, B, C are product of θ palindromes.
4. For an antimorphic involution θ, zn can be classified as (similar to Lemma
9) and for k ≥ 1we can show that
8
wn = ϕ(wn−1 )ϕ(wn−2 )
MI AMI
A A
C C
GT GT
CAG ACG
GT CCA CGT AC
CAGGT GT C GT ACGCGT
.. ..
. .
w3k = Aw3 , k ≥ 2
w3k+1 = Bw4 , k ≥ 2
w3k+2 = Cw2 , k ≥ 1
where
A = w3k−3 θ(w3k−3 )θ(w3k−4 )w3k−4 w3k−6 θ(w3k−6 )θ(w3k−7 )w3k−7 · · · w3 θ(w3 )θ(w2 )w2
B = w3k−2 θ(w3k−2 )θ(w3k−3 )w3k−3 w3k−5 θ(w3k−5 )θ(w3k−6 )w3k−6 · · · w4 θ(w4 )θ(w3 )w3
C = w3k−1 θ(w3k−1 )θ(w3k−2 )w3k−2 w3k−4 θ(w3k−4 )θ(w3k−5 )w3k−5 · · · w2 θ(w2 )θ(w1 )w1
Proof. We prove only the case when n mod 3 ≡ 0 as other cases can be proved
similarly. Let n mod 3 ≡ 0, then n = 3k where k > 1. We further prove the
result by induction on k.
Base case: Let k = 2, then w6 = θ(w5 )θ(w4 ) = w3 w4 w2 w3 = w3 θ(w3 )θ(w2 )w2 w3 .
For k = 3,
w9 = θ(w8 )θ(w7 )
= w6 w7 w5 w6
= w6 θ(w6 )θ(w5 )w5 w3 θ(w3 )θ(w2 )w2 w3
9
Lemma 7. New! For an antimorphic involution θ, zn can be classified as
zk+1 = zk θ(zk−1 )
= zk−1 θ(zk−2 )θ(zk−1 )
= zk−1 θ(xk−2 yk−2 θ(xk−2 ))θ(zk−1 )
= zk−1 xk−2 θ(yk−2 )θ(xk−2 )θ(zk−1 )
10
Proof. Same as the proof for wn .
Proposition 5. New! For an antimorphic involution θ, let {wn }n≥1 and {wn0 }n≥1
be the sequence of Palindromic-Fibonacci words. If wk and wk0 are the k-th
Palindromic-Fibonacci words of the same length, then wkR = wk0 .
Proposition 6. New! For morphic involution µ, wn wn+1 almost µ-commutes
with wn+1 wn , i.e., wn wn+1 and µ(wn+1 )wn shares a common prefix of length
2F (n).
Proof. We know that wn wn+1 = wn µ(wn µ(wn−1 ) = wn wn−1 wn−2 wn−2 wn−3 .
Similarly, µ(wn+1 )wn = wn wn−1 wn−2 wn−3 µ(wn−2 ). It is clear from above two
equations that wn wn+1 and µ(wn+1 )wn shares a common prefix of length 2F (n).
However, since wn−2 and wn−3 begins with a different letter, wn−2 wn−3 6=
wn−3 µ(wn−2 ). t
u
Lemma 9. Let θ be an antimorphic involution and {wn }n≥1 be the sequence of
Palindromic-Fibonacci words. Then for k > 1,
w9 = θ(w8 )θ(w7 )
= w6 w7 θ(w7 )
= θ(w5 )θ(w4 )w7 θ(w7 )
= w3 w4 θ(w4 )w7 θ(w7 )
Induction hypothesis: Assume that w3N = w3 w4 θ(w4 )w7 θ(w7 ) · · · w3n−2 θ(w3n−2 )
for all 2 ≤ k ≤ N .
Induction step: Consider
11
Definition 7. An infinite language L is a regular-free language if every infinite
subset of L is not a regular language.
This further implies a <p wn−2 and θ(a) <s wn−2 , and hence wn−2 ∈ / Dθ (1), a
contradiction to the induction hypothesis. Thus wi ∈ Dθ (1) for all i ≥ 1. t
u
Lemma 10. Let Bµ [n] denote the length of the longest µ-border of wn for a
morphic involution µ. Then for every n ≥ 4, Bθ [n] = F (n − 2) where F (n − 2)
is the length of the n − 2nd Palindromic-Fibonacci word and is also n − 2nd
Fibonacci number.
12
Let Bµ [k] = F (k − 2) + i where 1 ≤ i ≤ F (k − 3). Then since µ(wn−3 ) is a
prefix of wn−2 ,
Thus by (3) and (4), w[1 · · · i] is a µ-border of wk−2 , and hence by induction
hypothesis i ≤ F (k − 4). However, from (1) and (2),it is clear that wn [1 · · · i]
is also a border of wk−3 . This implies w[1 · · · i] ∈ Suff(wk−2 ) ∩ Suff(wk−3 ), a
contradiction. t
u
Proof. We prove the result only when n mod 4 ≡ 0 as other cases can be proved
similarly. We split the proof into following three steps:
13
is a µ-border of wn . Let
S(wi ) = S1 + S2 − (2 × (i − 6))
14
where S1 = F (i)−2 are the θ-squares of the form xθ(x), and S2 = 2(F (i−2)−3)
are θ-squares of the form xx where x ∈ Σ + .
Squares in Palindromic-Fibonacci word for AMI
References
1. A. de Luca. A combinatorial property of the fibonacci words. Information Processing
Letters, 12(4):193–195, 1981.
15
2. C.-M. Fan and H. J. Shyr. Some properties of Fibonacci languages. Tamkang
Journal of Mathematics, 27(2):165–182, 1996.
3. L. Kari and M. S. Kulkarni. Pseudo-identities and bordered words. In G. Păun,
G. Rozenberg, and A. Salomaa, editors, Discrete Mathematics and Computer Sci-
ence, pages 207–222. Editura Academiei Române, 2014.
4. L. Kari and K. Mahalingam. Involutively bordered words. International Journal of
Foundations of Computer Science, 18(05):1089–1106, 2007.
5. E. Czeizler, L. Kari, and S. Seki. On a special class of primitive words. Theoretical
Computer Science, 411:617–630, 2010.
16