Manuscript Offprint
arXiv:2610.10950Smallest String Attractors and Minimal Coverage Certificates of Thue--Morse Words
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
String attractors provide a compact way of representing the complete factor structure of a word: a set of positions is an attractor if every distinct factor has at least one occurrence crossing one of the selected positions. Although the minimum attractor size is known for several classical families of words, describing all optimal attractors is typically much more difficult, since it requires understanding the geometry of all factor occurrences rather than constructing a single optimal solution.
We give a complete description for the finite Thue–Morse words. Earlier work proved that four positions are necessary and sufficient for every order , but the collection of all smallest attractors remained unknown. For every , writing , we prove that the smallest attractors are exactly the two reflected families and , where the four offsets are chosen independently from . Hence there are exactly 32 smallest attractors for every . The initial cases are genuinely exceptional: has 40 smallest attractors and has 87.
We also study the attractor condition independently of optimality. For every , we characterize the complete antichain of inclusion-minimal factor coverages of . It consists precisely of the coverages of , , and the eight minimal unique substrings of every generation , . Thus there are exactly canonical constraints, forming an irredundant exact certificate for attractors of arbitrary cardinality.
When attention is restricted to four-position sets, this linear-size system collapses to a constant one: it is enough to test the 24 minimal unique substrings coming from three consecutive generations, and sixteen of these already force the two optimal families. We also show that three generations are necessary within this natural consecutive-generation hierarchy.
The proofs combine the recursive boundary geometry of the Thue–Morse word, a trimmed recurrence for its minimal unique substrings, exact transport of occurrences across generations, and a desubstitution argument that identifies all inclusion-minimal coverage constraints.
1 Introduction
Department of Mathematics and Computer Science, University of Catania, Catania, Italy.
Department of Mathematics and Computer Science, University of Catania, Catania, Italy; Univ Rouen Normandie, INSA Rouen Normandie, Université Le Havre Normandie, Normandie Univ, LITIS UR 4108, CNRS NormaSTIC FR 3638, IRIB, Rouen, France.
Department of Mathematics and Computer Science, University of Palermo, Palermo, Italy.
This definition is deceptively simple. A single selected position may attract many different factors at once, because every factor occurrence crossing that position is automatically represented. The problem is therefore highly global: choosing a good attractor requires understanding how occurrence intervals of many unrelated factors overlap.
String attractors were introduced by Kempa and Prezza as a common abstraction underlying several measures of repetitiveness and dictionary-compression schemes [6]. Their minimum size, denoted by , is now a natural combinatorial invariant of a word. Determining , however, answers only the first of two questions.
The first question is numerical: how many positions are necessary and sufficient to attract every factor? The second is structural: which sets of that minimum cardinality are actually attractors? The second problem is considerably more informative. Two word families may have the same minimum attractor size while exhibiting completely different numbers and geometries of optimal solutions. Knowing one optimal construction does not explain how rigid the optimum is, whether the selected positions are forced to lie near particular recursive boundaries, or how many independent choices remain.
The purpose of this paper is to answer both questions completely for the finite Thue–Morse words, and then to go one step further by describing the minimal constraints that characterize all attractors, without restricting their cardinality.
1.2 Why the Thue–Morse word?
Let and be the Thue–Morse morphism, and let . The words are among the most classical objects in combinatorics on words. They combine a very simple recursive definition with a surprisingly rich local factor structure.
Their self-similarity makes them a natural test case for repetitiveness measures. At the same time, that self-similarity does not make the attractor problem trivial. A factor may occur at several scales and at different locations inside the recursive decomposition. Consequently, a characterization of all smallest attractors cannot be obtained merely by inspecting the four canonical boundaries that appear in one known construction.
Kutsukake et al. [8] proved the striking identity for , and exhibited a four-position attractor. Their theorem determines the optimum cardinality but does not characterize all optimal position sets.
More recently, Banbara et al. [1] characterized all smallest attractors for Fibonacci and period-doubling words and explicitly left the analogous Thue–Morse problem open in the extended version of their work. Their computational experiments also indicate why a direct brute-force treatment is unattractive: a Walnut computation involving four free attractor positions exceeded the available memory. This suggests that a satisfactory solution should expose the recursive combinatorial structure behind the attractors rather than enumerate them directly.
We provide such a structural characterization.
1.3 All smallest attractors
Our first main result determines every smallest attractor of . For , write , so that . The complete solution stabilizes from this point onward.
There are two families
and
Every smallest attractor belongs to exactly one of these two families, and every member of the two families is an attractor.
The form of the answer has a useful geometric interpretation. The relevant positions occur in adjacent pairs around a small number of recursive boundaries. Within either family, one independently chooses one endpoint of each of four such boundaries. Thus each family contains attractors, giving for .
The stabilization is not visible in the two preceding orders. We find and . These exceptional cases are handled separately and also serve as useful checks on the stable theory.
1.4 Beyond smallest attractors: the canonical coverage constraints
The classification above concerns attractors of minimum cardinality. A different question is to understand the attractor condition itself.
For a factor x of a word w, let denote the set of positions covered by at least one occurrence of x. Then
for every nonempty factor x.
Most of these coverage constraints are redundant. If , then every set hitting the coverage of automatically hits the coverage of . The essential constraints are therefore the inclusion-minimal members of
We determine these constraints exactly for Thue–Morse words.
For every , the inclusion-minimal factor coverages of are precisely and , together with for every and . Since every generation , , has eight minimal unique substrings, the total number of minimal constraints is
This result is conceptually different from the classification of the smallest attractors. It characterizes the exact constraint system defining every attractor of , irrespective of cardinality. These constraints form an antichain and none can be removed.
1.5 Why minimal unique substrings appear
Minimal unique substrings, or MUSs, play a central role in the proof. A MUS is a factor that occurs exactly once but becomes repeated as soon as either end is removed. Since its occurrence is unique, every attractor must cross that occurrence. Thus MUSs provide natural necessary constraints.
For Thue–Morse words, Kishi et al. [7] gave a closed characterization of all MUSs. We use that result as an external structural ingredient. What is less immediate is how MUSs belonging to different generations behave when they are all viewed inside the same larger word . A factor that is unique in its source word generally acquires several occurrences in . The coverage relevant to the attractor problem is the union of all those occurrences.
The key technical mechanism is a particularly simple recurrence between consecutive generations. The MUS of generation corresponding to a MUS of generation is obtained by applying the Thue–Morse morphism and deleting the first and last symbols: . We prove an exact transport rule for their occurrence starts, valid even when the factors are considered inside later ambient generations. This allows coverage information at arbitrary scale to be derived from a constant amount of base data.
1.6 From constraints to a constant certificate
The full canonical system contains constraints, which is optimal when attractors of arbitrary cardinality are considered. Smallest attractors, however, contain exactly four positions. This severe cardinality restriction introduces additional geometric rigidity.
We prove that, for four-position sets, it is enough to test only the MUSs belonging to three consecutive generations: . There are exactly 24 such factors. Thus, for every , a four-position set is an attractor if and only if it intersects the ambient coverage of each of these 24 factors. This depth-three statement is best possible within the natural hierarchy obtained by taking consecutive MUS generations: the MUSs of and alone do not suffice.
The proof of the complete classification needs even less. We isolate sixteen carefully chosen MUS-derived coverage sets. Four of them are pairwise disjoint, so a four-position hitting set is forced to place exactly one position in each of four regions. The remaining witnesses progressively restrict those positions until only the two families and remain. This sixteen-factor transversal argument is the combinatorial core of the classification.
1.7 Proof ideas
Two different recursive mechanisms underlie the two main results.
For the characterization of the smallest attractors, the crucial object is the recursive boundary geometry of the Thue–Morse word. We prove a centered-occurrence property: every factor of length at least two has an occurrence containing both endpoints of one of four distinguished recursive boundaries. Consequently, any set choosing one endpoint of each of the appropriate four boundaries attracts every factor of length at least two; the one-letter factors are then checked separately. This gives sufficiency.
Necessity is proved through transported MUS coverages. Their geometry produces the sixteen-factor witness system described above and forces every four-position attractor into one of the two stable families.
For the canonical coverage theorem, the argument is different. We first show that an inclusion-minimal coverage admits a shortest representative that is two-sided frequency-critical: removing either its first or its last symbol strictly increases the number of occurrences. A synchronization argument then gives a unique morphic phase for every sufficiently long factor. Critical factors can therefore be desubstituted, and criticality is preserved under the descent.
Iterating this process reduces every long critical factor to one of the eight critical factors of length four, which are exactly the MUSs of . Reversing the descent recovers the MUS hierarchy across all generations. Finally, exact occurrence geometry shows that these MUS-derived coverages, together with the coverages of aa and bb, are pairwise incomparable. This proves that they are exactly the inclusion-minimal factor coverages.
1.8 Main contributions
Our results can be summarized as follows.
-
We completely characterize the smallest string attractors of every finite Thue–Morse word. For , there are exactly two stable families and 32 solutions; and are exceptional, with 40 and 87 solutions, respectively.
-
For every , we determine all inclusion-minimal factor coverages of . There are exactly , namely the coverages of aa, bb, and the eight MUSs of every generation from 4 through n. They form the canonical irredundant exact certificate for attractors of arbitrary cardinality.
-
For four-position sets, we obtain a constant-size exact certificate consisting of the 24 MUSs of three consecutive generations. We show that three generations are necessary within this consecutive-generation hierarchy.
-
We isolate a sixteen-factor witness system whose coverage geometry forces precisely the two stable families of smallest attractors.
-
Using the MUS characterization of Kishi et al., we derive a Thue–Morse-specific trimmed recurrence and an exact occurrence-transport rule across generations. These provide the bridge from finite base data to the uniform coverage formulas used throughout the paper.
1.9 Organization of the paper
Section 2 reviews the literature on string attractors, Thue–Morse words, automatic methods, and minimal unique substrings, with particular attention to the results on which our proofs build. Section 3 introduces notation and the structural properties of finite Thue–Morse words needed later, including the recursive boundary geometry that supports the sufficiency argument. Section 4 develops the transition from the known MUS structure to exact occurrence coverages. Section 5 proves the stable characterization of all smallest attractors. Section 6 turns from smallest attractors to arbitrary attractors and characterizes the complete family of inclusion-minimal factor coverages. The remaining sections treat the exceptional words and , describe the independent computational verification used as a consistency check, and discuss the broader implications of the two characterizations.
2 Related work
The present paper sits at the intersection of three lines of work: string attractors as measures of repetitiveness, exact attractor questions for structured word families, and the combinatorics of minimal unique substrings. We summarize only the aspects directly used or compared with our results.
2.1 String attractors and repetitive structure
String attractors were introduced by Kempa and Prezza [6] as a unifying abstraction for several dictionary-compression mechanisms. Their definition isolates a simple combinatorial requirement—every distinct factor must have an occurrence crossing a selected position—while still capturing lower bounds for a range of compressed representations.
The subsequent combinatorial study of attractors showed that classical word families provide a useful laboratory for understanding how the minimum attractor size interacts with factor structure. Mantaci et al. [9, 10] studied attractors from this point of view for several families, including Thue–Morse words. More recently, attractor-based complexity functions have also been investigated for infinite words [3]. These directions motivate treating not only as an algorithmic parameter but also as a combinatorial invariant.
At a more algorithmic level, Béal, Crochemore, and Romana [2] gave a linear-time attractor checker based on suffix automata together with a greedy construction procedure. Such algorithms answer the decision or construction problem for a given word; our goal is different, namely to describe the entire family of optimum position sets for one highly structured infinite family of finite words.
2.2 Attractors of Thue–Morse and related morphic words
For the canonical finite Thue–Morse words, Mantaci et al. [9] initially conjectured that the minimum attractor size grows with the order. Kutsukake et al. [8] disproved this by proving the constant identity for all and by giving a four-position construction based on recursive boundaries.
Dolce [4] subsequently considered arbitrary factors of the infinite Thue–Morse word. His result shows that every such factor admits a small attractor and establishes a sharp upper bound of five. This is complementary to the present problem: here the ambient words are the canonical prefixes , and the objective is to classify all optimum position sets rather than to construct one attractor for each factor.
The work most directly connected with our classification is that of Banbara et al. [1]. They determined all smallest attractors of finite Fibonacci and period-doubling words and used the number and geometry of smallest attractors to distinguish families sharing the same minimum cardinality. Their extended version explicitly lists the corresponding Thue–Morse classification as an open problem. It also reports that a direct Walnut computation with four free attractor positions exceeded the available memory, reinforcing the need for a structural treatment.
Automatic methods provide a complementary viewpoint. Schaeffer and Shallit [12] formulated attractor properties of automatic sequences in first-order logic and studied them computationally using Walnut [11]. We use neither automatic decision procedures nor their structural claims in our proofs; our arguments instead exploit the recursive block geometry and explicit factor coverages of finite Thue–Morse words.
2.3 Minimal unique substrings and occurrence transport
Minimal unique substrings have been studied independently of attractors, both algorithmically and combinatorially; see, for example, Ilie and Smyth [5]. Their relevance here is immediate: a MUS has a unique occurrence, hence every attractor must cross that occurrence interval.
Kishi et al. [7] recently introduced a general framework of occurrence-preserving morphisms and applied it to finite Fibonacci and Thue–Morse words. In particular, they obtained the closed characterization of the eight MUSs in every sufficiently large finite Thue–Morse generation. This theorem is an external structural ingredient of our proofs.
Our occurrence-transport lemma should be read in that context but not as a generalization of their framework. Their position-level correspondence concerns ordinary morphic images under suitable interference-free hypotheses. The factors needed here are instead the actual consecutive-generation Thue–Morse MUSs, obtained by deleting one symbol from each end of the morphic image. We prove the exact start-position correspondence for these specific trimmed factors because their full ambient coverages are what enter the attractor witness system.
2.4 Position of the present results
The previous results determine the minimum cardinality for , construct individual attractors, characterize MUSs, or classify smallest attractors for other morphic families. The two questions addressed here remain distinct from those contributions. First, we classify every smallest attractor of every finite Thue–Morse word. Second, we characterize the complete family of inclusion-minimal factor coverages and hence the canonical irredundant constraint system defining attractors of arbitrary cardinality. The latter result goes beyond the smallest-attractor classification and explains why the MUS hierarchy is the correct source of constraints across scales.
3 Preliminaries and structural intuition
This section fixes the notation used throughout the paper and, more importantly, develops the geometric picture behind the proofs. The formal definitions are standard, but two viewpoints will be used repeatedly: factors are represented by the sets of positions covered by their occurrences, and the Thue–Morse word is read through a hierarchy of recursively nested blocks. Keeping these two pictures in mind makes the later witness arguments considerably easier to follow.
3.1 Words, occurrences, and coverage sets
All positions are one-based. For integers , we write . If is a finite word, then denotes its length and the factor from position through position .
For a factor of , let be the set of starting positions of its occurrences. Each occurrence beginning at occupies the interval . The coverage of in is the union of all these intervals:
The distinction between an occurrence and a coverage is important. A factor can have many occurrences, but from the attractor point of view only the union of the positions covered by those occurrences matters. If a selected position lies in , then at least one occurrence of crosses that position.
Definition 3.1 (String attractor). A set is a string attractor of if for every nonempty factor of .
Equivalently, the attractor problem is a hitting-set problem whose universe is the set of positions of w and whose constraints are the factor coverages. This simple reformulation is the bridge between the combinatorics of factors and the geometric arguments used later.
A small example. Consider and the factor . It occurs at positions 1 and 3, hence . Thus every nonempty set of positions hits the coverage of aba, despite the fact that aba has only two occurrences. By contrast, a factor with a unique occurrence contributes a single interval and can impose a much more localized constraint.
3.2 Minimal coverages as the essential constraints
Let , and let denote the inclusion-minimal members of .
The relevance of is immediate but fundamental. If satisfy , then every set hitting also hits . Hence is redundant as a constraint once is present.
Proposition 3.2 (Minimal-coverage reduction). For every finite word w and every ,
Proof. The forward implication follows directly from the definition. Conversely, is finite, so every member of contains at least one inclusion-minimal member. A set hitting every element of therefore hits the coverage of every factor.
This proposition motivates one of the two main questions of the paper. Instead of asking only for minimum-cardinality attractors, we can ask for the smallest possible constraint system that defines the attractor property. For Thue–Morse words we will identify this system exactly.
3.3 The finite Thue–Morse words
We work over the binary alphabet . Let and , and define
We write for the binary complement of a word , obtained by exchanging and . Then and the basic recursion is
Applying the recursion twice gives the four-block decomposition
For orientation, the first few words are
The precise letters will quickly become less important than the recursive block structure. Equations (2) and (3) let us locate a factor relative to large canonical blocks and then descend to smaller scales.
3.4 The decomposition tree viewpoint
It is useful to picture as the root of a perfect binary decomposition tree. A node labelled by has two children labelled by and ; a node labelled by has the complementary pair of children. The leaves correspond to individual positions of .
Now take an occurrence interval with . The lowest node whose block contains both endpoints has the property that lies in its left child and lies in its right child. Therefore the interval necessarily crosses the boundary between those two children.
This observation is elementary, but it is the reason recursive boundaries enter the attractor problem at all: every factor occurrence of length at least two crosses the center boundary of some canonical block. The real difficulty is to show that the same factor can be realized at one of only a few global boundaries, independent of the factor. That is the content of the centered-occurrence property proved later.
3.5 Four canonical boundaries
For , define
A number represents the boundary .
These four boundaries arise at different levels of the recursive decomposition. Two are the centers of the two halves of , one is the global center of , and one comes from the four-block decomposition (3). Repeatedly descending by two generations preserves the same center, so copies of smaller or reappear centered at one of these four locations.
This is the geometric origin of the classical four-position attractor. Kutsukake et al. [8] proved that with and exhibited the set itself as an attractor. In our classification, the four canonical positions are not rigid: from order six onward, each can be shifted to the adjacent endpoint of its boundary in a controlled way, and reflection creates a second stable pattern. The later proofs explain exactly which endpoint choices remain possible.
3.6 A preview of the centered-occurrence property
The following strengthening of the boundary picture will be proved in the structural section of the paper.
Theorem 3.3 (Centered-occurrence property — preview). Let and let be a factor of with . Then there exist and an occurrence of whose interval contains both and .
The difference between “crosses the boundary” and “contains both endpoints” matters. If an occurrence contains both and , then it is hit regardless of which endpoint of the pair we select. This is precisely what allows the freedom in the two optimal families.
The proof uses a center-descent argument. Roughly, a canonical copy of centered at a boundary contains a canonical copy of centered at the same boundary. Consequently, every block type appearing in the decomposition tree has a centered representative at one of the four locations in . An arbitrary occurrence can then be transferred, with the same relative coordinates, to that centered representative.
3.7 Minimal unique substrings as localized constraints
A factor M of a finite word w is a minimal unique substring (MUS) if it occurs exactly once and every proper factor of M occurs at least twice. Equivalently, both its longest proper prefix and its longest proper suffix are repeated.
MUSs are particularly natural for attractors. Since a MUS has a unique occurrence, every attractor must select at least one position inside that occurrence interval. In other words, every MUS supplies a necessary localized hitting constraint.
For finite Thue–Morse words, Kishi et al. [7] obtained a closed description of all MUSs. In the indexing used here, for every there are exactly eight of them, each of length . Their explicit form will be stated when we begin the occurrence-transport analysis.
Two cautions are useful from the outset. First, a MUS is unique only in its source word. If a MUS of is considered as a factor of a larger word , with , it may have several occurrences. Its relevant constraint is then its full ambient coverage . Second, the eight MUSs of the current generation alone do not capture all four-position attractors: the proof will need information transported from earlier generations.
3.8 Three levels of constraints
The results of the paper can now be viewed as a hierarchy of increasingly compressed hitting systems.
At the most general level, an attractor must hit the coverage of every factor. Proposition 3.2 reduces this to the inclusion-minimal coverages. For we will show that there are exactly of them.
If we additionally know that , the geometry becomes much more rigid. Then the complete test can be reduced to the 24 MUSs of three consecutive generations. Finally, the classification proof itself uses only sixteen carefully selected witnesses.
Thus the proof moves through the chain
The arrows should not be interpreted as unconditional logical equivalences: the last two reductions exploit the assumption that the candidate set has four positions. They are best read as a roadmap for how the combinatorial structure becomes progressively more rigid near optimum size.
3.9 Notation used later
For convenience, we collect the principal notation here.
| Notation | Meaning |
|---|---|
| finite Thue–Morse word | |
| binary complement of | |
| starting positions of occurrences of in | |
| positions covered by all occurrences of in | |
| minimum cardinality of a string attractor of | |
| family of attractors of cardinality | |
| set of minimal unique substrings of | |
| family of all factor coverages of | |
| Inclusion-minimal members of | |
| four canonical boundary positions in (4) |
The next section turns from this geometric picture to the exact occurrence structure of the MUS hierarchy. The goal is to replace repeated large-scale calculations by a constant amount of base data plus a precise transport rule across generations.
4 From MUS structure to occurrence coverages
The previous section explained why minimal unique substrings are natural localized constraints for string attractors. We now address the main technical difficulty that arises when these constraints are compared across different Thue–Morse generations.
A MUS of is unique in its source word, but it is usually no longer unique when viewed inside a larger word . For the attractor problem, we therefore cannot keep only its original occurrence: we need the complete set of its occurrences in the ambient word, and hence its full coverage. Recomputing those occurrences independently at every order would hide the recursive structure that makes a uniform proof possible.
The goal of this section is to show that the relevant occurrence information can instead be transported exactly from one generation to the next. There are three ingredients. First, sufficiently long morphic images have a forced alignment with the canonical Thue–Morse blocks. Second, consecutive MUSs are not ordinary morphic images: one symbol is deleted at each end. Third, despite this trimming, occurrence starts obey a particularly simple doubling rule. Together, these facts reduce all later coverage calculations to a small table at the first few orders.
4.1 The MUS hierarchy
For a word , define . Kishi et al. [7] characterize the MUSs of finite Thue–Morse words in a closed form. Translated to our indexing, their theorem gives the following statement.
Theorem 4.1 (Kishi et al.). For every , . In particular, has exactly eight minimal unique substrings, each of length .
Thus every MUS has a long Thue–Morse core surrounded by one letter on each side. The core doubles in length from one generation to the next. This is already suggestive of a morphic recurrence, but one small point matters: applying to a MUS also doubles its two boundary letters, whereas the next MUS contains only one new boundary letter at each end. The correct recurrence is therefore a trimmed morphic image.
For a word with , write . For every , order the eight members of by the starting positions of their unique occurrences in , and denote them by . This ordering will be preserved by the recurrence below.
4.2 Synchronization: why the morphic phase is forced
The Thue–Morse morphism has constant length two. Consequently, the word comes with a canonical partition into two-letter image blocks, each equal to ab or ba. The first question is whether an occurrence of a word of the form could be shifted by one position and still look like a valid morphic image.
For , the answer is no. The reason is local. A shifted copy of two consecutive image blocks would cross two consecutive canonical block boundaries. For both crossing pairs to be valid Thue–Morse image blocks, three consecutive preimage letters would have to be equal, but the Thue–Morse word contains neither aaa nor bbb.
Lemma 4.2 (Synchronization). Let be a binary word with . Every occurrence of in a finite Thue–Morse word starts at an odd position.
Proof. First observe that no finite Thue–Morse word contains aaa or bbb. Indeed, every interval of three consecutive positions contains a complete canonical image block, and every such block is either ab or ba.
Suppose for a contradiction that an occurrence of in starts at an even position 2j. Because , the first two length-two blocks of this occurrence straddle two consecutive boundaries between canonical images. Let be the corresponding three consecutive preimage letters.
The pair across the first canonical boundary is , where denotes the complement of . In order for this pair to equal one of the valid image blocks ab or ba, its two letters must differ; over the binary alphabet this is equivalent to . The next crossing pair similarly forces . Hence the preimage would contain three consecutive equal letters, a contradiction.
The same argument covers occurrences adjacent to the ends of the finite word: an even start is never the first position, and an occurrence of length at least four contains the two crossing pairs needed above.
Why this lemma matters. Synchronization turns a local occurrence in the large word into an unambiguous occurrence in the preimage. Once the phase is known, aligned pairs can be decoded uniquely. This is the mechanism that will rule out “extra” occurrences of a trimmed MUS that do not come from the previous generation.
4.3 The trimmed MUS recurrence
We can now make the recurrence between consecutive MUS generations exact. The statement has two parts: a factor identity and an occurrence identity. The factor identity says which MUS appears at the next order; the occurrence identity says that this relation remains valid even when both factors are viewed inside later ambient words.
Lemma 4.3 (MUS lifting). For every and ,
Moreover, for every ,
where .
Proof. By Theorem 4.1, write , where and is either or . Since
we have , and therefore . The middle word is or its complement, so the trimmed image is one of the eight MUSs of . If the unique occurrence of starts at in , then its morphic image starts at and the trimmed factor starts at . Hence the order of the eight unique starts is preserved, proving (5) with the same index .
The same observation gives one inclusion in (6) in every larger ambient word. If xWy starts at p in , then starts at in , so starts at 2p. Thus
For the converse, suppose that starts at in , and put . Then starts at . Since , Lemma 4.2 implies that is odd, so for some . The aligned occurrence of therefore decodes to an occurrence of beginning at in .
The symbol at position 2p is the second symbol of the image of the preceding preimage letter. Since that symbol is , the preceding preimage letter is x. Similarly, the final symbol y occurs at the first position of the image of the following preimage letter, so that following letter is y. Hence starts at p, proving the reverse inclusion.
No boundary occurrence is lost. In the converse direction q is even and hence at least two, so the required preceding image block exists; the final symbol exists by the assumed occurrence and lies at the first position of a canonical block. In the forward direction trimming removes one symbol from each end of an already valid morphic image, so the resulting occurrence remains inside the finite ambient word.
4.4 A concrete example of the lifting rule
It is useful to see the recurrence once before using it symbolically. The first order-four MUS in our ordering is , whose unique occurrence in starts at position 2. Applying the morphism gives , and trimming the first and last symbols yields . The start position doubles from 2 to 4. More importantly, the same doubling rule applies to every occurrence when these factors are embedded in later words. Thus an occurrence of bbab beginning at, say, 14 in a larger ambient generation corresponds to an occurrence of abaabb beginning at 28 in the next generation.
This distinction between “unique in the source word” and “possibly repeated in the ambient word” is central. The lifting lemma does not merely transport the unique defining occurrence of a MUS; it transports the entire ambient occurrence set.
4.5 Finite base data
The lifting rule means that only a small amount of explicit data is needed. At order four the eight MUSs and their unique starts are fixed. To compute the coverages used in the stable characterization, we also need to know where these same order-four factors occur in and .
Table 1: The MUSs of , ordered by their unique occurrence, and the starting positions of the same factors in .
| 1 | bbab | 2 | 2, 14, 26 | 2, 14, 26, 42, 50 |
| 2 | baba | 3 | 3, 15, 27 | 3, 15, 27, 43, 51 |
| 3 | abaa | 4 | 4, 16, 28 | 4, 16, 28, 44, 52 |
| 4 | aabb | 6 | 6, 24 | 6, 24, 30, 40, 54 |
| 5 | bbaa | 8 | 8, 22 | 8, 22, 32, 38, 56 |
| 6 | aaba | 10 | 10, 18 | 10, 18, 34, 46, 58 |
| 7 | abab | 11 | 11, 19 | 11, 19, 35, 47, 59 |
| 8 | babb | 12 | 12, 20 | 12, 20, 36, 48, 60 |
The table should be read horizontally. For example, is unique in but already has three occurrences in and five in . Those additional occurrences are precisely why an old MUS cannot be represented, in a later ambient word, only by its original interval.
The table is constant-size. Once it is known, Lemma 4.3 scales it to arbitrary order.
4.6 From occurrence starts to coverage formulas
Repeated application of (6) gives the exact start sets needed later. For and ,
Here multiplication of a set by a power of two means scaling every starting position by that factor.
The three values of correspond exactly to the three source generations that will appear in the stable witness system:
Their lengths are
respectively. Combining these lengths with the scaled start sets in (7) immediately determines every component of their ambient coverage in .
This is the point at which the problem changes character. Up to now we have studied factors and morphic alignment. From the next section onward, the relevant information can be represented almost entirely as unions of explicit integer intervals. The classification of the smallest attractors will then become a small transversal problem on those intervals.
4.7 Relation to occurrence-preserving morphisms
The occurrence identity above is deliberately specialized. Kishi et al. [7] prove a general occurrence correspondence for ordinary morphic images under their occurrence-preserving framework. Lemma 4.3 is not intended as a generalization of that theory. Its role is narrower: the factors required by the present attractor problem are the actual consecutive-generation MUSs, and these are trimmed images rather than ordinary images.
The direct synchronization argument supplies exactly the additional information needed to handle the one-symbol deletion at both ends and to show that no ambient occurrence is created or lost. Once this is established, the entire later coverage analysis follows from the finite base data in Table 1.
Roadmap. The next part of the extended version uses these transported coverages to prove the stable characterization. We will first display the current-, previous-, and second-previous-generation coverage intervals in a common scale, then explain geometrically why sixteen selected constraints force any four-position hitting set into one of two configurations. Only after that forcing argument will we return to the centered-boundary geometry to prove that every set in those two families is indeed an attractor.
5 Stable characterization of the smallest attractors
We now turn from occurrence transport to the classification problem itself. The previous section reduced the relevant information to explicit coverage intervals. The central observation of this section is that, once all intervals are written on the same scale, the proof becomes a small geometric hitting-set argument.
Throughout the section let and put , so that and . The scale is convenient because the four canonical boundaries of occur at
At this resolution the final two families of smallest attractors are
and
The purpose of the next subsections is to explain first why every four-position attractor is forced into one of these two shapes, and then why every such set is indeed an attractor.
5.1 Three generations of coverage constraints
For each , define
The superscript records the source generation of the MUS. Thus is not a MUS of the ambient word ; it is simply a factor of , typically with several occurrences, and is the union of all those occurrence intervals. The same convention applies to .
Equation (7) and Table 1 give the current-generation coverages
These are single intervals because the corresponding factors are MUSs of the ambient word and therefore occur once.
The proof also uses the following previous-generation coverages:
and two second-previous-generation coverages:
At first sight these formulas may look ad hoc. Their role is in fact highly structured. The determine broad regions in which the four attractor positions must lie. The refine those regions and distinguish two global arrangements. Finally, and fix the remaining endpoint choices. The whole forcing argument therefore needs only sixteen factors.
Define
Thus .
5.2 Geometric forcing by sixteen witnesses
Before giving the formal proof, it is useful to isolate its geometric backbone. Four of the witness coverages,
are pairwise disjoint. Hence a four-position set hitting all witnesses has no freedom to “spend” two positions in the same one of these regions: it must place exactly one position in each. Once the four positions have been named according to those regions, the remaining coverage constraints can only be satisfied in two ways. These two ways become the left and right families and .
Lemma 5.1 (Sixteen-witness lemma). Let and let have cardinality four. If
then .
Proof. Write , , for the three components of , and , for the two components of . Direct comparison of endpoints gives
where means that every position of precedes every position of . The smallest gap between consecutive sets in this display is . Hence are pairwise disjoint.
Since has exactly four positions and hits all four sets, every position of belongs to their union, one position to each set. We may therefore name them uniquely as
The points and lie respectively before and after . If belonged to or , then it would hit neither nor . The single point would then have to hit both and , hence would have to belong to , which is disjoint from . Therefore . We now distinguish the two components of .
Left case: . Only can hit , and only can hit , so
Only can hit either or , and therefore it must hit both: . Under the restrictions already obtained, only can hit , and . Thus . Next, only can hit both and , giving . Finally, none of hits , so must hit it. Hence . Therefore .
Right case: . Only can hit or , so it must hit both: . Only can hit , and after this restriction only can also hit . Thus . Only can hit , so . The coverages and must both be hit by , yielding . None of hits , hence must. Together with and , this gives . Therefore .
An internal lower bound. The four pairwise disjoint factor coverages already show that every attractor of has at least four positions when . Thus the stable regime contains its own lower-bound proof: . Combined with the sufficiency argument below, this independently recovers for all .
5.3 Why the two forced families are attractors
The witness lemma proves necessity: any four-position set satisfying the factor constraints must have one of two shapes. To finish the classification we need sufficiency. This is where the centered-occurrence property from Section 3 becomes useful.
A boundary at means the adjacent pair . Recall that every factor of length at least two has an occurrence containing both endpoints of one of the four canonical boundaries
Therefore a set choosing one endpoint from each of these four boundaries automatically attracts every factor of length at least two.
Lemma 5.2 (Paired boundaries). Every member of is a string attractor of for .
Proof. Let . By definition it contains exactly one endpoint of each of the four boundaries
Let be a factor of with . By the centered-occurrence property, some occurrence of contains both endpoints of one of these boundaries. In particular it contains whichever endpoint was selected by . Thus every factor of length at least two is attracted.
It remains to check the one-letter factors. Put and . At the level of eight blocks of length , . The first letter of is always ; its last letter is when is even and when is odd, while the corresponding letters of are complementary. Hence two of the four selected boundaries are homogeneous: when is even, the boundaries at and are respectively and ; when is odd, the boundaries at and are respectively and . Choosing either endpoint of each such boundary therefore guarantees at least one selected -position and one selected -position. Thus attracts the one-letter factors as well.
The second family follows from symmetry rather than from a separate coverage argument.
Lemma 5.3 (Reflection). Every member of is a string attractor of for .
Proof. A straightforward induction gives
Complementing all letters preserves occurrence positions and hence preserves attractor positions. Reflection of a word of length maps an attractor to . Here , so the reflection of is, after reordering,
which is an arbitrary member of . Lemma 5.2 therefore implies the claim.
5.4 Complete classification and the number 32
We can now combine the forcing and sufficiency directions.
Theorem 5.4 (Complete stable characterization). For every , . Consequently, .
Proof. The disjoint coverages imply , while Lemma 5.2 supplies four-position attractors, so .
Let . Every factor in is a factor of , hence intersects all its ambient coverage sets. Since , Lemma 5.1 yields . Conversely, Lemmas 5.2 and 5.3 show that every member of either family is an attractor.
For , let . These pairs are mutually disjoint. Every member of independently selects one position from each of , so . Similarly . The two families are disjoint because every member of meets , whereas no member of does. Hence there are exactly 32 smallest attractors.
5.5 Two constant-size certificates for four-position sets
The classification proof immediately gives a useful reformulation. Once the cardinality is known to be four, testing all factors is unnecessary: the sixteen factors in already form an exact certificate.
Corollary 5.5 (Sixteen-factor certificate). For and every with , the following are equivalent:
(i) is a string attractor of ;
(ii) for every .
Proof. The forward implication is immediate from the definition of attractor. Conversely, condition (ii) and Lemma 5.1 place in , and Lemmas 5.2 and 5.3 show that every such set is an attractor.
There is also a more symmetric, although slightly larger, certificate. For define , where every factor is named in its source generation but its coverage is always taken in the ambient word .
Corollary 5.6 (Three-generation MUS certificate). For and every four-position set ,
The family contains exactly 24 factors.
Proof. The forward implication is immediate. For the converse, note that , so Corollary 5.5 applies. The three generations contribute eight factors each. Their lengths are
which are pairwise distinct for . Thus no factor is counted twice and the total is 24. ☐
The distinction between the two certificates is useful. The sixteen-factor family is the smallest witness system needed by the present proof, while the 24-factor family has the conceptual advantage of consisting of three complete MUS generations.
5.6 Why three generations are really needed
The preceding corollary naturally raises a question: could two consecutive MUS generations already suffice for four-position sets? The answer is no. The obstruction is explicit and persists at every order.
Proposition 5.7 (Optimality of the three-generation depth). For every , depth three is the minimum for which hitting the ambient coverages of every factor in characterizes the four-position attractors of .
Proof. Depth three is sufficient by Corollary 5.6. To show that depth two is insufficient, define . The displayed formulas for the show that all current-generation MUS coverages are hit: hits , ; hits , ; hits ; and hits , , .
For completeness, the two previous-generation coverages not displayed earlier are , and . Together with the six previous formulas, they show that hits every ambient coverage arising from .
However, misses . Indeed,
and these four intervals are gaps between consecutive components of . Hence is not an attractor. Depth two is therefore insufficient, and depth one is insufficient a fortiori.
Remark 5.8 (Scope of the optimality statement). The proposition concerns only the nested hierarchy of certificates obtained from one, two, or three consecutive complete MUS generations. It does not claim that every possible factor certificate must contain a factor originating in , nor does it rule out certificates mixing factors from the first two generations with other non-MUS witnesses.
5.7 Why the cardinality restriction matters
Both constant-size certificates above rely essentially on the hypothesis . Without that restriction, hitting three generations of MUS coverages does not characterize attractors.
For example, in the five-position set hits the ambient coverages of all 24 factors in , but misses . It therefore passes the three-generation MUS test while failing to be an attractor.
This example explains why the next part of the extended version requires a different viewpoint. To characterize attractors of arbitrary cardinality, one must identify the complete antichain of inclusion-minimal factor coverages rather than rely only on a constant number of recent MUS generations.
6 Canonical minimal factor coverages
The constant-size certificates of the previous section exploit a very strong hypothesis: the candidate set has exactly four positions. Under that restriction, a relatively small collection of MUS coverages can force the entire geometry of a smallest attractor. For arbitrary position sets, however, the example at the end of Section 5.7 shows that three recent MUS generations are no longer enough.
The right object is therefore not a fixed collection of factors but the partial order of all factor coverages under inclusion. This section identifies its minimal elements completely. Besides giving an exact certificate for attractors of arbitrary cardinality, the result reveals a second recursive structure hidden in the Thue–Morse word: every essential long coverage constraint descends, under the morphism, to one of the eight order-four minimal unique substrings.
For , define . As throughout the paper, a factor is named in its source generation , while its coverage is always taken in the ambient word . The purpose of the section is to prove .
It is useful to separate the proof into two logically different tasks.
(1) Exhaustion: show that every inclusion-minimal factor coverage belongs to .
(2) Irredundancy: show that no two members of contain one another.
The first part is governed by desubstitution and frequency criticality; the second is governed by the geometry and number of occurrences.
6.1 From minimal coverages to critical factors
Suppose that two factors have the same coverage. The shorter one is preferable when studying minimality, because it places a stronger local requirement on the occurrence structure. This simple observation leads to the following notion.
For a factor of length at least two, let and denote respectively its prefix and suffix of length .
Definition 6.1 (Two-sided frequency criticality). A factor x of a finite word w is two-sided frequency-critical if
Thus deleting either the first or the last symbol creates at least one additional occurrence.
The definition is deliberately phrased in terms of frequencies rather than uniqueness. A MUS is an extreme example: it occurs once, while its longest proper prefix and suffix occur at least twice. In the present section we must also deal with factors that are repeated in the ambient word, so ordinary MUS terminology is no longer sufficient.
Lemma 6.2 (Critical representatives). Let and suppose that has a factor representative of length at least two. If is a shortest such representative, then is two-sided frequency-critical.
Proof. Assume first that . Every occurrence of induces an occurrence of at the same starting position. Equality of the two cardinalities therefore implies that every occurrence of extends one position to the right to an occurrence of . Consequently, . Since is inclusion-minimal in , the inclusion must be an equality. But then is a shorter factor representative of , contradicting the choice of .
Hence . The argument for is symmetric after indexing occurrences by their final positions.
The lemma is elementary, but conceptually important: it converts a statement about the poset of coverage sets into a local statement about how occurrence frequencies change when one symbol is removed.
6.2 Unique phase and critical descent
We next exploit a special feature of the Thue–Morse morphism. A sufficiently long factor determines the parity class of all its occurrences. Informally, after reading four symbols one already knows where the canonical length-two image blocks begin. This makes desubstitution unambiguous.
For , write . Thus removes the first symbol and removes the last one.
Lemma 6.3 (Factor synchronization and critical descent). Every factor of with has a unique morphic phase. More precisely, there are uniquely determined and a factor of such that , and the occurrences of in correspond bijectively to the occurrences of in , with the appropriate doubled-start offset.
If, in addition, is two-sided frequency-critical and , then , , and is two-sided frequency-critical in .
Proof. The ten length-four factors of the Thue–Morse word split into two disjoint phase classes. With one-based positions,
abab, abba, baab, baba
start only at odd positions, whereas
aaba, aabb, abaa, babb, bbaa, bbab
start only at even positions. This can be read directly from two consecutive canonical images and and from the factors crossing an image boundary.
The length-four prefix of x therefore fixes the phase of every occurrence of x. Completing at most one symbol on each side aligns the factor with canonical image blocks. Whenever a completion symbol is needed, it is forced because the two symbols of every image block are complementary. Decoding the aligned blocks gives a unique factor v and the claimed bijection between occurrence starts.
Now assume that is critical. If , then begins at an image boundary. Its suffix has length at least four and starts in the opposite phase. Since that phase is unique, every occurrence of has a uniquely determined preceding symbol, and that symbol reconstructs . Hence , contradicting criticality. Thus . The symmetric argument applied to the prefix gives .
Finally, when , the same phase correspondence identifies occurrences of and with occurrences of and , respectively. Therefore the two strict frequency inequalities for transfer directly to .
The key consequence is recursive: a long essential factor does not merely desubstitute; it desubstitutes to another factor satisfying the same criticality condition. We can therefore descend repeatedly until length four.
6.3 The critical factors at the base level
The length-four factors of are
aaba, aabb, abaa, abab, abba, baab, baba, babb, bbaa, bbab.
Exactly eight of them are two-sided critical:
aaba, aabb, abaa, abab, baba, babb, bbaa, bbab.
These are precisely the eight members of from Table 1. The two remaining factors, abba and baab, fail criticality on both sides.
For later use we make explicit why this finite classification remains valid in every ambient order. For a factor of , let and denote the sets of right and left extensions of in , including a boundary marker when is a suffix or a prefix. Then a factor is critical precisely when the prefix has an alternative right extension and the suffix has an alternative left extension.
The length-five factors already present in are
aabab, aabba, abaab, ababb, abbaa, abbab,
baaba, baabb, babaa, babba, bbaab, bbaba.
This set is closed under complementation. Moreover, begins with abba, while its last four symbols are abba for even and baab for odd . Hence the four length-five factors crossing the central join of are
even: abbab, bbaba, babaa, abaab,
odd: baabb, aabba, abbaa, bbaab,
all of which already occur in . Inductively, the internal one-letter extension sets of factors of length at most four therefore stabilize from order four onward. Including the two word boundaries yields the exhaustive pattern
| Factor class | Alternative right | Alternative left |
|---|---|---|
| aab, bba | no | yes |
| abb, baa | yes | no |
| abba, baab | no | no |
| all other factors of lengths 2–4 | yes | yes |
for every ambient .
Thus the two- and three-letter critical factors are
aa, bb, ab, ba, aba, bab,
and the eight critical length-four factors are exactly .
Combining this finite base with Lemma 6.3 yields the classification of all possible minimal-coverage representatives.
Lemma 6.4 (Classification of possible minimal representatives). For every , .
Proof. Neither one-letter coverage is minimal, because
Hence every inclusion-minimal coverage has a representative of length at least two. Choose a shortest one. By Lemma 6.2, it is critical.
If its length is at least five, repeated application of Lemma 6.3 eventually reaches one of the eight critical length-four factors. Reversing the descent and using the trimmed MUS recurrence of Lemma 4.3 shows that the original factor is for some .
It remains to remove the four short critical factors ab, ba, aba, bab. The internal repetitions
give
Similarly,
give
The four factors on the left are MUSs of or , and hence their coverages belong to . Therefore none of , , , can be inclusion-minimal. The only remaining possibilities are exactly the members of .
At this point we know that the candidate family is exhaustive. What remains is to show that none of its members is redundant.
6.4 Occurrence geometry across all generations
The antichain proof uses two pieces of quantitative information: the spacing between distinct occurrences and the exact number of occurrences. Both ultimately come from the same recursive transport law established in Section 4.
Let be the ith MUS of and put
Iterating Lemma 4.3 gives , where , and .
To count the base-factor occurrences, define . Complementation pairs the eight factors as
Write for the index paired with . Since , all occurrences wholly contained in the two halves contribute . Only occurrences crossing the central join have to be added separately. Inspecting the unique phase at that join gives , where the crossing correction is determined by parity: when is even, exactly the factors , , acquire one crossing occurrence; when is odd, the relevant crossing length-four factors are , , and . The factor does not belong to the MUS octuple, so only indices 4 and 5 receive the corresponding contribution.
Starting from and using the complement pairs, a short induction gives the closed form
The second geometric fact is separation. At order four, two distinct occurrences of the same start at least six positions apart. This can be checked in : every factor that could witness a smaller distance has length at most nine, and the Thue–Morse factor set of that length is already present there. Synchronization then preserves the obstruction in all later orders. Scaling the starts by s yields the following summary.
Lemma 6.5 (MUS coverage geometry). Let , put and . Then
distinct occurrence starts differ by at least 6s, and their number is as given above.
A useful picture follows immediately. The coverage of a generation-m MUS is a disjoint union of intervals of length , while consecutive components are separated by gaps of at least . Thus increasing the source generation makes each individual component longer but reduces the number of components. The antichain proof is precisely a comparison between these two effects.
6.5 Why the MUS-derived coverages are incomparable
We first compare two coverages arising from MUSs.
Within a fixed generation , all components have the same length. If , then every component of the left-hand side must coincide with a component of the right-hand side. In particular the two distinct equal-length factors would occur at the same starting position, which is impossible. Hence distinct MUS coverages from the same generation are incomparable.
Now compare generations and , where . A component from the later source generation has length , strictly larger than the earlier length . Therefore a later-generation component cannot be contained in the earlier-generation coverage, whose components are separated by positive gaps. This rules out one direction of inclusion.
For the reverse direction we count how many earlier components can fit inside a later component. Their starts are separated by at least 6s, while the available range for their starts inside an interval of length is . Hence one later component can contain at most earlier components.
Put , . The closed formulas imply . One way to see the strict inequality is to use
These estimates settle every case except ; for that boundary case the exact values are
Thus the earlier-generation coverage has more components than all later-generation components could collectively contain. The reverse inclusion is impossible as well.
We have therefore proved that all MUS-derived coverages appearing in form an antichain.
6.6 The two homogeneous-pair constraints
It remains to incorporate and . These two constraints look different from the MUS hierarchy, but their incomparability is especially simple.
First, no MUS coverage can be contained in either homogeneous-pair coverage. Every Thue–Morse MUS contains both letters, whereas contains only positions occupied by a and contains only positions occupied by b.
Conversely, fixed homogeneous pairs near the beginning of the word witness the opposite non-inclusions. For every ,
For source generation , the first occurrence of every starts at or after position 8, so its coverage misses both of these fixed pairs. The two low generations are checked directly from Table 1; when a later aa witness is needed one can use the fixed occurrences at [10, 11] or [18, 19].
Finally, , because a position cannot simultaneously carry a and b. Thus the two homogeneous-pair coverages are incomparable with one another and with every MUS-derived coverage.
Lemma 6.6 (Canonical antichain). For every , the members of are pairwise incomparable under inclusion.
6.7 The canonical minimal-coverage theorem
We can now combine exhaustion and irredundancy. The proof is short because all of the work has been isolated in the preceding lemmas.
Theorem 6.7 (Minimal factor coverages of Thue–Morse words). For every ,
All displayed coverages are distinct. Consequently, .
Proof. Lemma 6.4 gives . Take any . Since is finite, contains some inclusion-minimal member . By the inclusion above, . Lemma 6.6 says that is an antichain, so forces . Hence every member of is inclusion-minimal and . There are eight MUSs in each generation , and the antichain property implies that all displayed coverages are distinct. The count is therefore .
The theorem explains the linear sequence of minimal-coverage counts visible in the finite computations:
for More importantly, it provides an exact structural reason for that sequence: every new Thue–Morse generation contributes exactly eight new incomparable MUS-derived constraints.
Corollary 6.8 (Exact certificate for arbitrary attractors). Let and let be arbitrary. Then is a string attractor of if and only if it intersects
and every coverage
This corollary should be contrasted with Corollary 5.6. For arbitrary attractors the exact canonical system has constraints; once the cardinality is fixed to the optimum value four, three recent MUS generations already suffice, and the proof itself uses only sixteen witnesses.
6.8 Why the certificate is irredundant
The word “canonical” can be made precise at the level of coverage sets. The following observation is completely general and does not use the Thue–Morse structure.
Lemma 6.9 (Canonical irredundancy). Let w be a finite word and let satisfy
for every position set . Then .
Proof. Take and suppose that . For every , we must have ; otherwise and minimality of would imply . Choose one position for every , and put . Then hits every member of but misses . Hence is not an attractor, contradicting the assumed equivalence.
Combining this lemma with Theorem 6.7 shows that the constraints are not merely one convenient exact certificate: every exact certificate consisting of factor coverages must contain all of them. Thus they form the unique minimum exact certificate at the level of coverage sets. The qualification is important because two different factor names could, in principle, induce the same coverage.
6.9 The resulting hierarchy of certificates
The two main parts of the paper can now be summarized by a simple hierarchy:
all attractors 8n - 22 canonical minimal coverages
while under the minimum-cardinality restriction,
.
The first level is canonical and irredundant but grows linearly with n. The second and third levels are constant-size because the cardinality constraint itself supplies additional combinatorial information. This distinction is useful beyond the particular formulas: it separates the intrinsic complexity of the attractor property from the much more rigid geometry of optimum solutions.
7 The exceptional orders four and five
The stable theorem starts at order six. This is not merely a technical threshold introduced by the proof. At order five most of the stable geometry is already visible, but one additional family of smallest attractors survives; at order four the solution set is more irregular and is better described by a compact system of constraints than by a short parametric formula.
These two small orders are useful for two reasons. First, they complete the classification for every , the range in which . Second, they show where the stable geometry comes from: the two large families are already present at , while the extra solutions disappear as soon as the recursive separation between the relevant coverage intervals becomes large enough.
7.1 Order five: the stable families plus one exceptional bridge
For we have . Substituting this value into the two stable formulas gives two 16-element families and . They are not yet exhaustive. Define
The same offset is used in the two central positions. Thus contains eight sets rather than sixteen.
Proposition 7.1 (The exceptional order five). The smallest attractors of are exactly . The three families are pairwise disjoint. Consequently, .
There is a useful geometric way to read this statement. Every optimum solution contains one position in the left outer pair and one position in the right outer pair . The remaining two positions lie in the central part of the word and can occur in exactly three ways:
or as one of the two correlated pairs
(14, 18),
(15, 19).
The first and second rectangles give and , respectively. The two correlated pairs give .
This makes the transition to the stable regime particularly transparent. From order six onward the central intervals separate sufficiently to eliminate the correlated bridge represented by . What remains are precisely the two reflected families already visible at order five.
The proof of Proposition 7.1 is finite but still structural. The inclusion-minimal coverage system of consists of eighteen masks: the eight MUS-derived coverages from generation five, the eight corresponding coverages from generation four, and the two homogeneous-pair coverages and . Hitting these eighteen masks forces the two outer choices and one of the ten allowed central pairs above. Conversely every set described by those choices hits all eighteen masks. The complete table is recorded in Appendix A.
7.2 Order four: a finite but genuinely less regular geometry
The word has length sixteen. Here a short family description analogous to and would hide rather than clarify the geometry. A compact Boolean characterization is more informative.
Every smallest attractor has one position in the left region [2, 5], two positions in the central region [6, 11], and one position in the right region [12, 15]. Write it as , with
The remaining restrictions are exactly the following ten clauses.
Proposition 7.2 (The exceptional order four). A four-position set is a smallest attractor of if and only if it has the form above and satisfies
Exactly 87 quadruples satisfy these conditions.
Although the displayed formula is less visually appealing than the stable description, its origin is simple. The twelve inclusion-minimal coverage constraints of force the coarse decomposition into one left, two central, and one right position. Expanding the twelve intersection conditions and deleting logical redundancies gives precisely the ten clauses above. Thus the proposition is not an arbitrary Boolean encoding of an exhaustive search: it is a compact form of the complete minimal-coverage system.
The number 87 can then be recovered without testing all subsets one by one. Conditioning on the leftmost position , the numbers of admissible choices are respectively
and their sum is 87. The exhaustive verifier described later independently checks that these are exactly the four-subsets hitting all factor coverages.
7.3 Small-order certificates and the complete enumeration
The exceptional cases also have concise MUS formulations. For arbitrary position sets ,
and
Unlike the stable three-generation statement of Corollary 5.6, these two equivalences do not require . They follow from the explicit minimal-coverage antichains in Appendix A.
Combining the two exceptional orders with Theorem 5.4 gives the complete enumeration
For completeness, the preceding four orders satisfy and have respectively
smallest attractors. These finite values are also reproduced by the independent verification described in Section 8.
8 Independent computational verification
The theorems above are proved combinatorially. Computation is used only as an independent consistency check and to certify the explicitly finite exceptional cases. Because several formulas in the proof involve many interval endpoints, an implementation that follows a substantially different route is useful for detecting transcription errors, indexing shifts, or unnoticed boundary cases.
8.1 A verifier that does not assume the answer
The independent program constructs directly from the parity of the binary digit sum of each position, rather than recursively reusing the routines from which the symbolic formulas were derived. It then performs the following steps.
-
It enumerates every distinct nonempty factor of the ambient word .
-
For each factor it finds all, possibly overlapping, occurrences by an ordinary exact string search.
-
It represents the coverage as the ordinary set of text positions belonging to at least one occurrence interval.
-
It computes the inclusion-minimal coverage antichain by direct pairwise set containment.
-
Independently, it searches for transversals of the coverage system up to cardinality four.
The transversal search is exhaustive. At a partial solution it selects a coverage not yet hit and branches over every position of that coverage. Every completing transversal must choose at least one of those positions, so no solution can be lost. Memoization merges identical search states, but no expected attractor family, expected count, or geometric restriction is used to prune a branch. Expected values are compared with the output only after the enumeration is complete.
This distinction matters methodologically. The verifier is not a computer-assisted proof of the uniform theorems; rather, it is a second implementation of the definitions that can falsify the symbolic derivations on all tested orders.
8.2 Exhaustive finite data
The principal exhaustive computations are summarized below. Every factor and every coverage is taken in the ambient word .
Table 2: Independent exhaustive computations for the first four orders in the main range.
| n | nonempty factors | minimal coverages | smallest attractors | certificate MUSs |
|---|---|---|---|---|
| 4 | 100 | 12 | 87 | 12 |
| 5 | 392 | 18 | 40 | 20 |
| 6 | 1,560 | 26 | 32 | 24 |
| 7 | 6,232 | 34 | 32 | 24 |
For every row the search finds no transversal of size at most three. Thus the computations independently recover the known lower bound in these cases. For , the 87 exhaustive solutions are exactly the sets satisfying Proposition 7.2. For , equality is checked at the level of sets: , not merely at the level of cardinalities.
The program also reconstructs the complete minimal-coverage antichains for and from scratch and verifies that they coincide with the tables in Appendix A. This simultaneously checks the two small-order MUS certificates described above.
8.3 Checks of the uniform ingredients
The independent implementation also exercises the structural ingredients outside the finite exceptional cases.
For every and every with , it verifies both the trimmed-image identity and the full occurrence equality of the lifting lemma. It checks the paired-boundary property directly against every factor of and verifies every one of the 32 proposed stable attractors against all factor coverages for .
The canonical minimal-coverage theorem is tested independently for every . The program constructs the coverages of , , and all MUSs from generations 4 through without being given the expected antichain. It verifies that these coverages are distinct and pairwise incomparable, that their number is , and that the coverage of every factor of contains at least one of them. The resulting minimal-coverage counts are
18, 26, 34, 42, 50
for , respectively.
The critical-descent mechanism is checked separately. In every ambient order from four through nine the program recomputes all critical factors of lengths two through four; for every critical factor of length at least five through order nine it decodes the unique morphic phase, checks that the factor is a two-sided trim, and verifies that criticality descends to the decoded preimage. It also checks directly the four short-factor dominance inclusions used in the proof of Lemma 6.4.
Finally, for each the program constructs the counterexample from Proposition 5.7, recomputes all MUSs of , and confirms that every coverage from the first two generations is hit while is missed. It also checks the five-position counterexample showing that the stable three-generation certificate cannot be extended to arbitrary cardinalities.
8.4 A second check of the interval geometry
The sixteen-witness proof can be checked in a way that is independent of the enumeration of particular powers of two. Write and partition at every interval start and at every interval end plus one. Each event position is an affine integer function of . For their order is fixed, producing 49 cells on which membership in all sixteen witness coverages is constant.
Exactly two products of four cells—one cell inside each of , , , —hit all sixteen witnesses. Every selected cell contains two positions, so each product describes quadruples. These are precisely the two stable families. The remaining integer value , corresponding to , gives the same products when checked separately.
This parametric computation verifies the interval arithmetic of the sixteen-witness lemma for every multiple , not merely for the powers of two arising from Thue–Morse words. The separate MUS-lifting check verifies that these intervals are indeed the factor coverages claimed in the proof.
9 Discussion
The results admit two complementary interpretations. One concerns the geometry of optimum solutions; the other concerns the structure of the attractor condition itself.
9.1 Why the number of smallest attractors stabilizes
For , every smallest attractor chooses one endpoint from the three mandatory boundary pairs
and chooses its fourth position from exactly one of the reflected pairs
Once these five two-position blocks are separated, increasing n merely scales their distances. It does not create new combinatorial choices. This is why the number of smallest attractors becomes independent of the word length: .
The exceptional family shows what fails one generation earlier. At two central positions can still cooperate across a short gap in a way that is impossible once the relevant intervals have separated. Thus the transition from 40 to 32 solutions is not an arbitrary small-order anomaly; it marks the point at which the recursive boundary geometry becomes fully separated.
9.2 Canonical constraints versus optimum certificates
The minimal-coverage theorem reveals a different form of structure. Without any cardinality restriction, the attractor condition has an exact canonical description using pairwise incomparable constraints. By Lemma 6.9, none of them can be removed from an exact certificate drawn from factor coverages.
At optimum cardinality the situation changes drastically. Four positions cannot hit the constraints independently: satisfying some of them already determines where the remaining positions must lie. This extra combinatorial information collapses the linear-size canonical system to the 24 MUS coverages of three consecutive generations, and only sixteen carefully chosen members are needed to force the final geometry.
It is useful to keep these two statements conceptually separate:
whereas
The first line describes the intrinsic constraint complexity of the word. The second exploits the rigidity of a four-position transversal.
9.3 What is specific to Thue–Morse?
Several ingredients of the proof use special features of the Thue–Morse morphism. The explicit four-boundary geometry, the exact list of eight MUSs per generation, and the two stable attractor families are specific to this word. The particularly simple trimmed recurrence also depends on the binary uniform morphism and on the closed MUS description of Kishi et al.
Other parts of the argument are more portable. The passage from arbitrary factor coverages to inclusion-minimal ones is completely general. So is the canonical irredundancy lemma. More suggestively, the Section 6 strategy
uses recognizability-like synchronization to reduce a global coverage question to a finite set of short factors. This suggests a possible template for other uniformly morphic families whenever a sufficiently strong phase synchronization and a manageable description of critical factors are available.
Similarly, the certificate-depth viewpoint does not depend on the numerical value three. For Thue–Morse, current-generation MUSs constrain candidate positions locally, while two older generations provide the missing global information. This motivates studying, for other morphic families, the minimum number of consecutive source generations needed to certify smallest attractors and whether such a depth can be controlled by recognizability or occurrence-preservation properties of the underlying morphism.
These are directions suggested by the present proof rather than claims established here. In particular, we do not assert that bounded-depth MUS certificates exist for every uniformly morphic family.
9.4 The role of occurrence transport
Occurrence transport is the technical bridge connecting the local MUS description with the global attractor geometry. A MUS is unique only in its source word. Once embedded in a later generation it may occur many times, and the attractor condition depends on the union of all of these occurrences. The exact doubling law makes those ambient coverages computable from constant base data.
The point is therefore not merely that one can generate the next MUS from the previous one. What matters is that the complete set of occurrence positions is transported exactly. This is what allows both kinds of results in the paper: the linear-size canonical certificate for arbitrary attractors and the constant-size witness system for optimum four-position sets.
9.5 Computation as verification rather than discovery in the proof
The final theorems are uniform and do not rely on checking a finite range of orders. Computation nevertheless plays a useful supporting role. It resolves the genuinely finite exceptional cases, gives an independent implementation of the definitions, and checks delicate interval and indexing calculations on a range large enough to expose the recursive pattern.
Keeping this role explicit is important. The structural proof explains why the answer stabilizes, why the value is 32, why three MUS generations are needed, and why the minimal-coverage count is . Exhaustive computation alone would confirm these patterns for particular orders but would not supply those explanations.
10 Conclusion
We have completely characterized the smallest string attractors of the finite Thue–Morse words. The number of smallest attractors is
from orders four onward. For every , the stable value 32 arises from two explicit reflected families obtained by independently selecting endpoints of four recursive boundary pairs.
The classification is accompanied by a broader structural result. For every , the complete inclusion-minimal factor-coverage antichain consists of the coverages of aa, bb, and the eight MUSs of every source generation from four through n. Its size is exactly , and it is the unique irredundant exact certificate at the level of factor coverages for attractors of arbitrary cardinality.
Under the minimum-cardinality restriction this universal condition collapses. The MUSs of three consecutive generations give an exact 24-factor certificate, depth three is necessary within that hierarchy, and a distinguished set of sixteen witnesses already forces the geometry of every smallest attractor.
The resulting picture has two complementary scales: a canonical linear-size constraint system for arbitrary attractors and a constant-size certificate at optimum cardinality. The recursive-boundary, occurrence-transport, and critical-desubstitution mechanisms behind these two scales are discussed in Section 9.
References
[1] Mutsunori Banbara, Hideo Bannai, Peaker Guo, Dominik Köppl, Takuya Mieno, and Yoshio Okamoto. The smallest string attractors of fibonacci and period-doubling words. In Philip Bille and Nicola Prezza, editors, 37th Annual Symposium on Combinatorial Pattern
Matching (CPM 2026), volume 369 of Leibniz International Proceedings in Informatics (LIPIcs), pages 33:1–33:21. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2026.
[2] Marie-Pierre Béal, Maxime Crochemore, and Giuseppe Romana. Checking and producing word attractors, 2025.
[3] Julien Cassaigne, Florent Gheeraert, Antonio Restivo, Giuseppe Romana, Marinella Sciortino, and Manon Stipulanti. New string attractor-based complexities for infinite words. Journal of Combinatorial Theory, Series A, 208:105936, 2024.
[4] Francesco Dolce. String attractors for factors of the thue-morse word. In Combinatorics on Words (WORDS 2023), volume 13899 of Lecture Notes in Computer Science, pages 117–129. Springer, 2023.
[5] Lucian Ilie and W. F. Smyth. Minimum unique substrings and maximum repeats. Fundamenta Informaticae, 110(1–4):183–195, 2011.
[6] Dominik Kempa and Nicola Prezza. At the roots of dictionary compression: String attractors. In Proceedings of the 50th Annual ACM SIGACT Symposium on Theory of Computing (STOC 2018), pages 827–840. ACM, 2018.
[7] Kaisei Kishi, Peaker Guo, Cristian Urbina, and Hideo Bannai. On occurrence-preserving morphisms. In Philip Bille and Nicola Prezza, editors, 37th Annual Symposium on Combinatorial Pattern Matching (CPM 2026), volume 369 of Leibniz International Proceedings in Informatics (LIPIcs), pages 24:1–24:16. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2026.
[8] K. Kutsukake, T. Matsumoto, Y. Nakashima, S. Inenaga, H. Bannai, and M. Takeda. On repetitiveness measures of thue-morse words. In String Processing and Information Retrieval (SPIRE 2020), volume 12303 of Lecture Notes in Computer Science, pages 213–220. Springer, 2020.
[9] Sabrina Mantaci, Antonio Restivo, Giuseppe Romana, Giovanna Rosone, and Marinella Sciortino. String attractors and combinatorics on words. In Proceedings of the 20th Italian Conference on Theoretical Computer Science (ICTCS 2019), volume 2504 of CEUR Workshop Proceedings, pages 57–71, 2019.
[10] Sabrina Mantaci, Antonio Restivo, Giuseppe Romana, Giovanna Rosone, and Marinella Sciortino. A combinatorial view on string attractors. Theoretical Computer Science, 850:236–248, 2021.
[11] Hamoon Mousavi. Automatic theorem proving in walnut, 2016.
[12] Jeffrey O. Shallit. String attractors for automatic sequences. CoRR, abs/2012.06840, 2020.
A Finite coverage tables for and
This appendix records the finite data underlying Propositions 7.2 and 7.1. Because Proposition 3.2 reduces the attractor property to the inclusion-minimal coverage antichain, these tables are complete finite certificates rather than merely collections of necessary conditions.
A.1 The twelve minimal coverages of
For , there are 100 distinct nonempty factors and 99 distinct factor coverages. Exactly twelve of the latter are inclusion-minimal. They are the coverages of the eight MUSs of and the four relevant MUSs of :
| factor | coverage | factor | coverage |
|---|---|---|---|
| bbab | [2, 5] | baba | [3, 6] |
| abaa | [4, 7] | aabb | [6, 9] |
| bbaa | [8, 11] | aaba | [10, 13] |
| abab | [11, 14] | babb | [12, 15] |
| aa | [6, 7] [10, 11] | bb | [2, 3] [8, 9] [14, 15] |
| aba | [4, 6] [11, 13] | bab | [3, 5] [12, 14] |
Every four-position hitting set of these twelve coverages contains one point in [2, 5], two in [6, 11], and one in [12, 15]. Expanding the twelve intersection predicates and removing redundant implications yields the ten clauses of Proposition 7.2. Direct counting by the value of gives solutions.
A.2 The eighteen minimal coverages of
For , there are 392 distinct nonempty factors and 391 distinct factor coverages. Exactly eighteen are inclusion-minimal. The eight current-generation coverages are
| factor | coverage | factor | coverage |
|---|---|---|---|
| abaabb | [4, 9] | aabbaa | [6, 11] |
| bbaaba | [8, 13] | babbab | [12, 17] |
| abaaba | [16, 21] | babbaa | [20, 25] |
| bbaabb | [22, 27] | aabbab | [24, 29] |
The remaining ten minimal coverages are
| factor | coverage |
|---|---|
| aaba | [10, 13] ∪ [18, 21] |
| abab | [11, 14] ∪ [19, 22] |
| babb | [12, 15] ∪ [20, 23] |
| bbaa | [8, 11] ∪ [22, 25] |
| aabb | [6, 9] ∪ [24, 27] |
| bbab | [2, 5] ∪ [14, 17] ∪ [26, 29] |
| baba | [3, 6] ∪ [15, 18] ∪ [27, 30] |
| abaa | [4, 7] ∪ [16, 19] ∪ [28, 31] |
| aa | [6, 7] ∪ [10, 11] ∪ [18, 19] ∪ [24, 25] ∪ [30, 31] |
| bb | [2, 3] ∪ [8, 9] ∪ [14, 15] ∪ [22, 23] ∪ [26, 27] |
Every four-position transversal of these eighteen masks contains one point in and one in . Its central pair belongs to one of the three classes
The outer choices are independent. The three classes therefore produce 16, 8, and 16 attractors, respectively, giving the total 40.
B Details of the independent verification
The independent verifier is intentionally separate from the implementation used during the derivation of the symbolic formulas. Its construction follows the definitions directly and does not import helper routines from the original program.
For each tested order it generates the Thue–Morse word, enumerates every distinct factor, computes all overlapping occurrences, builds the corresponding coverage set, removes duplicate coverage sets, and then filters the remaining family by inclusion. For the transversal computation it branches only on positions belonging to a currently unhit constraint; this is an exhaustive hitting-set search, not a heuristic one.
Besides the values in Table 2, the verifier performs the following independent checks:
• the complete and antichains in Appendix A;
• equality of the exhaustive attractor sets with the descriptions in Propositions 7.2 and 7.1;
• the trimmed MUS identity and full occurrence transport through ambient order ten;
• the centered/paired-boundary property through ;
• every proposed stable attractor against every distinct factor for ;
• the minimal-coverage theorem for ;
• the short critical-factor lists and critical descent through order nine;
- the depth-two counterexample and the five-position limitation of the stable MUS certificate.
No random sampling is used in any of these tests.
C Indexing conventions in the cited Thue–Morse literature
Two indexing conventions appear in the literature used in this paper. Kutsukake et al. [8] use the same convention as we do:
Kishi et al. [7] write , so that . Consequently their formula for the MUSs of translates into our Theorem 4.1 after the substitution . The shift is also consistent with the lengths and .