Polynomial output growth eliminates unbounded last-pebble recursion
A recursive last-pebble word transducer reads its input with a two-way head and can stack marks on input positions. It can inspect only the top mark. Under the weak-pop convention, removing that mark leaves the head at the position where the mark was placed. Douéneau–Tabot asked whether polynomial output growth guarantees that such a transducer can be replaced effectively by one with a fixed stack-depth bound. For deterministic transducers the answer is yes, and the replacement uses the same last-mark rule and emits exactly the same ordered word. More precisely, for the computed function \(f\), a bound \(|f(w)|\le A(|w|+1)^k\) with fixed \(A>0\) and \(k\ge 0\) on every successful input \(w\) is equivalent to the existence of a bounded-depth implementation. For a partial transducer, its successful domain is effectively regular and the replacement has that same domain. Douéneau–Tabot, Optimization of string transducers, thesis v2, §4.5, Conjecture 4.56, printed p. 120 Earlier work established that polynomially growing invisible-pebble string functions are polyregular. The result here gives a finite-depth realisation within the last-pebble model itself. The quantity that determines whether this is possible is the productive branching rank of the computation. A chain of calls can run for arbitrarily many levels at unchanged rank. A split into two sufficiently high-rank branches forces two separate contributions to the output. Gallot–Lhote–Nguyên, Theorem 5, Proposition 7 and Remark 8 On a fixed successful input, represent each invocation by its entry kind and its single marked position. In the weak-pop model, each child's return state can be tested by a finite automaton on the word marked at the child's entry position. The caller can therefore treat the child as an ordered call event and resume at the child's drop position. Keep literal output events in the same local order and discard calls that emit the empty word. This gives a finite directed acyclic graph with an ordered list of outgoing occurrences at each vertex. Distinct occurrences may lead to the same target. Unfolding the calls copies each occurrence separately, and reading the literal leaves from left to right gives the output. The regular return-state and domain tests use the effective equivalence between invisible-pebble recognition and finite-state recognition on words. Engelfriet–Hoogeboom–Samwel, full version, Theorem 11 Assign rank \(s(v)=0\) to a literal leaf. At each other retained vertex \(v\), compute in reverse topological order \[s(v)=\max\left(0,\ \max_e s(v_e),\ 1+\max_{e\ne e'}\min\{s(v_e),s(v_{e'})\}\right), \] where \(e,e'\) are distinct outgoing occurrences, \(v_e\) is the target of \(e\), and maxima over empty choices are omitted. Write \(s(w)\) for the root rank, with value zero for empty output. Every productive vertex of rank \(d\) unfolds to at least \(2^d\) literal leaves. For each integer \(K\ge 1\), one can construct a finite automaton testing for an input of rank at least \(K\). The rank is a game value. The maximising player can stop, follow one occurrence at zero cost, or pay one to offer two distinct occurrences from which the minimising player chooses. Regular scans on the input line implement these choices with one head. When two candidates lie on the same side at different positions, the scan can keep the nearer candidate as one option and defer choosing the farther one until the minimising player commits to continuing the scan. A finite annotation at each input cell records the maximising player's choices there. With those choices fixed, a two-way distance automaton computes the minimum total cost of an accepting path. Maximising that minimum over valid strategy annotations recovers \(s(w)\). The threshold automaton stores shortest-path distances between boundary configurations of input blocks, capping finite distances at \(K\) and reserving a separate value for unreachable configurations. Adjacent blocks are merged by shortest paths through their shared boundary transitions. Its number of states is at most \(C(K+2)^C\) for a constant \(C\) depending only on the source device. Thus, whenever rank at least \(K\) occurs, there is a successful witness \(w_K\) with \(|w_K|=O((K+2)^C)\) and \(|f(w_K)|\ge 2^K\). Unbounded rank would contradict any fixed polynomial growth bound. Under the polynomial-growth promise, test the threshold automata in order and take \(H=K-1\) at the first empty threshold language. This computes a uniform rank bound without an input growth exponent. The boundedness test for distance automata also decides whether the promise holds. Barceló–Figueira–Romero, §5, Proposition 9 and Theorem 10 Given \(H\), the compiler follows the unique child occurrence of unchanged rank whenever one exists. For the resulting chain \(v_0,\ldots,v_q\), let \(P_i\) and \(Q_i\) be the concatenated child outputs before and after that occurrence at \(v_i\), for \(0\le i<q\). Let \(R_q\) be the full local child expansion at the final vertex, or its letter if it is a literal leaf. The required output is \[P_0\cdots P_{q-1}\,R_q\,Q_{q-1}\cdots Q_0. \] Each block preserves its local occurrence order, and every child expansion in these blocks has strictly smaller rank. For fixed \(j\ge 1\), rank at least \(j\) can be tested in monadic second-order logic on input positions: a vertex must reach, possibly in zero steps, a vertex with two distinct child occurrences whose targets have rank at least \(j-1\). The test at threshold zero is productivity. These tests let a two-way transducer enumerate the chain instructions at their vertex positions, and a second transducer enumerate the selected child occurrences at their own positions. Each helper starts with just the mark at its instruction's position. This costs at most two call levels per rank decrease, giving depth at most \(2H+O(1)\), with fixed overhead for the machine conventions. Conversely, each terminating finite-state layer generates only \(O(|w|+1)\) events, so any fixed number of layers gives polynomial output growth. Bojańczyk, Transducers with origin information, §1, equivalence of the models
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.24767314
- Primary Topic
- semigroups and automata theory
- Type
- preprint