Manuscript Offprint
arXiv:2611.07781Reliability-Aware Z-Grammars and Z-Automata over a Credible-Grade Semiring
OVER A CREDIBLE-GRADE SEMIRING
Sherzod Turaev*
Department of Computer Science and Software Engineering College of Computing and Artificial Intelligence United Arab Emirates University Al Ain, United Arab Emirates sherzod@uaeu.ac.ae
Nor Haniza Sarmin†
Department of Mathematical Sciences, Faculty of Science Universiti Teknologi Malaysia Johor Bahru, Malaysia nhs@utn.my
Wan Heng Fong‡
Department of Mathematical Sciences, Faculty of Science Universiti Teknologi Malaysia Johor Bahru, Malaysia fwh@utn.my
November 6, 2026
Abstract
Fuzzy grammars and weighted automata usually attach to each word a single grade, which records how strongly the word is generated but not how far that record can be trusted. We study weighted grammars and finite automata whose weights are scalar grade-reliability pairs inspired by Z-numbers. Sequential composition multiplies both components, while aggregation selects a derivation by its credible grade, the product of grade and reliability, with ties resolved by grade. On the canonical carrier, in which the weights of zero grade or zero reliability are identified with zero, the resulting structure is a commutative selective semiring, isomorphic to a subsemiring of a lexicographically ordered product, and its credible-grade projection is a homomorphism onto the Viterbi semiring. We compare several alternative combination rules and identify the carriers on which the relevant algebraic laws hold. Standard results on weighted automata then yield a rational characterization and closure properties. We prove that positive credible-grade cuts and selected-run reliability filters of finite automata are regular and effectively constructible for rational weights and thresholds, and we exhibit distinctions that the scalar projection cannot see: a reliability filter that no scalar reweighting of the same one-state automaton implements, nonmonotonicity under the addition of runs, and an unambiguous automaton with no deterministic equivalent although its scalar projection is deterministic. A count-based example illustrates an attestation penalty for grammar rules. The construction concerns scalar pairs, and its extension to arbitrary fuzzy-valued Z-numbers remains open.
*Corresponding author. ORCID: 0000-0001-6661-8469. †ORCID: 0000-0003-4291-5746. ‡ORCID: 0000-0001-8202-4388.
Keywords Z-numbers · weighted automata · fuzzy grammars · selective semiring · reliability-aware parsing · formal power series
1 Introduction
The theory of formal languages has, from early in its history, been generalized so that a grammar or an automaton carries not only the bare fact that a word belongs to a language but a quantity attached to that word. The fuzzy grammars of Lee and Zadeh [1] graded each production by a membership degree and read the membership of a word as the best such degree along a derivation. The weighted automata that Schützenberger [2] introduced in the same period assigned to each transition an element of a semiring and computed the behavior of the automaton as a formal power series. The modern synthesis collected these and many other developments into a single theory of weighted automata over an arbitrary semiring, within which fuzzy, probabilistic, and distance-based devices are recovered by a choice of the weight structure [3]. In the fuzzy and probabilistic instances that motivate the present work, the weight is a single number, whether a membership grade, a probability, a cost, or a value in a lattice-ordered monoid [4], and it records how strongly a word is generated. Multicomponent weights are not new in themselves, since product, lexicographic, and derivation-carrying semirings attach several quantities to a path [5, 6], and intuitionistic fuzzy automata carry a degree of membership together with a degree of nonmembership [7]. In none of these, however, does the second component qualify how far the first can be trusted.
A single number is not always an adequate record of what is known about a quantity. In the elicited judgments on which decision models increasingly rely, and in the estimates that data-driven systems derive from finite samples, a value arrives together with an indication of how far it is to be trusted, and the two should not be collapsed into one. Zadeh [8] proposed the Z-number as the formal device for exactly this pairing. A Z-number attaches to a variable a fuzzy restriction , the imprecise value itself, together with a second fuzzy quantity that measures the reliability of that restriction, understood as a graded constraint on the probability that the variable indeed satisfies . The construction has been developed into a full arithmetic and a decision calculus [9, 10] and applied across the quantitative decision sciences. Our own work on sustainable trip planning has used it to attach to the rating of a place a reliability built from the number of reviews behind it, benchmarking that evidence-aware representation against alternative formalisms across a national catalog [11]. In all of this the Z-number is a datum or a decision variable; it has not been asked to pass through a grammar.
The question this paper takes up is whether it can. Formal language theory knows how to carry a grade through a derivation, and the second component of a Z-number is, on its face, just another number in , so one might expect the reliability to ride along beside the grade, each component combined by its own operations as a derivation proceeds. The expectation is sound algebraically and unsound semantically, and the gap between the two is instructive rather than incidental. If grades and reliabilities are each composed along a derivation and each aggregated across competing derivations by their own operations, the result is a product of two semirings and hence a semiring. The pair it reports for an ambiguous word, however, may join the best grade of one derivation to the best reliability of another, and then it describes no derivation of the word at all. A reliability qualifies a particular derivation and must stay attached to it, which requires coupling the two components: the competing derivations are compared, one of them is selected, and its grade and its reliability are reported together. Coupling by selection keeps the reported pair coherent, but it puts the semiring laws at risk, since distributivity then fails at the degenerate weights, in which one component is zero and the other is not. A structure that is not a semiring may lose the agreement of the recognizable and the rational series, the agreement of the run and the initial-algebra semantics, and the decision procedures that make the theory of weighted automata usable, so a naively coupled Z-grammar would be a definition without a theory. Carrying a reliability through a grammar is therefore not a matter of pairing two known constructions. It requires a coupled combination of the two components under which the weights still form a semiring, together with an argument that this combination is faithful to what the reliability is supposed to mean.
The existing generalizations of fuzzy grammars do not address this, because they generalize a different part of the device. The computing-with-words automata of Ying [12], extended to Turing machines by Wang and Qiu [13], replace the input symbols of a fuzzy automaton by words in the sense of linguistic terms, so that the machine reads imprecise observations, while the transition weight remains a scalar grade; the generalization is on the alphabet, not on the weight. Grammars built on type-2 fuzzy sets, whose theory goes back to Mizumoto and Tanaka [14], replace the grade itself by a type-2 membership, a fuzzy set of grades, which is a second order of fuzziness about the value, whereas a Z-number's second component is a reliability about the probability of the first, a different kind of second order altogether. Neither development carries a reliability through a derivation, and neither meets the coupling problem just described, since in neither must a second component stay attached to the derivation it qualifies. The multicomponent semirings mentioned above do carry a second quantity, but it either describes the word on the same footing as the first or merely breaks ties (Section 2.7). To the best of our knowledge, no weighted grammar or automaton whose weights carry the reliability component of a Z-number has been proposed, and the extensions of Z-numbers surveyed by Banerjee, Pal, and Pal [15] include no formal-language model. The construction of such devices is the contribution of this work.
We resolve the problem as follows. We define the Z-grammar and the Z-automaton as weighted devices whose weights are Z-weights, pairs of a grade and its reliability, combined by a weight structure that fixes how the two components compose along a derivation and how competing derivations are aggregated. We study scalar grade-reliability pairs inspired by Z-numbers. The semiring developed below is a model for these pairs; it is not a semiring of arbitrary fuzzy-valued Z-numbers, and no general arithmetic-preserving defuzzification is assumed, so that the fuzzy-valued extension is left open (Remark 3.4). Along a derivation, grades and reliabilities multiply. The multiplicative law for reliabilities admits a probabilistic reading: if the scalar reliability of a restriction is read as a probability that the restriction holds, then under an explicit independence assumption between occurrences the probability that all the restrictions used by a derivation hold is the product of their reliabilities (Section 2). Where that assumption cannot be defended, notably when one estimated rule is used more than once, we read the product as a declared path score. Across derivations, the structure selects the derivation of greatest credible grade, the grade discounted by its reliability, and reports its grade and its reliability together. We prove that this reliability-aware credible-grade structure, once its degenerate weights are identified with the zero of the semiring, is a commutative semiring whose credible-grade map is a homomorphism onto the Viterbi semiring. The Z-grammars and Z-automata built over it therefore inherit the theory of weighted automata over a commutative semiring, now carrying a reliability alongside the grade at every step. We then compare it with alternative structures obtained from the same parameter families, and we illustrate with a complete count-based example how the reliability can act as an attestation penalty on grammar rules.
The specific contributions of the paper are the following.
-
We isolate what the reliability component adds beyond its scalar projection, which is where the results specific to the pair lie. A reliability filter on a one-state Z-automaton cannot be implemented by any positive scalar reweighting of the same skeleton (Proposition 5.12); the filter on the selected run is not monotone under the addition of runs, whereas every upward scalar threshold is (Proposition 5.13); and an unambiguous Z-automaton can have no deterministic equivalent over any commutative semiring containing the Z-weights, although its scalar projection is deterministic (Proposition 5.11). We also prove that the positive credible-grade cuts and the selected-run reliability filters of every finite Z-automaton with rational weights and thresholds are regular and effectively constructible (Proposition 5.7).
-
We define the Z-grammar and the Z-automaton over grade-reliability pairs and a coupled combination of the two components, the credible-grade structure Z, which multiplies both components along a derivation and selects among derivations by the credible grade, ties broken by grade. On the canonical carrier it is a commutative selective semiring, the map embeds it into the lexicographic product of two Viterbi semirings, and the credible grade is a semiring homomorphism onto the Viterbi semiring. Neither the embedding nor the semiring laws are new as general theorems, since selective semirings and lexicographic products are classical; what is specific is the choice of the order and of the carrier.
-
We compare alternative combination rules through a three-parameter family of Z-weight schemes, fixed by a grade law, a path-reliability law, and an aggregation scheme, and identify the carriers on which eight representative structures from these families satisfy the semiring laws. It shows that the separable structure is a semiring on the full carrier but decouples the reported reliability from the selected derivation, that select-by-grade is a semiring on the grade-zero quotient but induces no operation on the double quotient, and that coupling by selection fails distributivity on every carrier examined when grades are combined by the minimum.
-
We record the rational theory of Z-languages that follows from the semiring laws, namely the Kleene-Schützenberger characterization, the conservative extension of the max-product fuzzy theory, the closure properties, and the regularity of supports; these are standard corollaries and are labeled as such. We prove that the twins property suffices for the determinization of unambiguous Z-automata, leave the ambiguous case open, and locate the boundary at which behavioral equivalence becomes undecidable.
-
We give a complete count-based example in which the grade of a rule is its maximum-likelihood probability and its reliability is an evidence score that grows with its count. The example shows that this attestation penalty can change the selected analysis; it is not an evaluation of parsing accuracy.
The classification rests on a deliberate methodological choice. Each positive semiring claim is proved in the text, and each distributivity failure among the scalar structures is witnessed by an explicit counterexample, found by exact rational computation over a fixed grid of grades and reliabilities. The grid computation proves no semiring law, since a finite grid cannot; it locates the failures and confirms the proved identities at the grid points, so that the boundary between the semirings and the strong bimonoids is drawn by proofs and checked witnesses rather than by expectation. Two structures that a quick reading would treat alike are separated in this way. The separable structure is a semiring on the full carrier, whereas the select-by-grade structure, which couples the two components, fails distributivity at the weights of grade zero and nonzero reliability and becomes a semiring only on a quotient. The reliability-aware structure is singled out because it is a semiring that keeps the reported pair attached to a single derivation and lets the reliability enter the choice among derivations, not because it was preferred in advance.
The paper is organized as follows. Section 2 recalls fuzzy numbers, Z-numbers, and the background on grammars and weighted automata, and it separates the three readings of reliability that the paper keeps apart. Section 3 defines the Z-weight structure, the Z-grammar, and the Z-automaton and proves the semiring laws. Section 4 compares alternative combination rules and the carriers on which they satisfy these laws. Section 5 develops the rational theory and the results specific to the reliability component, Section 6 gives the count-based example, and Section 7 concludes with the limitations and the open problems.
2.1 Fuzzy sets, fuzzy numbers, and their operations
A fuzzy set on a universe is identified with its membership function , where is read as the degree to which belongs to , so that the ordinary (crisp) subsets of are recovered as the fuzzy sets whose membership takes only the values 0 and 1. The support of is , its core is , its height is , and is said to be normal when its height equals one. For a level , the -cut of is the crisp set , and the family of -cuts determines uniquely through , which is the device by which operations on fuzzy quantities are reduced to operations on ordinary intervals.
A fuzzy number is a fuzzy set on the real line that is normal, whose -cuts for are closed bounded intervals , and whose support has compact closure; equivalently, is normal, convex, and upper semicontinuous with bounded support. Boundedness of the support does not follow from the compactness of the -cuts, since the membership function has the compact -cuts for every and an unbounded support. Two parametric families suffice for almost all of the examples below. A triangular fuzzy number, written with , has membership rising linearly from 0 at to 1 at the peak and falling linearly back to 0 at ; a trapezoidal fuzzy number is flat at height one on the whole core . The arithmetic of fuzzy numbers is governed by Zadeh's extension principle, under which a function is lifted to fuzzy arguments by
and which, for addition and for multiplication by a positive scalar, acts cut by cut as ordinary interval arithmetic, .


Figure 1: A Z-number for the valuation (about 45 minutes, very sure). The restriction A is a triangular fuzzy number on the value axis; the reliability B is a fuzzy number on [0, 1] constraining the probability of equation (2).
Example 2.1 (A triangular fuzzy number and a sum). Let represent the imprecise quantity about 3. Its membership is on , on , and zero elsewhere, and its -cut is the interval . Adding a second triangular number , the extension principle gives, level by level, , whose endpoints trace the triangular number . Addition of triangular numbers is therefore componentwise on the three vertices, a fact that keeps the examples in the later subsections elementary.
The grades produced along a computation must be combined, and the operation that combines them is a triangular norm. A -norm is a commutative, associative, monotone binary operation with unit 1; the three standard instances are the minimum , the product , and the Lukasiewicz -norm . Its dual -conorm (s-norm), with unit 0, aggregates alternatives, the canonical instance being the maximum . The pair underlies the max-min automata of Section 2.5, while the pair underlies their max-product variant and, as Section 2.6 shows, coincides with a weighted automaton over a particular semiring.
Example 2.2 (Combining grades). Two production grades 0.8 and 0.6 used in one derivation combine, under the minimum t-norm, to , and under the product t-norm to . The product penalizes the length of a derivation, since each further step can only lower the running grade, whereas the minimum records only the weakest step; this difference, immaterial for a single step, becomes decisive when the reliability of a long derivation is at stake, as Remark 2.5 makes explicit.
2.2 Z-numbers and their semantics
A Z-number, introduced by Zadeh [8] to represent information that is at once imprecise and only partially reliable, is an ordered pair in which the first component A is a fuzzy number that acts as a restriction on the values of a real-valued uncertain variable X, and the second component B is a fuzzy number on the unit interval [0,1] that measures the reliability, or certainty, of that restriction. Both components are, in the original setting, expressed in natural language, so that the canonical illustration is the pair (about 45 min, very sure) shown in Figure 1. The precise meaning of the second component is probabilistic: writing for the (unknown) probability density of X, the quantity constrained by B is the probability of the fuzzy event “X is A”,
so that is a fuzzy restriction on this probability rather than on itself, and a Z-number is in this sense a second-order object, a restriction together with a graded certainty about how probable that restriction is.
When a scalar reliability is wanted we summarize by a number , which in this paper is the centroid of , a conventional defuzzification that locates the constraint on ; it is a summary of that constraint and not itself an observed probability. A discrete Z-number restricts both components to finite supports, which is the form in which the arithmetic is implemented, whereas a continuous Z-number keeps the fuzzy numbers continuous; a related construct, the -number , pairs the restriction with an actual probability distribution rather than with a reliability about one, and serves as the computational substrate on which the arithmetic of Section 2.3 is defined.
Example 2.3 (A linguistic and a data-driven Z-number). The valuation (about 45 minutes, very sure) is modeled by the restriction and the trapezoidal reliability of Figure 1, read as the assertion that the duration is near 45 minutes and that this assertion is very probably correct. The second component need not be elicited; it can be derived from evidence. If a place carries a mean rating of about 4.4 stars computed from n = 9 reviews, and the characteristic count of the reference class of places is estimated at m = 20, then the evidence score can be used to place the reliability constraint B of the Z-number (about 4.4, B) near 0.31 rather than near one, whereas a place with n = 200 reviews would receive . The two second components differ in kind, one elicited and one computed from a count, and the next paragraph keeps them apart.
Three readings of reliability Three objects that are easily conflated must be kept apart in what follows. The first is Zadeh's fuzzy constraint on the probability of (2). The second is a scalar summary , such as the centroid, which locates that constraint but is not an observed probability and does not commute with the arithmetic of fuzzy numbers (Remark 3.4). The third is an evidence score such as , computed from counts, which is a modeling choice and is not, without a calibration argument, either the centroid of a constraint or a probability. The structures of Sections 3 to 5 are stated for scalar grade-reliability pairs and depend on none of these readings; we call them Z-number-inspired for this reason, and we state wherever an interpretation is used which reading it requires. The probabilistic justification of the product law in Remark 2.5 reads the reliability as a probability, and the example of Section 6 uses an evidence score.
2.3 The arithmetic of Z-numbers
Because the weights that decorate a grammar or an automaton will be pairs inspired by Z-numbers, the way two Z-numbers combine must be recalled. The arithmetic of Aliev et al. [9, 10] computes a binary operation , for among addition, subtraction, multiplication, and division, in two stages. In the first stage the restriction of the result is obtained from the restrictions of the operands alone by the extension principle (1), so that for addition is computed exactly as in Example 2.1 and does not depend on or . In the second stage the reliability is recovered from the probabilistic layer: among the probability distributions compatible with each operand, in the sense that they are admitted by through (2), the distribution of the result is formed by convolution, and is assembled from the induced probabilities of the fuzzy event carried by , an assembly that the cited works reduce to linear and small nonlinear programs.
Two structural facts matter for what follows. First, the independence of the restriction from the reliabilities means that can influence a decision only through a rule that reads it, never through the value that the restriction delivers. Second, the reliability of a sum is not an accumulation of evidence. Pooling independent measurements of one quantity raises the reliability of the pooled estimate toward one, whereas the second component of a Z-number sum constrains the probability of a different event, that the sum satisfies the restriction , and is computed from the distributions admitted by the operands, not from the number of observations behind them. Adding Z-numbers and pooling the evidence behind them are therefore distinct operations. Neither of them composes the steps of a derivation, and Example 2.4 and Remark 2.5 keep the three apart.
Example 2.4 (What the second component of a sum guarantees). Consider two operands (about 2, sure) and (about 3, sure), with restrictions and on independent variables X and Y. The restriction of the sum is , about 5, obtained vertex by vertex as in Example 2.1. For its reliability, the extension principle (1) gives, for all x and y,
and integrating this inequality against the joint density of , which is the product of the marginal densities, gives through (2)
The product of the two reliabilities is therefore a lower bound on the reliability of the sum, and the bound is not tight in general: the sum reaches the peak 5 also at , where while
. If each operand holds with probability 0.9, the sum holds with probability at least 0.81 and possibly more. Because the second stage of the arithmetic forms from induced probabilities of this kind, the second component need not drift downward under repeated Z-addition.
Remark 2.5 (Reliability along a derivation). The reliability law used from Section 3.1 on is not a consequence of Z-arithmetic; it rests on an independence assumption, which we make explicit here. A derivation asserts that every one of its steps satisfies its restriction, a conjunction and not a sum. Let the steps carry restrictions on variables , and take the scalar reliability to be the probability of (2) itself, a reading distinct from a summary of Zadeh's constraint and from an evidence score. If these restrictions hold independently, with the conjunction of fuzzy events read through the product of their membership functions, the probability that all of them hold is . This product is the multiplicative reliability law of Section 3.1: a long derivation is no more reliable than its least reliable step, because it asserts more, and not because adding Z-numbers lowers their reliability.
The independence must hold between occurrences, and it fails in an important case. If a derivation uses the same estimated rule twice, and is the event that the estimate of that rule is adequate, with , then the two uses do not create two independent adequacy events, since and not . The value belongs to a different model, in which each occurrence of the rule succeeds or fails independently with probability . Rules estimated from a shared corpus are, in addition, dependent through that corpus, and the rules of one nonterminal are dependent through the multinomial distribution of its counts. We therefore distinguish a per-occurrence reliability, for which the product is a probability under the stated independence, from epistemic confidence in a shared parameter, for which it is not, and outside the first reading we treat the product as a declared path score rather than as a probability. The score carries a length penalty: a derivation with more steps receives a lower score even when its steps are as well attested as those of a shorter one, so that parses of different lengths are compared on unequal terms (Example 3.7), which is a limitation of the multiplicative law. Definition 4.1 accordingly keeps the path-reliability law as a parameter.
2.4 Words, languages, grammars, and automata
We recall the classical apparatus in the notation used below. An alphabet is a finite nonempty set of symbols; a word (string) is a finite sequence of symbols; the empty word is ; the set of all words is the free monoid under concatenation with unit ; and a language is a subset . A grammar is a quadruple in which is a finite set of nonterminals disjoint from , is the start symbol, and is a finite set of productions with strings over and containing at least one nonterminal. Writing for the one-step rewriting relation and for its reflexive-transitive closure, the language generated by is . The Chomsky hierarchy grades grammars by the shape of their productions into regular (type 3), context-free (type 2), context-sensitive (type 1), and unrestricted (type 0), with the strictly increasing language families that bear the same names; a right-linear grammar, whose productions have the forms and and with a single letter, is the canonical presentation of a regular grammar. For context-free grammars we count leftmost derivations, so that each derivation tree corresponds to exactly one derivation and the different rewriting orders of one tree are not counted separately; for general grammars a derivation is a sequence of one-step rewritings.
A nondeterministic finite automaton is a quintuple with a finite set of states, a transition function, the initial state, and the accepting states; accepts when some path labeled by leads from into , and the recognized language is the set of accepted words. The classical equivalence that organizes the later generalization is that the right-linear grammars and the finite automata describe exactly the same family, the regular languages, each convertible into the other by reading nonterminals as states and productions as transitions.
Example 2.6 (A context-free and a regular description). The grammar with productions generates the nonregular context-free language , since each use of the first production adds a matching pair and the derivation produces . By contrast, the right-linear grammar generates the regular language of one or more 's followed by a single . Reading as an initial state as a state , and the terminating production as a transition into an accepting state turns it into the automaton that reads from to , loops on at , and reads from to . This automaton recognizes the same language, and it is the automaton drawn, with weights added, in Figure 2.
Table 1: Common weight structures and the quantity each makes a weighted automaton compute.
| Semiring | Domain | Behavior computes | ||
|---|---|---|---|---|
| Boolean | acceptance (a language) | |||
| Probability | + | total path mass (a word probability under stochastic normalization) | ||
| Viterbi | max | best-path grade (max-product fuzzy) | ||
| Tropical (min-plus) | min | + | least-cost (shortest) path | |
| Fuzzy (max-min) | max | min | best-path membership |
2.5 Fuzzy grammars and fuzzy automata
The first graded generalization, due to Lee and Zadeh [1], attaches to each production a degree of membership. A fuzzy grammar is a system in which is a grammar and assigns to each production a grade; the grade of a derivation is the t-norm (classically the minimum, or alternatively the product) of the grades of the productions it uses, and the fuzzy language generated is the membership function
the supremum being taken over all derivations of , so that is a genuine fuzzy subset of . The automaton-side counterpart is a fuzzy finite automaton, in which the transition function is replaced by a map grading each transition, and the membership of a word is the maximum over paths of the minimum (or the product) of the transition grades along the path, the construction known as a max-min (respectively max-product) automaton. Replacing the unit interval by a lattice-ordered monoid, as Li and Pedrycz [4] do for fuzzy finite automata, extends the same idea beyond and prepares the move to arbitrary weight structures made in the next subsection.
Example 2.7 (A fuzzy right-linear grammar). Grade the productions of the right-linear grammar of Example 2.6 as (0.9), (0.5), (0.7) and read the grade of a derivation under the product t-norm. The word has a unique leftmost derivation , using the productions graded 0.9, 0.5, 0.7, so its grade is , and since no other derivation yields the supremum in (3) gives . The word has the single derivation of grade , so the shorter word is the more strongly generated, which is the qualitative signature of the product reading already noted in Example 2.2.
2.6 Weighted automata and their weight structures
The fuzzy automata of the previous subsection are a special case of a construction in which the grades are drawn from an algebraic structure chosen to fit the quantity being computed. A semiring is a tuple in which is a commutative monoid, is a monoid, multiplication distributes over addition on both sides, and annihilates under multiplication. The canonical instances, collected in Table 1, specialize the same machinery to Boolean recognition, to probability, to shortest paths, and to fuzzy membership, the last of these being exactly the max-product reading of Section 2.5. A weighted finite automaton over assigns to each transition a weight in , and optionally initial and final weights; the weight of a path is the product of its transition weights, and the behavior of the automaton is the function
the sum being taken over all paths labeled by , so that the behavior is a formal power series . The organizing result of the theory, the Kleene–Schützenberger theorem, states that the series realized by weighted automata over a semiring are exactly the rational series, those built from the letters by sum, product, and iteration, generalizing Kleene's theorem for the Boolean case.
Example 2.8 (One automaton, several weight structures). Figure 2 shows a weighted automaton on the regular skeleton of Example 2.6, with the transition weighted 0.9, the self-loop weighted 0.5, and weighted 0.7, with initial weight 1 on , final weight 1 on , and all other initial and final weights 0. Over the Viterbi semiring the word has the single accepting path of weight , so , which reproduces the grade computed from the fuzzy grammar of Example 2.7. Under the correspondence of Example 2.6, each production of that grammar becomes the transition of the same grade, so the fuzzy grammar is this weighted automaton in disguise. Reinterpreting the very same weights over the tropical semiring , the behavior of

Figure 2: A weighted automaton on a regular skeleton (Example 2.8). Each transition carries a label and a weight; the behavior aggregates path weights by the operations of the chosen weight structure, here the Viterbi semiring.
becomes , now read as the least accumulated cost of reading the word, which shows how the choice of weight structure, and not the automaton, fixes the meaning of the computation.
The requirement that the weights form a full semiring is stronger than the definition of the behavior (4) actually needs. When distributivity is dropped and only the two monoid structures are retained, the weights form a strong bimonoid, over which weighted automata remain well defined although the run semantics and the initial-algebra semantics may diverge [19]. A Chomsky-Schützenberger-style characterization has been established over weight structures still more general than semirings, encompassing valuation monoids and averaging operations [20]. Strong bimonoids are the general setting in which several natural ways of combining Z-weights live, and several of the structures classified in Table 2 are strong bimonoids but not semirings. The structure on which the paper rests is, however, a commutative semiring (Proposition 3.2). The full theory of weighted automata over semirings therefore applies to it, and the weaker rungs of this hierarchy serve to locate its alternatives, not to admit it.
2.7 Related graded devices
Zadeh's program of computing with words produced one of the formalisms related to the one developed here, and the distinction between the two must be stated at the outset. In the model of Ying [12], a fuzzy automaton is fed not strings of symbols but strings of fuzzy subsets of the alphabet, that is, words in the sense of linguistic terms, and an extension principle carries computing with values up to computing with words. Wang and Qiu [13] carry the same approach from fuzzy automata to Turing machines, and Cao, Ying, and Chen [21] study the retraction and the generalized extension of computing with words. In every case the object that is generalized is the input, whose symbols become words while the transition weight remains a scalar grade drawn from [0, 1]. The direction pursued below is orthogonal: the input alphabet stays classical, and it is the weight that is generalized, from a scalar grade to a scalar grade-reliability pair inspired by a Z-number , which carries both a value and its reliability. The next section composes such weights along a derivation and selects among competing derivations by their credible grade, the grade discounted by its reliability. Keeping these two axes of generalization apart, the symbol axis of computing with words and the weight axis of the present work, is essential to locating the contribution against the literature.
A second group of relatives carries more than one quantity along a path. Products of semirings aggregate each component independently; lexicographic semirings select by a first component and use a second to break ties [6]; selective semirings return one operand of every sum and correspond to total orders compatible with the product [22]; and the derivation semirings of semiring parsing carry the best derivation along with its score [5]. Intuitionistic fuzzy automata pair a degree of membership with a degree of nonmembership [7, 23]. The structure of Section 3 belongs to this group algebraically, being a selective semiring with a lexicographic description, and Section 5.7 compares it with these devices in detail. What distinguishes it is the role of its second component, which qualifies the first rather than describing the word.
3 Z-grammars and Z-automata
The preliminaries assembled the three ingredients of the construction, namely a Z-number-inspired pair as a two-component weight, a grammar or an automaton as its carrier, and the weighted-automata apparatus of Section 2.6 as the algebraic frame. We now bring them together. The guiding principle is that the single graded quantity of a fuzzy grammar, the production grade of Section 2.5, is replaced by a Z-weight, an ordered pair that records both a grade, how strongly the production or transition fires, and a reliability, how much that grade is to be trusted. The two components are propagated along a derivation or a run by operations chosen so that grades compose as degrees and reliabilities compose as trust, while the competing derivations of a word are weighed by their grade and their reliability together rather than by either alone. A Z-grammar and a Z-automaton are then, respectively, a weighted grammar and a weighted automaton over the resulting weight structure. The behavior of each is a formal power series whose values are scalar grade-reliability pairs, assigning to every word not a single membership degree but a membership degree together with its reliability; fuzzy-valued weights are discussed, and left open, in Remark 3.4.
3.1 The Z-weight structure
So that the definitions and the examples remain transparent, we work throughout this section with the scalar summaries of the two components, writing a Z-weight as a pair with the grade and a scalar reliability, which in an application may be a summary or an evidence score (Section 2.2). The fully fuzzy-valued version, in which and are themselves fuzzy numbers, is not treated here (Remark 3.4 and Section 7). The reading of a weight makes a quantity decisive only to the extent that it is both high and trusted, so the quantity that orders competing derivations is the credible grade , the grade discounted by its reliability. We write and for the two projections, so that . The credible grade should not be confused with the credibility measure of fuzzy-variable theory [24], a self-dual set function defined as the average of possibility and necessity; the credible grade is a number attached to a single weight, its grade discounted by its reliability.
Definition 3.1 (Z-weight structure). The Z-weight structure is on the canonical carrier , in which is a distinguished element, written , and . The product of two elements of is
which again lies in , and for every . The carrier is totally ordered by letting for every and, for and in , when , or when and ; two elements of with equal credible grade and equal grade are equal, so no further tie-break is needed. The sum of a finite family is its greatest element in this order,
and the empty sum is , so that in the binary case reports the operand of larger credible grade , ties broken toward the larger grade.
The canonical carrier may equivalently be read as the quotient of that identifies every weight of grade 0 or reliability 0 with . Under selection by the credible grade this identification is compatible with both operations (Proposition 4.3), so the two descriptions give the same structure.
The reading of the two operations is the one announced above. The product (5) composes two steps taken in sequence. It multiplies their grades as independent degrees of firing, and it multiplies their reliabilities because, under the independence assumption made explicit in Section 2.3, the probability that the restrictions of both steps hold is the product of the probabilities that each holds; a long derivation is therefore both weakly graded and weakly reliable. The sum (6) weighs the competing derivations of one word by selecting the most credible, the derivation whose grade best survives its reliability, and it reports the grade and the reliability of that derivation together. The aggregated value thus answers at once how strongly and how reliably the word is obtained, and a high grade on a poorly trusted derivation cannot override a slightly lower grade that is far better trusted. The credible grade is the quantity on which the structure is organized. The map carries onto the Viterbi semiring of Section 2.6, so that a Z-device sits directly above an ordinary max-product device, now on the discounted grade rather than on the raw grade, with the two components carried along the computation that the credible grade performs.
The structure belongs to a familiar class, and it is worth placing it there before stating its laws. A semiring is selective when its sum always returns one of its operands [22]. Commutative selective semirings are exactly the structures obtained from a commutative monoid with an absorbing element and a total order on , with least element , that is compatible with the product in the sense that implies , by letting return the larger operand: compatibility is exactly the distributivity of this maximum over , and conversely the sum of a selective semiring defines such an order by setting when . The Viterbi and the tropical semirings are the familiar instances, and the closest in spirit is the Viterbi-derivation semiring of semiring parsing [5], which carries the best derivation along with its score. Proposition 3.2 is therefore not new in its form. Its content lies in the choice of the order, the credible grade refined by the grade, and in the carrier that makes this order compatible with the product. On the full square the order is not compatible: precedes by credible grade, yet after multiplication by the images and , both of credible grade 0, are ordered the other way by the grade. Section 4 shows which of the alternative orders and carriers retain the laws and which do not.
The order of Definition 3.1 has a transparent description that places among known structures. On the map , with , is injective, since a weight other than has and its reliability is recovered as . Its image consists of and the pairs with , a set closed under the componentwise product. Let the lexicographic product of two Viterbi semirings carry the componentwise product and the sum that returns the lexicographically larger of two pairs. On the pairs with both coordinates positive, together with , it is a commutative semiring, because multiplication by such a pair is strictly increasing in each coordinate. The map sends to the componentwise product, and it sends to the lexicographic maximum, because the order of Definition 3.1 compares the credible grade first and the grade second, and determines . Hence identifies with a subsemiring of this lexicographic product. Neither this embedding nor the semiring laws that follow from it are new as general theorems; we record them because they fix the structure precisely. The Z-weight structure is thus a lexicographic semiring on the pair (credible grade, grade), and not on the pair (grade, reliability): the reliability enters the primary comparison as a discount on the grade and is never consulted on its own.
Proposition 3.2 ( is a commutative semiring). The Z-weight structure of Definition 3.1 is a commutative semiring, and the credible-grade map , , is a semiring homomorphism onto the Viterbi semiring.
Proof. We verify the laws directly; the core of the argument, the distributivity step, is the compatibility of the order with the product. That is a commutative monoid is immediate from (5). The sum (6) selects, from the unordered family, the element greatest in the total order of Definition 3.1; selection by a fixed total order is associative, commutative, and idempotent, so is a commutative idempotent monoid, in which is neutral because it is the least element. By definition is absorbing for . For distributivity, the credible grade of a product is , so multiplying a family by a weight of positive credible grade scales every credible grade by the same positive constant while multiplying every grade by and every reliability by ; since multiplication by positive constants preserves both the credible-grade order and the tie-break by grade, the maximizer that (6) selects is unchanged, so the two sides of the distributive law select the same operand and scale it identically. A factor reduces both sides to , and commutativity of gives the law on both sides. Finally sends to the product, since , and to the maximum, since the selected operand is the one of greatest credible grade, and it preserves the units, so it is a homomorphism onto the Viterbi semiring. The distributive identity was confirmed by exact rational computation over the grid ; the classification of this structure among representative alternatives is the subject of Section 4.
A first consequence is that the apparatus of Section 2.6 applies without modification. By the Kleene–Schützenberger theorem the Z-languages realized by the Z-automata of Section 3.3 are exactly the Z-rational series (Theorem 5.1), and the closure constructions for weighted automata over a commutative semiring, such as the Hadamard product, apply to Z-automata as stated. Decision questions are not settled by the semiring property alone; they are treated in Section 5.
Remark 3.3 (The plain best-grade variant). Selecting by the raw grade rather than by the credible grade gives the simpler best-grade structure, the select-by-grade scheme of Section 4, which is also a commutative semiring, on the quotient that identifies only the grade-0 weights with . The two structures differ exactly where grade and reliability pull apart. By choosing on grade alone, the best-grade variant reproduces the defect that Example 3.8 exhibits, a high grade on thin evidence overriding a slightly lower grade that is far better trusted. This is why the credible grade of Definition 3.1 is taken as canonical here. The precise carriers on which each variant is a semiring, and the structures under which the semiring property fails altogether, are established in Section 4.
Remark 3.4 (Fuzzy-valued Z-weights). The scalar structure studied here is recovered exactly from singleton fuzzy-valued weights: when every grade and every reliability is a singleton fuzzy number, the extension principle (1) reduces the product of two of them to the singleton of the product, and the construction is that of Definition 3.1. For general fuzzy numbers, centroid defuzzification need not commute with multiplication, and so supplies no order on fuzzy credible grades that is known to be compatible with their product. Let be the left-shoulder triangular fuzzy number with membership on , so that , and let be the extension-principle product of two copies of , treated as two fuzzy arguments.
Then and on , so that the centroid of is , while the centroid of is . We therefore make no claim that a general fuzzy-valued extension projects homomorphically onto this scalar semiring, and the examples below are statements about scalar weights only. A fuzzy-valued theory would need explicit operations on fuzzy grades and reliabilities together with an order on fuzzy credible grades that is compatible with their product; it is listed among the open problems of Section 7.
3.2 Z-grammars
Definition 3.5 (Z-grammar). A Z-grammar is a system in which is a grammar in the sense of Section 2.4 and assigns a Z-weight to each production. The weight of a derivation that applies the productions in order, a leftmost derivation when is context-free (Section 2.4), is the Z-product of their weights,
and the Z-language generated by is the map given by
the Z-sum over all derivations of , of which there may be infinitely many (Remark 3.6), with the empty sum equal to , so that a word with no derivation receives the Z-weight .
Remark 3.6 (Sums over infinitely many derivations). A grammar may give a word infinitely many derivations, for instance through a cycle of unit productions, so the Z-sum in (8) must be defined for infinite families. We take it to be the greatest element of the family in the total order by which (6) selects, and this element exists. A derivation that uses a production of weight has weight , and since products of elements of stay in , every other derivation has a nonzero weight that is a product of elements of the finite set of nonzero production weights of . A weight of credible grade 1 equals 1, since forces . Let be the largest credible grade of a weight in , with when there is none. Since the credible grade is multiplicative, a product of weights in whose credible grade is at least has at most factors different from , where when and when ; such products therefore take only finitely many values. If every derivation of has weight , the sum is . Otherwise some derivation has a positive credible grade , the derivation weights of credible grade at least form a finite nonempty set of values, and the greatest of these is the greatest element of the whole family. Infinitely many derivations may share this greatest weight, for example when they differ only by factors equal to , and the sum then returns that weight once, as the idempotence of requires. For a finite family the definition agrees with (6).
A Z-language records, for each word, the grade and the reliability of its most credible derivation, and two crisp languages are recovered from it by thresholding. For a credible-grade threshold the -level language is , the ordinary fuzzy-language cut inherited through the credible-grade projection, and for a reliability floor the reliability-filtered language is and , which admits a word only when its most credible derivation is both strong and reliably so.
Example 3.7 (A right-linear Z-grammar). Let G have the right-linear productions
over , generating the language of Section 2.4 with every word weighted. The word has the single derivation , whose weight by (7) is , so , with credible grade . The word has the single derivation of weight , so with credible grade , the shorter word being both more strongly generated and more reliable, as the multiplicative composition of (5) dictates. Part of the difference is the length penalty of Remark 2.5, since uses one more step whatever the attestation of that step. A word such as , which the grammar cannot derive, receives . At the credible-grade threshold the level language contains but not .
Example 3.8 (Ambiguity and the Z-sum). Let have the productions , , , and , so that the word has the two derivations shown in Figure 3. The first, through , has weight and credible grade 0.2016; the second, through , has weight and credible grade 0.2565. Aggregating
Z-sum selects the derivation of greater credible grade:
the better-trusted derivation wins although its plain grade, 0.54, is the lower one
Figure 3: The two derivations of aa in the Z-grammar of Example 3.8, each weighted by the Z-product of its productions and aggregated by the Z-sum, which selects the derivation of greater credible grade a b. The better-trusted derivation is selected although its plain grade is the lower one.
by the Z-sum (6), the more credible derivation wins, 0.2565 > 0.2016, so , even though its plain grade 0.54 is the lower of the two. The best-grade variant of Remark 3.3 would instead select the first derivation on its grade 0.56 and report the less reliable value (0.56, 0.36); the two readings disagree exactly where grade and reliability pull apart, and the credible grade resolves the disagreement in favor of the better-trusted derivation, which is the behavior that makes the reliability component worth carrying.
3.3 Z-automata
Definition 3.9 (Z-automaton). A Z-automaton is a system in which is a finite set of states, is a transition function as in Section 2.4, assigns a nonzero Z-weight to each transition , a transition of weight being simply omitted from , and in, out: are the initial and the final weight functions. The weight of a path is the Z-product , equal to when , and the behavior of is the map ,
the Z-sum over all paths labeled by , with the empty sum equal to . A path is accepting when its complete product is nonzero; since the transition weights are nonzero and products of elements of are nonzero, this holds exactly when and , and only accepting paths contribute to (9). The automaton is deterministic when at most one state has a nonzero initial weight and for every state and letter , unambiguous when every word labels at most one accepting path, and trim when every state lies on some accepting path.
The initial and final weights carry the constant term: the behavior on the empty word is , which may be any element of , as the rational series of Section 5 require. When an automaton is presented, as in Section 2.4, by an initial state and a set of accepting states, we take , for , and all other initial and final weights equal to , so that the behavior is carried entirely by the transition weights. A word of length labels only finitely many paths, so the sum (9) is always finite.
Example 3.10 (The running Z-automaton). Figure 4 shows the Z-automaton on the skeleton of Section 2.4 with , , and , the state initial and the state accepting, so that and all other initial and final weights are . The word has the single accepting path , whose weight is , so , a grade of acceptance of 0.315 together with its reliability 0.432; the word has the path of weight . These are exactly the Z-weights that the right-linear Z-grammar of Example 3.7 assigns to the same words, which is no coincidence.
Proposition 3.11 (Equivalence of right-linear Z-grammars and Z-automata). For every right-linear Z-grammar there is a Z-automaton with , and for every Z-automaton there is a right-linear Z-grammar generating its behavior.

accepting path for : , credible grade 0.136
Figure 4: A Z-automaton (Example 3.10). Each transition carries a Z-weight (grade, reliability); the behavior aggregates path weights by the Z-sum, returning a grade of acceptance together with its reliability.
Proof. Let be right-linear, so that its productions have the forms , , and of Section 2.4, with a single letter. Take the states with a new state , and set and for . Read each production as the transition and each production as the transition , carrying the weight of the production; since is a set, distinct productions give distinct transitions. Set , set when is a production, and set otherwise. A sentential form of a right-linear grammar contains at most one nonterminal, so a derivation of is a sequence closed by , or a sequence closed by . The first corresponds to the path with final weight , and the second to the path through that ends with and final weight . This is a bijection between the derivations of and the paths labeled by that start in and end in or in a nonterminal with an -production, and it preserves the multiset of weights applied. Matched derivations and paths therefore have equal Z-products by (7) and (9), every other path contributes , and for every .
Conversely, let be a Z-automaton. We first reduce to a single initial state of initial weight . Add a new state with and , add for every letter and state a transition of weight , the sum taken over the states with , and set the initial weights of the old states to . By distributivity (Proposition 3.2), the paths that leave carry the Z-sum of the weights of the paths they replace, so the behavior is unchanged. This reduction preserves the behavior but not, in general, a one-to-one correspondence of runs, since one path leaving stands for the Z-sum of several original paths; the correspondence with derivations established next is one to one for the reduced automaton. Now take the states as nonterminals with start symbol , read each transition as the production with the same weight, and add the production of weight for each state with . The correspondence of the first part, read backwards, matches the accepting paths labeled by with the derivations of and preserves weights, so the resulting right-linear Z-grammar generates .
Example 3.12 (Evidence-derived reliabilities). One way to give the reliability component content is to estimate it from evidence rather than elicit it. Suppose the grade of a transition is estimated from a corpus, and its reliability is the evidence score of Section 2.2, with a characteristic count. Two Z-automata that share the grade 0.9 on a decisive transition but estimate it from and from occurrences, against , carry the reliabilities and on that transition, hence, when the remaining factors of the path carry weight , the credible grades and on the acceptance that passes through it. A word whose acceptance uses the transition then receives the same raw grade under both automata but credible grades that differ by roughly fivefold, and the level language with threshold admits the word under the well-evidenced automaton and rejects it under the poorly evidenced one. A scalar weight on each transition already reproduces this threshold distinction. What the pair adds is that the two components remain available separately, so that the recognizer can report the reliability of the accepted analysis and filter on it (Section 5.6); the evidence-aware representations of our applied work were built to carry the same distinction [11].
3.4 Discussion and outlook
Two points orient the development that follows. First, the constructive theory of this section rests on Proposition 3.2. Because the Z-weight structure is a commutative semiring, Z-grammars and Z-automata are weighted devices of a standard kind: they inherit the Kleene-Schützenberger characterization and the attendant closure constructions, and the equivalence of Proposition 3.11 is a weight-preserving instance of the classical one. The credible-grade homomorphism exhibits each Z-device as sitting above an ordinary Viterbi device on the discounted grade, so that the classical constructions transfer along while the two components are carried alongside; decision questions, which the semiring property does not settle, are treated in Section 5. Second, the structure adopted here, selection by the credible grade on the double quotient , is one principled choice among several. The best-grade variant of Remark 3.3, the separable and the counting structures, and the native Z-arithmetic are the alternatives. Section 4 examines on which carriers these alternatives satisfy the semiring laws and on which they are only strong bimonoids.
4 The design space of Z-weight schemes
The devices of the previous section were defined over one particular way of combining the two components of a Z-weight, the reliability-aware structure of Definition 3.1, and Remark 3.3 noted that other choices are available and that under some of them the semiring axioms come into question. We now take up that question, since the algebraic class of the weight structure, and not the definition of the device, decides which of the theorems of formal language theory the Z-grammars and Z-automata inherit. We organize the choices along three axes and examine eight representative structures obtained by fixing parameters in these families; they do not exhaust the possible schemes. Seven of them are classified as commutative semirings or as strong bimonoids, the class of the native Z-arithmetic is left unverified, and the consequences for the available theorems are recorded at the end. The positive verdicts are proved. The distributivity laws were in addition checked by exact rational computation over the grid , and every failure of distributivity that we assert is witnessed by an explicit counterexample drawn from that grid.
4.1 Three axes and the general family
A Z-weight is a pair in which is a grade and a reliability, and three decisions fix how such pairs combine along a derivation and across competing derivations.
Definition 4.1 (Z-weight schemes). A Z-weight scheme consists of
(i) a grade law , a t-conorm and a t-norm on ;
(ii) a path-reliability law , a t-norm on ;
(iii) an aggregation scheme , one of the following:
(a) separable: grades are aggregated by and reliabilities by a t-conorm , independently;
(b) select-by-grade: the pair of largest grade is reported, ties broken by reliability;
(c) reliability-aware: the pair of largest credible grade is reported, ties broken by grade and then by reliability;
(d) native: Z-numbers are combined by the arithmetic of Section 2.3.
Except under the native scheme, the product is componentwise,
The t-conorm aggregates the grades of competing derivations, while and compose grades and reliabilities along a derivation. Scheme (b) is the best-grade variant of Remark 3.3, and scheme (c) is the selection of Definition 3.1, whose last tie-break is vacuous on .
The three choices do not act independently. Under the separable scheme the reported grade is of the competing grades, and select-by-grade, which presupposes , reports their maximum. Under the reliability-aware scheme the reported grade is that of the most credible derivation, which need not be the largest grade (Example 3.8), so this scheme overrides and the grade law contributes only .
Definition 4.2 (Degenerate-weight quotients). A Z-weight is degenerate when the aggregation scheme places it at the bottom of the selection order, that is, when its grade is zero under select-by-grade, and when its grade or its reliability is zero under the reliability-aware scheme. We write
(i) for the quotient of that identifies every weight of grade zero with , and
(ii) for the quotient of that identifies every weight of grade zero or reliability zero with .
The quotients express the reading that a derivation which cannot fire, or a grade whose reliability has been discounted to nothing, carries no information and is indistinguishable from the absence of a derivation. Such an identification defines a structure on the quotient only if it is a congruence, that is, if equivalent operands give equivalent sums and equivalent products. Closure of the identified set under multiplication is necessary for this but not sufficient.
Proposition 4.3 (Which quotients are congruences). For every grade law and path-reliability law of Definition 4.1:
(i) the identification defining is a congruence under select-by-grade and under the reliability-aware scheme;
(ii) the identification defining is a congruence under the reliability-aware scheme;
(iii) the identification defining is not a congruence under select-by-grade, so this scheme induces no sum on .
Proof. A t-norm sends 0 and any argument to 0, so both identified sets are closed under multiplication by any weight, and the product is compatible with both identifications. For the sum, under select-by-grade a grade-zero weight loses to every weight of positive grade, and two grade-zero weights are both identified with , which gives the first half of (i). Under the reliability-aware scheme a weight of credible grade zero loses to every weight of positive credible grade, and two weights of credible grade zero are compared by grade, so that a grade-zero weight loses to every weight of positive grade and two grade-zero weights are both identified with , which gives the second half of (i) and gives (ii). For (iii), let and . Select-by-grade gives , which is identified with , whereas , so equivalent operands produce inequivalent sums, whatever the grade product.
Accordingly we consider select-by-grade only on and on , and the reliability-aware scheme on , , and .
4.2 Selection structures and the role of the quotient
The best-grade variant of Remark 3.3 is a semiring, but only after the degenerate weights are quotiented; on the full carrier it is not one, and establishing exactly where the semiring property holds and where it fails is the first substantive result of the analysis.
Theorem 4.4 (Select-by-grade). With the Viterbi grade law , the path-reliability law , and the select-by-grade scheme, the resulting structure is a commutative semiring on the quotient , and on the full carrier it is only a strong bimonoid. The obstruction on the full carrier is the family of grade-zero weights of nonzero reliability, witnessed by
where the right-hand side is for and for .
Proof. By Proposition 4.3 the identification defining is a congruence for both operations, so the structure on is well defined. On every element of grade zero is the annihilator , so the only competing derivations that the sum must weigh are those of strictly positive grade, and there the grade product is strictly monotone for , hence order-preserving and injective, so it neither disturbs the maximizer that select-by-grade reports nor creates a tie that was not already present. The grade coordinate of both sides of the distributive law then follows the Viterbi identity , and the reliability coordinate on both sides is the -product of with the reliability of the common maximizer, so the two sides coincide; commutativity of gives distributivity on both sides, and the monoid and annihilation axioms are immediate. On the full carrier the sum is still selection by a total order, the grade refined by the reliability, with least element , and the product is still componentwise, so the strong-bimonoid axioms hold. Distributivity fails for the displayed triple. On the left, the bracket selects by its positive grade, and the product is . On the right, the two products are and ; both have grade zero, and the sum returns the first, which is for and for .
Theorem 4.5 (Reliability-aware selection). With the Viterbi grade law, the product path-reliability law, and the reliability-aware scheme that selects by the discounted grade , the resulting structure is the commutative semiring on the double quotient (Proposition 3.2). On the quotient , which identifies only the grade-zero weights with , it is a strong bimonoid but not a semiring, the obstruction being the weights of positive grade and reliability zero, witnessed by
Proof. The semiring property on is Proposition 3.2. On the sum selects by a total order, the credible grade refined by the grade and then by the reliability, in which is least; the identification defining is a congruence for the sum and for the product (Proposition 4.3), so both operations are well defined on , and annihilates. These are the strong-bimonoid axioms. In the displayed triple, the bracket on the left selects , of credible grade , over , of credible grade , and the product is . On the right both products, and , have credible grade , and the tie is broken by the grade in favor of . Multiplication by a weight of reliability zero thus erases the difference in credible grade that decided the selection on the left, while it keeps the difference in grade that decides it on the right.
The two selection results isolate the sense in which the construction depends on the arithmetic of the components. The proof of Theorem 4.4 uses only that multiplication by a positive grade is strictly increasing and that is monotone, so its conclusion holds for every strict -norm in place of the product grade law and for every -norm . The reliability-aware scheme needs more, namely that the credible grade of a product is the product of the credible grades, which holds when both coordinates are multiplied. With distributivity fails even on : for , , and , the left-hand side is , while the right-hand side is . The following proposition shows that the strict monotonicity of the grade law cannot be dropped, so that neither coupled scheme can be built on the minimum on the carriers examined.
Proposition 4.6 (The minimum grade law is incompatible with coupled reliability). With the grade law , a path-reliability law , and either coupled scheme, select-by-grade or reliability-aware, the resulting structure is a strong bimonoid but not a semiring on the full carrier, on under either scheme, and on under the reliability-aware scheme, which are the carriers on which these schemes are defined (Proposition 4.3). Distributivity fails for , , and :
that is, for and for . The witness has strictly positive grades and reliabilities throughout, so neither of the degeneracy identifications examined here removes it; this does not exclude that a coarser identification, not considered here, yields a semiring.
Proof. Both coupled sums select by a total order in which is least, and the product is componentwise. The minimum sends a weight of grade zero, or of reliability zero, to a weight of grade zero, or of reliability zero, so the argument of Proposition 4.3 applies, and the identifications are congruences on the carriers listed. On each of these carriers the two monoid laws and annihilation therefore hold, and the structure is a strong bimonoid. In the bracket on the left both schemes select : select-by-grade by its larger grade, and the reliability-aware scheme because the credible grades of and tie at and the tie is broken toward the larger grade. Multiplying by gives . On the right the minimum sends both grades to , so the two products tie on the grade, and both schemes return , whose reliability, and hence credible grade, is the larger. The minimum is not strictly monotone, so it can merge two distinct grades into a tie, and the two sides of the distributive law then resolve that tie from different reliabilities, before and after the maximization respectively.
4.3 Separable structures
When the reliability is aggregated on its own, the structure decomposes and the semiring property is recovered on the full carrier, at a cost in meaning.
Proposition 4.7 (Separable structures are product semirings). If the grade law and the reliability law are each a commutative semiring on and the aggregation is separable, then the resulting structure is their product, hence a commutative semiring on the full carrier with no quotient. In particular and are commutative semirings.
Proof. A separable structure is by definition the direct product of the grade structure and the reliability structure, and a finite product of semirings is a semiring, coordinatewise, with units and ; the stated instances are products of a Viterbi semiring with a Viterbi or a fuzzy semiring.
The price of this clean outcome is that the reliability reported for a word is the best reliability over all of its derivations, aggregated independently of which derivation carries the best grade, so that the structure can return a high reliability that belongs to a weakly graded parse, a decoupling that the selection structures were designed to avoid.
4.4 Counting structures
A grade law that sums within the unit interval, rather than selecting, abandons the semiring property for a different reason.
Proposition 4.8 (Sum-based grade laws are strong bimonoids). Let the grade law be sum-based, either the probabilistic sum with the product or the bounded sum with the Lukasiewicz t-norm , and let the reliabilities be aggregated separately by a law that is a commutative semiring on . Then the resulting structure on is a commutative strong bimonoid and not a semiring.
Proof. Each sum-based grade law is a commutative strong bimonoid on : its sum is associative and commutative with neutral element 0, its t-norm is associative and commutative with unit 1, and 0 annihilates. The structure is the direct product of this grade bimonoid with the reliability semiring, so it is a commutative strong bimonoid, coordinatewise. Distributivity fails on the grade coordinate. For the probabilistic sum, , which is nonzero exactly when and ; for the two sides are and . For the bounded sum, gives on the left and on the right. Giving all three weights the reliability 1 turns either triple into a witness on the grid. The coupled schemes are not combined with a sum-based grade law, since they select one derivation, whereas a sum-based law accumulates all of them.
These are the structures under which a word's grade records the combined weight of all of its derivations rather than its single best one, the Z-analogue of a probabilistic rather than a Viterbi reading of an ambiguous grammar. The loss of distributivity here is the price of saturation, not of counting as such: the probabilistic and the bounded sums keep the grade inside , and it is this truncation that breaks the law, whereas the ordinary sum-product structure of Table 1 counts and is a semiring. A counting Z-structure over unbounded grades is a possible alternative that we do not examine.
4.5 The native Z-arithmetic
The remaining possibility is to combine Z-numbers not by componentwise t-norms but by the native arithmetic of Section 2.3. Aliev et al. [9, 10] define the sum and the product of discrete and of continuous Z-numbers, computing the first component by fuzzy arithmetic and the second through the probability distributions compatible with the operands, which are found by optimization and combined by convolution. We do not know of a proof that these operations are associative, and nothing below relies on it. Two features make it a poor fit for the role of in the present construction, although neither excludes it from weighted devices in general. The Z-number sum is an arithmetic sum: used as the behavior's it would add the grades of distinct parses instead of selecting among them, which is a legitimate counting reading, since the probability semiring is not idempotent either, but not the selection reading adopted here. The reliability of a Z-number sum also does not pool the evidence of its summands, since the second component of the sum is formed from the convolution of the underlying distributions and not from the counts on which the summands' reliabilities rest. Because the operations are computed numerically rather than in closed form, we have verified neither the strong-bimonoid axioms for the native pair, namely associativity, a neutral element for the sum, and a zero that annihilates under the product, nor a counterexample to distributivity. Table 2 accordingly records its class as not verified. Its natural role would be intra-coordinate, in a fuzzy-valued extension of the kind discussed in Remark 3.4, where the grade and the reliability are themselves fuzzy numbers combined by fuzzy-number arithmetic. Whether any scalar semiring of this section has such a fuzzy-valued counterpart is open (Section 7); selection by a fuzzy credible grade would at least require an order on fuzzy numbers compatible with their product, and Remark 3.4 shows that centroids do not supply one.
Table 2: Classification of eight representative structures generated by the Z-weight schemes of Definition 4.1. The eight rows fix parameters in the families of Definition 4.1 and do not exhaust them. The semiring and strong-bimonoid verdicts are proved in the text, and every structure classed as a strong bimonoid fails distributivity by a witness on the grid given there. Select-by-grade induces no operation on (Proposition 4.3), so under the minimum grade law the carrier refers to the reliability-aware scheme only. The class of the native arithmetic is not verified.
| Structure | Carrier | Class | Theorems kept / semantics |
|---|---|---|---|
| Separable | commutativesemiring | full Kleene–Schützenberger; reliabilitydecoupled from the winning grade | |
| Select-by-grade, | commutativesemiring | full Kleene–Schützenberger; selects ongrade, reports its reliability | |
| Reliability-aware, key | commutativesemiring | full Kleene–Schützenberger; readsgrade and reliability together | |
| Select-by-grade, | strong bimonoid | devices, run semantics,Chomsky–Schützenberger underfinitely many derivations;recognizable and rational series maydiffer | |
| Reliability-aware, key | strong bimonoid | as above; reliability-zero weightsbreak distributivity | |
| Minimum grade,coupled reliability | $[0,1]^2, \mathcal{Z}_0,\mathcal{Z}_{00}$ | strong bimonoid | as above; grade ties breakdistributivity |
| Sum-based grade(count) | strong bimonoid | as above; accumulates rather thanselects | |
| Native Aliev arithmetic | Z-numbers | not verified | not used as ; arithmetic sum,reliability not pooled |
4.6 Classification and consequences
Table 2 collects the verdicts for the eight representative structures, and Figure 5 places them in the hierarchy of weight structures of Section 2.6. Three are commutative semirings, four are strong bimonoids that are not semirings, and the class of the native arithmetic is not verified. The consequence for the theory is read directly from the class. The commutative semirings are the separable product, the select-by-grade structure on , and the reliability-aware structure on . Each carries the full Kleene–Schützenberger theorem, so that its recognizable and rational Z-languages coincide, together with the closure of the recognizable Z-languages under the rational operations and the equivalence of right-linear Z-grammars with Z-automata of Proposition 3.11. A structure that is only a strong bimonoid still defines its Z-automata, and its context-free Z-grammars whenever every word has finitely many derivations of nonzero weight, as it has for grammars without chain productions and -productions. Strong bimonoids are unital valuation monoids, and the Chomsky–Schützenberger theorem of Droste and Vogler [20] holds for weighted context-free grammars over any unital valuation monoid under this finiteness condition, or over a complete one, so it applies to them. What such a structure can lose is the equality of the recognizable and the rational series, together with the agreement of the run semantics and the initial-algebra semantics of an automaton [19]. The correspondence between right-linear Z-grammars and Z-automata survives under the run semantics, because the construction from grammars to automata in the proof of Proposition 3.11, and its converse for automata with a single initial state of weight 1, match derivations with runs one to one without using distributivity. Such a structure is to be adopted only where this weaker theory is acceptable.
The classification settles which structure the construction should use. The reliability-aware semiring on the double quotient of Proposition 3.2 is the main object. It is a genuine commutative semiring, so the full apparatus of weighted automata applies, and its selection by the discounted grade reads the grade and the reliability together, which the plain select-by-grade rule, by choosing on grade alone, does not honor, as Example 3.8 shows. The select-by-grade semiring on of Theorem 4.4 is the simpler baseline, and the separable semiring of Proposition 4.7 is the right choice only where the reliability of a word is to be reported independently of its best parse. The strong bimonoids, among them the counting structures, are to be used only when the weaker theory they support is sufficient, and the native arithmetic is not a candidate for the selection-based adopted here. These are the structures on which Section 3 is built, the reliability-aware
| general weight structures | Chomsky-Schützenberger (unital valuation monoids) |
|---|---|
| strong bimonoids | run and initial-algebra semantics may differ |
| more general | |
| ○ select-by-grade on the full carrier [0,1]²distributivity fails at grade 0 with nonzero reliability | |
| ○ reliability-aware on the grade-0 quotient distributivity fails at positive grade with zero reliability | |
| ○ minimum grade law with coupled reliabilityon [0,1]², , and (reliability-aware only) ; grade ties break distributivity | |
| ○ sum-based grade law with separable reliabilitycounts all derivations; distributivity fails on the grid | |
| commutative semirings | Kleene-Schützenberger, closure, rational theory |
| ● separable product on [0,1]²the reported pair may join two derivations | |
| ● select-by-grade on the grade-0 quotient Viterbi grade; reports the reliability of the best grade | |
| ● reliability-aware on the double quotient selects by the credible grade a · b; the canonical structure | |
| ○ native Z-arithmetic as outside the ladder: class not verified; an arithmetic sum, not a selection | |
Figure 5: The eight representative structures of Table 2 placed in the hierarchy of weight structures. Three are commutative semirings, on the carriers shown, and retain the full theory. Four are strong bimonoids, which keep the devices and the run semantics but may lose the equality of recognizable and rational series. The native Z-arithmetic, whose class is not verified, is shown outside the ladder. The level labels name the results available at each level under the hypotheses stated in the text.
semiring on as the canonical one and the plain select-by-grade structure on as the baseline, so that the constructive results there rest throughout on a commutative semiring.
5 Rational theory of Z-languages
The structure on which the Z-grammars and Z-automata of Section 3 were built is, by Proposition 3.2, a commutative semiring. The mature theory of weighted automata over a semiring therefore applies to them without modification, and the purpose of this section is to draw out what that theory yields and, with equal care, where it stops. We record the Kleene–Schützenberger characterization that identifies the recognizable and the rational Z-languages, and the transfer of results along the credible-grade homomorphism of Section 3, which places the Z-theory above the max-product theory of fuzzy automata as a conservative extension. We then establish the closure of the recognizable Z-languages under the rational and the pointwise operations and locate the boundary of decidability. At that boundary the Z-theory inherits the undecidability of equivalence that max-product and tropical automata owe to maximization combined with a product under which finitely many weights generate infinitely many values. Several of these results are standard for commutative, zero-sum-free semirings, and we label them as such; the content specific to Z-weights lies in the reliability filter, in determination, and in the phenomena of Section 5.6. Throughout, Z denotes the Z-weight structure of Definition 3.1, the credible-grade semiring on the double quotient , with credible grade , and denotes the Viterbi semiring. All decidability and effectivity statements assume rational weights and rational thresholds, on which products and comparisons are exact; the weights estimated from counts in Section 6 are rational when the characteristic count is.
5.1 Recognizable and rational Z-languages
A Z-series, or Z-language, is a map , the set of which forms the semiring under pointwise sum and the Cauchy product . A Z-series is recognizable when it is the behavior of a Z-automaton in the sense of Definition 3.9, initial and final Z-weights included, and rational when it lies in the least class containing the polynomials, the Z-series of finite support, and closed under the sum, the Cauchy product, and the star taken on proper series, those with . The star of a proper series is well defined over any semiring, and in particular over , because the coefficient is a finite Z-sum, a proper series contributing to a word only through derivations of length at most that word.
Theorem 5.1 (Kleene–Schützenberger for Z-languages). A Z-series is recognizable if and only if it is rational. In symbols, .
Proof. The theorem is the specialization to Z of a standard result: the equivalence of the recognizable and the rational series holds over an arbitrary semiring [2, 25–27], the two inclusions being the behavior of a rational expression built by the standard automaton constructions for sum, product, and proper star, and the conversion of a Z-automaton into a rational expression by the state-elimination method, whose cycles are handled by the proper star just described. These constructions hold over an arbitrary semiring, so the hypotheses are met for Z and both directions apply verbatim; commutativity, which Z also enjoys (Proposition 3.2), is not required for this theorem but is used for the Hadamard product below.
Remark 5.2 (Cyclic weights and the best-path reading). For a single weight the constant series is not proper unless , so its star lies outside the rational operations above, and the infinite Z-sum has to be read directly. The powers have credible grades , and the term is the greatest element of Z in the order of (6), being the only Z-weight of credible grade 1. The family therefore has a greatest element, the sum is attained at , and . The star of a proper series needs no such reading, since each of its coefficients is the finite Z-sum described above. In the same way, since every weight is at most 1, a path that traverses a cycle has a weight no greater than that of the same path with the cycle removed. When the cycle is labeled by a nonempty word the shortened path carries a different word, so this compares path weights irrespective of their labels, as in the state-elimination construction, and not the paths for a single word. For a fixed word the behavior is carried by its most credible accepting path, the Z-analogue of the shortest-path reading of a tropical automaton and the best-path reading of a Viterbi automaton. This is the structural reason that the behaviors of Section 3 were computed by a single path.

Figure 6: The credible grade and the reliability-one embedding form a retraction of the Z-theory onto the max-product fuzzy theory. Both preserve recognizability and the rational operations, and is the identity, so the Z-theory is a conservative extension.
5.2 Transfer along the credible grade
The credible-grade map of Section 3 relates the Z-theory to the ordinary max-product theory of fuzzy automata, and the relation is a retraction, so that the Z-theory extends the fuzzy theory without disturbing it.
Proposition 5.3 (Conservative extension). The credible grade and the reliability-one embedding , , are semiring homomorphisms with . Applied coefficientwise they induce semiring homomorphisms and that commute with the rational operations and send recognizable series to recognizable series; consequently the credible grade of a recognizable Z-language is a recognizable max-product fuzzy language, and every recognizable max-product fuzzy language is the credible grade of a recognizable Z-language in which every weight is fully reliable.
Proof. That is a homomorphism is Proposition 3.2, and is a homomorphism because and the credible grade of is , so the selection in agrees with the maximum on ; the composite is the identity since . A semiring homomorphism applied to the weights of a weighted automaton yields a weighted automaton whose behavior is the image series, so and preserve recognizability, and they commute with the rational operations because these are defined by the semiring operations that the homomorphisms preserve. The two stated consequences are the images under and of a recognizable series, together with .
Figure 6 records the retraction. Its force is that nothing of the max-product fuzzy theory is lost in passing to Z-automata: a fuzzy automaton is the reliability-one Z-automaton whose reliabilities have been set aside, and its Z-refinement differs only in carrying the second component that the credible grade would otherwise discard.
Example 5.4 (Projecting the running automaton). The Z-automaton of Example 3.10 has transition weights , , and , whose credible grades are 0.81, 0.30, and 0.56. Its image under is the Viterbi automaton on the same skeleton with these three grades, whose behavior on is , the credible grade of the Z-behavior computed in Section 3. The Z-automaton refines this scalar by recording that the accepting path has grade 0.315 and reliability 0.432, the information that the credible grade alone cannot separate.
5.3 Closure properties
Proposition 5.5 (Closure). The recognizable Z-languages are closed under the sum , the Cauchy product, the proper star, the scalar products and for , the Hadamard (pointwise) product , the reversal, and the application of a nonerasing alphabet morphism and of an inverse alphabet morphism.
Proof. These closure properties are standard for weighted automata over a commutative semiring [26, 27], and we indicate the constructions only to show where commutativity enters. Closure under the rational operations is Theorem 5.1, and the scalar products are the Cauchy products with the constant series , which is recognized by a one-state automaton with initial weight , final weight , and no letter transitions. The Hadamard product is recognized by the product automaton whose initial, transition, and final weights are the -products of the paired weights; this construction preserves behavior precisely because is commutative, so that the weight of a pair of paths is the -product of their weights irrespective of order, which is where Proposition 3.2 is used. Reversal is recognized by the reversed automaton with the initial and final weights exchanged, again by commutativity. For an alphabet morphism that is nonerasing, for every , the image of is the series over with , a finite -sum because for every . It is recognized by replacing each transition of weight by a chain of fresh states spelling , whose first transition carries and whose remaining transitions carry ; the paths of the new automaton labeled correspond one to one, with equal weights, to the paths of the old one labeled by some . For a morphism , erasing or not, the inverse image of is the series over with . Write the automaton as an initial row vector in, transition matrices , and a final column vector out, so that out, with extended multiplicatively to words and the identity matrix. The automaton with the same in and out and the matrices for then recognizes , a letter with receiving the identity matrix; the matrix products are defined over because every entry is a finite -sum [27].
5.4 Supports, cut-points, and decidability
The qualitative content of a Z-language, the set of words it generates at all, is regular, and so are its quantitative cuts, because grades and reliabilities never exceed one; what inherits the hardness of max-product automata is the comparison of two Z-languages as a whole.
Proposition 5.6 (The support is regular). The support of a recognizable Z-language is a regular language, and its emptiness is decidable.
Proof. The semiring is zero-sum-free, since the of weights of positive credible grade selects one of them and so is never , and it has no zero divisors, since on forces a factor of credible grade 0, that is a factor . Over a zero-sum-free semiring without zero divisors the support of a recognizable series is the language of the underlying Boolean automaton, obtained by sending every nonzero weight, initial and final weights included, to 1, hence regular, and its emptiness reduces to reachability of an accepting state, which is decidable; this is standard [26, 27].
Proposition 5.7 (Level and reliability-filtered languages are regular). For every Z-automaton with rational weights, deterministic or not, every rational , and every rational , the level language and the reliability-filtered language
are regular, and finite automata recognizing them are effectively constructible from , , and . In particular, the emptiness and the universality of these languages are decidable.
Proof. Call a factor of any of its initial, transition, and final weights, so that the weight of an accepting path is the Z-product of its initial weight, its transition weights, and its final weight. Since grades and reliabilities lie in , a factor whose credible grade equals 1 is ; we call every factor other than and costly. If has no costly factor, every accepting path of nonzero weight has weight , so the behavior is on the support and off it, and since both languages equal the support, which is regular by Proposition 5.6. Otherwise let be the largest credible grade of a costly factor, so that , and let be the largest integer with , which equals and, for rational and , is computed exactly by forming the powers until one falls below . For this gives , so that only paths all of whose factors equal are retained, as they must be. Because is multiplicative and no factor has credible grade above 1, an accepting path of credible grade at least involves at most costly factors, and so does each of its prefixes, whose credible grade is at least as large. Its weight, and the weight of each prefix, therefore lies in the finite set of Z-products of at most costly factors whose credible grade is at least , the empty product included. Let be the nondeterministic finite automaton on the states whose initial states are the pairs with the initial weight of and , and whose transitions correspond to the transitions of weight with . On input , reaches a set of states, and its subset automaton is finite. Let be the set of products with , the final weight of , and ; it is exactly the set of weights of credible grade at least of the accepting paths for . A word lies in exactly when . In that case the behavior , which by (6) is the greatest accepting path weight in the order by credible grade, then grade, is the greatest element of , since a path of credible grade below is never selected over one of credible grade at least . Membership in either language is therefore decided by , which depends only on , so the subset automaton with the corresponding accepting sets recognizes both languages, and it is computed from finitely many products of factors.
Remark 5.8 (Why the maximization does not obstruct thresholds). For scalar weights, Proposition 5.7 is folklore for automata with nonnegative costs, the distance automata treated by Kuich [28]; the content specific to Z-weights is that the selected pair, and hence the reliability filter, is decided by the finite set of products. The level languages are the cut-point languages of the Viterbi image , and it might be expected that they inherit the undecidability results for max-plus automata. They do not, because the Viterbi semiring corresponds, through the map , to the min-plus semiring with nonnegative costs rather than to a semiring with costs of both signs, and for nonnegative costs a constant threshold bounds the number of costly steps, which is what the proof of Proposition 5.7 exploits. A finite catalog of weights does generate infinitely many products under , but only finitely many of them reach a positive threshold. For distance automata even the question whether the costs of all accepted words are bounded is decidable [28, Theorem 10.16]. The undecidability result of Krob [29] is stated over the tropical semiring and transfers to the Viterbi semiring through the injective semiring homomorphism . It concerns the comparison of an automaton with another automaton or with a fixed series, not with a constant, and it survives in Proposition 5.9. The construction is exponential in , which grows as , so it is effective but not efficient when the costly weights lie close to 1. We checked it against exhaustive path enumeration on sixty random nondeterministic Z-automata with three states over a two-letter alphabet, on every word of length at most seven, for both languages.
Proposition 5.9 (The boundary of decidability). Emptiness of the support of a Z-automaton is decidable. Behavioral equivalence of two Z-automata is undecidable in general, but for Z-automata with rational weights it is decidable in polynomial time when both are unambiguous, and in particular when both are deterministic.
Proof. The first assertion is Proposition 5.6. Undecidability is obtained by reduction from the equivalence of tropical automata over , which is undecidable [29]. The encoding of Remark 5.8, followed by the embedding of Proposition 5.3, is an injective semiring homomorphism into with rational values. Applying it to the weights of a tropical automaton yields a Z-automaton whose behavior is the image of the original, so an equivalence test for Z-automata would decide the equivalence of their tropical preimages.
For the positive assertion, let both Z-automata be unambiguous, so that each word labels at most one accepting path in each. The behavior on a word is then the pair of the product of the grades and the product of the reliabilities along that path, initial and final weights included, with no selection, and when there is no such path. Hence the grade image is computed by the automaton over that keeps the grade of every weight, and because each word has at most one accepting path, the maximum over paths may be replaced by the sum, so that the same automaton read over the field of rationals computes the same function. The same holds for the reliability image . Since the nonzero elements of have positive components, two unambiguous Z-automata are equivalent exactly when their grade images agree and their reliability images agree, and equivalence of -weighted automata is decidable in polynomial time [2, 30]. A deterministic automaton is unambiguous, so the deterministic case is a special case and needs no minimal forms.
5.5 Determinization and minimization
Following Mohri [31], two states and of a Z-automaton are siblings when there are words and such that both are reached from states of nonzero initial weight by paths labeled and both carry a cycle labeled , and the automaton has the twins property when, for all siblings and all such , the Z-sum of the weights of the cycles labeled at equals that at .
Proposition 5.10 (Determinization and minimal deterministic form). Let be the extension of to the carrier , with the product (5) and the order of Definition 3.1.
(i) Whenever the weighted subset construction terminates on a Z-automaton, it returns a deterministic automaton over equivalent to it; the weights of this automaton may lie outside , although its behavior takes values in .
(ii) On a trim unambiguous Z-automaton with the twins property the construction terminates.
(iii) A trim deterministic automaton over whose behavior takes values in has a minimal equivalent deterministic automaton over , unique up to an isomorphism of states and weight pushing.
Proof. A weight of positive credible grade is cancellable under , which is coordinatewise multiplication, but the residual may have a coordinate exceeding 1. The pair against the selected already has residual , and a later transition of weight out of the corresponding subset state then receives the weight . The construction is therefore carried out in . Through the injective map of Section 3.1, the nonzero elements of form the multiplicative group , and the order of , by credible grade and then by grade, becomes the lexicographic order on this group, which is total and compatible with the product. Hence is a commutative selective semiring, zero-sum-free, with every nonzero element invertible, so it is cancellative and divisible, and is a subsemiring of it.
(i) The weighted subset construction [31, 32] builds states that are finite sets of pairs of a state and a nonzero residual weight. On a word it reaches the subset with the output weight , where is the Z-sum of the weights of all paths labeled from states of nonzero initial weight, initial weights included, and the residual of is , with the Z-sum of the weights of those paths that end in . The invariant holds for by definition and is preserved by each step, because the step to computes by distributivity and divides by the Z-sum of these values, which is possible because nonzero elements of are invertible. The final weight of is , so the output on is . Hence the construction, whenever it terminates, returns an equivalent deterministic automaton, whose weights need not lie in .
(ii) Let be trim and unambiguous. For every word and state there is at most one path labeled from a state of nonzero initial weight to , since two such paths, extended by a common path from to a final state, would give two accepting paths for one word; for the same reason a state carries at most one cycle with a given label. Let be the path to , and the one whose weight selects, so that , initial weights included. If , the pairs of states visited by and at the positions repeat, so there are positions at which both paths visit the same pair . The segments between them are cycles at and at with a common label , and and are siblings, both being reached by the prefix of of length . By the twins property and the uniqueness of cycles with a given label, . Removing both cycles yields paths and with a common label of length , and commutativity and cancellation give . The argument applies again to and , since it uses only that the two paths start at states of nonzero initial weight and carry a common label, so after finitely many removals is written as for two paths with a common label of length below . There are finitely many such pairs, hence finitely many residuals and finitely many subset states, and the construction terminates.
(iii) Let be a trim deterministic automaton over whose behavior takes values in . Every cycle of has its weight in , since otherwise pumping the cycle would push a component of the behavior above 1, and such a weight is at most 1 in the order of Definition 3.1. Removing a cycle from a path to a final state therefore never lowers its weight, so the Z-sum of the weights of the paths from to a final state, final weight included, is attained on a path without repeated states, and it is nonzero because is trim. Weight pushing replaces the initial weight by , each transition weight by , and each final weight out by ; the products along a path telescope, so the behavior is unchanged, and in the pushed automaton every state has , which is the residual-state normalization. Two states of the pushed automaton have the same future behavior exactly when they are equivalent as states of the unweighted automaton over the pairs of a letter and a weight, and minimizing that automaton, whose alphabet also records the final weights, gives a minimal deterministic automaton by the construction of Mohri [32], which applies because is divisible and zero-sum-free. Two minimal deterministic automata with the same behavior become isomorphic after pushing, since pushing normalizes the residual of each state and the normalized residuals determine the states, so the minimal form is unique up to an isomorphism of states and weight pushing; the pushed weights again need not lie in .
For unambiguous Z-automata, the twins property on the Z-weights thus suffices for determination. This property implies the twins property of the credible-grade image because , extended to , is a homomorphism. For ambiguous Z-automata we do not claim that the twins property suffices. Through and coordinatewise logarithms, is isomorphic to the max-plus semiring over the lexicographically ordered group , and Mohri's termination argument for the tropical semiring may well extend to it, but the extension requires a proof that we do not give here (Section 7). The converse fails: two cycles may carry the same credible grade while differing in grade and in reliability, so that the Z-weights fail the twins property although their credible grades satisfy it. The next proposition shows that the failure is not an artifact of the construction. An unambiguous Z-automaton may have no deterministic equivalent at all, over or over any commutative semiring that contains , although its Viterbi image determines, so the twins property on the Z-weights is strictly stronger than on their credible grades.
Proposition 5.11 (A Z-automaton without a deterministic equivalent). Let be the Z-automaton over with the states , the initial state and the final state , both with weight , and the transitions
Then is unambiguous, with and for and for every other word . Its Viterbi image is the behavior of a deterministic Viterbi automaton, but no deterministic automaton over a commutative semiring that contains as a subsemiring, in particular over , with initial and final weights allowed, has the behavior .
Proof. A word accepted by leaves on , stays in or in while reading , and enters on from or on from , so the accepted words are and with , each with exactly one accepting path. The path for takes transitions of weight and then , and the path for takes transitions of weight and then , which gives the stated behavior. Both values have credible grade , which is the behavior of the deterministic Viterbi automaton with the transitions and of weight and and of weight 1.
Suppose that a deterministic automaton over a commutative semiring , with initial weight on its initial state and arbitrary final weights, has the behavior . A deterministic automaton assigns to each word the weight of its unique path, preceded by and followed by the final weight of the last state, and the empty sum when that path does not exist. Since has a nonzero value for every , the path on exists; let be the state it reaches and the product of and its transition weights. As has finitely many states, there are with . Let be the product of the weight of the -transition leaving and the final weight of its target, and define likewise; both transitions exist, since and have nonzero values. Then
By commutativity and associativity, , and since the four factors lie in , which is closed under in , this reads in . Both pairs are nonzero elements of , so , a contradiction.
In the terms of Mohri [31], the states and of are siblings, both reached by and both carrying a cycle on , whose cycle weights and differ although their credible grades coincide. The reliabilities are thus not merely carried along; they enter the determinizability condition in their own right.
5.6 What the reliability component adds
Because the credible grade is a semiring homomorphism, every statement about a Z-automaton that is phrased through the credible grade alone is a statement about its Viterbi image. The level language is the cut-point language of , and Proposition 5.3 shows that the credible-grade part of the theory is the max-product theory read on the discounted grade. A reader may therefore ask what the second component contributes. The answer is concentrated in three places: the reliability filter, its behavior when analyses are added, and determination. Below, denotes the number of occurrences of the letter in .
Proposition 5.12 (Reliability filters are not scalar thresholds). Let be the one-state Z-automaton over whose state is initial and accepting, with the loop on weighted and the loop on weighted , and let and . Then
and no assignment of positive real weights to the two transitions, with any initial and final weights, any constant threshold, and any of the relations , makes the scalar max-product automaton on the same one-state skeleton recognize this language.
Proof. The automaton has a single run on each word , of weight , with credible grade and reliability , which gives the displayed language. A scalar reweighting with transition weights and , its initial and final weights absorbed into the threshold, yields the language of the words with for real , and , where stands for the relation in question. The set of letter counts of the target is finite and contains the noncollinear points , and . This excludes , since the solutions in of lie on a line when and form either the empty set or all of otherwise. It also excludes , since the solutions of form the complement in of such a set, which is either empty or infinite, whereas is finite and nonempty. The relations and reduce to and by negating , and . Suppose that holds exactly on . From and we obtain , so , and , and from and we obtain . Then requires , whereas . The strict relation is excluded by the same argument, and an exact linear-programming check over all letter counts up to eleven confirms that no separating half-plane exists in either orientation.
The language is finite and therefore recognized by some other scalar automaton, so the proposition concerns information rather than generative capacity. For a given Z-automaton, the question which words are admitted with an analysis that is both credible and reliable cannot be delegated to one weight per transition, whatever its values, and it is precisely the question that the corpus instantiation of Section 6 asks of a parser.
Proposition 5.13 (Reliability filters are not monotone). Let have the states , the initial state , the accepting state , and the transitions and , both weighted , and let add a state with the transitions , weighted , and , weighted . For and , the word belongs to and not to , although has every run of , whereas the level languages, the supports, and the upward cut-point languages and of scalar max-product automata can only grow when transitions are added.
Proof. In the only run on has weight , with credible grade and reliability . In the new run has weight and credible grade 0.4, so the Z-sum (6) selects it, and its reliability 0.4 falls below . Adding transitions adds runs without removing any, and a maximum over a larger set of runs cannot decrease, which gives the monotonicity of the other languages.
In the reading of Section 6, the new run is an analysis licensed by a rare construction, of high corpus probability and thin evidence. Once it is available it becomes the most credible analysis of the word, and the reliability filter withdraws the word, reporting that the best analysis now on offer is poorly attested. No scalar max-product weighting produces this behavior under an upward threshold, of the form or , which is the form that admits the words with strong analyses, by the monotonicity just noted. The filter of Proposition 5.13 applies to the selected run. An existential filter, which admits a word when some accepting run has credible grade at least and reliability at least , is monotone under the addition of runs and is regular by the construction in the proof of Proposition 5.7, and it may suit applications in which any sufficiently reliable analysis is acceptable. The two filters answer different questions, and the selected-run filter is the one that reports on the analysis the device actually returns. The third place is determinization, where, by Proposition 5.11, the twins property on the Z-weights is strictly stronger than on their credible grades, so that a Z-automaton may have no deterministic equivalent although its Viterbi image determines.
These three phenomena mark the boundary of the conservative extension of Proposition 5.3. Below it lies the max-product theory read on the discounted grade; above it lie the reliability filters, their nonmonotonicity, and the determinization condition, which have no counterpart in the credible-grade projection. Both examples were confirmed by exact rational computation.
5.7 Comparison with other graded devices
The results of this section place the Z-devices among the graded devices of the literature, and the comparison is worth making explicit, since several of these devices also carry more than a bare membership degree. Table 3 collects the devices with an established decision theory. Max-min fuzzy automata take only finitely many values, because the minimum and the maximum of finitely many grades never produce a new one, so their cut-point languages are regular and their equivalence is decidable [18]. Max-product fuzzy automata, the Viterbi automata of Section 2.6, have regular cut-point languages by Proposition 5.7 applied to weights of the form , but their equivalence is undecidable, by the result of Krob [29] transferred through the encoding of Remark 5.8. Probabilistic automata sum over runs instead of maximizing, and the sum buys expressive power at the price of tractability: their cut-point languages need not be regular [33], and the emptiness of a cut-point language is undecidable [34], although their equivalence is decidable in polynomial time [30]. Intuitionistic fuzzy automata [7, 23] carry a pair, a degree of membership together with a degree of nonmembership, combined coordinatewise by max-min and min-max rules, so they too take finitely many values; their second component, however, is a further fact about the word, evidence against its membership, and it stands on the same level as the first.
Table 3: Graded devices with an established decision theory. “Positive thresholds” refers to the languages with . The decision results assume rational weights and thresholds; for Z-automata the thresholds are on the credible grade and, for the filters, on the reliability of the selected run.
| Device | Weight | Competing runs | Positive thresholds | Equivalence |
|---|---|---|---|---|
| Max-min fuzzy | grade | maximum of minima | regular | decidable |
| Max-product fuzzy | grade | maximum of products | regular | undecidable |
| Probabilistic | probability | sum of products | not regular in general; emptiness undecidable | decidable |
| Intuitionistic fuzzy | membership and nonmembership | coordinatewise | regular | decidable |
| Z-automaton | grade and its reliability | most credible run, reported as a pair | regular (Proposition 5.7) | undecidable; decidable in polynomial time when unambiguous, deterministic included (Proposition 5.9) |
Three further ways of carrying a pair through a weighted device are close enough to the Z-weight structure to be confused with it. The componentwise product of two Viterbi semirings, among the separable structures of Proposition 4.7, maximizes the grade and the reliability independently, so the pair it reports for a word may join the grade of one derivation to the reliability of another and then describes no derivation at all. The lexicographic semirings used to encode sequence models exactly [6] select by the first component and consult the second only to break ties. The Z-weight structure is itself of this kind: through the injective map of Section 3.1 it embeds into the lexicographic product of two Viterbi semirings, ordered by the credible grade and then by the grade. The difference therefore lies in which quantity comes first, not in whether a lexicographic order is used. A lexicographic semiring on the raw pair, ordered by the grade first, lets the reliability only break ties and so can never let it overturn a higher grade. Ordering first by the credible grade lets a well-attested analysis of lower grade defeat a thinly attested one of higher grade, which is the behavior of Example 6.1. A Pareto structure, which keeps every derivation whose pair is not dominated by another, loses neither component, but it returns a set rather than a weight, so it is not selective and its values grow with the ambiguity of the word. The Z-weight structure Z is the selective choice in which the reported pair belongs to a single derivation and the reliability enters the comparison of derivations as a discount on the grade.
The comparison locates the contribution precisely. The Z-devices do not enlarge the class of languages recognized at a threshold, which coincides with that of the max-product devices, and they keep the decidability profile of the max-product devices rather than the richer but less tractable profile of the probabilistic ones. Ordinary scalar Viterbi automata over the discounted weights already reproduce the primary ranking of the Z-devices (Proposition 5.3). What the Z-devices add is a second component that qualifies the first instead of describing the word, kept attached to the derivation it qualifies, so that their additional value lies in the pair-sensitive output and the filters of Section 5.6, not in the ranking.
5.8 What the semiring buys
Taken together, the results of this section show that the choice of the credible-grade structure in Section 3, vindicated algebraically in Section 4, pays for itself in theory. The rational and the recognizable Z-languages coincide, and they are closed under the rational and the pointwise operations. Their supports are regular, and their level and reliability-filtered languages are regular and effectively constructible. Determinization of unambiguous Z-automata is available under the twins property on the Z-weights, at the price of intermediate weights outside , and it meets an obstruction that the Viterbi image does not see (Proposition 5.11). The Z-languages sit over the max-product fuzzy languages as a conservative extension that adds the reliability dimension without cost to the existing theory. Among the decision questions considered here, only behavioral equivalence fails to be decidable. It fails not because of the reliability component but because maximization is combined with a product under which finitely many weights generate infinitely many values, as in max-product and tropical automata; max-min fuzzy automata, whose values stay in a finite set, keep a decidable equivalence (Table 3). Equivalence is recovered for unambiguous recognizers, deterministic ones included, a regime that covers some of the evidence-derived recognizers of the next section. The next section turns from this general theory to those constructions, instantiated the Z-automaton with reliabilities estimated from data and examining the Z-languages that result.
6 Z-languages from data
The reliability component of a Z-weight was treated abstractly in the preceding sections, as a number in attached to a grade, and one way to give it content is to derive it from counts. This section does so for a grammar estimated from a corpus. The grade of a rule is its maximum-likelihood probability, and its reliability is an evidence score that grows with the count of the rule, an attestation penalty rather than a calibrated probability, so that the credible grade of Section 3 becomes the probability of a rule scaled down according to how little it is attested. The section does three things. It shows on a complete example how the attestation penalty can change the selected analysis. It relates the resulting recognizers to the boundary drawn in Section 5: their threshold languages are regular, as they are for every Z-automaton, so only the equivalence of two recognizers is at issue, and it is decidable when the recognizers are unambiguous. Finally, it uses the same evidence-count construction that our applied work used for the reliability of a rating [11].
6.1 Estimating a Z-grammar from a corpus
Let a grammar be estimated from a parsed corpus in the usual way, by counting how often each production is used. For a nonterminal X with productions observed times, write , and assume . A nonterminal that the corpus never expands receives no estimated productions and so generates nothing, and a production with is omitted, which amounts to the weight 0. We distinguish a sole allowed rule, the only production of X that the grammar admits, whose probability is 1 by definition, from a sole observed rule, the only production of X seen in the corpus among several that the grammar admits, whose probability 1 is a maximum-likelihood estimate from observations. The grade of is its maximum-likelihood probability , exactly as in a probabilistic grammar, and its reliability is the evidence score
where m > 0 is a fixed rational characteristic count. The score is a modeling choice, an attestation penalty, and we do not claim that it is a calibrated probability. It is motivated by the precision of rare-rule estimates. The relative standard error of a binomial proportion satisfies , which depends on both and and is close to only for rules with a small probability, and (10) can be written , a decreasing function of . The approximation does not cover every rule: for a sole observed rule the binomial error at vanishes while the count may still be small, and the score then records the number of attestations, not a sampling error. The characteristic count sets the scale, being the count at which the score reaches 1/2, and it is fixed once for the grammar or once per nonterminal. A Bayesian comparison is limited to a shrinkage coefficient. Under a Beta prior with and mean , the posterior mean of a rule probability from occurrences in expansions is , whose shrinkage coefficient equals when [35, 36]. This does not make a posterior mean, which would require both and , and no proper Beta prior with has mean zero. The count of the rule, rather than the total of its nonterminal, is used so that two rules of one nonterminal with different attestation receive different scores. The Z-weight

Figure 7: The evidence score of an estimated rule against its corpus count , with . A rule seen as often as the characteristic count receives one half. The two marked points are the rules and of Example 6.1. The curve is the definition of the score and is not evidence of its calibration.
of the rule is , and its credible grade is , the probability scaled down according to how little the rule is attested. A rule seen once keeps a fraction of its grade, whereas a rule seen many times keeps nearly all of it. Figure 7 shows the score (10) against the count, the hyperbolic curve, sigmoidal on the logarithmic axis, on which a rule seen as often as the characteristic count receives one half, and on which two rules of the example below are marked.
Two properties of the score (10) matter for what follows. Its floor is near zero, , so a rule seen once is almost entirely discounted, and its ceiling is one, so a rule seen thousands of times is almost not discounted. The rules for which carrying the score matters most are the rarely attested ones, which a probabilistic grammar weights by a probability estimated from a handful of examples. The same kind of score, one that grows with the number of observations behind a value, is the one our applied work used for the ratings of places, where representations with an explicit evidence channel screened out sparsely reviewed candidates [11].
6.2 Reliability-aware parsing
The effect of the reliability component is seen most clearly when a sentence is ambiguous and its two analyses rest on evidence of different strength. The credible-grade sum of Section 3 then selects the analysis whose probability best survives the discount for evidence, which is not in general the analysis of highest probability.
Example 6.1 (An attestation penalty that changes the selected analysis). Consider a hypothetical treebank of 10,000 trees and the following estimated productions, with ; the counts of productions not shown are aggregated into the totals , and the terminals are and .
| Production | grade | score | ||
|---|---|---|---|---|
| 5 | 10,000 | 0.0005 | 5/25 = 0.200 | |
| 995 | 10,000 | 0.0995 | 995/1015 ≈ 0.980 | |
| 1,800 | 2,000 | 0.9 | 1800/1820 ≈ 0.989 | |
| 995 | 995 | 1 | 995/1015 ≈ 0.980 | |
| 100 | 50,000 | 0.002 | 100/120 ≈ 0.833 | |
| 400 | 8,000 | 0.05 | 400/420 ≈ 0.952 |
We assume that no production outside the table occurs in a derivation of , so that the fragment shown is complete for this word. The word then has exactly two leftmost derivations, and . Multiplying the weights of their productions gives
with credible grades approximately and . The maximum-likelihood parser, reading the grade alone, returns , whose advantage rests on the production seen five times. The credible-grade parser returns , so that , although is the longer derivation and so bears the length penalty of Remark 2.5; the production is common to both derivations and does not affect the comparison. is a sole observed rule, whose grade 1 is an estimate, and its score reflects only its 995 attestations. The example demonstrates that the proposed attestation penalty can change the selected analysis. Whether this improves parsing accuracy or calibration is an empirical question that is not evaluated here, and the products of scores along and are declared path scores in the sense of Remark 2.5, since the productions were estimated from one corpus.
This behavior is a reliability penalty on rare rules, not smoothing in the usual sense, and the difference is worth stating precisely. Smoothing exists chiefly to give unseen rules a nonzero probability, redistributing mass from the seen to the unseen; the Z-grammar does not do this, since an unseen rule has count zero and so credible grade zero, the semiring . What it does instead is penalize rules that are seen but thinly attested, leaving every estimated probability untouched and carrying alongside it the reliability of its estimate, so that the discount falls not on the probability but on the decision that uses it, and only where the evidence is actually thin. The credible grade scales the probability of a rule toward nonfiring by a factor that falls as the count of the rule falls.
One point about the product should be made precise, since collapsing a Z-number into a single reliability-scaled value is in general a lossy conversion. The credible grade orders derivations but is not the value reported: the Z-language returns the full pair of the selected derivation, the product of the grades and the product of the scores of its rules, and the product serves only to choose among competitors, as a selection semiring requires, its being preserved only by a multiplicative key. Used this way the reliability scales a grade toward the semiring zero. This resembles the shrinkage rule with the target , but only formally, since a target of zero corresponds to no proper Beta prior and we claim no Bayesian derivation. A cost of the construction is that the discount is toward nonfiring rather than toward a backoff distribution, so a rare rule is discounted toward zero rather than toward a smoothed prior; a reference other than zero is not representable in the semiring, because it is not preserved by the product.
6.3 Effectivity in the data-driven regime
Thresholds are effective for every estimated recognizer, since Proposition 5.7 needs no determinism. Some of the finite-state recognizers that arise from estimation are also deterministic or unambiguous, for instance the acceptors underlying morphological analyzers compiled to deterministic transducers, and for these the undecidability result of Section 5 does not apply; the transducers themselves, which produce output, lie outside the present theory (Section 7). Others, such as part-of-speech taggers read as weighted acceptors, are in general neither.
Corollary 6.2 (Effectivity for estimated recognizers). Let the characteristic count be rational. For every estimated Z-automaton and all rational thresholds , the level languages and the reliability-filtered languages are regular and effectively constructible. For estimated Z-automata that are deterministic or unambiguous, and for unambiguous estimated right-linear Z-grammars, behavioral equivalence is decidable in polynomial time.
Proof. The estimated weights are rational for a rational characteristic count , so the rational-weights hypothesis of Section 5 is satisfied. Regularity is Proposition 5.7, which requires neither determinism nor unambiguity. A deterministic automaton is unambiguous, and the correspondence of Proposition 3.11 matches the derivations of a word one to one with its accepting paths, so an unambiguous right-linear Z-grammar yields an unambiguous Z-automaton with the same behavior. Equivalence is then decided in polynomial time by the unambiguous case of Proposition 5.9.
The content of the corollary is that the undecidability of behavioral equivalence, which Section 5 inherited from max-product automata and which holds for arbitrary Z-automata, is no obstacle for estimated recognizers that are unambiguous. The acceptor of a morphological analyzer or a chunker compiled to a deterministic finite-state device falls in this regime, and two such acceptors can be compared exactly. Not every estimated sequence model is of this kind. A part-of-speech tagger read as a weighted acceptor is in general neither deterministic nor unambiguous. Its credible-grade thresholds and reliability filters remain effective, but no general procedure decides whether two such taggers define the same Z-language. The corollary thus separates the unambiguous data-driven instances, where every question considered here is decidable, from the ambiguous ones, where only equivalence escapes. The context-free case, in which a parser rather than an acceptor is needed, is among the open problems of Section 7.
7 Conclusion
This paper asked whether a reliability attached to a grade, in the manner of the second component of a Z-number, can be carried through a grammar or an automaton by an algebra that keeps the reported pair attached to a single derivation. For scalar grade-reliability pairs the answer is positive, and it has a definite shape. Aggregating the two components separately gives a semiring whose reported pair may belong to no derivation; selecting one derivation keeps the pair coherent but breaks distributivity at degenerate weights; and on the canonical carrier , with selection by the credible grade and ties broken by grade, the laws hold. The resulting structure is a commutative selective semiring with a lexicographic description, so the theory of weighted automata over commutative semirings applies to it, and the general results obtained in this way, among them the rational characterization and the closure properties, are corollaries rather than new theorems.
The results that depend on the pair itself are the following. Positive credible-grade cuts and selected-run reliability filters of finite Z-automata with rational weights and thresholds are regular and effectively constructible. A reliability filter on a one-state automaton cannot be implemented by any positive scalar reweighting of the same skeleton, the selected-run filter is not monotone under the addition of runs, and an unambiguous Z-automaton can have no deterministic equivalent although its scalar projection is deterministic, while the twins property suffices for the determinization of unambiguous Z-automata. Among the alternative combination rules, select-by-grade is a semiring on the grade-zero quotient and induces no operation on the double quotient, and the coupled schemes built on the minimum grade law fail distributivity on every carrier examined. Behavioral equivalence is undecidable in general and decidable in polynomial time for unambiguous Z-automata with rational weights.
These results have definite limits. The structure is a model for scalar pairs inspired by Z-numbers and not a semiring of fuzzy-valued Z-numbers, and centroid defuzzification does not recover it from general fuzzy weights (Remark 3.4). The multiplicative reliability law is a probability only for independent occurrence-level events; for repeated uses of one estimated rule, and for rules estimated from a shared corpus, it is a declared path score, and it penalizes length. The count-based score of Section 6 is an attestation penalty and not a calibrated probability, and the example in which it changes the selected analysis is not an evaluation of parsing accuracy. Whether the twins property suffices for the determinization of ambiguous Z-automata is not proved here.
Relative to the computing-with-words automata, which generalize the input of a fuzzy device, and to type-2 fuzzy grammars, which fuzzify the grade, the Z-devices generalize the weight by a second component that qualifies the first; relative to product and lexicographic semirings, they differ in which quantity orders the derivations (Section 5.7). They enlarge no language class and keep the decidability profile of the max-product devices.
Several questions remain open, and we set them out in the order of their likely difficulty.
-
Fuzzy-valued Z-weights. The theory was developed for scalar pairs. A fuzzy-valued extension is unproved, and centroid recovery fails (Remark 3.4). Such an extension would need explicit operations on fuzzy grades and reliabilities and an order on fuzzy credible grades compatible with their product, and we do not assume that the comparison of Section 4 would carry over to it unchanged. A decision rule that uses the full fuzzy reliability rather than a summary belongs to the same problem.
-
Shared-parameter reliability. The product law treats the occurrences of rules as independent. A model of reliability for parameters shared across occurrences, and across the rules of one nonterminal estimated from one corpus, would replace the declared path score of Remark 2.5 by a quantity with a probabilistic meaning; it is unlikely to be a semiring product, and it needs a separate model.
-
Determinization of ambiguous Z-automata. Proposition 5.10 proves that the twins property suffices for unambiguous Z-automata. Whether it suffices in general, as it does over the tropical semiring, is open.
-
The context-free level. We treated the regular and the recognizable Z-languages. Because Z is a commutative semiring, semiring parsing [5] already supplies a polynomial-time parsing algorithm for context-free Z-grammars in Chomsky normal form: the CKY recursion evaluated over Z returns the most credible parse together with its grade and its reliability. A context-free parser needs, in addition, its own model of reliability for subtrees shared between parses. What remains open is the context-free theory proper. It includes Z-pushdown automata and their equivalence with context-free Z-grammars, normal forms and pumping arguments, and the consequences for Z-languages of the Chomsky–Schützenberger theorem for quantitative context-free languages [20], which Section 4 invoked only in passing. Above all, it includes the status of the threshold languages, beginning with whether the level and the reliability-filtered languages of context-free Z-grammars are context-free.
-
The weaker weight structures. The comparison of Section 4 left four strong-bimonoid structures un-exploited, among them the counting structures that accumulate rather than select derivations, together with the unclassified native Z-arithmetic. What decision problems these weaker structures can still solve, whether their recognizable and rational Z-languages coincide, and whether a Z-analogue of the probabilistic, sum-over-parses reading of a grammar can be given a usable reliability are questions about the structures that the semiring requirement set aside.
-
Learning and smoothing. The attestation penalty of Section 6 was illustrated, not evaluated. Testing it requires a comparison on a treebank against the established smoothing methods, an estimation of the characteristic count per nonterminal, and a measurement of whether the penalty changes parsing accuracy or calibration.
-
Transducers, logic, and trees. Beyond acceptance and generation lie the Z-weighted transducers that tagging and translation require, the Z-weighted monadic second-order logic whose equivalence with Z-automata the weighted logic-automata connection would predict, and the Z-weighted tree automata that a parse forest, rather than a single parse, would need. Each is a direction in which the construction of this paper is the natural starting point.
Main takeaway and limitations The main takeaway is that a reliability can be carried through a weighted grammar or automaton by a standard algebra, the credible-grade semiring, provided that the reported pair stays attached to the derivation it qualifies. What the pair then adds over its scalar projection lies in the reported reliability, in the reliability filters, and in determinization, not in the ranking of derivations, which the scalar credible grade already determines. The framework has three practical limitations. It treats scalar pairs rather than fuzzy-valued Z-numbers. Its multiplicative reliability law is a probability only under occurrence-level independence, and otherwise a declared path score that penalizes length. Its usefulness for parsing depends on how reliabilities are obtained from data, which remains to be tested empirically.
CRediT authorship contribution statement
Sherzod Turaev: Conceptualization, Methodology, Formal analysis, Investigation, Software, Visualization, Writing – original draft, Writing – review & editing, Project administration. Nor Haniza Sarmin: Validation, Formal analysis, Writing – review & editing. Wan Heng Fong: Validation, Writing – review & editing.
Declaration of competing interest
The authors declare that they have no known competing financial interests or personal relationships that could have appeared to influence the work reported in this paper.
Funding
This work was supported by the United Arab Emirates University.
Data availability
No data were used for the research described in the article. The scripts that verify the counterexamples and the worked examples by exact rational arithmetic are available from the corresponding author on request.
Declaration of generative AI and AI-assisted technologies in the manuscript preparation process
During the preparation of this work the authors used Claude (Anthropic) to assist with language editing and the refinement of draft passages, with the retrieval and verification of bibliographic records, and with the code that draws the figures. The mathematical results, their proofs, and the interpretation of the work are the authors' own. After using this tool, the authors reviewed and edited the content as needed and take full responsibility for the content of the published article.
Acknowledgements
The authors gratefully acknowledge the College of Computing and Artificial Intelligence and the Research and Innovation Office at the United Arab Emirates University for the institutional resources, including library access and computational facilities, that supported this work.
References
[1] E.T. Lee, L.A. Zadeh, Note on fuzzy languages, Inf. Sci. 1 (4) (1969) 421–434. https://doi.org/10.1016/0020-0255(69)90025-5
[2] M.P. Schützenberger, On the definition of a family of automata, Inf. Control 4 (2-3) (1961) 245–270. https://doi.org/10.1016/S0019-9958(61)80020-X
[3] M. Droste, W. Kuich, H. Vogler (Eds.), Handbook of Weighted Automata, Monographs in Theoretical Computer Science. An EATCS Series, Springer, Berlin, 2009. https://doi.org/10.1007/978-3-642-01492-5
[4] Y. Li, W. Pedrycz, Fuzzy finite automata and fuzzy regular expressions with membership values in lattice-ordered monoids, Fuzzy Sets Syst. 156 (1) (2005) 68–92. https://doi.org/10.1016/j.fss.2005.04.004
[5] J. Goodman, Semiring parsing, Comput. Linguist. 25 (4) (1999) 573–606. https://aclanthology.org/J99-4004/
[6] B. Roark, R. Sproat, I. Shafran, Lexicographic semirings for exact automata encoding of sequence models, in: Proceedings of the 49th Annual Meeting of the Association for Computational Linguistics: Human Language Technologies, Association for Computational Linguistics, Portland, OR, 2011, pp. 1–5. https://aclanthology.org/P11-2001/
[7] Y.B. Jun, Intuitionistic fuzzy finite state machines, J. Appl. Math. Comput. 17 (1-2) (2005) 109–120. https://doi.org/10.1007/BF02936044
[8] L.A. Zadeh, A note on Z-numbers, Inf. Sci. 181 (14) (2011) 2923–2932. https://doi.org/10.1016/j.ins.2011.02.022
[9] R.A. Aliev, A.V. Alizadeh, O.H. Huseynov, The arithmetic of discrete Z-numbers, Inf. Sci. 290 (2015) 134–155. https://doi.org/10.1016/j.ins.2014.08.024
[10] R.A. Aliev, O.H. Huseynov, L.M. Zeinalova, The arithmetic of continuous Z-numbers, Inf. Sci. 373 (2016) 441–460. https://doi.org/10.1016/j.ins.2016.08.078
[11] S. Turaev, M. John, A. Nuriyev, S. Al-Dabet, Evidence-aware uncertainty representation for eco-friendly tourism trip planning: a national benchmark of Z-numbers against alternative formalisms across the United Arab Emirates, Complex Intell. Syst. (2026), in press.
[12] M. Ying, A formal model of computing with words, IEEE Trans. Fuzzy Syst. 10 (5) (2002) 640–652. https://doi.org/10.1109/TFUZZ.2002.803497
[13] H. Wang, D. Qiu, Computing with words via Turing machines: a formal approach, IEEE Trans. Fuzzy Syst. 11 (6) (2003) 742–753. https://doi.org/10.1109/TFUZZ.2003.819841
[14] M. Mizumoto, K. Tanaka, Some properties of fuzzy sets of type 2, Inf. Control 31 (4) (1976) 312–340. https://doi.org/10.1016/S0019-9958(76)80011-3
[15] R. Banerjee, S.K. Pal, J.K. Pal, A decade of the Z-numbers, IEEE Trans. Fuzzy Syst. 30 (8) (2022) 2800–2812. https://doi.org/10.1109/TFUZZ.2021.3094657
[16] L.A. Zadeh, Fuzzy sets, Inf. Control 8 (3) (1965) 338–353. https://doi.org/10.1016/S0019-9958(65)90241-X
[17] J.E. Hopcroft, J.D. Ullman, Introduction to Automata Theory, Languages, and Computation, Addison-Wesley, Reading, MA, 1979.
[18] J.N. Mordeson, D.S. Malik, Fuzzy Automata and Languages: Theory and Applications, Chapman & Hall/CRC, Boca Raton, FL, 2002. https://doi.org/10.1201/9781420035643
[19] M. Droste, T. Stüber, H. Vogler, Weighted finite automata over strong bimonoids, Inf. Sci. 180 (1) (2010) 156–166. https://doi.org/10.1016/j.ins.2009.09.003
[20] M. Droste, H. Vogler, The Chomsky-Schützenberger theorem for quantitative context-free languages, Int. J. Found. Comput. Sci. 25 (8) (2014) 955–969. https://doi.org/10.1142/S0129054114400176
[21] Y. Cao, M. Ying, G. Chen, Retraction and generalized extension of computing with words, IEEE Trans. Fuzzy Syst. 15 (6) (2007) 1238–1250. https://doi.org/10.1109/TFUZZ.2007.896301
[22] M. Gondran, M. Minoux, Graphs, Dioids and Semirings: New Models and Algorithms, Operations Research/Computer Science Interfaces Series, vol. 41, Springer, New York, 2008. https://doi.org/10.1007/978-0-387-75450-5
[23] X. Zhang, Y. Li, Intuitionistic fuzzy recognizers and intuitionistic fuzzy finite automata, Soft Comput. 13 (6) (2009) 611–616. https://doi.org/10.1007/s00500-008-0338-4
[24] B. Liu, Y.-K. Liu, Expected value of fuzzy variable and fuzzy expected value models, IEEE Trans. Fuzzy Syst. 10 (4) (2002) 445–450. https://doi.org/10.1109/TFUZZ.2002.800692
[25] J. Berstel, C. Reutenauer, Rational Series and Their Languages, Monographs in Theoretical Computer Science. An EATCS Series, vol. 12, Springer, Berlin, Heidelberg, 1988. ISBN 978-3-540-18626-7.
[26] M. Droste, W. Kuich, Semirings and formal power series, in: M. Droste, W. Kuich, H. Vogler (Eds.), Handbook of Weighted Automata, Springer, Berlin, 2009, pp. 3–28. https://doi.org/10.1007/978-3-642-01492-5_1
[27] J. Sakarovitch, Elements of Automata Theory, Cambridge University Press, Cambridge, 2009. https://doi.org/10.1017/CB09781139195218
[28] W. Kuich, Semirings and formal power series: their relevance to formal languages and automata, in: G. Rozenberg, A. Salomaa (Eds.), Handbook of Formal Languages, vol. 1, Word, Language, Grammar, Springer, Berlin, 1997, pp. 609–677. https://doi.org/10.1007/978-3-642-59136-5_9
[29] D. Krob, The equality problem for rational series with multiplicities in the tropical semiring is undecidable, Int. J. Algebra Comput. 4 (3) (1994) 405–425. https://doi.org/10.1142/S0218196794000063
[30] W.-G. Tzeng, A polynomial-time algorithm for the equivalence of probabilistic automata, SIAM J. Comput. 21 (2) (1992) 216–227. https://doi.org/10.1137/0221017
[31] M. Mohri, Finite-state transducers in language and speech processing, Comput. Linguist. 23 (2) (1997) 269–311. https://aclanthology.org/J97-2003/
[32] M. Mohri, Weighted automata algorithms, in: M. Droste, W. Kuich, H. Vogler (Eds.), Handbook of Weighted Automata, Springer, Berlin, 2009, pp. 213–254. https://doi.org/10.1007/978-3-642-01492-5_6
[33] M.O. Rabin, Probabilistic automata, Inf. Control 6 (3) (1963) 230–245. https://doi.org/10.1016/S0019-9958(63)90290-0
[34] A. Paz, Introduction to Probabilistic Automata, Academic Press, New York, 1971. https://doi.org/10.1016/C2013-0-11297-4
[35] G. Casella, An introduction to empirical Bayes data analysis, Am. Stat. 39 (2) (1985) 83–87. https://doi.org/10.1080/00031305.1985.10479400
[36] B. Efron, C. Morris, Stein's estimation rule and its competitors—an empirical Bayes approach, J. Am. Stat. Assoc. 68 (341) (1973) 117–130. https://doi.org/10.1080/01621459.1973.10481350