Abstract 1 Introduction 2 Three formalisms for expregular functions 3 Equivalence of the three models 4 Discussion References

Expregular Functions

Thomas Colcombet ORCID CNRS, IRIF, Université Paris Cité, France    Nathan Lhote ORCID LIS, Université Aix-Marseille, France    Pierre Ohlmann ORCID CNRS, LIS, Université Aix-Marseille, France
Abstract

Polyregular functions form a robust class of string-to-string functions with polynomial growth, as evidenced by Bojańczyk (2018). This class admits numerous descriptions and enjoys several closure properties. Most notably, polyregular functions are regularity reflecting (i.e. the inverse image of a regular language is regular).

In this work, we propose a robust class of string-to-string functions with exponential growth which we call expregular functions. We consider the following three models for describing them:

  • MSO set interpretations, which extend MSO interpretations (one of the models capturing polyregular functions), by operating on monadic variables instead of tuples of first-order variables;

  • yield-Hennie machines, which are branching one-tape Turing machines with bounded visit; and

  • Ariadne transducers, a new model of 2-way pushdown machines with a bounded visit restriction.

Our main contribution is a translation from MSO set interpretations to yield-Hennie machines, which are known to be regularity reflecting (Dartois, Nguyễn, Peyrat 2026). In particular this establishes that MSO set interpretations are regularity reflecting, which in turn settles a major conjecture about automatic structures: every automatic ω-word has a decidable MSO theory.

Yield-Hennie machine directly translate to Ariadne transducers, and our second contribution is to prove that Ariadne transducers also translate to MSO set interpretations, thus establishing the equivalence of the three models. This is obtained by showing that that Ariadne automata – the automaton model corresponding to Ariadne transducers – recognise regular languages.

Keywords and phrases:
monadic second-order logic, exponential growth, automatic structures
Category:
Track B: Automata, Logic, Semantics, and Theory of Programming
Funding:
Nathan Lhote: This work was partly supported by ANR QUASY 23-CE48-0008.
Copyright and License:
[Uncaptioned image] © Thomas Colcombet, Nathan Lhote, and Pierre Ohlmann; licensed under Creative Commons License CC-BY 4.0
2012 ACM Subject Classification:
Theory of computation Transducers
; Theory of computation Finite Model Theory
Related Version:
Full Version: https://arxiv.org/abs/2602.21019 [9]
Acknowledgements:
We express our gratitude to Lê Thành Dũng (Tito) Nguyễn for contributing several crucial insights to this project, and in particular the use of yield-Hennie machines. Nathan Lhote would like to thank Pierre-Alain Reynier, Emmanuel Filiot, Rafał Stefański and Mikołaj Bojańczyk for valuable discussions at the early stages of this line of research.
Editors:
Sayan Bhattacharya, Danupon Nanongkai, Michael Benedikt, and Gabriele Puppis

Low-co2 research paper (https://tcs4f.org/low-co2-v1) This research was developed, written, submitted and presented without the use of air travel.

1 Introduction

MSO set interpretations are a logical formalism introduced by Colcombet and Löding [10] for defining functions on relational structures. They extend the usual monadic second-order (MSO) transductions (cf. e.g. [20]) with the use of set variables, making the output size grow up to exponentially in the input size. A basic feature of MSO set interpretations is that the inverse image of a first-order definable predicate on outputs is an MSO-definable (i.e. regular) predicate on inputs. This feature is closely connected to the decidability of the first-order theory of automatic structures (cf. the survey [26]). In the string-to-string case, we prove a recent conjecture of Filiot, Lhote and Reynier [22, Conjecture 2]:

Theorem 1.1.

String-to-string MSO set interpretations are regularity reflecting:111We borrow from [6] this terminology inspired by preservation vs. reflection of limits in category theory. We avoid the term “regularity preserving” which evokes direct images. Some other authors such as [33, 8] refer to regular-continuous functions, alluding to the topology of profinite words. the inverse image of a regular language is effectively regular.

In fact, Filiot et al. have shown [22, Proposition 14] that this has the following consequence, conjectured by Bárány [7, Chapter 5] (see also [1, Section 9]) nearly two decades ago:

Corollary 1.2.

Every automatic ω-word has a decidable MSO theory.

That said, this paper is not about automatic structures. Rather, we focus on the class of string-to-string functions defined by MSO set interpretations. We call them the expregular functions, and we believe that they capture a canonical notion of “exponential finite-state computation” – in the same way that the polyregular functions (surveyed in [3]) are considered the finite-state counterpart of the polynomial-time computable functions. In this work, we provide several arguments that support this intuition, and in particular several equivalent machine models that characterise the class.

Context: (poly)regular functions.

The informal concept of “finite-state computation” is to generalise the regular languages to settings beyond string-to-boolean functions. Transducer theory studies such generalisations for functions that may output strings, or even trees. There is a wide variety of transducer models, i.e. automata with output; while they are not all equivalent, many of them cluster into a few function classes that can then be considered as “robust” and “canonical”.

In the late 1990s, Engelfriet and Hoogeboom [14] proved that two-way transducers and string-to-string MSO transductions define the same class of functions, which they called the “regular string transductions”. Many other characterisations were later found, see e.g. [6, §1] for a non-exhaustive enumeration. By the mid-2010s, the name regular function had become standard, and the properties of these functions had been thoroughly investigated, cf. [23, 30] – though a few major open problems remained, one of which was settled recently [21]. Regular functions have linear growth: the output size is bounded by a linear function of the input size. Conversely and strikingly, for some superlinear string transducer models, if a function that they compute happens to have linear growth, then it must be regular [16, 25].

The k-pebble transducers [29, 17, 13] extend two-way transducers with up to O(nk) growth. Starting from the late 2010s, Bojańczyk promoted the functions computed by pebble transducers as a canonical notion of polynomial finite-state computation, while introducing the term polyregular functions and proving a list of several equivalent characterisations [2, 4]. To this list, Bojańczyk, Kiefer and Lhote [5] soon added MSO interpretations, a formalism that sits in-between MSO transductions and MSO set interpretations.

This can be summarised as follows:

transductions output positionsinput positions×finite set regular
interpretations output positionsfinite setinput positions polyregular
set interpretations output positionsinput positionsfinite set expregular

Polyregular functions have been an active topic of study in the past few years, with investigations of interesting subclasses [31, 12] as well as applications to e.g. linguistics [34] and string compression [28]. It is informally conjectured (cf. e.g. [32, §1.4.6]) that for “reasonable” string transducer models, polynomial growth implies polyregular.

Exponential growth.

Functions with super-polynomial growth rates have been part of transducer theory for half a century. Very simple devices, such as variants of L-systems or top-down tree transducers (see e.g. [18]), already exhibit exponential growth. However, beyond polynomial growth, the story has not been as satisfying as for (poly)regular functions: there is a proliferation of non-equivalent transducer models. HDT0L-systems are expressively equivalent to several other formalisms [19, 24, 12], but they are incomparable with polyregular functions [31, §8]. As a common generalisation of HDT0L-systems and polyregular functions, Filiot et al. [22] recently introduced the lexicographic string transductions, defined by an extension of pebble transducers or equivalently by a restriction of MSO set interpretations; they suspect that this restriction strictly decreases the expressive power [22, §7].

MSO set interpretations thus emerge as a candidate for the largest class of finite-state functions of exponential growth… provided that they are, indeed, “finite-state” in some sense. In the context of transducer theory, regularity reflection is a usual requirement, and this is why we prove Theorem 1.1.

Contribution: two new machine models.

Hennie machines are one of Engelfriet and Hoogeboom’s equivalent characterisations of regular functions [14, §7]. As language recognisers (studied by Hennie [27, §II.C]), they are one-tape Turing machines subject to a bounded-visit restriction222Hennie’s main result is that linear-time one-tape Turing machines have the bounded-visit property.. As string transducers, they produce their output from left to right, just like two-way and pebble transducers. Our two machine models for expregular functions are two orthogonal extensions of Hennie machines:

  • yield-Hennie machines allow the output to be produced in a branching fashion: they can spawn parallel subprocesses that are in charge of producing different factors of the output. The name comes from the yield operation [18, §2] that reads the string formed by the leaves of a tree – in this case, the tree of forking processes. In a recent article inspired by this work, Dartois, Nguyễn, and Peyrat studied the tree-to-tree version of the same model, for which they proved a translation towards higher-order transducers, establishing that they are regularity reflecting [11, Lemma 7.7 and Corollary 8.1].

  • Ariadne transducers, in contrast, produce their output sequentially but relax the bounded-visit condition by adding some structure to the memory. They easily simulate other transducer models with sequential output production, such as pebble transducers (possibly extended with invisible pebbles [15]) or (nested) marble transducers [12, 22].

Contribution: from MSO set interpretations to yield-Hennie machines.

The main technical contribution of this paper is the compilation from MSO set interpretations to yield-Hennie machines. Our intricate proof is based on a subtle understanding of MSO definable orders; the techniques we use depart from those used in previous work on polyregular functions, which are based on factorisation theorems in adequate semigroups [5].

Combined with the aforementioned result of [11], this proves that MSO set interpretations are regularity reflecting (Theorem 1.1), and in turns implies decidability of the MSO theory of automatic ω-words (Corollary 1.2) thanks to [22, Proposition 14].

Contribution: equivalence of the three models.

The translation from yield-Hennie machines to Ariadne transducers is relatively straightforward. To obtain the remaining translation, from Ariadne transducers back to MSO set interpretations, we prove that Ariadne automata (the automaton model underlying Ariadne transducers) recognise regular languages. To achieve this, we provide a translation from Ariadne automata to alternating Hennie automata, which are equivalent to one-tape linear time alternating Turing machines, and are known to recognise regular languages thanks to [11, Corollary 8.1].

Closure properties.

Our final argument for the robustness of expregular functions is their good composition properties:

Theorem 1.3.

The class of expregular functions is closed under:

  1. 1.

    precomposition by regular functions;

  2. 2.

    postcomposition by polyregular functions.

Proof.

We get these results for free from the literature:

  1. 1.

    Colcombet and Löding [10, Proposition 2.4] have observed that MSO set interpretations are closed under precomposition by MSO transductions, for arbitrary relational structures.

  2. 2.

    Filiot et al. [22, Proposition 11] have shown that this postcomposition property is equivalent to regularity reflection for expregular functions, which is our Theorem 1.1.

 Remark 1.4.

Expregular functions are not closed under precomposition by polyregular functions. Here is a counterexample (via the monoid isomorphism {a}):

(n2n2)not expregular=(n2n)expregular(nn2)polyregular

Indeed, on inputs of size n, the output size of an expregular function is at most 2O(n) – this is what we mean by exponential growth. This contrasts with the definition of the complexity class 𝖤𝖷𝖯𝖳𝖨𝖬𝖤=𝖳𝖨𝖬𝖤(2nO(1)), chosen to make it closed under polynomial-time reductions.

Proofs of all statements from this paper are available in the full version [9].

2 Three formalisms for expregular functions

2.1 MSO set interpretations

A Σ-string is a finite set of positions equipped with total order < and a map from elements to Σ. Monadic second order logic (MSO) on strings is defined in the usual way (see e.g. [35, Chapter 3]). It is convenient to allow the syntax to operate on colourings of the positions by a given nonempty finite set F (i.e. maps from positions to F). This extends the usual notion of set variables333Set variables correspond to colourings of the positions by the 2-element set. to F-monadic variables which we denote X(F); this does not affect the expressive power of MSO since F-monadic variables are easily encoded as tuples of set variables.

MSO set interpretations.

A (string-to-string) MSO set interpretation Φ from Σ to Γ(over a finite set F), where Σ and Γ are finite alphabets, is given by MSO[<,Σ] formulas ϕconf(X(F)), ϕ<(X(F)Y(F)) and for each γΓ, a formula ϕγ(X(F)), where X(F) and Y(F) are F-variables. For each Σ-string w, this defines a [<,Γ]-structure Φ(w) whose universe is the set of colourings A(F) of the positions of w with F such that wϕconf(A(F)) and where < is interpreted as ϕ< and for each γΓ, the associated unary predicate is interpreted as ϕγ. We assume that for each Σ-string w, Φ(w) defines a Γ-string, which means that < is a total order, and the unary predicates associated to the γΓ partition the positions.

Given an MSO set interpretation Φ, F-colourings of the input string that satisfy ϕconf are called configurations; these correspond to positions in the output string (ordered by ϕ<). We say that a function is expregular if it is computed by an MSO set interpretation.

We stress the fact that ϕ< defines the order over the configurations, and not the successor relation. While being irrelevant for regular functions (the configurations are essentially input positions and therefore the order can be defined as the transitive closure of the successor relation), this distinction becomes crucial for polyregular functions (see [5]) as well as expregular functions. Here are some examples.

Example 2.1 (Strict prefixes reversed).

Consider the (polyregular) function from {a,b} to itself which lists the reverses of the strict prefixes of a string, in order of increasing length. Here is a picture of an MSO set interpretation realising this function:

Here, the configurations are obtained by colouring the input with three colors: black, red and gray, so that there is a unique position x coloured black and a unique position y coloured red such that y<x. These are ordered according to the lexicographic order over (x,y). The output of a configuration is the letter of the input at position y.

Example 2.2 (List of subwords).

Consider the function from {a,b,c} to itself that lists all subwords of a given string, in lexicographic order of their support. Here is a picture:

In this case, configurations are the colourings with one red position, listed lexicographically with gray < red < black. The output corresponds to the input letter from the red position.

Example 2.3 (Distribute).

Consider the function from {a,b,c,d,e,f,} to itself which distributes over , for instance abcd is mapped to acadbcbd. This function is expregular, as witnessed by the following MSO set interpretation using four colours:

Example 2.4.

Consider the function from {a,b} to {0,1,} which, on input w, counts in binary with |w| bits, with the bits whose positions are labelled by a in w stronger than those labelled by b. For instance, aba is mapped to 000010001011100110101111. This function is easily seen to be expregular.

Example 2.5.

Consider an expregular function f:(A×B)Γ, where B is totally ordered. Define the function g:A×Γ as follows: on input wAA, list all f(wAwB), where wB ranges over B-strings with the same size as wA in lexicographic order444One could also replace the lexicographic order with any MSO definable order over B-strings., and :A×B(A×B) denotes the interleaving operation. Then g is expregular.

2.2 Yield-Hennie machines

A yield-Hennie machine is a one-tape Turing machine endowed with a branching mechanism to spawn new processes that are executed in parallel. It is restricted by a bounded visit property meaning that within each such process, each cell of the input tape can only be visited a bounded (i.e. independent of the input) number of times. Each process eventually outputs a letter, and the overall output of the computation is obtained by concatenating these letters; this corresponds to performing the yield of the tree of processes.

Let ,Σ be two distinct symbols that we call end markers. A Σ-string with end markers is a (Σ{,})-string of the form w, where w is a Σ-string. A pointed string is a string together with a highlighted position i represented by an underline, e.g. ¯ab or aa¯ba.

Yield-Hennie machines.

A string-to-string yield-Hennie machine from Σ to Γ is a branching 1-tape bounded visit Turing machine. It consists of:

  • a finite set of internal states Q with an initial state q0Q;

  • a finite tape alphabet Θ which contains Σ{,}; and

  • a transition function δ:Q×Θ(ΓQ×Θ×{,,}),

such that δ(_,)(ΓQ×{}×{,}) and δ(_,)(ΓQ×{}×{,}).

To every input string wΣ, we associate a labelled ordered tree called the run over w, which is defined top-down as follows:

  • the root of the tree is labelled by (q0,¯w);

  • for all nodes labelled (q,u) where q is a state and u a pointed Θ-string whose pointed letter is θ and such that δ(q,θ)=δ1δk, the node has exactly k children, and for all i{1,,k}, if δi=γ, the ith child is labelled γ, and if δi=(qi,θi,diri)Q×Θ×{,,}, then the i’th child is labelled (qi,ui) where ui is the obtained from u by replacing the pointed letter by θi and moving the point according to diri.

Note that in the run over w, all pointed strings have the same size as w, and therefore we may talk of the position of the mark in a uniform manner. We assume the bounded visit property: there exists some integer k such that for every input string w, on every branch of the run over w and for every position i, there are at most k labels where the pointer is at position i. This implies that the depth of the run over w is bounded by k(|w|+2) hence the run has 2O(|w|) nodes. The semantics of is the function τ:ΣΓ which assigns to w the yield of its run, i.e. the string obtained by concatenating all labels of leaves in Γ along a traversal of the leaves in the natural order.

Here are some examples.

Example 2.6 (Reverse prefixes).

Let us describe a yield-Hennie machine realising the function 𝗋𝖾𝗏𝗉𝗋𝖾𝖿𝗂𝗑 from Example 2.1. Here is the run on input aabb of output aaabaa:

There are two states: nodes in the first row are in state q0 and the other nodes are in state q1. The tape alphabet is Θ=Σ{,}. The transitions are easily inferred from the picture.

Example 2.7 (List of subwords).

Here is a run illustrating a yield-Hennie machine realising the function from Example 2.2; the 8 leftmost nodes have state q0 and the rest have state q1:

Here, the tape alphabet is {a,b,c}×{black,orange,blue} (with Σ and Σ×{black} identified).

Example 2.8 (Distribute).

The function from Example 2.3 can be computed by a yield-Hennie machine similar to the one above: first we read the word from left to write while spawning new threads which colour the node adequately, then each thread prints its output. Here is the beginning of a run; we omit the information relative to the states:

2.3 Ariadne transducers

An Ariadne transducer is a sequential model of computation which extends virtually all pebble transducer variants that have been introduced, such as invisible pebbles, marbles, nested marbles etc. A configuration of an Ariadne transducer is a stack which basically records the whole history of a bounded-visit computation. This configuration can be updated in two ways: by pushing, i.e. extending the computation one more step, or by popping, i.e. going back in the computation – together with an inflationary update of the top of the stack to avoid cyclic behaviour. Crucially an Ariadne transducer has the power to access not just the top of its stack but the whole substack of the history of the current input position.

Ariadne transducers.

An Ariadne transducer 𝒜 from Σ to Γ consists of:

  • a partially ordered set of states Q, with an initial state q0Q;

  • a local stack bound k – we write Qk={uQ|u|k};

  • a partial transition function of the following type:

    δ:(Σ{,})×QkΓ×({𝚙𝚞𝚜𝚑,𝚙𝚞𝚜𝚑,𝚙𝚞𝚜𝚑}×Q{𝚙𝚘𝚙}×Update(Q)),

    where Update(Q) is the set of partial functions f:QQ which are inflationary (i.e. f(q)>q if it is defined).

Consider an input Σ-string w. A stack of 𝒜 over w is a sequence s(Q×{0,,|w|+1}). Given a non-empty stack s, we define the top and the untop of s with top(s)=(p,i) such that s=untop(s)(p,i). We say that p is the top state of s and i is its top position. Given a position i{0,,|w|+1}, we denote by s|iQ the local view of s at i, which is the sequence of top states of prefixes of s with top position i (in increasing prefix order).

The initial stack over w is (q0,0). Let s be a stack over w with top position i, let σ be the i-th letter of w and let s|i=p1p be the corresponding local view. Suppose that (u,𝖺𝖼𝗍𝗂𝗈𝗇)=δ(σ,p1p) is defined, which implies k. We define the successor stack s of s over w as follows:

  • if 𝖺𝖼𝗍𝗂𝗈𝗇=(𝚙𝚞𝚜𝚑,q) and i+1|w|+1, then s=s(q,i+1);

  • if 𝖺𝖼𝗍𝗂𝗈𝗇=(𝚙𝚞𝚜𝚑,q) then s=s(q,i);

  • if 𝖺𝖼𝗍𝗂𝗈𝗇=(𝚙𝚞𝚜𝚑,q) and i10, then s=s(q,i1);

  • if 𝖺𝖼𝗍𝗂𝗈𝗇=(𝚙𝚘𝚙,f) and untop(s)=r(p,j)ε, then s=r(f(p),j);

  • otherwise, s is undefined.

Whenever s is defined, the word u is called the production of the stack s over w.

The run of 𝒜 over w is the sequence of stacks s1,,sn such that s1 is the initial stack, sm+1 is the successor stack of sm for all m<n, and sn has no successor. Stacks are preordered lexicographically (by using the partial order over Q and ignoring the positions). Note that the transition steps imply that s>s whenever the successor stack s of s is defined, and hence a run cannot contain the same stack twice. Note furthermore that runs are of size at most |Q||w|k which is exponential in |w|. The production of 𝒜 over w is the concatenation u1un of productions of s1,,sn. The semantics of 𝒜 is the function τ𝒜:ΣΓ which maps a word to the production of 𝒜 over it.

Here are some examples.

Example 2.9 (List of subwords).

Here is a run of an Ariadne transducer with three states 0<1<2, on input ab:

The transducer works as follows: first we have an initialisation phase (orange) where the first row is filled with 0’s by using 𝚙𝚞𝚜𝚑. Then we alternate between

  • in blue: filling the second row with 0’s by using 𝚙𝚞𝚜𝚑;

  • in green: removing the second row using 𝚙𝚘𝚙 and producing an output if two 1’s align;

  • in black: incrementing the first row (seen as a binary number), by replacing 1’s with 2’s using 𝚙𝚘𝚙, until a zero is reached, replacing that 0 with a 1, and filling the rest with 0’s.

Example 2.10 (Evaluating an MSO formula).

Consider an MSO sentence ϕ over Σ-strings. There is an Ariadne transducer 𝒜 from Σ to {1} with O(|ϕ|) states which, on input w, outputs 1 if wϕ and outputs the empty string otherwise. The machine 𝒜 proceeds as follows: for every subformula of ϕ of the form Xψ, we will use a row of the input, labelled 0 or 1, which corresponds to a possible subset X. Then by successive incrementations of the row (as in the previous example), we may test every possible subset. Existential quantification over first-order variables is dealt with similarly, and atomic formulas are easily handled. In particular, this implies that Ariadne transducers (viewed as acceptors) are Tower more succinct than finite state automata. This example is due to [22], where a nested marble transducer is given for the same function.

3 Equivalence of the three models

This section explains how to translate from one model to another; full details are presented in the full version [9].

3.1 From MSO set interpretations to yield-Hennie machines

Consider an MSO set interpretation Φ and fix an input word w.

If we follow a branch of the run of a Hennie machine, we see that to each node one can associate several pieces of informations: a position i in the input, a direction (whether the last move was left or right in the input), and an interval of the output string I: the factor of the output string that is produced by the yield of the subtree rooted at that node. One can also associate a nesting depth d which is the maximal number of times over all branches from the node that the position will be traversed. The key idea in the translation from MSO set interpretations to yield-Hennie machines is to try to derive (an approximation of) this information directly from the MSO set interpretation. This leads to the notion of simplicity.

Simplicity.

For i a position of the input, let i be the set of positions i, and i the set of positions i. We call sets of the form i or i splits555Technically, one requires that the complement of a split be a split, and hence that the full set of positions is not allowed to be a split.. Given a split s, we let s¯ denote its complement, which is also a split. Recall that positions in the output string correspond to configurations (i.e. F-colourings A of w such that wϕconf(A)), ordered by ϕ<. Consider an interval I of configurations.

We define what it is for I to be d-simple at s (for d0) recursively. The interval I is 0-simple at s if all the configurations AI are equal when restricted to s. For the general case, an interval I is d-simple at s if there is a set PI such that (1) all the configurations in P are equal when restricted to s, and (2) all sub-intervals of I that do not intersect P are (d1)-simple at s¯. Call simplicity of I at s the least d such that I is d-simple at s.

Example 3.1.

Let us consider the MSO set interpretation of Example 2.1, applied to an input string of length 7. Let us fix the split s=4. Consider the following picture (we omit the input and output letters for simplicity):

The interval I1 is 0-simple at s since all its configurations are equal when restricted to s, and similarly for I2,I3 and I4. The interval J is 1-simple at s¯, by taking K to be the highlighted set of positions, since configurations in K are all equal over s¯, and intervals in between are 0-simple at s. Finally, we see that the full set of output positions is 2-simple at s and therefore also 3-simple at s¯.

For this simple example, it is easy to extrapolate this reasoning and establish that for every input string w, every interval is 3-simple at every split.

A first crucial argument in the proof is that the above phenomenon is always true: for all string-to-string MSO set interpretation, there exists d0 such that for all input strings, all splits s, and all interval I of configurations, I is d-simple at s. This proof relies on the facts that the MSO set interpretation defines a total order (and not only successor), and that when comparing two configurations it is sufficient to consider boundedly many MSO-types over s and s¯ (compositionality).

Structure of the run.

Consider an interval of positions of the output string I together with a split s, which corresponds to a potential node of the run of the yield-Hennie machine that we are trying to construct. Now that the notion of simplicity is established, we should define the children of the node corresponding to I and s. More precisely, we want to decompose I into a union of a bounded number of children intervals I1,,I, so that each interval Ij comes together with a split sj which is obtained from s by moving the cut-position either to the left of to the right.

The crucial feature of this decomposition should be that the bounded-visit property is satisfied, i.e. each position is seen a bounded number of times on each branch. In terms of simplicity, this naturally translates to the condition that if I0I1In defines a sequence of intervals such that for some splits s0,,sn, it holds for every k<n that (Ik+1,sk+1) is a child of (Ik,sk), and moreover s0 and sn have the same cut-position, then the simplicity of In at sn should be strictly lower than the simplicity of I0 at s0.

Defining such a decomposition requires an understanding of how simplicities evolve when moving between two successive splits (e.g. from i to i+1, or from i to i).

Difficulty: locally updatable encoding.

In a yield-Hennie machine, every node contains a pointed string which corresponds to a colouring C of the input together with a position i. Following the above approach, the obvious choice is for i to encode the current split s (together with a bit of information corresponding to its direction that can be added to C), and for C to encode the interval I=[A,B], by writing the two configurations A and B. Unfortunately there is a major issue with this approach: when moving from a node to one of its children, the yield-Hennie machine can update the current colouring C only at the pointed position i. However if C is written as a pair of configurations A,B, there is no guarantee that its children can be obtained by such local updates of the colourings defining the configurations. Overcoming this issue requires introducing some additional infrastructure that we describe now.

Definable bases and funnels.

Defining an encoding of (I,s) as a colouring of the input string in a way that can be updated locally when moving from (I,s) to its children is achieved by combining two ideas.

  • Definable basis of intervals: we construct families of intervals Bs, one for each split s, with the properties that

    1. (a)

      every interval which is d-simple at s can be covered by a bounded union of d-simple at s intervals from Bs;

    2. (b)

      every configuration belongs to a bounded number of intervals from Bs; and

    3. (c)

      given (the natural encodings of) I and s, membership of I in Bs is MSO definable.

    From now on, we fix such a definable basis (Bs)s split.

  • Funnels: we represent a node corresponding to interval I and split s by a sequence I0,s0,,In,sn of intervals and splits, which we call a funnel, such that666We also have a condition on the simplicities which will guarantee the bounded visit property, but we omit it in this overview.

    • I0 is the interval of all positions and s0=0;

    • the Ik’s are basis intervals i.e. IkBsk;

    • the splits s0,s1,,sn are consecutive;

    • sn is s and I is the intersection of the Ik’s;

    • for every k, (Ik+1,sk+1) is a child of (mkIk,sk) as defined above.s

    Intuitively, instead of storing (I,s), we remember the full path from the root node to (I,s), except that it is stored using basis intervals, and I is obtained as an intersection of these intervals.

Of course it is not at all clear how this circumvents the problem highlighted above; for this we should explain how funnels are encoded as colourings of the input string.

Encoding of funnels.

To encode a funnel F=I0,s0,,In,sn we proceed as follows. Let j0,,jn1 be such that for every k, it holds that Fk+1=I0,s0,,Ik+1,sk+1 is the jk-th child of Fk. Since the splits are consecutive and satisfy the bounded visit property, the sequence s0,,sn can be encoded as a colouring of the input using an adequate notion of tilings. To encode the funnel F, we integrate the labels j0,,jn1 (these are bounded integers) in the above tiling. Note that this encoding is indeed locally updatable: the encoding of the j-th child of F is obtained from the encoding of F by adding one step (labelled by j) at the current position.

The crucial idea is that given an encoding T of a funnel as above, there exist a formula that recovers the output I=kIk of the funnel as follows. First we guess a configuration A in I, and guess a labelled tiling (corresponding to the same sequence of splits) with labels p0,,pn, such that for every k, Ik is the pk-th interval from Bsk containing A (here we rely on property b of definable bases). Then we verify local consistency of these guesses, and recover I as the intersection of the Ik’s.

Defining the yield-Hennie machine.

We are now ready for the final construction. Here the important insight is that in the previous items, the proofs are phrased in terms of definability. In particular, given an encoding of a funnel, the encoding of the next funnel is definable. Therefore to define the transitions from a given node (i.e. , a funnel), it suffices to have access to the MSO-type (defined just below) of sufficiently large quantifier rank of the current labelling of the tape (which encodes the funnel). In a nutshell, this is achieved777This trick is stolen from [14, Lemma 4]. by labelling the tape with one half of the type, and storing the other half in the current state (where the directions of the halves depend on the direction of the current split).

3.2 From yield-Hennie machines to Ariadne transducers

This is the most straightforward translation. Intuitively, the Ariadne transducer visits the run of the yield-Hennie machine along the tree order and produces γΓ when a γ-leaf is reached, where going down and up in the tree respectively correspond to pushing and poping.

3.3 From Ariadne transducers to MSO set interpretations

Consider an Ariadne transducer 𝒜. Stacks naturally correspond to colourings of the input string by a finite set. However, it is a non-trivial task to construct a formula deciding which (encodings of) stacks are produced by the run. This amounts to proving that accessible stacks form a regular language.

The fact that Ariadne automata recognise only regular languages is shown in two steps: first we show, using [11] that another model of automaton, which we call alternating Hennie automata recognise regular languages. Second we give a translation from Ariadne automata to alternating Hennie automata; roughly speaking, alternation gives us a handle to model stack operations via the following two-player interaction. When reaching stack s:

  • Exists proposes a sequence of states q1<<qn which correspond to those appended to s throughout the run (the sequence is necessarily increasing since these are updated by inflationary 𝚙𝚘𝚙 operations); and

  • Forall chooses an index i and challenges the fact that from stack sqi, the run will next update qi into qi+1.

Once we have established that the language of reachable configurations of an Ariadne automaton is regular, it is not difficult to translate 𝒜 to a set interpretation: ϕconf is the formula defining the reachable configurations, ϕ< is the lexicographic order, and ϕγ is obtained easily from ϕconf.

4 Discussion

Expregular functions form, we argue, the natural and robust notion of “exponential finite-state computation” for string-to-string functions, as they admit several logical as well as machine-based characterisations and all the desirable closure properties, including being regularity reflecting. Moreover, as explained in [22, Proposition III.7 (full version)], they generalise the notion of automatic ω-words: an automatic ω-word can be viewed as the output of an MSO set interpretation over the structure (,<), which can in turn be represented by a string-to-string MSO set interpretation over a unary input alphabet.

Polyregular functions enjoy many characterisations [3] and one may ask which ones can be extended to expregular functions. An appealing characterisation of polyregular functions is as the composition closure of regular888Polyregular function can actually be decomposed into even simpler functions; see [3, Theorem 3.2]. functions and the square function (with square:abca¯bcab¯cabc¯). Whether expregular functions can be captured by a simple family of functions in such a way would prove very useful: decomposition results indeed often come in useful as they restring one’s attention to a finite set of simple cases.

Natural extensions of this work are to consider richer structures such as ω-words, trees and ω-trees. We believe that most of the machinery developed in this article should apply to MSO set interpretations from trees to strings. For instance the key notions of splits and funnels naturally extend to this setting. Additionally the automata models can be extended to tree-walking variants (with regular look-around for tree-to-string yield-Hennie machines). In contrast, we believe that a generalisation to the tree-to-tree context will likely require new insights.

An interesting line of work concerns questions regarding the growth of the different models: In [25, Theorem 1.5], Gallot, Lhote and Nguyễn established that expregular functions with polynomial growth are polyregular. One can also ask whether compositions of expregular functions with exponential growth are expregular, or more generally whether higher-order transductions with exponential growth are expregular (this is already open for higher-order transducers of polynomial growth and polyregular functions). Other results of this nature are known for some models of tree-to-tree transducers e.g. [25, Theorem 6.4]; we refer to the discussions therein for more details.

New questions also arise about succinct representation of regular languages. Alternating Hennie automata and Ariadne automata are Tower more succinct than finite-state automata since an MSO formula (e.g. in prenex form) can easily be translated into both automata models999Both automata models can be translated to one another with elementary complexity. (see Example 2.10). Surprisingly, it is not clear whether there is an elementary transformation from alternating Hennie automata to MSO (the result of [11] gives us a construction in Tower). Furthermore, the construction from MSO to alternating Hennie automata provides a machine with bounded alternation between universal and existential transitions (mimicking the quantifier alternation of the formula), whereas these machines can have a number of alternations which is linear in the length of the input. This argument seems to indicate that these automata models are actually more succinct than MSO.

References

  • [1] Vince Bárány. A hierarchy of automatic ω-words having a decidable MSO theory. RAIRO Theor. Informatics Appl., 42(3):417–450, 2008. doi:10.1051/ITA:2008008.
  • [2] Mikołaj Bojańczyk. Polyregular functions, 2018. arXiv:1810.08760.
  • [3] Mikołaj Bojańczyk. Transducers of polynomial growth (invited talk). In LICS, pages 1:1–1:27. ACM, 2022. doi:10.1145/3531130.3533326.
  • [4] Mikołaj Bojańczyk. Folding interpretations. In LICS, pages 1–13. IEEE, 2023. doi:10.1109/LICS56636.2023.10175796.
  • [5] Mikołaj Bojańczyk, Sandra Kiefer, and Nathan Lhote. String-to-string interpretations with polynomial-size output. In ICALP, pages 106:1–106:14, 2019. doi:10.4230/LIPIcs.ICALP.2019.106.
  • [6] Mikołaj Bojańczyk and Lê Thành Dũng Nguyễn. Algebraic recognition of regular functions. In ICALP, volume 261 of LIPIcs, pages 117:1–117:19. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2023. doi:10.4230/LIPIcs.ICALP.2023.117.
  • [7] Vince Bárány. Automatic presentations of infinite structures. PhD thesis, RWTH Aachen University, Germany, 2007. URL: http://darwin.bth.rwth-aachen.de/opus3/volltexte/2007/2019/.
  • [8] Michaël Cadilhac, Olivier Carton, and Charles Paperman. Continuity of functional transducers: A profinite study of rational functions. Logical Methods in Computer Science, Volume 16, Issue 1, February 2020. doi:10.23638/LMCS-16(1:24)2020.
  • [9] Thomas Colcombet, Nathan Lhote, and Pierre Ohlmann. Expregular functions. CoRR, abs/2602.21019, 2026. doi:10.48550/arXiv.2602.21019.
  • [10] Thomas Colcombet and Christof Löding. Transforming structures by set interpretations. Logical Methods in Computer Science, 3(2), 2007. doi:10.2168/LMCS-3(2:4)2007.
  • [11] Luc Dartois, Lê Thành Dũng Nguyên, and Charles Peyrat. Tree transducers of linear size-to-height increase (and the additive conjunction of linear logic), 2026. arXiv:2605.03928.
  • [12] Gaëtan Douéneau-Tabot. Optimization of string transducers. PhD thesis, Université Paris Cité, November 2023.
  • [13] Joost Engelfriet. Two-way pebble transducers for partial functions and their composition. Acta Informatica, 52(7-8):559–571, 2015. Contains a correction of a wrong proof in [17]. doi:10.1007/s00236-015-0224-3.
  • [14] Joost Engelfriet and Hendrik Jan Hoogeboom. MSO definable string transductions and two-way finite-state transducers. ACM Transactions on Computational Logic, 2(2):216–254, April 2001. Journal version of an ICALP 1999 paper. doi:10.1145/371316.371512.
  • [15] Joost Engelfriet, Hendrik Jan Hoogeboom, and Bart Samwel. XML navigation and transformation by tree-walking automata and transducers with visible and invisible pebbles. Theoretical Computer Science, 850:40–97, January 2021. doi:10.1016/j.tcs.2020.10.030.
  • [16] Joost Engelfriet, Kazuhiro Inaba, and Sebastian Maneth. Linear-bounded composition of tree-walking tree transducers: linear size increase and complexity. Acta Informatica, 58(1-2):95–152, 2021. doi:10.1007/s00236-019-00360-8.
  • [17] Joost Engelfriet and Sebastian Maneth. Two-way finite state transducers with nested pebbles. In MFCS, volume 2420 of Lecture Notes in Computer Science, pages 234–244. Springer, 2002. doi:10.1007/3-540-45687-2_19.
  • [18] Joost Engelfriet, Grzegorz Rozenberg, and Giora Slutzki. Tree transducers, L systems, and two-way machines. Journal of Computer and System Sciences, 20(2):150–202, 1980. doi:10.1016/0022-0000(80)90058-6.
  • [19] Julien Ferté, Nathalie Marin, and Géraud Sénizergues. Word-Mappings of Level 2. Theory of Computing Systems, 54(1):111–148, January 2014. doi:10.1007/s00224-013-9489-5.
  • [20] Emmanuel Filiot. Logic-automata connections for transformations. In ICLA, volume 8923 of Lecture Notes in Computer Science, pages 30–57. Springer, 2015. doi:10.1007/978-3-662-45824-2_3.
  • [21] Emmanuel Filiot, Ismaël Jecker, Christof Löding, Anca Muscholl, Gabriele Puppis, and Sarah Winter. Finite-valued streaming string transducers. TheoretiCS, Volume 4, January 2025. doi:10.46298/theoretics.25.1.
  • [22] Emmanuel Filiot, Nathan Lhote, and Pierre-Alain Reynier. Lexicographic Transductions of Finite Words. In MFCS 2025, volume 345 of LIPIcs, pages 50:1–50:18. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2025. doi:10.4230/LIPIcs.MFCS.2025.50.
  • [23] Emmanuel Filiot and Pierre-Alain Reynier. Transducers, Logic and Algebra for Functions of Finite Words. ACM SIGLOG News, 3(3):4–19, August 2016. doi:10.1145/2984450.2984453.
  • [24] Emmanuel Filiot and Pierre-Alain Reynier. Copyful streaming string transducers. Fundamenta Informaticae, 178(1-2):59–76, January 2021. doi:10.3233/FI-2021-1998.
  • [25] Paul D. Gallot, Nathan Lhote, and Lê Thành Dũng Nguyễn. The structure of polynomial growth for tree automata/transducers and mso set queries, 2025. arXiv:2501.10270.
  • [26] Erich Grädel. Automatic structures: Twenty years later. In LICS, pages 21–34. ACM, 2020. doi:10.1145/3373718.3394734.
  • [27] Frederick C. Hennie. One-tape, off-line turing machine computations. Information and Control, 8(6):553–578, 1965. doi:10.1016/S0019-9958(65)90399-2.
  • [28] Liam Jordon. An Investigation of Feasible Logical Depth and Complexity Measures via Automata and Compression Algorithms. PhD thesis, National University of Ireland Maynooth, 2022.
  • [29] Tova Milo, Dan Suciu, and Victor Vianu. Typechecking for XML transformers. Journal of Computer and System Sciences, 66(1):66–97, 2003. Journal version of a PODS 2000 paper. doi:10.1016/S0022-0000(02)00030-2.
  • [30] Anca Muscholl and Gabriele Puppis. The Many Facets of String Transducers. In STACS, volume 126 of Leibniz International Proceedings in Informatics (LIPIcs), pages 2:1–2:21. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2019. doi:10.4230/LIPIcs.STACS.2019.2.
  • [31] Lê Thành Dũng Nguyễn, Camille Noûs, and Cécilia Pradic. Comparison-Free Polyregular Functions. In ICALP, volume 198 of LIPIcs, pages 139:1–139:20. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2021. doi:10.4230/LIPIcs.ICALP.2021.139.
  • [32] Lê Thành Dũng Nguyễn. Implicit automata in linear logic and categorical transducer theory. PhD thesis, Université Paris XIII (Sorbonne Paris Nord), December 2021.
  • [33] Jean-Éric Pin and Pedro V. Silva. A topological approach to transductions. Theoretical Computer Science, 340(2):443–456, June 2005. doi:10.1016/j.tcs.2005.03.029.
  • [34] Jonathan Rawski, Hossep Dolatian, Jeffrey Heinz, and Eric Raimy. Regular and polyregular theories of reduplication. Glossa: a journal of general linguistics, 8(1), 2023. doi:10.16995/glossa.8885.
  • [35] Wolfgang Thomas. Languages, Automata, and Logic, pages 389–455. Springer Berlin Heidelberg, Berlin, Heidelberg, 1997. doi:10.1007/978-3-642-59126-6_7.