Manuscript Offprint
arXiv:2609.01184On smallest synchronizing terms over constant alphabets
Abstract
We show a subexponential lower bound on the reset threshold of synchronizing deterministic finite tree automata (DTA) over alphabets of just two symbols. This significantly improves the previous one, which was quadratic in the number of states. Our result also narrows the gap towards the lower bound for DTA over alphabets that grow linearly with the number of states, as well as the best known upper bound, both of which are currently exponential.
1 Introduction
In the field of deterministic finite (string) automata (DFA), the notion of synchronization is a prominent and actively investigated topic. A string is synchronizing for a given DFA if there exists a fixed state such that for every state of , when starts reading in , it ends in [14, 6]. Applications include classical problems of automation and robotics, such as orienting parts on a conveyor belt [15] and navigating a robot from an unknown position to a known position [3] (also cf. [2, 1]), but also communications in the form of self-synchronizing codes [14, 17].
One can easily see that not every DFA has a synchronizing word. Whether a synchronizing word exists for a given DFA can be determined in cubic time wrt. its number of states [9]. A DFA that has a synchronizing word is called synchronizing; thus, the class of synchronizing DFA is a proper subclass of the class of all DFA. For synchronizing DFA, their shortest synchronizing word is of particular interest, and its length is referred to as the reset threshold of the DFA. While the problem of finding the shortest synchronizing word of a DFA is known to be NP-hard [21, 9], the achievable reset threshold (wrt. the number of states of the automaton) is still ongoing research. Černý [6] constructed a family of DFA with states whose shortest synchronizing word has length , and it was conjectured that this lower bound is tight [24, 7]. This conjecture, widely known as the Černý conjecture, turned out to be one of the longest-standing open problems in automata theory: to this day, only a cubic upper bound is known [24, 18, 10], and the only advances were able to improve the bound on the level of constants [25, 22]. We note that these bounds on the reset threshold only hold if the DFA is total, i.e., for every state and symbol, there is exactly one successor state. For partial automata, exponential lower bounds are known [8].
Finite-state tree automata (DTA) are a natural generalization of DFA that introduce branching [11]. Rather than linear strings, where each symbol (except the last one) has exactly one successor, they recognize trees, where each symbol may have an arbitrary (but fixed for that symbol) number of successors. Recently [4, 5], the synchronization problem was also investigated for DTA – with the natural adaptation, i.e., instead of a synchronizing word, a tree (called synchronizing term) is desired. As counterpart of the word's length, the height of the tree is considered, i.e., the reset threshold of a DTA is the height of its smallest synchronizing term. For trees, the cubic upper bound does not carry over from the string case. Instead, the authors were only able to show a trivial upper bound of . For lower bounds, it is clear that Černý's quadratic bound carries over (since every DFA
richard.moerbitz@tu-dresden.de can be considered as a DTA). The authors were also able to show exponential lower bounds, but only if the alphabet grows with the number of states. This is not in the spirit of Černý's original construction, which featured a constant alphabet (of size 2) independent of the number of states. Thus, for families of DTAs over constant alphabets, a significant gap remains between the quadratic lower bound and the exponential upper bound on the height of the smallest synchronizing term.
Our contribution is to provide a new flexible construction for families of DTA over alphabets of just two symbols, which allows to improve the existing lower bounds on the reset threshold of DTA in multiple steps. First, for every degree , we obtain a lower bound that grows in ; already for this separates the reset threshold of DTA from that of DFA (which is upper bounded by ). Second, we obtain a subexponential lower bound whose growth is equivalent to Landau's function .
This paper is structured as follows. We recall some basic notions from formal language theory and number theory in Section 2. Section 3 contains all definitions related to the synchronization of DTA. In Section 4, we present the construction used to show our improved bounds, which we will do in Section 5.
The composition of two functions and is the function defined by for every . For every unary function and , we let denote the -fold composition of . Formally, is the identity and for every and . Moreover, we let for every and .
In this work, we are a bit lenient with the notation of composing higher-arity functions, e.g., given a function , we let be the function defined for every by . Whenever we speak of applying such a composed function to a single argument, we mean that it is applied to a tuple consisting of copies of this argument where is the arity of the composed function. Often we are not only interested in the functions themselves, but also in their (tree-like) syntactic shape of composition (commonly denoted as terms). We refer to this shape as a composite expression in order to avoid confusion with the notions “tree” and “term” that occur in the context of synchronizing tree automata. When we speak about the height of such an expression, we mean the same concept as in the case of trees (see below). Intuitively, it describes how deeply nested the expression is.
Ranked alphabets By an alphabet, in this work often denoted by , we mean a non-empty and finite set whose elements are called symbols. Here, we assign to each symbol a rank which will stand for the number of its successor nodes in a tree. Formally, we say that a ranked alphabet is a tuple consisting of an alphabet together with a rank function . In the usual way, we abbreviate the ranked alphabet by if is clear from the context and we let stand for . Moreover, we often define implicitly by writing instead of for a symbol .
Strings, trees, and tree contexts Given an alphabet , each finite sequence consisting of symbols is called a string over (of length ). If we now let be a ranked alphabet, we can easily generalize from strings to trees by letting each involved symbol have not just one but many successors.
If a symbol has rank 0 and, thus, no successors in a tree, we call it a leaf ( in the picture below). We will often consider trees which do not terminate with leaves but have open ends (in the sense that one could plug in any other tree). In order to address these points, we will use a set of variables, which is disjoint from any other set in this work. Formally, the set of trees over and is the smallest set such that and for each , , and we have . We call a tree a context if no variable occurs twice and

Figure 1: In the blue part, a string over the alphabet is turned into a linear tree over the ranked alphabet where all symbols except the nullary leaf symbol are of rank 1. We can generalize this view to non-linear trees by allowing symbols of higher rank as e.g. with the ranked alphabet . The left tree of the green part is a context, while the right tree is even a full context not having any leaf symbol.
the left-to-right sequence of variables occurring in the tree is . A full context is a context without leaves.
Given a tree we define its height as the length of the longest path (thinking of as a graph) from the root to a leaf symbol or variable, i.e., if and if . The height of all trees in Figure 1 is 3.
Number theory For two natural numbers and we say that divides , abbreviated by , if there exists a natural number such that . Let . The least common multiple of , denoted by , is the smallest positive number such that . Given , Landau's function is the largest least common multiple of all partitions of , i.e.,
While no precise closed form of is known, it can be approximated as [13]. We note that the tuple that witnesses is not necessarily unique. However, for every there exists one that has the properties required by our construction (cf. Theorem 17).
Lemma 1. For every there exist and such that , , and there is some with .
Proof. Let and . We let and ; then, clearly . We first show that , where the part is obvious. For the converse, let and let be such that . From and we obtain , hence and thus .
The next step is to show that . If , then . If , we note that and , hence .
Finally, if , the proof is concluded with and . Otherwise, there exist and such that and . But then and hence and there must be with .
A prime number is a natural number such that no divides (we note that and hold for every ). For each , we let be the -th prime number, i.e., and, for each , is the smallest prime number that is greater than . For each real number , the number of primes up to is denoted by , i.e., . Ramanujan [19] proved that, for each , there is a natural number such that for every ; by well-ordering, there is a smallest such number, denoted and called the -th Ramanujan prime [23]. The first five Ramanujan primes are [19].
3 Tree Automata and Synchronization
Just as we view trees as generalisations of strings, we can understand tree automata as generalisations of string automata. Recall that a deterministic finite-state (string) automaton (DFA) is a tuple

Figure 2: While in string automata transitions are unary functions allowing to read the string in a linear fashion from left to right (as in the left part), the transition functions of tree automata incorporate the arity of the related symbol (right part).
where is a finite set of states, an alphabet, and (initial state and set of final states), and is a transition function for each symbol . While DFA can read a string from left to right by assigning (starting from ) the appropriate state to each symbol and resulting in a run , tree automata need to process the branching structure of a tree. Starting from the leaf symbols, again each symbol gets assigned a state. However, as a node may have several children, we need to incorporate several child states in our transition function and, thus, allow for functions of higher arity (cf. Figure 2).
Formally, a bottom-up deterministic tree automaton (DTA) is a tuple where now is a ranked alphabet and is the transition function for each symbol with its arity determined by the rank of . Note that we do not need an initial state in this setting, as is a constant for each (nullary) leaf symbol . Moreover, since the question of tree acceptance and the language of is not relevant for synchronization, we do not need the set of final states in this paper and simply choose .
Investigating the synchronization of a DTA benefits from additional tools to analyze the state behavior of whilst reading a tree. For this, we extend the transition functions to nonempty sets of input states. Formally, let ; that way we determine which set of states is reachable if we can input arbitrary states from , respectively, to . Furthermore, in order to determine the set of states can reach after reading a tree , we define the function with
where we allow at each position in , which carries a variable, the full set of states as input. Note that, if does not contain a variable, then is a singleton as is deterministic.
Before we introduce the notion of tree automata synchronization considered in this paper, let us briefly recap what synchronization means in the context of string automata. We say that a DFA is synchronizing if there exists a string which converts into one fixed state no matter with which state starts to process . Clearly, not every string automaton is synchronizing but, given a DFA , the existence of such a synchronizing string for can be tested in polynomial time [24, 9]. In the setting of tree automata, the definition of synchronizing trees is less clear than in the case of strings. As explained in detail in [5], it makes a difference whether one considers as synchronizing tree (i) a tree without variables, (ii) a context with at least one variable, or (iii) a full context. Since case (i) was shown to be trivial and case (ii) was reduced to the string case, we will focus on case (iii) of full contexts, which were called strongly synchronizing in [5].
Definition 2. Let be a DTA and a full context. We say that is a synchronizing term (for ) if .
A tree automaton A is called synchronizing if it has a synchronizing term. A synchronizing term of smallest height is called the smallest synchronizing term of A and its height is called the reset threshold of A, denoted by . In this paper, we are interested in the question of how large the reset threshold of a tree automaton can be depending on its number of states. Whilst in [5] a super-polynomial lower bound could only be shown in the case of an alphabet growing at least linearly, the construction we present in the following sections requires only two alphabet symbols: the binary symbol f and the unary symbol w. For this, we will construct in Section 4 two transition functions and that force the associated tree automaton A (defined in Section 5) to read very high trees before it synchronizes.

Figure 3: The structure of the smallest composite expression over that maps to together with the sets it reaches after individual application steps.
Remark 3. The way in which we have defined tree automata (the transitions are given by a family of operations on the set of states of varying arity, i.e., functions of the form ) allows for an alternative view of tree automata in the context of synchronization: Instead of asking how large a synchronizing term must be, we can also ask how deeply we need to compose functions from such that the resulting expression is a constant function which maps all inputs to a singleton. Therefore, in Section 4 we will abstract from the tree automaton perspective and only investigate two particular functions and . In Section 5, we will then apply the insights gained to the synchronization problem of tree automata.
4 Construction of and
In this section we design two functions and with the goal that the smallest composite expression over that maps to is as deeply nested as possible. We will approach this by parameterizing and by positive numbers with , which will be fixed in Section 5. Then we will show that, starting from , the earliest singleton is reachable after exactly nested applications of and . The idea behind the 's is that we want to partition into intervals, within which the application of results in a cyclic shift. This way, we can apply up to times consecutively to some initial set without running into a cycle. The job of mapping the full set to the appropriate will be done by the function . Finally, will project to . An illustration of the resulting expression can be found in Figure 3.
Formally, let such that . We let and, for every , we let . Moreover, for each we let be the -th block (of length ) and we let be the residual interval (in case ).
Moreover, we let
and we define the mappings and as follows:


Figure 4: The shape of and for and , , . Starting from (highlighted in yellow), it takes steps for to reach , the last set before running into a cycle (highlighted in green). This very set is mapped by to .
for each , and
for each . An example for and as well as their functionality is given in Figure 4.
In the following, we will show that our intuition regarding the functionality of and is correct, i.e., the earliest singleton is reachable after exactly nested applications (cf. Lemma 11). As a preparation for this, we will investigate how these functions behave when we apply them repeatedly, starting from the set .
From now on, we let LCM denote the least common multiple of . Moreover, for the correctness of the statements in this section, we prohibit the corner cases that (which would entail , breaking Lemma 10) and (which would break Lemma 11; note that this happens if and only if both and ).
Properties of
First let us note that applied to the entire set is simply the identity, which follows directly from its definition.
Observation 4.
Since every block length divides LCM, we obtain that applying LCM-times subsequently to results in a cycle. Then it is easy to see that applying it one time less yields .
Observation 5. and .
Moreover, as the application of just shifts the elements within the intervals we consider cyclically, each contains exactly one element from every interval.
Lemma 6. For every and it holds that . Moreover, .
Proof. The proof is done by induction on where the induction base follows directly from the definition of . For the induction step, let . By the induction hypothesis, there is exactly one such that . Then, by definition, we have . Moreover, by induction hypothesis, for every we have . Then, by definition, .
Finally we can show that, with every consecutive application of below LCM, we obtain a previously unseen set.
Lemma 7. For every it holds that implies .
Proof. Let such that (w.l.o.g.) and assume that for every . By the definition of , this implies for every , and as a consequence . But since , this implies . Hence we can assume that there exists such that . By Lemma 6, and are the unique elements of in and , respectively, so .
Properties of
Turning to the definition of , it is obvious that applying it to F yields the singleton .
Observation 8. .
Moreover, all other sets reachable from via are mapped by back to . It follows that can not be used as an abbreviation: only after applying LCM - 1 times we can use in order to reach .
Lemma 9. For every the following holds: if , then .
Proof. Since , we let and distinguish two cases.
: If , then, by Lemma 6, for every there is exactly one with . By definition, . Also, by Lemma 6, it holds that , and by definition, . Since , we obtain . If , then is easy to see.
: By definition, for every , we have if and if for some . Since , we obtain .
As , there exists at least one , and thus .
Reachability of singletons
Next, we define the sets of subsets of that are reachable within applications of and starting from . We let and
Clearly, there is a composite expression over and of height that is constant if and only if contains a singleton.
Lemma 10. For each we have .
Proof. The proof is by induction on i. For the induction base, let i = 1. Then we obtain
(Observation 4 and Lemma 9)
where Lemma 9 yields since (due to our assumption that there exists with ). For the induction step, let . Then
(IH)
(*)
(**)
(Observation 4)
where (*) holds by Observation 5 and Lemma 7 and (**) holds by Lemma 9; we note that by Lemma 6, no proper subset of can be an element of .
Lemma 11. The smallest such that contains a singleton is .
Proof. By Lemma 10, we have for every (we note that Lemma 10 can be applied by our assumption that there exists with ). Moreover, Lemma 6 together with the assumption that either or implies that no set in is a singleton. Also, since by Observation 5, we have . Then, by Observation 8, we have .
Remark 12. We note that the role of cannot be fulfilled by a unary function. This is because, in essence, when considered as a function on sets, combines two unary functions and switches between them based on its first argument. These functions are and where
Then, for every and , we have and . This technique allows us to defer the application of the function until the set is reached (which takes LCM steps in our case), using the non-productive function in the meantime.
Since a set of unary functions alone cannot behave in such a way, the technique of this section cannot be applied to DFA. Indeed, whenever two states of a DFA can be synchronized, this can be done in at most applications of any transition function (cf. e.g. [9]); our LCM may exceed by far.
5 Lower bounds on smallest synchronizing terms
In this section we show that, given , we can use the functions and from the previous section to construct a DTA whose smallest synchronizing term has height (Lemma 13). We apply this general result to two particular strategies for choosing in order to obtain improved lower bounds for the reset thresholds of DTA over two-symbol alphabets: one polynomial with a freely choosable degree (Theorem 15) and one subexponential (Theorem 17).
Our DTA construction uses as the set of states and as the alphabet. This allows us to define its transition function in terms of and from the previous section. Thus, there is a synchronizing term of height over if and only if contains a singleton.
Lemma 13. Let such that , there exists with , and . Then there exists a DTA with states whose smallest synchronizing term has height .
Proof. We let with and defined as in the previous section. We have
(*)
(Lemma 11)
where (*) can be easily shown by structural induction.
Remark 14. We note that the tree automaton constructed above does not incorporate nullary symbols and, thus, the tree language it accepts is empty. While it is not relevant to synchronization, our construction can easily be transferred to automata that read leaf symbols. This will not affect our results on reset thresholds since synchronizing terms do not contain nullary symbols by definition.
Our strategy for constructing a family of DTA with a polynomial reset threshold is as follows. Fix . For any sufficiently large , pick the largest prime numbers up to . As their least common multiple is in , Lemma 13 yields a DTA with a polynomial reset threshold of degree .
We note that this lemma would still hold if but . However, since this case is not relevant for our main theorems, we have neglected it in order to make the statement of this lemma more concise.
Theorem 15. Let . For every there exists a DTA with states whose smallest synchronizing term has height at least .
Proof. For every , we let and
We note that, since , we have and thus , i.e., there are at least prime numbers greater than and at most . Hence exists and for every . Moreover, .
By Lemma 13 (which can be applied with and since each is prime and hence ), there exists a DTA whose smallest synchronizing term has height . Now, since are pairwise distinct prime numbers, we have . Moreover, and hence , since for every real . This implies
As a consequence, .
We obtain that the height of the smallest synchronizing term of the DTA is
Remark 16. We note that our lower bound substantially underestimates the height of the smallest synchronizing term. Since [12] and [20], it covers all . While a more elaborate selection of pairwise coprime numbers (that are not necessarily primes) could lead to a better bound that potentially covers more initial , we stick to our strategy since it is conceptually simple and fulfills the goal of showing polynomial lower bounds of arbitrary degree. Our best bound (which we show next) will be superpolynomial and thus exceed any polynomial construction anyway.
Our strategy for constructing a family of DTA with a subexponential reset threshold is as follows. For any , pick and such that is maximized and . As their least common multiple is , Lemma 13 yields a DTA with a subexponential reset threshold.
Theorem 17. For every there exists a DTA which has states and a smallest synchronizing term of height , where is Landau's function. Thus, the height of the smallest synchronizing term of the family has growth .
Proof. Let . By Lemma 1, there exist and such that , , and there is some with . By Lemma 13 there exists a DTA with states whose reset threshold is . By [13], , which yields the claimed growth.
Remark 18. We note that the search space for optimal is restricted to powers of pairwise distinct primes. Then, the goal becomes partitioning into prime powers (and potentially some slack) with a maximal product. This can be solved by Dynamic Programming (e.g., a modification of the algorithm of [16] with backtracking information that allows retrieval of the prime powers).
6 Outlook
We have improved the lower bound on the reset threshold of DTA over constant-sized alphabets from quadratic to subexponential. This significantly narrows the gap towards the upper bound, which still sits at . Our technique was flexible enough to also allow us to construct families of DTA that have (weaker) polynomial thresholds, one family for each degree greater than 1.
However, the construction of this paper cannot be used to improve this bound further: in essence, it iterates a unary function as long as possible (the binary function serves only as a guard), and by the very definition of Landau's function, the length of the iteration is already maximized. We believe that the value of our construction lies in its minimality: by using only two symbols and only one property exclusive to higher-arity functions (cf. Remark 12), we are already able to surpass the bounds of DFA by far. It is ongoing work to explore the possibilities enabled by binary functions further in order to reach an exponential lower bound (as it has already been done for alphabets that grow with the number of states).
References
[1] Roy L. Adler, L. Wayne Goodwyn, and Benjamin Weiss. Equivalence of topological Markov shifts. Israel Journal of Mathematics, 27(1):49–63, 1977.
[2] Roy L. Adler and Benjamin Weiss. Similarity of Automorphisms of the Torus. Number 98 in Memoirs of the American Mathematical Society. American Mathematical Society, Providence, RI, 1970.
[3] Marie-Pierre Béal and Dominique Perrin. A quadratic algorithm for road coloring. Discrete Applied Mathematics, 169:15–29, 2014.
[4] Václav Blažej, Jan Janoušek, and Štěpán Plachý. On the smallest synchronizing terms of finite tree automata. In Implementation and Application of Automata (CIAA 2023), volume 14151 of Lecture Notes in Computer Science, pages 79–90. Springer, 2023.
[5] Václav Blažej, Jan Janoušek, and Štěpán Plachý. On the Smallest Synchronizing Terms of Finite Tree Automata. Int. J. Found. Comput. Sci., 37(01):215–239, 2026.
[6] Ján Černý. Poznámka k homogénnym experimentom s konečnými automatmi. Matematicko-fyzikálny Časopis Slovenskej Akadémie Vied, 14(3):208–216, 1964. In Slovak. English translation: A note on homogeneous experiments with finite automata, J. Autom. Lang. Comb. 24(2–4):123–132, 2019.
[7] Ján Černý, Alicia Pirická, and Blanka Rosenauerová. On directable automata. Kybernetika, 7(4):289–298, 1971.
[8] Michiel de Bondt, Henk Don, and Hans Zantema. Lower bounds for synchronizing word lengths in partial automata. International Journal of Foundations of Computer Science, 30(1):29–60, 2019. Preprint: arXiv:1801.10436.
[9] David Eppstein. Reset sequences for monotonic automata. SIAM Journal on Computing, 19(3):500–510, 1990.
[10] Péter Frankl. An extremal problem for two families of sets. European Journal of Combinatorics, 3(2):125–127, 1982.
[11] Ferenc Gécseg and Magnus Steinby. Tree Automata. Akadémiai Kiadó, Budapest, 1984. Reissued as arXiv:1509.06233.
[12] Shanta Laishram. On a conjecture on Ramanujan primes. International Journal of Number Theory, 6(8):1869–1873, 2010.
[13] Edmund Landau. Über die Maximalordnung der Permutationen gegebenen Grades [On the maximal order of permutations of given degree]. Arch. Math. Phys, 3(5):92–103, 1903.
[14] Chung Laung Liu. Some memory aspects of finite automata. Technical Report 411, MIT Research Laboratory of Electronics, 1963.
[15] Balas K. Natarajan. An algorithmic approach to the automated design of parts orienters. In Proc. 27th Annual Symposium on Foundations of Computer Science (FOCS 1986), pages 132–142. IEEE, 1986.
[16] Jean-Louis Nicolas. Calcul de l'ordre maximum d'un élément du groupe symétrique [Calculation of the maximum order of an element of the symmetric group ]. Revue Française d'Informatique et de Recherche Opérationnelle, Série Rouge, 3(2):43–50, 1969.
[17] Dominique Perrin and Marcel-Paul Schützenberger. Synchronizing prefix codes and automata, and the road coloring problem. In Symbolic Dynamics and Its Applications, volume 135 of Contemporary Mathematics, pages 295–318. American Mathematical Society, 1992.
[18] Jean-Éric Pin. On two combinatorial problems arising from automata theory. Annals of Discrete Mathematics, 17:535–548, 1983.
[19] Srinivasa Ramanujan. A proof of Bertrand's postulate. Journal of the Indian Mathematical Society, 11:181–182, 1919.
[20] J. Barkley Rosser and Lowell Schoenfeld. Approximate formulas for some functions of prime numbers. Illinois Journal of Mathematics, 6(1):64–94, 1962.
[21] Igor K. Rystsov. Polynomial complete problems in automata theory. Information Processing Letters, 16(3):147–151, 1983. Theorem 3: NP-completeness of Short-Reset-Word.
[22] Yaroslav Shitov. An improvement to a recent upper bound for synchronizing words of finite automata. Journal of Automata, Languages and Combinatorics, 24(2–4):367–373, 2019.
[23] Jonathan Sondow. Ramanujan primes and Bertrand's postulate. The American Mathematical Monthly, 116(7):630–635, 2009.
[24] Peter H. Starke. Eine bemerkung über homogene experimente. Elektronische Informationsverarbeitung und Kybernetik, 2(4):257–259, 1966. In German.
[25] Marek Szykuła. Improving the upper bound on the length of the shortest reset word. In 35th Symposium on Theoretical Aspects of Computer Science (STACS 2018), volume 96 of LIPIcs, pages 56:1–56:13. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2018.