Rational copyless cost-register automata are not closed under reversal
Reversing the input can destroy rational copyless computability. Mazowiecki, Puch and Smertnig asked whether every finite alphabet with at least two letters admits a function that a rational copyless cost register automaton can compute in the forward direction but cannot compute on reversed words. Their Example 52 supplied a binary candidate. The result proves that two registers suffice for its forward computation and that no finite number of states or registers suffices for the reverse, even when agreement is required only on words in \((1^+0^+)^*\). Full version, Appendix B.6, Conjecture 51 and Example 52, p. 29 · STACS 2026 paper, introduction The model has deterministic finite control and finitely many rational-valued registers. Each transition updates the registers simultaneously. Copylessness means that the update admits a tuple of expressions using rational constants, addition and multiplication in which each old register occurs at most once across the entire tuple. The separation permits arbitrary rational constants, including negative ones, and therefore allows cancellation. The forward function \(F\) is defined on every binary word. Start in the zero-run phase with registers \(A=1\) and \(Z=0\), and return \(A\) after the last letter. On a \(0\), keep \(A\), increase \(Z\) by one and enter the zero-run phase. On a \(1\) in that phase, set \((A,Z)\leftarrow(AZ+1,0)\) and enter the one-run phase. On a \(1\) in the one-run phase, set \((A,Z)\leftarrow(A+1,0)\) and stay there. Thus each complete block \(0^m1^k\), with positive integer run lengths \(m,k\), replaces \(A\) by \(mA+k\). On any larger finite alphabet, treating each extra letter as \(0\) gives the same separation, since a machine for the reverse would also have to compute it on binary words. For a word \(v\), let \(v^{\mathrm R}\) denote its letters in reverse order and set \(F^{\mathrm R}(v)=F(v^{\mathrm R})\). On the block language \(\mathcal B=(1^+0^+)^*\), which includes the empty word, a block \(1^k0^m\) acts on the target coordinates by \[(S,P)\longmapsto(S+kP,mP),\qquad (S_0,P_0)=(0,1),\qquad \text{output }S+P. \] For \(v=1^{k_1}0^{m_1}\cdots1^{k_t}0^{m_t}\), write \(M_v=\prod_{i=1}^t m_i\) and \(C_v=\sum_{i=1}^t k_i\prod_{j<i}m_j\), where an empty product is \(1\) and an empty sum is \(0\). Then \(F^{\mathrm R}(v)=C_v+M_v\). The running product \(P\) contributes to the current sum and is also rescaled for future blocks. The structural constraint on a copyless implementation can be expressed using padded blocks. Include an unused register that every transition preserves, and let \(\Omega\) be the set of pairs of a control state and a register index in the resulting machine. Each block word induces a partial map of \(\Omega\) that records the destination of each old register occurrence in the composed update expressions, with the expressions left unsimplified. Let \(e\) be an idempotent power of a word in \(\mathcal B\) with minimum partial-map image size, and set \(L=|\Omega|!\). After the prefix \(ee\), the words \(w_v=(eve)^L e\), for \(v\in\mathcal B\), act between boundaries with the same control state and the same fixed values outside the persistent registers. The persistent registers are those whose pairs at that state belong to the image of the partial map for \(e\). On their \(r\) coordinates, every \(w_v\) acts by separate affine updates \(x_i\mapsto a_{v,i}x_i+b_{v,i}\), with rational coefficients. Choose a prime \(p>2^r+1\) with \(p\nmid M_e\) and coprime to every denominator in the machine's rational constants, including its initial values and output constants. Over the field \(\mathbb F_p\) of residues modulo \(p\), each word \(u_k=(w_{1^k0^p})^{p(p-1)}\), for \(1\le k\le 2^r+1\), leaves some subset of the candidate's persistent registers unchanged and sets the others to constants. Consider the vector space spanned over \(\mathbb F_p\) by the continuation outputs on histories reachable after \(ee\) by sequences of these words, including the empty sequence. Appending \(u_k\) sends a function \(h\) of a history \(H\) to \(H\mapsto h(Hu_k)\). For the candidate, the image of this operator depends only on the subset of unchanged registers, so there are at most \(2^r\) different images. For the target, the images are the \(2^r+1\) distinct lines \(\operatorname{span}_{\mathbb F_p}\{S+(C_e+M_e k)P\}\), with coefficients reduced modulo \(p\). This difference holds on actual input histories and rules out agreement on \(\mathcal B\). The same witness answers the pumping question in §3.2. The source's construction gives a rational weighted automaton for \(F\). To obtain one for \(F^{\mathrm R}\), transpose every letter matrix and exchange and transpose the initial row and final column vectors. For all words \(u,w,v\) and integers \(n\ge0\), \((uw^nv)^{\mathrm R}=v^{\mathrm R}(w^{\mathrm R})^nu^{\mathrm R}\), so reversal preserves the collection of pumping sequences. The reversed weighted automaton therefore satisfies the necessary pumping property in §3.2, establishing that this property is insufficient for rational copyless computability.
Authors
- Zixuan He
Institutions
- University of Glasgow (GB)
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-12-03
- DOI
- https://doi.org/10.5281/zenodo.24765521
- Primary Topic
- semigroups and automata theory
- Type
- preprint