Nyldon Factorization: Duals of Lyndon Words
- 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 be a finite alphabet endowed with a total order , and let be the induced lexicographic order on . A nonempty word is Nyldon if either is a single letter, or cannot be factorized as
where each is Nyldon and
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 0 is a proper Nyldon suffix of 1, then
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 3, where 4 is the longest Nyldon proper suffix of 5. Then
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 7, whose Nyldon factorization is 8, even though the longest Nyldon prefix is 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 0 is Nyldon-like if it is generated recursively by the same nondecreasing-factorization obstruction together with the order condition
1
whenever 2 and 3. For any Nyldon-like set, every word has a unique nondecreasing 4-factorization, the last factor is the longest 5-word suffix, and every primitive conjugacy class contains exactly one 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
7
for a word of length 8 (Charlier et al., 2018).
Later work showed that the CPS-style right-to-left greedy merging algorithm can be implemented in linear time 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 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 1 is primitive and 2 is the Nyldon word in its conjugacy class, then for sufficiently large 3, the Nyldon factorization of 4 has the form
5
with a central block of repeated copies of 6. For Nyldon words, the bound obtained is
7
meaning that the middle contains exactly 8 copies of 9 (Garg, 2019).
The same work proves that for each fixed length 0, the set of Nyldon words of length 1 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 2 with 3, the finite Fibonacci words are defined by
4
For every 5, the Nyldon factorization is
6
where 7. Thus each finite Fibonacci word factors into exactly two Nyldon factors: the initial 8, and the suffix obtained by deleting the first letter (Kishi et al., 31 Jul 2025).
If one writes
9
then the key structural statement is that for every 0, both 1 and 2 are Nyldon, and for every 3,
4
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
5
with the morphic representation
6
If
7
the recursive building blocks are
8
where 9. Then, for 0,
1
and
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
3
and then derives the next factorizations by extending the last factor of 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
5
the 2025 paper constructs an explicit infinite sequence 6 of finite Nyldon words such that
7
The initial terms are
8
and for 9,
0
An equivalent morphic recursion is
1
The paper proves that these definitions coincide, that the concatenation is the infinite Thue–Morse word, that the sequence is nondecreasing, and that every 2 is Nyldon (Kishi et al., 31 Jul 2025).
The proof uses a family of canonical Nyldon words 3 built from Thue–Morse blocks, together with two ordering statements: a lexicographic chain within each 4 and a cross-level comparison 5. 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 6, and the possibility of a constant bound remains open (Charlier et al., 2018, Garg, 2019, Kishi et al., 31 Jul 2025).