Papers
Topics
Authors
Recent
Search
2000 character limit reached

Nyldon Factorization: Duals of Lyndon Words

Updated 7 July 2026
  • Nyldon factorization is the decomposition of any finite word into a unique lexicographically nondecreasing sequence of Nyldon words, serving as a dual concept to the classical Lyndon factorization.
  • The factorization underpins connections with right Hall and right Lazard sets, impacting free Lie algebra constructions and creating a framework for analyzing suffix-driven word structures.
  • Efficient algorithms, including right-to-left greedy merging and suffix array methods, facilitate Nyldon factorization and extend its application to structured words like Fibonacci and Thue–Morse words.

Searching arXiv for recent and foundational papers on Nyldon factorization and related results. Nyldon factorization is the factorization of a finite word into a lexicographically nondecreasing sequence of Nyldon words, where Nyldon words are defined by reversing the inequality in the recursive characterization of Lyndon words. In the foundational formulation, every finite word over a fixed ordered alphabet admits a unique Nyldon factorization; subsequent work related this factorization to right Hall and right Lazard structures, extended the theory to Nyldon-like sets, established circular code and power-factorization results, and derived explicit factorizations for structured words such as Fibonacci words and Thue–Morse words, including a non-decreasing Nyldon factorization of the infinite Thue–Morse word (Charlier et al., 2018, Garg, 2019, Kishi et al., 31 Jul 2025).

1. Definition and basic duality

Let AA be a finite alphabet endowed with a total order <<, and let <lex<_{\mathrm{lex}} be the induced lexicographic order on AA^*. A nonempty word wA+w\in A^+ is Nyldon if either ww is a single letter, or ww cannot be factorized as

w=w1w2wk,k2,w = w_1w_2\cdots w_k,\qquad k\ge 2,

where each wiw_i is Nyldon and

w1lexw2lexlexwk.w_1 \le_{\mathrm{lex}} w_2 \le_{\mathrm{lex}}\cdots\le_{\mathrm{lex}} w_k.

Any such factorization is called a Nyldon factorization. The same recursion, with “nondecreasing” replaced by “nonincreasing,” yields the classical Lyndon words (Charlier et al., 2018, Garg, 2019).

The crucial point is that the underlying lexicographic order is not changed. What is reversed is the monotonicity constraint in the recursive definition. For Lyndon factorization, one seeks a nonincreasing sequence of Lyndon words; for Nyldon factorization, one seeks a nondecreasing sequence of Nyldon words. This is the sense in which Nyldon words are the order-reversed twin, or dual, of Lyndon words (Charlier et al., 2018).

The basic comparison is compactly summarized as follows.

Feature Lyndon Nyldon
Recursive obstruction No nonincreasing factorization into shorter Lyndon words No nondecreasing factorization into shorter Nyldon words
Canonical factorization order Lexicographically nonincreasing Lexicographically nondecreasing
Standard-factorization inequality Left factor <<0 longest proper suffix Left factor <<1 longest proper suffix

This duality is exact at the level of recursive construction, but later developments show that the two theories diverge substantially in their structural behavior, particularly for prefixes, conjugacy characterizations, and algorithmics (Charlier et al., 2018, Garg, 2019).

2. Existence, uniqueness, and suffix structure

The central theorem states that every finite word <<2 has a unique factorization

<<3

into Nyldon words such that

<<4

Equivalently, Nyldon words form a complete factorization of the free monoid with respect to the decreasing lexicographic order (Charlier et al., 2018).

A decisive structural fact is that suffixes, rather than prefixes, control the factorization. If <<5 is the Nyldon factorization of <<6, then the last factor <<7 is the longest Nyldon suffix of <<8. Moreover, if <<9 itself is Nyldon and <lex<_{\mathrm{lex}}0 is a proper Nyldon suffix of <lex<_{\mathrm{lex}}1, then

<lex<_{\mathrm{lex}}2

This suffix inequality is the Nyldon analogue of the classical Lyndon suffix property, but with the order direction reversed (Charlier et al., 2018, Garg, 2019).

These facts yield the standard-factorization criterion. Write <lex<_{\mathrm{lex}}3, where <lex<_{\mathrm{lex}}4 is the longest Nyldon proper suffix of <lex<_{\mathrm{lex}}5. Then

<lex<_{\mathrm{lex}}6

This characterization is one of the main recursive tools in the theory, and it reappears in later analyses of Fibonacci words and Thue–Morse words (Charlier et al., 2018, Kishi et al., 31 Jul 2025).

The asymmetry between suffixes and prefixes is pronounced. The suffix structure is sufficiently rigid to determine the final factor uniquely, whereas prefixes do not behave analogously. A concrete example recorded in the foundational paper is <lex<_{\mathrm{lex}}7, whose Nyldon factorization is <lex<_{\mathrm{lex}}8, even though the longest Nyldon prefix is <lex<_{\mathrm{lex}}9. The data therefore support the conclusion that Nyldon factorization is intrinsically right-oriented (Charlier et al., 2018).

3. Hall sets, Lazard sets, and conjugacy

Nyldon words are not only a factorization basis; they also fit into the Hall–Lazard framework. With the decreasing lexicographic order, the Nyldon words form a right Lazard set, and equivalently a right Hall set. They are not a left Lazard set. This sharply contrasts with Lyndon words, which form a Viennot set, hence both a left and right Hall set (Charlier et al., 2018, Garg, 2019).

The right Hall property interacts closely with conjugacy. All Nyldon words are primitive, and every primitive conjugacy class contains exactly one Nyldon word. This is the Nyldon counterpart of the classical statement that every primitive conjugacy class contains exactly one Lyndon word. At the same time, the papers emphasize that Nyldon words do not admit the same simple rotation characterization as Lyndon words; determining Nyldon status from conjugates is subtler (Charlier et al., 2018, Garg, 2019).

The Hall/Lazard viewpoint also connects Nyldon factorization to free Lie algebra constructions. Because right Hall sets correspond to Hall bases, Nyldon words can serve in a role analogous to Lyndon words in Lie-theoretic settings, but with a different order and concatenation behavior (Charlier et al., 2018, Garg, 2019).

A further refinement appears in the notion of a Nyldon-like set. A pair AA^*0 is Nyldon-like if it is generated recursively by the same nondecreasing-factorization obstruction together with the order condition

AA^*1

whenever AA^*2 and AA^*3. For any Nyldon-like set, every word has a unique nondecreasing AA^*4-factorization, the last factor is the longest AA^*5-word suffix, and every primitive conjugacy class contains exactly one AA^*6-word (Garg, 2019).

4. Algorithms and factorization of powers

The original constructive algorithm for Nyldon factorization processes the word from right to left. It maintains the Nyldon factorization of the suffix already seen, prepends the next letter as a singleton factor, and merges the first two factors while the first is lexicographically greater than the second. In its original form, this algorithm has worst-case complexity

AA^*7

for a word of length AA^*8 (Charlier et al., 2018).

Later work showed that the CPS-style right-to-left greedy merging algorithm can be implemented in linear time AA^*9 using suffix arrays and RMQ for lexicographic comparisons. The same paper also analyzes Melançon’s algorithm in the setting of right Hall sets and gives an wA+w\in A^+0 implementation by maintaining blocks in a heap keyed by their current order value (Garg, 2019).

Melançon’s algorithm has two relevant variants. In the conjugate version, it computes the unique Nyldon conjugate of a primitive word by iteratively contracting suitable minimal blocks on a circular arrangement. In the factorization version, it outputs factors linearly: whenever the globally minimal current block is the first block, that block is emitted as the next factor; otherwise minimal blocks are contracted with their left neighbors. For Nyldon words, the output coincides with the unique Nyldon factorization (Garg, 2019).

The factorization of powers exhibits a distinctive pattern. If wA+w\in A^+1 is primitive and wA+w\in A^+2 is the Nyldon word in its conjugacy class, then for sufficiently large wA+w\in A^+3, the Nyldon factorization of wA+w\in A^+4 has the form

wA+w\in A^+5

with a central block of repeated copies of wA+w\in A^+6. For Nyldon words, the bound obtained is

wA+w\in A^+7

meaning that the middle contains exactly wA+w\in A^+8 copies of wA+w\in A^+9 (Garg, 2019).

The same work proves that for each fixed length ww0, the set of Nyldon words of length ww1 forms a circular code. This resolves one of the earlier open problems and situates fixed-length Nyldon families alongside the classical fixed-length Lyndon families (Garg, 2019).

5. Explicit factorizations for Fibonacci and finite Thue–Morse words

The 2025 study of Fibonacci words and Thue–Morse words gives a detailed account of Nyldon factorization in two central morphic families. Over the ordered alphabet ww2 with ww3, the finite Fibonacci words are defined by

ww4

For every ww5, the Nyldon factorization is

ww6

where ww7. Thus each finite Fibonacci word factors into exactly two Nyldon factors: the initial ww8, and the suffix obtained by deleting the first letter (Kishi et al., 31 Jul 2025).

If one writes

ww9

then the key structural statement is that for every ww0, both ww1 and ww2 are Nyldon, and for every ww3,

ww4

The proof proceeds by induction and by repeated use of the longest-Nyldon-proper-suffix criterion (Kishi et al., 31 Jul 2025).

The same paper fully characterizes the Nyldon factorizations of the finite Thue–Morse words. These are defined by

ww5

with the morphic representation

ww6

If

ww7

the recursive building blocks are

ww8

where ww9. Then, for w=w1w2wk,k2,w = w_1w_2\cdots w_k,\qquad k\ge 2,0,

w=w1w2wk,k2,w = w_1w_2\cdots w_k,\qquad k\ge 2,1

and

w=w1w2wk,k2,w = w_1w_2\cdots w_k,\qquad k\ge 2,2

This gives a recursive description of the Nyldon factorization of every finite Thue–Morse word (Kishi et al., 31 Jul 2025).

Small cases illustrate the construction. The paper records

w=w1w2wk,k2,w = w_1w_2\cdots w_k,\qquad k\ge 2,3

and then derives the next factorizations by extending the last factor of w=w1w2wk,k2,w = w_1w_2\cdots w_k,\qquad k\ge 2,4 and appending a final Nyldon block aligned with the Thue–Morse decomposition (Kishi et al., 31 Jul 2025).

6. Infinite Thue–Morse factorization and open directions

For the infinite Thue–Morse word

w=w1w2wk,k2,w = w_1w_2\cdots w_k,\qquad k\ge 2,5

the 2025 paper constructs an explicit infinite sequence w=w1w2wk,k2,w = w_1w_2\cdots w_k,\qquad k\ge 2,6 of finite Nyldon words such that

w=w1w2wk,k2,w = w_1w_2\cdots w_k,\qquad k\ge 2,7

The initial terms are

w=w1w2wk,k2,w = w_1w_2\cdots w_k,\qquad k\ge 2,8

and for w=w1w2wk,k2,w = w_1w_2\cdots w_k,\qquad k\ge 2,9,

wiw_i0

An equivalent morphic recursion is

wiw_i1

The paper proves that these definitions coincide, that the concatenation is the infinite Thue–Morse word, that the sequence is nondecreasing, and that every wiw_i2 is Nyldon (Kishi et al., 31 Jul 2025).

The proof uses a family of canonical Nyldon words wiw_i3 built from Thue–Morse blocks, together with two ordering statements: a lexicographic chain within each wiw_i4 and a cross-level comparison wiw_i5. These comparisons are combined with repeated longest-suffix arguments to certify Nyldon-ness of the constructed factors (Kishi et al., 31 Jul 2025).

The infinite-word result is constructive, but it is not yet part of a fully general infinite Nyldon theory. The paper explicitly notes that for Lyndon words there is a uniqueness theory for infinite factorizations, while for Nyldon words such a general framework has not yet been developed. It constructs a type-(1) factorization of the infinite Thue–Morse word as an infinite sequence of finite Nyldon words, but does not prove uniqueness (Kishi et al., 31 Jul 2025).

Several open directions remain active in the literature. One is the search for a notion of infinite Nyldon word paralleling the infinite Lyndon setting. Another is a simpler non-recursive characterization of Nyldon words, analogous to the rotation or suffix criteria available in the Lyndon world. A further question concerns the power-factorization bound: the currently established Nyldon estimate is logarithmic in wiw_i6, and the possibility of a constant bound remains open (Charlier et al., 2018, Garg, 2019, Kishi et al., 31 Jul 2025).

Definition Search Book Streamline Icon: https://streamlinehq.com
References (3)

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Nyldon Factorization.