Unambiguisability and Register Minimisation of Min-Plus Models
Abstract
We study the unambiguisability problem for min-plus (tropical) weighted automata (WFAs), and the register-minimisation problem for tropical Cost Register Automata (CRAs), which are expressively-equivalent to WFAs. Both problems ask whether the “amount of nondeterminism” in the model can be reduced. We show that WFA unambiguisability is decidable for tropical WFAs. Our proof is via reduction to WFA determinisability, which was recently shown to be decidable. To obtain this reduction, we develop a characterisation of unambiguisability via gaps between runs. On the negative side, we show that CRA register minimisation is undecidable already for inputs with 7 registers, and hence also for any larger fixed number of registers.
Keywords and phrases:
Automata, Weighted Automata, Determinisation, Unambiguous, Unambiguisation, Tropical, Min PlusCategory:
Track B: Automata, Logic, Semantics, and Theory of ProgrammingFunding:
Shaull Almagor: ISRAEL SCIENCE FOUNDATION (grant No. 989/22).Copyright and License:
2012 ACM Subject Classification:
Theory of computation Formal languages and automata theory ; Theory of computation Quantitative automataEditors:
Sayan Bhattacharya, Danupon Nanongkai, Michael Benedikt, and Gabriele PuppisSeries and Publisher:
Leibniz International Proceedings in Informatics, Schloss Dagstuhl – Leibniz-Zentrum für Informatik
1 Introduction
Weighted Finite Automata (WFAs) are a popular quantitative computational model, defining functions from words to values [11, 23, 9, 3]. The semantics of WFAs are typically defined over a semiring, with the most prominent settings being the field of rationals , and the tropical semiring . Both semirings yield WFAs that are useful for modelling certain aspects of systems, with a wide spectrum of applications (see [10, 11, 3] and references therein). For example, the rational field can be used to define probabilistic automata [22], whereas the tropical semiring allows reasoning about the optimal way of using resources (e.g., energy consumption), since the semantics is to take the minimal weighted run among all the runs on a word. Famously, tropical WFAs have been key to resolving the star-height conjecture [16, 13, 14, 19].
As with many computational models, reasoning about WFAs becomes harder in the presence of nondeterminism. For example, equivalence of tropical WFAs is undecidable for nondeterministic automata, but decidable for deterministic ones [18, 3]. Unlike Boolean automata, nondeterministic WFAs are strictly more expressive than their deterministic fragment for most semirings. Accordingly, a natural problem for WFAs is the determinisability problem: given a WFA , is there a deterministic WFA such that ? This problem has a rich history dating back to the 1990s [20, 21] (see [2] for more details). It was recently shown to be decidable for the rational field [6, 15], and even more recently for the tropical semiring [2].
The “amount” of nondeterminism can be measured in various ways. The most prominent is ambiguity: a WFA is unambiguous if every word has at most one accepting run. We can similarly define -ambiguous, finitely ambiguous and polynomially ambiguous [8]. Unambiguous WFAs are strictly more expressive than deterministic WFAs, but retain some nice closure and algorithmic properties [21]. As such, a natural question is unambiguisability111Equally fun mouthfuls include: “disambiguisability”, “unambiguousability”, etc.: given a WFA, is there an equivalent unambiguous WFA? For polynomially-ambiguous tropical automata, this problem was shown to be decidable in [17]. In addition, it is decidable over the rational field [6].
In this work, we resolve the decidability of this problem for tropical WFAs with unrestricted nondeterminism, by reducing it to the determinisability problem. Note that for most models, determinisability and unambiguisability have been resolved in tandem, by first deciding unambiguisability, and then deciding determinisability on the equivalent unambiguous, if it exists. Interestingly, for tropical WFAs determinisation is resolved directly, while unambiguisability remained open. It is somewhat surprising, therefore, that its solution is via reduction to determinisability.
Another measure of nondeterminism in WFAs stems from a closely related model – that of Cost Register Automata (CRAs) with linear register updates [5]. A cost register automaton has a deterministic control, equipped with several registers that hold values. At each step, the registers’ contents is manipulated according to some semiring actions (in our case, ). Over semirings, CRAs and WFAs are equally expressive [5]. A natural decision problem about CRAs is register minimisation: given a CRA with registers, is there an equivalent CRA with registers? We refine the results of [5] and show that the number of registers in a CRA corresponds to the width of a WFA: the maximal number of states that can be reached simultaneously (nondeterministically). This measure is incomparable with ambiguity as a measure for nondeterminism, but retains the flavour that width is exactly determinism. Using this equivalence, we show that register minimisation for CRAs is undecidable already for inputs with registers, and the construction extends to any larger fixed number of registers. We remark that for CRAs over the rational field, this problem is decidable [7].
Paper Organisation and Contributions
In Section 2 we lay down basic definitions and recall some results about unambiguous WFAs. In Section 3 we introduce a novel characterisation of unambiguisable WFAs via a notion of “gaps”. In Section 4 we present our first main contribution – a reduction from WFA unambiguisability to WFA determinisability. In particular, this shows the decidability of unambiguisability based on the recent breakthrough [2]. In Section 5 we show that register minimisation for CRAs is undecidable. We conclude with a discussion in Section 6. Detailed proofs appear in the full version.
2 Preliminaries
For denote . For an alphabet , we denote by (resp. ) the set of finite words (resp. non-empty finite words) over . For a word , we denote its length by and the set of its prefixes by . We write for the infix of corresponding to . For a letter we denote by the number of occurrences of in .
We denote by and the sets and , respectively. We extend the addition and operations to in the natural way: and for all . By we mean the set of elements in for which is minimal for some function and set .
Weighted Automata
A Weighted Finite Automaton (WFA for short) is a tuple with the following components:
-
is a finite set of states.
-
is a finite alphabet.
-
is the initial state (in Section 5 we allow a set of initial states).222Having a set of initial states does not add expressiveness, as it can be replaced by a single initial state that simulates the first transition from the entire set.
-
is a transition relation such that for every and there exists exactly333This is without loss of generality: if there are two transitions with different weights, the higher weight can always be ignored in the semantics. Missing transitions can be introduced with weight . one weight such that .
-
is a set of accepting states.
If for every and there exists at most one transition with , then is called deterministic. We denote by the maximal absolute value of any weight in .
Runs
A run of is a sequence of transitions where such that for all and for all . We say that is a run on the word from to , and we denote . For an infix we denote the corresponding infix of by (and sometimes by , if this clarifies the indices). The weight of the run is . A run from the initial state is accepting if it ends in , i.e., if and . When the start state is explicit, we say that the run is accepting from that start state if it ends in .
For a word , we abuse the name of the WFA as the function it describes, and denote by the weight assigned by to , which is the minimal weight of an accepting run of on . For convenience, we introduce some auxiliary notations. For a word and sets of states , denote
If or are singletons, we denote them by a single state (e.g., for some set and state ). Then, we can define . If there are no accepting runs on , then . The function can be seen as the weighted analogue of the language of an automaton.
Remark 1 (On initial and final weights and states).
Weighted automata are often defined with initial and final weights, i.e., is replaced with an initial vector (and in particular may have several initial states with finite weight), and there are designated accepting states or a final weight vector . Then, the weight of a run also includes the initial weight and final weight (which may be ).
In the full version we show that the unambiguisability problem for this general model can be reduced to that of our setting. Therefore, it is sufficient to consider our model, without initial and final weights, and with a single initial state and a single accepting state (we use the latter assumption only in Section 4).
We write when there exists some run such that . We lift this notation to concatenations of runs, e.g., means that is a run on from to that reaches after the prefix . We also incorporate this to by writing e.g., to mean the minimal weight of a run .
A WFA is trim if every state is reachable from by some run and can reach an accepting state with some run. Note that states that do not satisfy this can be found in polynomial time (by simple graph search), and can be removed from the WFA without changing the weight of any accepted word. Throughout this paper, we assume that all WFAs are trim.
Determinisability
We say that WFAs and are equivalent if for every word . A WFA is determinisable if it is equivalent to some deterministic WFA. Our first point of comparison is the following problem.
Problem 1 (WFA Determinisation).
Given a WFA , decide whether is determinisable.
This problem was recently shown to be decidable [2].
Unambiguisability
A WFA is unambiguous if every word has at most one accepting run. Otherwise it is ambiguous. We say that is unambiguisable if it is equivalent to some unambiguous WFA. Our central object of study is the following problem.
Problem 2 (WFA Unambiguisability).
Given a WFA , decide whether is unambiguisable.
3 A Characterisation of Unambiguisability
It is well-known that determinisability of WFA can be characterised by means of gaps [12, 2], namely by how far two potentially-minimal runs can get away from one another. We defer the discussion about this type of gaps to Section 4.1.
We now present an analogous characterisation for unambiguisability. To distinguish the terms, we dub this characterisation -type gaps (where stands for “nambiguous”). Intuitively, we show that is unambiguisable if and only if there is some bound such that any two accepting runs on a word are no farther than apart after reading , if the higher run can still become minimal after reading . Conversely, is not unambiguisable iff for every there exists a word on which there exist two accepting runs that are farther than apart after reading , and such that the higher run becomes minimal. We call a witness to unambiguisability. Such a witness is depicted in Figure 3(a).
Definition 2 (-type -Gap Witness).
Consider a WFA . For , a -type -gap witness over an alphabet consists of a pair of words and states , such that there exist runs and and the following holds.
-
, i.e., the prefix is a minimal-weight run on .
-
, i.e., is a minimal accepting444Note that there may be lower non-accepting runs. run on .
-
, i.e., after reading , the run is at least above the minimal run .
We say that a WFA has -type gaps bounded by if there are no -type gap witnesses whose gap is greater than ; equivalently, there are no -type -gap witnesses. For brevity, we refer to -type gaps simply as “gaps” throughout this section. In Section 4, we restore the -type notation as it is needed there.
The characterisation is as follows.
Theorem 3.
Consider a WFA , then is unambiguisable if and only if there exists such that has gaps bounded by .
The detailed proof is given in the full version. We present the intuition here.
3.1 is Unambiguisable Bounded Gaps
Let and assume is unambiguisable. Let be an equivalent unambiguous WFA. In the full version, we recall standard results about unambiguous WFAs, namely that they can be negated. Additionally, WFAs can be summed using a standard product construction. We can therefore obtain a WFA for “”, so that for every we have that either , or . Thus every finite value of is .
Let denote the maximal weight appearing in any of and in absolute value. Thus, in a single transition, any run of these WFAs can change the weight by at most .
Assume by way of contradiction that does not have bounded gaps. In particular, there exists a -gap witness for , given by , and runs and as per Definition 2. Since is unambiguous, we can think of and as runs of with the same gap (i.e., the sum with does not affect the gap). Thus, the runs both end with weight .
This gap size therefore implies that either becomes very negative, or becomes very positive (see Figure 1). In the former case, is so low that we can find a short accepting suffix that leads to a negative-weight word, which is a contradiction. In the latter case, reading after must take a negative cycle, which we can pump to obtain a negative-weight word, which is again a contradiction. We conclude that has bounded gaps.
3.2 Bounded Gaps is Unambiguisable
Assume that has gaps bounded by . Intuitively, we would want an equivalent unambiguous WFA to track the gaps from the minimal run, and disregard runs that go higher than above it. Indeed, this is the characterisation in the determinisable case. Unfortunately, the minimal prefix of a run might not extend to a minimal run, as it may get “cut”. We therefore need to nondeterministically guess the minimal run. Then, however, we lose unambiguity.
To overcome this, we define a notion of canonical minimal run, and show that it is unique and can be guessed and verified using an unambiguous WFA. We illustrate this in Example 4 below.
Fix some arbitrary linear order on the states . We think of this order as a priority, where higher priority states are better. Consider a word accepted by and let be the set of minimal-weight accepting runs of on . Since is finite, we can denote its runs by for some . We now describe a procedure for culling runs from until we are left with a single run.
Consider the sequence defined inductively (from to ) as follows.
-
.
-
For we define .
Intuitively, we consider the set of all minimal runs on , and start scanning them from the end backwards. We first remove all runs for which is not -maximal. Then, from the remaining runs (if there are more than one), we keep only runs where is -maximal, and so on.
Note that for , the runs in are all identical from index . Therefore, has a single run , which we dub the canonical run on . By definition, is a minimal run of on . Also, since is a linear order, the procedure above is deterministic, meaning that is uniquely defined given .
We can now construct an equivalent unambiguous WFA . Intuitively, upon reading a word , the WFA attempts to track the canonical minimal run of on . To do so, keeps track of all the runs in a window of weight around a (nondeterministically chosen) state . If all the runs stay close to , then all the runs are tracked. However, once a run becomes too high or too low, the window tracks it as or , respectively. Then, when the word ends, if the current state is accepting, has minimal weight in the window (in particular there are no accepting runs with weight ) and has maximal priority, then this state accepts.
The crux of the construction is that due to the gap property, if we indeed track the canonical run, then all other accepting states end within its window, with higher weight or lower priority. In addition, other accepting runs that do not become minimal do not yield accepting runs of , since their windows invariably “believe” that the canonical run has lower weight or higher priority, and therefore are not marked as accepting.
Example 4.
Consider the WFA in Figure 2(a), with the ordering . There are two runs on the word , both minimal: and . We then have . Since , we have , which is the canonical run.
An equivalent unambiguous WFA is in Figure 2(b). The top run tracks “windows” around , reflecting the relative weight of each state from the corresponding state in . The bottom run similarly tracks . Notice, however, that from there is no transition to . The reason is that this state “believes” that , which currently has minimal weight above , can also reach with the same weight (namely ) as that from , but since has higher priority, this disables the transition from . In the formal construction this is enforced using a consistency check.
The precise construction and correctness proof are given in the full version.
4 Unambiguisability and Determinisability
In this section we use our characterisation of unambiguisable WFAs to obtain our main contribution – a reduction from the unambiguisability problem to the determinisation problem. The latter was recently shown to be decidable in [2].
4.1 A Gap Characterisation for Determinisability
We start by recalling a gap characterisation for determinisable WFAs, captured by -type gap witnesses (where stands for “eterministic”). See Figure 3(b) for a depiction.
Definition 5 (-type -Gap Witness).
For , a -type -gap witness over an alphabet consists of a pair of words and states , such that there exist runs and and the following holds.
-
, i.e. is a minimal-weight run on (not necessarily accepting).
-
, i.e., is a minimal accepting run on .
-
, i.e., after reading and reaching states , the run is at least above the minimal run .
We say that a WFA has -type gaps bounded by if there are no -type gap witnesses. A folklore result (see [2] for a precise proof) states that bounded -type gap witnesses characterise determinisability, as follows.
Theorem 6.
Consider a trim WFA , then is determinisable if and only if there exists such that has -type gaps bounded by .
Remark 7 (-type vs. -type gap witnesses).
There is an obvious similarity between -type witnesses (Definition 5) and -type witnesses (Definition 2), and understanding the differences between the two is key to our proof. First, notice that every -type -gap witness is in particular a -type -gap witness. Indeed, being a -type witness is a weaker requirement, so that the absence of -type -gap witnesses is a stronger requirement implying determinisability rather than unambiguisability.
For the converse, a -type -gap witness is not a -type -gap witness when the run cannot be continued to an accepting run on (and this is the only difference).
4.2 Reducing Unambiguisability to Determinisability
We now turn to our main result.
Theorem 8.
The Unambiguisability problem is reducible to the Determinisability problem.
Before delving into the proof, we give some intuition. Consider a WFA . We wish to construct from a WFA such that is unambiguisable if and only if is determinisable. In light of Remark 7, we actually aim that every -type gap -witness for induces a -type -gap witness for , and that does not have any -type -gap witnesses that are not also -type. The former requirement is easy – all we need to do is maintain enough of the structure of so as not to cause too much havoc (i.e., maintain the -type witnesses, which are already also -type).
Making sure there are no further -type witnesses in is the challenging part. To achieve this, we essentially “prune” the runs of as follows. At each state of , we maintain a commitment, which is a function that describes for every state whether is going to reach the accepting state (), whether is going to reach some states, but not the accepting state (), or whether is unreachable (). Then, with each letter we also receive an update function which states for every transition whether it is along an accepting run (), only along non-accepting runs (), or unavailable (). The commitments are updated deterministically, and must correctly follow the run DAG of on the word. Here, the run DAG is the layered graph whose -th layer contains the states reachable after the first letters, and whose edges are the transitions used between consecutive layers. The idea is then that in a -type witness in , the “lower” run on must be extendable to an accepting run on , since the updates given by dictate that there is such an extension. Thus, we can convert a -type witness to a -type one.
We prove Theorem 8 in the remainder of the section, starting with the construction.
4.2.1 The Reduction Construction
Consider a WFA . We assume (based on Remark 1) that is the unique accepting state of . We obtain from a WFA such that is unambiguisable if and only if is determinisable. We start with some auxiliary definitions before describing . Consider the set . We refer to each as a commitment, which intuitively prescribes to each state whether it is unreachable (), reachable and is along an accepting run () or reachable but not along an accepting run ().
Next, consider the set . We refer to each as an update, which intuitively prescribes to each whether the transition from to is not available (), is available along an accepting run () or is available but not along an accepting run (). We abbreviate and write , , to signify these three cases, respectively. We illustrate the construction in Figure 4.
We now turn to define . The states are . That is, each state is a pair where and . The alphabet is . That is, at each transition reads a letter as well as an update . The initial state is where is the commitment and for every . The accepting states are
The transitions are as follows. Consider two states and a letter . We have if and only if the following consistency conditions hold.
-
-consistency: (i.e., the projection to is a valid transition with the same weight).
-
Update consistency: for every we have if and only if . Equivalently, if and only if or . That is, the update correctly reflects the available transitions on , marking them with and . Note that this condition depends only on the letter , not on the states.
-
Outgoing consistency: for every we have:
-
–
If then for every we have (i.e., outgoing edges from states are marked or ).
-
–
If then there exists such that .
-
–
-
Incoming consistency: for every we have:
-
–
if there exists such that and , and for every if then .
-
–
if there exists such that and .
-
–
Intuitively, at each state commits to certain states (of ) leading to , and others not leading to . Then, reads a letter where describes exactly the available transitions on . The state component is updated nondeterministically according to in . The commitment is updated deterministically according to and : outgoing consistency checks that the old commitment can be extended correctly, i.e., that transitions reach some state and states do not admit transitions, and incoming consistency uniquely determines whether each state in the next layer is marked , , or .
At a higher-level, essentially reads a word along with a specific run-DAG on it, where some runs are marked “trimmed” (), which intuitively means that they do not lead to accepting states. The detailed correctness proof is in the full version. We outline the ideas here.
The first step is to show a correspondence between and . For a word , we denote by its projection on . Similarly, for a run of we denote by its projection on . We show in the full version that a run of can be projected to a run of by removing the commitments and updates, and conversely – a run of can be lifted to a run of by providing exactly the correct commitments and updates from the run DAG of . Moreover, this correspondence maintains the weights of the runs. We now proceed to show correctness.
is Not Unambiguisable is Not Determinisable
We prove this direction via the gap characterisation (Theorems 3 and 6). Specifically, we prove that if there is a -type -gap witness in , then there is a -type -gap witness in . This follows easily from the correspondence above: any -type -gap witness induces a -type -gap witness in , and this is in particular a -type witness (Remark 7).
is Unambiguisable is Determinisable
We turn to the “hard” direction. We again use gap witnesses, this time showing that every -type -gap witness in induces a -type -gap witness in . We first assume without loss of generality that is trim. However, we remark that this is an important assumption that is treated carefully in the proof. Consider therefore a -type -gap witness in , with the corresponding runs and (where is minimal on , and is minimal on ). We claim that is a -type -gap witness in . Note that this almost holds by Remark 7, and the only thing left to show is that can be extended to some run on .
This is where the consistency requirements in the construction of come into play. First, we observe that . Indeed, if, for example, , then the commitment reached so far forces that cannot proceed to an accepting state. But then the state cannot reach any accepting state on any word, as any accepting continuation would violate the outgoing and incoming consistency requirements. This contradicts the assumption that is trim. Thus, since is trim, such a state cannot occur in a witness.
Next, observe that since the commitment component is updated deterministically, we have . In particular, . Intuitively, this means that all the runs have the same opinion on whether reaches an accepting state, and this opinion is . We can then inductively follow the update consistency on from , and we are guaranteed that there is some run from on that reaches an accepting state, as required.
We remark that a concerned reader may wonder why we place so much emphasis on a simple property such as being trim. This is in a way the key to the proof: the construction of is such that if a state is not trimmed, then it can reach an accepting state on every upcoming suffix (provided there is at least one other run that can read this suffix). ∎
This concludes the proof of Theorem 8. Since determinisability is decidable by [2], we have the following.
Corollary 9.
The Unambiguisability problem for WFA is decidable.
Finally, we remark that currently there are no known complexity upper bounds for determinisability, and therefore our reduction does not provide complexity bounds either. It should be noted, however, that the reduction has a single-exponential blowup in the state space. Once complexity bounds for determinisation are established, it would be interesting to see if this blowup is necessary, or whether there is a polynomial-time (or indeed – logspace) reduction.
Theorem 10.
WFA Unambiguisability is PSPACE-hard.
Proof.
The PSPACE-hardness proof of determinisation in [2, Appendix D] actually uses -type witnesses, not just -type witnesses. It therefore works word-for-word to show that unambiguisability is also PSPACE-hard.
5 Minimising Registers in Cost Register Automata
Tropical cost register automata (CRAs) with linear register updates provide an alternative representation of WFAs, where nondeterminism is captured in the behaviour of several registers, keeping the control deterministic. This view offers a natural measure of nondeterminism by the number of registers needed to capture a function. In this section we show that unfortunately, minimising the number of registers is generally undecidable already for inputs with registers, and therefore also for any larger fixed number of registers.
A fundamental result in [5] is that CRAs are expressively equivalent to WFAs. In the full version we formally define CRAs, and refine this result by showing that CRAs with registers are equivalent to WFAs in which, for every word, the maximal number of states simultaneously reachable is . We refer to these as width- WFAs. Thus, our result is the following. The corresponding CRA statement and the full proof are in the full version, and we bring here only the core idea.
Theorem 11.
The following problem is undecidable already for : given a width WFA, decide whether there is an equivalent width WFA.
Consider a WFA of width , such that either for all , or there is a word such that , so that555This actually requires further assumptions, see the detailed proof. the weight of is . We want to separate the two cases using a reduction to the width-minimisation problem. We obtain from a new WFA as depicted in Figure 5. We add to the alphabet the letters and introduce new states . The behaviour is the following: we start both at and at (in ). When is read, runs from leave to all the . There, loses on , and is not allowed to read . In addition component maintains weight but cannot read .
The intuitive idea is the following. First, we claim that in any WFA equivalent to , the states must be tracked separately, leading to width at least. This is because upon reading the word e.g., for large , the gaps between the runs on the states are very large. Then, we can use the “killing letters” to eliminate all the runs but one, with a very short suffix (e.g., the suffix leaves only the run). For large enough , a WFA of width 5 cannot track these values correctly.
Next, we look at the component. If for all , the component is redundant, so we have an equivalent width-6 WFA. Otherwise, we claim that any equivalent WFA needs to track separately to all the . Here the reason is that using we can reach weight in the component (so is far below it, with weight ), but upon reading the component is killed and the weight suddenly jumps to , which again requires another component in any equivalent WFA. Thus, in this case any equivalent WFA must be of width at least .
In order to turn this construction into a proper reduction we show that we can obtain such a WFA for which the separation described above is undecidable. This uses the upper-boundedness construction of [3], which reduces the -halting problem for two-counter machines to deciding whether the function described by a WFA is bounded from above. The detailed proof in the full version states the precise properties of that construction and then applies the gadget described here.
6 Discussion and Future Research
In a nutshell, our work maps out the borders of “nondeterminism minimisation” in WFAs, showing on the positive side that unambiguisability is decidable, and on the negative side that reducing the width (equivalently – minimising the number of registers in a CRA) is undecidable.
Note that our results hold for the closely related settings such as max-plus WFAs over and min-plus or max-plus WFAs . For max-plus over , the setting is completely symmetric – simply negate all the weights to obtain an analogous min-plus WFA. For , note that adding a constant to all the transitions retains unambiguisability and determinisability (for both max-plus and min-plus). Therefore, we can start with a WFA and increase the weights so that they are all in , and the results stil hold. Note that “still holds” means that the general problem and the problem are computationally equivalent. The decidability already holds because this is a sub-case.
Our decidability proof of unambiguisability relies on the decidability of WFA determinisability. In particular, the current best known complexity bounds for determinisability are in the 6th level of the fast-growing hierarchy [1]. Since our reduction has a single-exponential blowup (and the fast-growing hierarchy is closed under single-exponential blowups) then the same complexity bounds hold for unambiguisability as well. For the lower bound, the best current bound is PSPACE-hardness, as per Theorem 10.
Two natural questions arise from our research. First, can we decide more relaxed ambiguity? E.g., can we decide if a given WFA has an equivalent 2-ambiguous/finitely ambiguous/polynomially-ambiguous WFA? The question of 2-ambiguisability seems very difficult, and currently out of reach. In particular, we do not know of a gap criterion that corresponds to 2-ambiguous WFAs. The second question is whether register minimisation becomes decidable for , which is perhaps of lesser importance, but it would nonetheless be nice to complete the picture.
In addition, now that some borders on decidability are in place, we can map out fragments, e.g., register minimisation for copyless CRAs [4].
References
- [1] Shaull Almagor, Guy Arbel, and Sarai Sheinvald. A complexity bound for determinisation of min-plus weighted automata. In 2026 41st Annual Symposium on Logic in Computer Science (LICS), 2026.
- [2] Shaull Almagor, Guy Arbel, and Sarai Sheinvald. Determinization of min-plus weighted automata is decidable. In Proceedings of the 2026 Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), pages 247–257. SIAM, 2026. arXiv:2503.23826.
- [3] Shaull Almagor, Udi Boker, and Orna Kupferman. What’s decidable about weighted automata? Information and Computation, 282:104651, 2020. Special issue on 9th International Workshop Weighted Automata: Theory and Applications (WATA 2018). doi:10.1016/j.ic.2020.104651.
- [4] Shaull Almagor, Michaël Cadilhac, Filip Mazowiecki, and Guillermo A. Pérez. Weak cost register automata are still powerful. Int. J. Found. Comput. Sci., 31(6):689–709, 2020. doi:10.1142/S0129054120410026.
- [5] Rajeev Alur, Loris DAntoni, Jyotirmoy Deshmukh, Mukund Raghothaman, and Yifei Yuan. Regular functions and cost register automata. In 2013 28th Annual ACM/IEEE Symposium on Logic in Computer Science, pages 13–22. IEEE, 2013. doi:10.1109/LICS.2013.65.
- [6] Jason P Bell and Daniel Smertnig. Computing the linear hull: Deciding deterministic? and unambiguous? for weighted automata over fields. In 2023 38th Annual ACM/IEEE Symposium on Logic in Computer Science (LICS), pages 1–13. IEEE, 2023. doi:10.1109/LICS56636.2023.10175691.
- [7] Yahia Idriss Benalioua, Nathan Lhote, and Pierre-Alain Reynier. Minimizing Cost Register Automata over a Field. In 49th International Symposium on Mathematical Foundations of Computer Science (MFCS 2024), volume 306 of Leibniz International Proceedings in Informatics (LIPIcs), pages 23:1–23:15. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2024. doi:10.4230/LIPIcs.MFCS.2024.23.
- [8] Ronald Book, Shimon Even, Sheila Greibach, and Gene Ott. Ambiguity in graphs and expressions. IEEE Transactions on Computers, 100(2):149–153, 1971. doi:10.1109/T-C.1971.223204.
- [9] Krishnendu Chatterjee, Laurent Doyen, and Thomas A Henzinger. Quantitative languages. ACM Transactions on Computational Logic (TOCL), 11(4):1–38, 2010. doi:10.1145/1805950.1805953.
- [10] Laure Daviaud. Register complexity and determinisation of max-plus automata. ACM SIGLOG News, 7(2):4–14, 2020. doi:10.1145/3397619.3397621.
- [11] Manfred Droste, Werner Kuich, and Heiko Vogler. Handbook of weighted automata. Springer Science & Business Media, 2009.
- [12] Emmanuel Filiot, Ismaël Jecker, Nathan Lhote, Guillermo A Pérez, and Jean-François Raskin. On delay and regret determinization of max-plus automata. In 2017 32nd Annual ACM/IEEE Symposium on Logic in Computer Science (LICS), pages 1–12. IEEE, 2017. doi:10.1109/LICS.2017.8005096.
- [13] K. Hashiguchi. Limitedness theorem on finite automata with distance functions. Journal of computer and system sciences, 24(2):233–244, 1982. doi:10.1016/0022-0000(82)90051-4.
- [14] K. Hashiguchi. New upper bounds to the limitedness of distance automata. Theoretical Computer Science, 233(1-2):19–32, 2000. doi:10.1016/S0304-3975(97)00260-0.
- [15] Ismaël Jecker, Filip Mazowiecki, and David Purser. Determinisation and unambiguisation of polynomially-ambiguous rational weighted automata. In Proceedings of the 39th Annual ACM/IEEE Symposium on Logic in Computer Science, pages 1–13, 2024. doi:10.1145/3661814.3662073.
- [16] Daniel Kirsten. Distance desert automata and the star height problem. RAIRO-Theoretical Informatics and Applications, 39(3):455–509, 2005. doi:10.1051/ITA:2005027.
- [17] Daniel Kirsten and Sylvain Lombardy. Deciding unambiguity and sequentiality of polynomially ambiguous min-plus automata. In 26th International Symposium on Theoretical Aspects of Computer Science STACS 2009, pages 589–600. IBFI Schloss Dagstuhl, 2009. doi:10.4230/LIPIcs.STACS.2009.1850.
- [18] D. Krob. The equality problem for rational series with multiplicities in the tropical semiring is undecidable. International Journal of Algebra and Computation, 4(3):405–425, 1994. doi:10.1142/S0218196794000063.
- [19] H. Leung and V. Podolskiy. The limitedness problem on distance automata: Hashiguchi’s method revisited. Theoretical Computer Science, 310(1-3):147–158, 2004. doi:10.1016/S0304-3975(03)00377-3.
- [20] Mehryar Mohri. Compact representations by finite-state transducers. In 32nd Annual Meeting of the Association for Computational Linguistics, pages 204–209, 1994. doi:10.3115/981732.981760.
- [21] Mehryar Mohri. Finite-state transducers in language and speech processing. Computational linguistics, 23(2):269–311, 1997.
- [22] Azaria Paz. Introduction to probabilistic automata. Academic Press, 2014.
- [23] Marcel Paul Schützenberger. On the definition of a family of automata. Inf. Control., 4(2-3):245–270, 1961. doi:10.1016/S0019-9958(61)80020-X.
