Manuscript Offprint
arXiv:2610.08525Stronger bounds on the degree of ambiguity of finite automata
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
Ambiguity measures the number of accepting runs in nondeterministic finite automata (NFA). We consider finitely ambiguous NFA, where there exists a constant such that over every word there are at most accepting runs. In such a case we also say that the NFA is -ambiguous. Importantly depends only on the NFA, it does not depend on the length of the word. Weber and Seidl showed that every NFA is -ambiguous for , where is the number of states [15]. We improve this to , which is asymptotically tight.
2012 ACM Subject Classification Theory of computation → Regular languages
Keywords and phrases finite automata, ambiguity
Digital Object Identifier 10.4230/LIPIcs.CVIT.2016.23
Funding Filip Mazowiecki: Supported by the Polish National Science Centre SONATA BIS-12 grant number 2022/46/E/ST6/00230
Andrew Ryzhikov: Supported by the Polish National Science Centre SONATA BIS-12 grant number 2022/46/E/ST6/00230
Antoni Wiśniewski: Supported by the Polish National Science Centre SONATA BIS-12 grant number 2022/46/E/ST6/00230
Acknowledgements The authors proved the result of Section 3 without AI assistance. They also found an exponential upper bound for the more general case, where all SCCs have the same size. The general result of Section 4 was originally proved by ChatGPT 6 Astra. The lower bound in Section 5 was suggested earlier by ChatGPT 5.6 Sol, in interaction with the authors. The authors collaborated closely with ChatGPT 6 Astra in writing Section 5 and Section A.
1 Introduction
Ambiguity is a fundamental syntactic notion in automata theory [7, 4]. The degree of ambiguity of an NFA is a function defined as follows: is the maximum, among all words of length , number of accepting paths labelled by in . For example for deterministic finite automata, and in general , where is the size of the NFA. Note that restricting the ambiguity even to does not change expressiveness of the class, as every NFA can be determined.
The growth of ambiguity functions is understood quite well. Namely, given an NFA, its degree of ambiguity is either for some constant , or is not bounded by any subexponential function [15]. This means, for example, that if the degree of ambiguity of an NFA is in or , then it is in . An NFAs such that its degree of ambiguity is upper bounded by a constant is called -ambiguous; 1-ambiguous NFAs are
© Jane Open Access and Joan R. Public;
licensed under Creative Commons License CC-BY 4.0
42nd Conference on Very Important Topics (CVIT 2016).
Editors: John Q. Open and Joan R. Access; Article No. 23; pp. 23:1–23:15
Leibniz International Proceedings in Informatics
LIPICS Schloss Dagstuhl – Leibniz-Zentrum für Informatik, Dagstuhl Publishing, Germany

23:2 Stronger bounds on the degree of ambiguity of finite automata
usually called unambiguous NFA. An NFA is called finitely ambiguous if it is N-ambiguous for some N. Deciding if, for a given NFA, its degree of ambiguity is for some constant k can be done in polynomial time [15]. If the answer is affirmative, computing the smallest such k can also be done in polynomial time [1].
The degree of ambiguity can also be defined for more involved automata models, such as weighted automata [9, 5] and string-to-string transducers [14, 6], by simply considering the degree of ambiguity of the underlying NFA. Unlike for ordinary Boolean automata, restricting the degree of ambiguity for such models typically restricts their expressivity. As a result, finitely ambiguous automata play a crucial role in algorithmic applications: many problems are decidable for finitely ambiguous automata, but are undecidable for more general classes [2]. A widely used approach for developing algorithms is then as follows: given an N-ambiguous automaton, construct an equivalent automaton that is a union of unambiguous automata. In most constructions, the number of unambiguous automata in such a union is equal to N. It is thus natural to ask how large the degree of ambiguity of a finitely ambiguous NFA with n states can be, which is the main question addressed by this paper.
Weber and Seidl [15] showed that it is at most , and provided a series of N-ambiguous n-state NFAs with degree of ambiguity . A slightly weaker lower bound of can be easily obtained by NFAs over a one-letter alphabet. We refer to [15] for the bounds predating their work. In this paper, we show an upper bound of , thus obtaining an asymptotically tight bound. Let us briefly note that from the computational complexity viewpoint, the precise ambiguity of a finitely ambiguous NFA is quite hard to analyse. Namely, given a finitely ambiguous NFA and a number N, deciding if it is N-ambiguous is PSPACE-complete, even with the promise that N does not exceed the number of states [3].
Ambiguity of NFAs is tightly linked with the growth in (multiplicative) semigroups of nonnegative integer matrices. Consider a finite set of square rational matrices , called generators. We define the semigroup generated by over the rationals: , where . In general this is a complex object, where natural problems like membership are undecidable [12] (see e.g. the introduction of [13]). However, certain approximations of are computable, e.g. its Zariski closure [8].
A particularly interesting case is when is finite, then for example its Zariski closure remains the same set . Assuming finitness the size of was analysed already in 70s [10] and recently it was shown that is bounded exponentially [11]. Using our results one can bound the norm of , i.e. bound the entries of matrices in , provided the generators are 0-1 matrices. Indeed, the assumption about 0-1 matrices allows us to identify the generators with transition matrices of an NFA. Standard results on weighted automata [10, Lemma 5.1, Corollary 5.4] show that finitness of is equivalent to finite ambiguity, and that if the NFA is -ambiguous then is a bound on the norm of .
In this simplified form of SCCs forming a path they bound the ambiguity recursively. The idea is to split the path in the middle and recursively use bounds for the left and the
23:3
right part [15, Lemma 2.5]. Then a detailed analysis shows that is -ambiguous for . This is asymptotically tight if the number of components is fixed, e.g. .
Our idea for a recursive bound is different. Suppose and fix a word of length . The key concept is to assign an interval of naturals , for , to every accepting run over . The endpoints of the interval are defined by when the run leaves the first SCC and when it enters the last SCC . A crucial observation is that we can effectively bound the number of accepting runs with pairwise disjoint intervals.
Thus we focus on bounding accepting runs such that their intervals have nonempty intersection with the interval of some fixed run. A deeper analysis of this property allows us to split every accepting run into two parts: the first part from the beginning to one of the middle SCCs, the second part leaving from the middle SCC to the last SCC. It is crucial that the middle SCC is not the first or the last (k-th) SCC. Then we can recursively bound the number of runs ending in the middle and starting from the middle. Summing over all middle points this recursion behaves similar to Catalan numbers , which are known to grow exponentially .
Organisation
In Section 2 we introduce basic definitions and recall some results of Weber and Seidl [15]. In Section 3 we show the solution for the case when every SCC has exactly one state. It is less technical and contains most of the main ideas needed for the general case in Section 4. In Section 5 we show an example that slightly improves the lower bound for ambiguity to , where
2 Preliminaries
Let . We denote intervals as . Given a word and an interval we write for the infix . If or then .
A nondeterministic finite automaton (NFA) is a tuple , where: is a finite set of states, is a finite alphabet, is the transition relation, and are the initial and final sets of states, respectively. If or , i.e. sets with one state, then we will simply write the state instead, e.g. . A run over a word is a sequence of transitions such that for all . We say that a run is an accepting run if and . If a run exists we write , in this case we also say that witnesses . We also write if we mean that there exists such that . We will abuse this notation writing e.g. meaning that there are three runs. Runs over the empty word are allowed and if and only if .
Given a word we write (or if is clear from the context) for the set of accepting runs in over . We say that is finitely ambiguous if there exists such that for all words we have . Importantly, is uniform for all words . We will also write that is -ambiguous in this case. In [15] it was shown that is -ambiguous for . In Section 5 we discuss known exponential lower bounds for . The goal of this paper is to improve the upper bound to . We start by introducing notation and results from [15], that simplify the input.
A related concept to finite ambiguity is the IDA property, introduced in [15]. We say that complies with IDA if there exist states , where , and a word such that: .
23:4 Stronger bounds on the degree of ambiguity of finite automata
To use the IDA property we need one more definition. We say that the NFA is trim if all states are reachable and co-reachable, i.e. there are and such that and . We will usually assume that NFAs are trim, as removing states that are not reachable or co-reachable is simple and does not change the ambiguity of the automaton.
▶ Theorem 1 ([15, Theorem 3.1]). A trim NFA is finitely ambiguous if and only if it does not comply with IDA.
One corollary from Theorem 1 is that finite ambiguity does not depend on initial and final states for trim NFA. We will implicitly use this property when changing the initial and final states in finitely ambiguous NFAs.
Let be a decomposition of the states into strongly connected components (SCCs). We will always assume that are ordered topologically. That is, if there is a transition such that , for then . A transition between different connected components is called a bridge.
We will use the following simple claim about finite ambiguity in SCCs.
▷ Claim 2 ([15, Lemma 2.4]). Let A be a trim finitely ambiguous NFA over the alphabet . Fix and two states , from the same SCC. There is at most one run witnessing .
We observe that one implication from Theorem 1 can be slightly generalised, which will be convenient in Section 4. Figure 1 illustrates the three conditions in the following proposition.
▶ Proposition 3. Fix a trim NFA A and let and be its SCCs such that . Fix two nonempty subsets , . Suppose there is a word such that:
-
for all there is such that ;
-
for all there is such that ;
-
there exist and such that .
Then A is not finitely ambiguous.

(1) Every state in U can be reached from a state in U by a run labelled w.
(2) Every state in V has a run labelled w to a state in V.
Figure 1 Illustration of the hypotheses of Proposition 3. Each arrow represents a run labelled w.
Proof. Let and be as in Item 3. We observe that for all there are ; and such that . Indeed, defining and we guarantee the middle transitions by Item 3. Then we can extend the path both ways: applying Item 1 for states in and Item 2 for states in .
23:5

Figure 2 A 4 state chain NFA with singleton SCCs over the alphabet .
Fix . Among the pairs , two must coincide, so there exist such that and . Choose and an integer such that ; this is possible because ranges over consecutive integers. The constructed run gives . There are also runs from and back to themselves labelled : follow and , respectively. Repeating these runs times gives , so complies with IDA.
We now define restricted NFAs with which it will be more convenient to work. We say that is a chain NFA if there are states ; ; such that:
■ the initial and final states in are: and ;
■ all bridges are of the form for some and .
We say that and are the states characterising the chain. Notice that accepting runs in a chain NFA have exactly bridges.
Most of the time we will assume that the input is a chain NFA. This is due to the following reduction, which introduces a multiplicative factor of in ambiguity compared to the general case.
▶ Lemma 4 (Corollary of [15, Lemma 2.3]). Let be a finitely ambiguous NFA with states. There are finitely ambiguous chain NFAs such that: ; every has at most states; and .
Let be a chain NFA with and the SCC decomposition: . Fix and let . We will assign an interval to each run. First, recall that , are states characterising the chain. To define the left endpoint let be the last time was in . Formally, if . Similarly, is the first time entered . Formally, if . We will drop the automaton subscript if it is clear from context. Thus to every we assign the interval .
3 Singleton SCCs
In this section we show the upper bound for a simple variant of chain NFAs. It illustrates the main ideas in the general construction, while it is conceptually simpler. We will exploit this to provide intuition in Section 4.
A chain NFA is called a singleton-SCC NFA if: ; then . So every transition is either a self loop or moves one step to the right, see Figure 2 for an example. The following is the main result of this section.
▶ Theorem 5. A finitely ambiguous singleton-SCC NFA with n states is N-ambiguous for .
23:6 Stronger bounds on the degree of ambiguity of finite automata
▶ Example 6. Consider the automaton in Figure 2. Let . There are three accepting runs in : moves always to the right reading ; stays in reading the first two 's then moves to after reading the last ; finally stays in reading all three 's. The intervals assigned to them are: , , .
▶ Lemma 7. Let be a trim finitely ambiguous singleton SCC NFA with at least two states and fix a word . Let such that the intervals assigned to runs in are pairwise disjoint, i.e. for all if then . Then .
Proof. Towards a contradiction suppose there are such that , , and are pairwise disjoint. Without loss of generality assume that . Let and be the initial and final states in , respectively. Let . We observe that: (part of ); (part of ); and (part of ). This shows that complies with IDA, which is a contradiction with finite ambiguity.
For every we define as the minimal such that all trim finitely ambiguous singleton SCC NFA with states are -ambiguous. The following lemma allows to bound recursively.
▶ Lemma 8. We have , , and for .
Proof. For this follows from Claim 2. For it follows from Lemma 7, one needs to observe that all accepting runs have disjoint intervals. This is because transitions within both SCCs are deterministic, so the only nondeterminism comes from changing the SCC. In fact : consider the automaton with initial state , final state , an -loop on , a -loop on , and transitions labelled and from to . It has at most two accepting runs on any word and exactly two on .
Suppose and let be a trim finitely ambiguous singleton SCC NFA with states and a word such that . Choose a run such that the right end of its interval is minimal, i.e. if then for all other we have . Let be the set of runs such that .
We define . If this set is empty, set for and omit the subsequent steps involving and . Otherwise, choose a run such that the right end of its interval is minimal, i.e. if then for all other we have . Observe that . By Lemma 7 for all we have .
Let . We decompose the set depending on the state reached in position . Formally, if and only if for . Note that . This is because , which by minimality of implies that if then . Similarly, we decompose depending on the state reached in position .
Let . We write for the automaton with states, where is inherited from . One should think it is like trimming to an infix of states bounded by and .
Let . Observe that every run in can be decomposed into two runs: and . Similarly runs in can be decomposed into: and . We conclude that:
23:7
It remains to bound and . For this we use the minimality of and . Note that for every we have . This also implies that for all . We conclude that
Similarly, observe that
Combining everything we get
as required. For the last inequality observe that appears in the sum.
Proof of Theorem 5. It suffices to estimate for . By Lemma 8 we have: . We show by induction that for we have , where is the -th Catalan number. Indeed, for by Lemma 8 we have . For the inductive step let , then
This concludes the proof as it is well-known that for Catalan numbers .
4 General case
Fix a trim finitely ambiguous chain NFA with strongly connected components . Let be the states characterising the chain. We will denote , , in particular . Our goal is to prove the general upper bound on the ambiguity of .
▶ Theorem 9. A finitely ambiguous chain NFA with n states is N-ambiguous for .
In the following definitions and lemmas, assume ; the one-component case of the theorem follows from Claim 2. For every word we will decompose the set of accepting runs, fixing some reachable and co-reachable states in the first and last component
Formally, if and only if given the assigned interval we have
Note that and are nonempty as we have and . For such sets of runs we generalise Lemma 7.
23:8 Stronger bounds on the degree of ambiguity of finite automata
▶ Lemma 10. Let be a trim finitely ambiguous chain NFA and let and be the first and last SCC, respectively, where and . Fix and and let such that intervals assigned to runs in are pairwise disjoint. Then .
Proof. Let , , , where and . It suffices to show that and that .
To prove the first inequality for every we define . Towards a contradiction assume that . Then there are such that . Let . The idea is to invoke Proposition 3 for , and the word ; item 3 below also shows that is nonempty. Indeed,
-
Let . By definition , so there is a run witnessing . But since it must be that , where is a run with . Then witnesses as required.
-
Let so there is a run witnessing . Since we have , where witnesses for . Thus witnesses .
-
Consider the run and recall that its infix witnesses . Since , the same run witnesses for some . Its remaining suffix shows that , and by definition.
By Proposition 3 A is not finitely ambiguous, which is a contradiction.
The proof that is analogous. One must define reachable sets for words and conclude that these sets are pairwise distinct.
We now define an analog of the sequence in Section 3. It requires to be more detailed as we need to take into account the sizes of SCCs. For this we will need to generalise the definition of automata trimmed to some of the connected components from Section 3. Consider a trim finitely ambiguous chain NFA with strongly connected components . Given , , and we define , where is inherited from . Essentially we choose new initial and final states and trim the previous and latter components.
▶ Definition 11. Fix and and denote the vector . Consider all trim finitely-ambiguous chain NFA such that their SCCs are ordered and for all . We define to be the maximal value of among all such automata , words over the alphabet of , and nonempty subsets , .
Furthermore, for every we define as the maximal value of among all such automata , words over the alphabet of , nonempty subsets , , and , . When clear we drop the subscript and simply write .
The notation is for convenience. By definition it is equivalent to , where . Like in Lemma 8 we show a recursive bound on .
▶ Lemma 12. Fix and and let . If then . If then .
23:9
Proof. For the case consider the automaton with two SCCs and of sizes and , respectively. Let and be the states characterising the chain. Observe that for every the assigned interval is of the form . We prove that if and then . Indeed, otherwise there are either two different runs witnessing or two different runs witnessing . This is a contradiction by Claim 2. Thus the bound follows directly from Lemma 10.
We move to the most interesting case . Let be such that . Denote the consecutive SCCs in of sizes , respectively. And let and be the initial and final states, respectively.
We decompose as follows. Let such that it has the smallest right endpoint in the assigned interval . Formally, for all if then . Then if . Repeat this procedure for consecutive : among the remaining runs choose with the smallest right endpoint in the interval ; and define as all remaining runs such that . Observe that by Lemma 10 we have .
We now decompose further each depending on which SCC the run visits after reading letters. Let and let . Then if and only if . Note that . This is because , which by minimality of implies that if then .
We now bound for the case . The idea is to split the run into a prefix ending in and a suffix starting there. For this we need to compute new and . Given let be the indices of the bridges entering and exiting , i.e. and . Let be such that , and define
The run shows that and , so both sets are nonempty.
Then we decompose , where: and . The number of choices for and are both bounded by , and the number of choices for is . Altogether the bound on the number of and gives us
It remains to consider . Let and . Minimality of gives , while gives . Thus and . Furthermore, witnesses a run . By Claim 2 it is a unique run, so runs in differ only in the prefix . Every such prefix belongs to for some nonempty . There are at most choices of , and for each choice there are at most prefixes. Hence
23:10 Stronger bounds on the degree of ambiguity of finite automata
Combining everything we get
where the last inequality follows by bounding the additional term by the summand for : we have and . We conclude by Lemma 10 as recall that .
Proof of Theorem 9. Let be a trim finitely ambiguous chain NFA, where are the sizes of its consecutive SCCs and . Let and be the first and last SCC, respectively. We assume that , otherwise we are done by Claim 2. Denote . Recall that and that for all words and choices of and . Given that there are at most choices for and it suffices to show that .
First we show by induction that
where is the -th Catalan number. The induction is on . Recall that is convenient notation for so we can apply Lemma 12.
The base case follows directly from Lemma 12 for . For we have by Lemma 12
By the induction assumption
Observe that . Applying this in Equation (2) we get
To conclude let us shift indices in the sum by and denote . Then the sum becomes , which is equal to as required.
Consider Equation (1) for i = 1 and j = k. We state three simple observations.
23:11
-
-
-
.
Item 1 follows from Lemma 12 for . We conclude that .
As a consequence, we obtain an upper bound for finite semigroups generated by zero-one matrices. Matrix products below use ordinary integer addition and multiplication.
▶ Theorem 13. Let and let be a finite semigroup generated by zero-one matrices. Then every satisfies
where the implicit constant is independent of the generators.
Proof. Let be the set of generators. Construct an NFA with state set , alphabet , and initial and final sets both equal to . Include the transition if and only if . For every nonempty word , matrix multiplication counts runs, so
Since is finite and the empty word has exactly accepting runs, is finitely ambiguous. By Lemma 4 and Theorem 9, it has at most accepting runs on every word. Every element of is a nonempty product of generators, which gives the claimed bound.
5 Lower bounds
Weber and Seidl [15, Theorem 5.1, Table 1] give a lower bound of on the maximal finite ambiguity of -state NFAs, for . Their examples are chain NFAs with singleton SCCs over five letters; they attribute the construction to Lemma 5.7 of Weber's PhD thesis. We improve this lower bound to . Our automata still have five letters and singleton SCCs, but they are not chain NFAs as some transitions skip a state.
Let , , and be the Pell numbers.
▶ Theorem 14. For every , there is a trim finitely ambiguous NFA with states, singleton SCCs, and an alphabet of five letters, and a word such that
In particular, the maximal ambiguity is , where
Let us describe the construction. First construct an auxiliary automaton on , with initial state and final state . For each , introduce two letters and add the transitions in Figure 3. The automaton is the union of these overlapping three-state gadgets.
23:12 Stronger bounds on the degree of ambiguity of finite automata

(a) Transition gadget

(b) Accepting runs on
Figure 3 (a) The gadget for in , added for every . (b) The accepting runs of on ; each node is labelled with the number of partial runs reaching it.
On , each subword transforms the run counts at into at . Starting from , after we arrive at . Figure 3(b) illustrates , which has accepting runs.
Now take and interpret all subscripts of modulo five. Relabel by and by to obtain , and let . All the accepting runs counted above survive. Finite ambiguity follows from Theorem 1: a word labelling a loop at uses only , and a run on these letters starting at cannot pass . Neither nor can complete an IDA witness. The full proof is in Section A.
References
1 Cyril Allauzen, Mehryar Mohri, and Ashish Rastogi. General algorithms for testing the ambiguity of finite automata and the double-tape ambiguity of finite-state transducers. Int. J. Found. Comput. Sci., 22(4):883–904, 2011. doi:10.1142/S0129054111008477.
2 Shaull Almagor, Udi Boker, and Orna Kupferman. What's decidable about weighted automata? Inf. Comput., 282:104651, 2022. doi:10.1016/J.IC.2020.104651.
3 Tat-hung Chan and Oscar H. Ibarra. On the finite-valuedness problem for sequential machines. Theor. Comput. Sci., 23:95–101, 1983. doi:10.1016/0304-3975(88)90012-6.
4 Thomas Colcombet, Karin Quaas, and Michał Skrzypczak. Unambiguity in Automata Theory (Dagstuhl Seminar 21452). Dagstuhl Reports, 11(10):57–71, 2022. URL: https://drops.dagstuhl.de/entities/document/10.4230/DagRep.11.10.57, doi:10.4230/DagRep.11.10.57.
5 Emmanuel Filiot, Raffaella Gentilini, and Jean-François Raskin. Finite-valued weighted automata. In Venkatesh Raman and S. P. Suresh, editors, 34th International Conference on Foundation of Software Technology and Theoretical Computer Science, FSTTCS 2014, New Delhi, India, December 15-17, 2014, volume 29 of LIPIcs, pages 133–145. Schloss Dagstuhl - Leibniz-Zentrum für Informatik, 2014. doi:10.4230/LIPICS.FSTTCS.2014.133.
6 Emmanuel Filiot, Ismaël Jecker, Gabriele Puppis, Christof Löding, Anca Muscholl, and Sarah Winter. Finite-valued streaming string transducers. TheoretiCS, 4, 2025. doi:10.46298/THEORETICS.25.1.
7 Yo-Sub Han, Arto Salomaa, and Kai Salomaa. Ambiguity, nondeterminism and state complexity of finite automata. Acta Cybernetica, 23(1):141–157, 2017. doi:10.14232/ACTACYB.23.1.2017.9.
8 Ehud Hrushovski, Joël Ouaknine, Amaury Pouly, and James Worrell. On strongest algebraic program invariants. J. ACM, 70(5):29:1–29:22, 2023. doi:10.1145/3614319.
9 Ines Klimann, Sylvain Lombardy, Jean Mairesse, and Christophe Prieur. Deciding unambiguity and sequentiality from a finitely ambiguous max-plus automaton. Theor. Comput. Sci., 327(3):349–373, 2004. doi:10.1016/J.TCS.2004.02.049.
23:13
10 Arnaldo Mandel and Imre Simon. On finite semigroups of matrices. Theor. Comput. Sci., 5(2):101–111, 1977. doi:10.1016/0304-3975(77)90001-9.
11 Rida Ait El Manssour, Roland Guttenberg, Nathan Lhote, Mahsa Shirmohammadi, and James B. Worrell. Revisiting finiteness of matrix monoids. In Sayan Bhattacharya, Danupon Nanongkai, Michael Benedikt, and Gabriele Puppis, editors, 53rd International Colloquium on Automata, Languages, and Programming, ICALP 2026, Royal Holloway, University of London, Egham, United Kingdom, July 7-10, 2026, volume 374 of LIPIcs, pages 158:1–158:17. Schloss Dagstuhl - Leibniz-Zentrum für Informatik, 2026. URL: https://doi.org/10.4230/LIPIcs.ICALP.2026.158, doi:10.4230/LIPICS.ICALP.2026.158.
12 Andrei Markov. On certain insoluble problems concerning matrices. In Doklady Akad. Nauk SSSR, volume 57, pages 539–542, 1947.
13 Igor Potapov and Pavel Semukhin. Decidability of the membership problem for integer matrices. In Philip N. Klein, editor, Proceedings of the Twenty-Eighth Annual ACM-SIAM Symposium on Discrete Algorithms, SODA 2017, Barcelona, Spain, Hotel Porta Fira, January 16-19, pages 170–186. SIAM, 2017. doi:10.1137/1.9781611974782.12.
14 Andreas Weber. Decomposing finite-valued transducers and deciding their equivalence. SIAM Journal on Computing, 22(1):175–202, 1993. doi:10.1137/0222014.
15 Andreas Weber and Helmut Seidl. On the degree of ambiguity of finite automata. Theor. Comput. Sci., 88(2):325–349, 1991. doi:10.1016/0304-3975(91)90381-B.
23:14 Stronger bounds on the degree of ambiguity of finite automata
A Proof of the lower bound
Proof of Theorem 14. Fix . We first define the auxiliary automaton formally, then count its runs on , and finally verify that relabelling its transitions gives a finitely ambiguous automaton over five letters.
The auxiliary automaton.
Let and . Set , where
These are the transitions of Figure 3. Every transition either stays in its state or increases its index, so all SCCs are singletons. There is a transition from to for every : use if , and if . Hence is trim.
Counting runs
For , let , where . We show by induction on that all runs from on end in , and that their respective numbers satisfy
For , we have . For the induction step, let . If the counts at before reading are , then reading gives counts at . Reading then gives counts at , with no other states reachable. By the induction hypothesis, this yields
where the last equality uses the Pell recurrence. Since and is the only final state,
Reducing the alphabet
Let , using the convention for every integer . Define the letter map by and , and extend to words by concatenation. Let , where
The underlying directed graph is unchanged, so is trim and has singleton SCCs. For a fixed word in , a run is uniquely determined by its sequence of states. Consequently, distinct runs of on remain distinct runs of on . By Equation (3), .
23:15
Finite ambiguity.
Inspection of gives the following possible labels; near the endpoints some of them may be absent:
| transition | possible labels |
|---|---|
Fix and put . Every run from on a word in stays in . Indeed, a transition from increases the index by at most two. From , the only possible transition to a different state using goes to , on . From , no outgoing transition uses : such labels belong to , which is disjoint from because the alphabet has five letters.
Suppose that complies with IDA. There are distinct states and a word such that , , and . State indices never decrease, so , , and the two runs returning to their starting states use only self-loops. In particular, , and the preceding observation implies . If , all letters of lie in . But a run from on cannot reach : no transition from to has label , and skipping to precludes returning. If , then , contradicting . Both cases are impossible. By Theorem 1, is finitely ambiguous.
Finally, the characteristic roots of the Pell recurrence are and . Its initial values give
which proves the remaining assertions.