From Sets to Points: Simplifying MSO Interpretations via Reparameterizations
Abstract
We study the conditions under which monadic second-order (MSO) interpretations can be simplified by replacing representations of elements as tuples of arbitrary sets with representations as tuples of finite sets or points. Using reparameterizations of MSO formulas, we prove that for formulas with free finite-set variables, it is decidable whether a point reparameterization exists, and that such a reparameterization can be effectively constructed over countable chains. Moreover, over countable Dedekind-complete labeled chains, a formula with free arbitrary set variables admits a finite-set reparameterization if and only if it has at most countably many satisfying assignments. These results yield effective simplification procedures for MSO interpretations over broad classes of countable linear orders.
Keywords and phrases:
Monadic Second-Order Logic, interpretation, interpretation simplification, reparameterization, decidabilityCategory:
Track B: Automata, Logic, Semantics, and Theory of ProgrammingFunding:
Alexander Rabinovich: Supported in part by Len Blavatnik and the Blavatnik Family foundation.2012 ACM Subject Classification:
Theory of computation Logic and verification ; Theory of computation Models of computationAcknowledgements:
I would like to thank the reviewers for their careful reading and valuable comments.Editors:
Sayan Bhattacharya, Danupon Nanongkai, Michael Benedikt, and Gabriele PuppisSeries and Publisher:
Leibniz International Proceedings in Informatics, Schloss Dagstuhl – Leibniz-Zentrum für Informatik
1 Introduction
The notion of interpretation was first systematically defined and developed in the foundational work of Tarski, Mostowski, and Robinson [11]. Since then, interpretations have become a fundamental tool in mathematical logic, where they play a central role in the study of relative definability and interpretability between theories, and in the foundations of mathematics more broadly. They are also of central importance in the foundations and philosophy of science. In contemporary model theory and theoretical computer science, interpretations are routinely used to compare the expressive power of logical formalisms and to encode one class of structures inside another, for instance by interpreting complex structures in simpler, well-understood combinatorial objects such as labeled chains or trees.
We address the following question: when can a monadic second-order111Let us recall that monadic second-order logic is an extension of first-order logic by set variables (which range over the subset of the domain of a structure), and the quantifiers over the set variables (see Section 2.2 for a formal definition). () interpretation be simplified – that is, when can elements of the interpreted structure be represented by simpler objects (finite sets or points) without changing the interpreted structure?
Interpretations of in
Consider three standard variants of –dimensional interpretations of a structure in a structure . In each case, an element of is coded inside by a -tuple:
- Set interpretations
-
(, –dimensional): each element of is represented by a -tuple of (arbitrary) subsets of .
- Finite-set interpretations
-
(, –dimensional): each element of is represented by a -tuple of finite subsets of .
- Point interpretations
-
(, –dimensional): each element of is represented by a -tuple of elements of .
A natural problem is to determine whether a given interpretation can be simplified, for instance from set interpretations to finite-set or point interpretations. In general, the domain of an interpretation over a structure is defined by a formula , where is a tuple of free variables. We capture this notion of simplification using reparameterizations, a concept introduced in [3].
Definition 1.1 (Reparameterization).
Let be an formula and let be a class of structures. A formula is a reparameterization of over if:
- Same domain:
-
over .
- Bounded preimage:
-
There exists such that, for every and every parameter tuple ,
We call the domain variables and the image variables of . The reparameterization is functional if it defines the graph of a partial function:
A reparameterization is -to--dimensional if is an -tuple and is a -tuple. It is a set-to-finite-set (respectively, finite-set-to-point) reparameterization if ranges over tuples of sets (respectively, finite sets) and over tuples of finite sets (respectively, elements).
Intuition.
A reparameterization replaces the original parameters by auxiliary parameters in such a way that each corresponds to only boundedly many . In the functional case, each determines at most one .
Suppose that (with ) admits a reparameterization whose image variables are first-order and . Then any interpretation whose domain is defined by can be simplified to a –dimensional point interpretation (see Appendix A).
Bojańczyk [2] proved that, over finite words, it is decidable whether an formula with free first-order variables admits an -to--dimensional point-to-point reparameterization. Gallot–Lhote–Nguyen [3] studied finite-set-to-point reparameterizations over finite words and trees. We prove that the decidability results of [3] extend to the setting of arbitrary countable labeled linear orders (chains): given an formula with free finite-set variables, it is decidable whether admits a point reparameterization over countable chains.
Finally, building on [1], we show that it is decidable whether an formula with free set variables admits a set-to-finite-set reparameterization over countable Dedekind-complete labeled chains.
Our contributions and paper organization
We develop a uniform approach to simplifying MSO interpretations via reparameterizations over countable labeled chains. Our main results are as follows. First, for formulas whose free variables are finite-set variables, we show that it is decidable whether the formula admits a reparameterization by first-order (point) image variables over an -definable class of countable labeled chains; moreover, whenever such a reparameterization exists, a functional one can be effectively constructed (see Theorem 3.1). Second, building on results of [1], we obtain an effective characterization of when a formula with free set variables admits a finite-set reparameterization over countable Dedekind-complete labeled chains: this holds exactly when the formula has at most countably many satisfying assignments in every structure from the class (see Theorem 4.2). Together, these results yield effective procedures for simplifying set interpretations to finite-set interpretations, and finite-set interpretations to point interpretations.
The paper is organized as follows. Section 2 contains preliminaries. Section 3 contains our main result and studies finite-set-to-point reparameterizations. It provides an effective characterization of when such reparameterizations exist over countable chains. Section 4 studies reparameterizations from arbitrary sets to finite sets and establishes the corresponding characterization. Section 5 contains the conclusion and further results. In Appendix A, we recall the standard definition of interpretation and explain how reparameterizations can be used to simplify interpretations. Although not strictly necessary for our main results, this material provides useful background and motivation for the reparameterization problem. Some proofs are deferred to the appendix.
2 Preliminaries
Here we recall standard notions concerning chains [9] and monadic second-order logic [7, 5, 12], and introduce basic tools from the composition method [10, 5] used throughout the paper.
2.1 Chains
A -chain is a structure where is a linear order and is a -tuple of monadic predicates. When is clear from the context (or irrelevant), we simply say chain or labeled chain instead of -chain.
An interval is a subset such that whenever and , we have . We denote by the induced substructure on .
2.2 Monadic Second-Order Logic
We work in monadic second-order logic () over the signature of -chains
First-order variables range over elements, and second-order variables range over subsets of the domain. Atomic formulas are , , , and . Formulas are built from atomic formulas using Boolean connectives and quantifiers . We also use second-order variables that are intended to range over finite sets. Since finiteness is -definable over linear orders, this semantic restriction can be enforced syntactically by relativizing quantification to the formula expressing finiteness.
We recall the following classical result of Rabin [7].
Theorem 2.1 (Rabin, 1969 [7]).
The monadic second-order theory of countable linear orders is decidable.
2.3 Types
The quantifier rank of an formula is the maximal nesting depth of quantifiers. For , let denote the set of formulas of quantifier rank at most over the signature , with free set variables .
For -chains and , and -tuples with and with , we write if and satisfy the same formulas in . This is an equivalence relation with finitely many equivalence classes. If is an -chain and is a -tuple of subsets of , then we may view as an -chain, namely
The following lemma implies that every -equivalence class is definable by a formula in .
Lemma 2.2 (Hintikka, [6]).
For every there exists a finite, effectively computable set such that:
-
1.
The disjunction is valid.
-
2.
If are distinct, then is unsatisfiable.
-
3.
Given , one can effectively compute a set such that is equivalent to the disjunction of the formulas in .
By (1) and (2), for every -structure and every -tuple , there exists a unique such that We denote this formula by and call it the -type of . When is clear from the context, we write and call it the -type of . When is clear from the context and is an interval, we write for the -type of the induced substructure .
We define the set of -types to be the set of satisfiable formulas in .
2.4 Concatenation of Chains and Sum of Types
Given -chains and , their sum (or concatenation) is obtained by placing before . The following proposition implies that is a congruence with respect to concatenation.
Proposition 2.3 (Sum of types [10]).
There is a computable function that, given and , returns an operation on such that
For every , the set , equipped with the sum operation , forms a finite semigroup.
Lemma 2.4 (-local normal form).
Let be an formula of quantifier depth at most , where is a tuple of free monadic second-order variables and is a tuple of free first-order variables. For every , the formula
is equivalent to a finite positive Boolean combination of formulas asserting the -types of the induced subchains on the intervals
viewed as substructures of the expansion . Moreover, this Boolean combination is computable from .
3 Finite-Set-to-Point Reparameterizations
Gallot–Lhote–Nguyen [3] studied finite-set-to-point reparameterizations over finite trees, using automata-theoretic techniques. In this paper, we extend their decidability results (Theorem 3.12 in [3]) beyond finite structures and establish them for arbitrary countable linear orders.
Theorem 3.1 (Finite-set-to-point reparameterization over countable chains).
Let be an -definable class of labeled countable linear orders, and let be an formula whose free variables are finite-set variables. It is decidable whether, over , admits a reparameterization by a formula using only first-order image variables. In addition, whenever such a reparameterization exists, there also exists a functional reparameterization using only first-order image variables, and such a functional reparameterization is effectively computable from and an definition of .
Throughout this section we write for a tuple of finite set variables.
Lemma 3.2 (Reducing to the full class of countable chains).
Let be an sentence defining a class . Let be an formula. Then the following are equivalent:
-
1.
admits a reparameterization by a formula with only first-order image variables over .
-
2.
admits a reparameterization by a formula with only first-order image variables over the class of all countable chains.
Consequently, without loss of generality we may carry out all reparameterization arguments over the full class of countable chains by replacing with .
3.1 Idempotent obstruction to point reparameterization
Definition 3.3 (Idempotent obstruction to point reparameterization).
Let be an formula of quantifier depth . We say that has an idempotent obstruction to point reparameterization if there exist satisfiable -types such that:
-
1.
is idempotent, i.e., ;
-
2.
is realized at least twice in some structure , i.e.,
-
3.
one of the following types implies :
Lemma 3.4 (Obstruction lemma).
Let be an formula.
If has an idempotent obstruction to point reparameterization, then admits no reparameterization whose image variables are first-order.
Furthermore, over countable chains, the existence of such an obstruction is decidable.
Proof.
We first address decidability. By Theorem 2.1, Lemma 2.2, and Proposition 2.3, one can effectively enumerate all -types in , test idempotency (), and decide whether holds for some -types . Moreover, since the theory of countable chains is decidable by Theorem 2.1, we can also check whether is realized at least twice in some structure , that is, whether is satisfiable.
We now prove the nonexistence of point reparameterizations in the presence of an idempotent obstruction.
Assume toward a contradiction that admits a reparameterization by a formula with only first-order image variables. Thus there exists an formula
such that:
-
(i)
(Same domain) for all structures,
-
(ii)
(Bounded preimage) there exists such that for every structure and every tuple ,
We will use the following claim, whose proof is given in Appendix B.
Claim 3.5.
For every and every idempotent -type , there exists an idempotent -type such that . Moreover, if is satisfiable, then is also satisfiable.
Step 1: Fix realizations of the types.
By assumption, there exist and assignments realizing and , respectively.
Now let be greater than both and the quantifier depth of . Choose an idempotent -type such that and
for some chain . Such an -type exists by ˜3.5.
Also, in the given structure pick two distinct assignments
such that both realize in , and hence also realize in .
Step 2: Build many witnesses using idempotence.
For , form the ordered sum
For every subset define an assignment of in as follows:
-
on use ;
-
on use ;
-
on the -th middle copy of use if , and use otherwise.
Since is idempotent, the -type of the concatenation of any number of copies of is again . Therefore, for every , the -type of in is , and hence
By (i), for every there exists some tuple such that
Step 3: Pigeonhole argument.
Choose . Fix . By , there exists a -tuple such that
Since consists of elements, it partitions the middle blocks into at most consecutive regions. By the pigeonhole principle, there exists a region containing at least consecutive copies such that none of the coordinates of lies in this region.
For every subset , let denote the symmetric difference. By locality (Lemma 2.4), the truth of depends only on the -types of the substructures over the intervals determined by . Replacing by (or vice versa) inside the chosen region does not change these -types, since the region is disjoint from the tuple . Hence
for every such .
There are choices of , and hence more than distinct assignments in the preimage of , contradicting .
3.2 From the absence of an idempotent obstruction to point reparameterization
Our main technical result shows that, in the absence of an idempotent obstruction, the formula admits a point reparameterization.
Theorem 3.6 (Main).
If has no idempotent obstruction to point reparameterization, then admits a functional reparameterization by an formula whose image variables are first-order. Furthermore, such a reparameterization can be effectively constructed from .
Theorem 3.1 is an immediate consequence of Lemma 3.2, Lemma 3.4 and Theorem 3.6.
Remark (Countability Assumption).
It is worth emphasizing that the structural characterization of idempotent obstructions to point reparameterization, given in Lemma 3.4 and Theorem 3.6, holds over arbitrary chains. The restriction to countable chains in this paper is used only to ensure decidability in Lemma 3.4 and the effectiveness of the construction in Theorem 3.6.
Proof overview
The proof of Theorem 3.6 proceeds in four steps.
Step 1: Encoding by -type words.
Given a chain and a tuple of finite subsets of its domain, we split along the elements of into intervals and associate to each interval its -type. This yields a word over a finite alphabet of -types.
Step 2: Uniformly bounded factorization.
By Lemma 3.13, the word admits a restricted factorization of uniformly bounded length, which is again a word over -types. Hence every instance is associated with one of finitely many such factorization words.
Step 3: Local reparameterizations.
For each such restricted factorization word , we construct an formula that reparameterizes on the class of structures whose associated -type word admits as a restricted factorization. The assumption that has no idempotent obstruction ensures that this construction is well defined and yields a functional reparameterization.
Step 4: Global construction.
We combine the finitely many formulas into a single formula , which yields a uniform reparameterization.
Definition 3.7 (-type word associated with a labeled chain).
Let be a labeled linear order (chain), and let be a -tuple of finite subsets of its domain. Let
and let be the increasing enumeration of the distinct elements of (so ). Set and as formal endpoints.
Fix , and let be set variables corresponding to . For each , let be the -type (with free variables ) of the structure obtained by restricting to the interval
where the order is restricted to and each is interpreted as .
The -type word associated with , denoted by , is the word
over the finite alphabet of -types with free variables . If , then and .
The next lemma follows immediately from the definition.
Lemma 3.8.
Assume . Let be a -type word associated with a labeled chain as in Definition 3.7. Then, for every chain and every tuple :
-
1.
If , then .
-
2.
For every , if , then is a singleton consisting of the minimal element of . Moreover, there exists a unique tuple such that .
(The assumption is necessary to express that an element is minimal.)
A key step in the proof is to replace by a finite uniformly bounded object that still captures the semigroup information relevant to our argument. This leads us to the notion of the restricted factorization word defined below. Intuitively, restricted factorizations compress long type words while preserving the semigroup structure relevant to reparameterization.
Definition 3.9 (Restricted Factorization).
Let be a finite semigroup. A word is a restricted factorization of a word with if there exist words such that
and for each , the sum of the letters in equals , and either is a single letter or is idempotent.
Note that a word may admit several distinct restricted factorizations. Moreover, even for a fixed restricted factorization of , there may be several choices of words witnessing it.
By Ramsey’s theorem (see, e.g., [4]), we obtain the following lemma; its proof is deferred to Appendix C.
Lemma 3.10 (Uniform bound on restricted factorizations).
For every finite semigroup , there exists such that every word over admits a restricted factorization with .
As a consequence of Lemma 3.8 and Definition 3.9, we obtain the following properties of restricted factorization words.
Lemma 3.11 (Properties of restricted factorization words).
Assume . Let be a -type word associated with a labeled chain, and let be a restricted factorization of . Then:
-
(a)
For , if , then has a minimal element , and this element belongs to ; moreover, either is idempotent, or and is the unique tuple such that .
-
(b)
Either is idempotent, or for every we have .
Notation.
denotes the set of words over satisfying properties Lemma 3.11(a)–(b); we call its elements restricted factorization words.
Definition 3.12 (Models of a restricted factorization word).
Let . Define
Applying Lemma 3.10 to the semigroup of -types, we obtain the following.
Lemma 3.13 (Short factorization word property).
For every there exists such that for every chain and every -tuple of finite subsets , there exists of length at most such that
The next definition introduces a formula that will be crucial for the proof.
Definition 3.14 (Reparameterization induced by a factorization word).
Let be a restricted factorization word over . We define, by induction on , an formula
where is a tuple of first-order variables. This formula will be used to obtain a reparameterization of - the sum of the letters of in the semigroup of -types, provided that the construction does not fail.
Inductive definition of .
Base case. Suppose consists of a single letter .
- Case 1 (idempotent).
-
Assume that is idempotent, i.e. .
-
If is satisfiable, then by Lemma 3.4 no reparameterization by first-order image variables exists for ; we declare the construction to fail.
-
Otherwise, define
-
- Case 2 (non-idempotent letter).
-
Assume that consists of a single non-idempotent letter . By Lemma 3.11, either or contains exactly one element. In the former case, set and in the latter,
Inductive step. Let and set . Let and be the corresponding formulas.
We write to mean that all coordinates of are , and define analogously.
Define
Here, for a formula , (resp. ) denotes the standard relativization of all quantifiers to elements satisfying (resp. ). Equivalently, in the first line of the definition of , one could replace the conjunct by the requirement that is the minimal element among the coordinates of . By construction, the tuple of image variables in may be empty.
Lemma 3.15 (Properties of ).
- (Bounded dimension)
-
The number of first-order variables in used by is at most .
- (Range restriction)
-
implies that .
- (Bounded preimage)
-
For every chain and every tuple ,
Lemma 3.15 is proved by induction on the length of .
Note that is not necessarily functional. However, one can enforce functionality by selecting the lexicographically minimal tuple satisfying . Such a minimum exists by the range restriction property (see Lemma 3.15) and because is a tuple of finite sets. Define
By construction, defines the graph of a partial function, i.e., for every there is at most one tuple such that holds. In particular, yields a functional reparameterization over .
Lemma 3.16.
Assume that does not contain an idempotent such that is satisfiable. Then and are well defined, and the following hold:
- (Functionality)
-
If , then
- (Completeness)
-
iff
- (Bounded preimage)
-
For every chain and every tuple ,
We are now ready to prove Theorem 3.6.
Proof of Theorem 3.6.
Let be a formula of quantifier depth at most . Assume that there is no idempotent obstruction to point reparameterization of .
Let
where denotes the sum of the letters of in the semigroup of -types, and is the bound given by Lemma 3.13. The condition is equivalent to the fact that holds in every structure in .
Assume . By the assumption, there is no idempotent obstruction to point reparameterization of . Hence, does not contain an idempotent such that is satisfiable, and therefore, by Lemma 3.16, the construction of does not fail for any .
Fix an arbitrary linear order on the finite set :
For , define
where all tuples of image variables are padded to a common arity if necessary. Thus, holds precisely when is the least index such that holds.
It remains to show that is equivalent to .
() Assume that . Then for some . By completeness (Lemma 3.16), . Hence, by the definition of , we obtain .
() Assume that . By Lemma 3.13, there exists such that . Since has no idempotent obstruction, the construction of does not fail. By Lemma 3.16, it follows that
and hence .
Combining the two implications, we conclude that and are equivalent and hence is a functional reparameterization whose image variables are all first-order.
4 Reparameterization of arbitrary sets by finite sets
Cardinality obstruction
By a simple cardinality argument, if there are uncountably many tuples satisfying over a countable chain , then cannot be reparameterized using only image variables ranging over finite sets. We record this observation explicitly:
Lemma 4.1 (Cardinality obstruction for finite-set reparameterization).
Let be a countable chain and let be an formula. If
is uncountable, then admits no reparameterization over using only image variables ranging over finite sets.
Proof.
If were such a reparameterization with ranging over finite subsets of , then the set of possible parameter tuples would be countable (finite subsets of a countable set form a countable family, and finite products of countable sets are countable). The bounded-preimage condition would then force to be countable, a contradiction. Building on results of [1], we show that over Dedekind-complete chains, the cardinality obstruction above is the only obstruction to finite-set reparameterization:
Theorem 4.2 (Reparameterization over Dedekind-complete chains).
Let be the class of Dedekind-complete countable linear orders, and let be an formula. The following are equivalent:
-
1.
admits a reparameterization over using only image variables ranging over finite sets.
-
2.
For every , the set is at most countable.
In addition, it is decidable whether (2) holds, and one can effectively construct such a reparameterization from .
Remark.
Arguments analogous to those in Lemma 3.2 show that Theorem 4.2 immediately generalizes to the case where is replaced by any -definable subclass .
We first address decidability. In [1], the authors study an extension of monadic second-order logic over linear orders by a cardinality quantifier of the form “there exist uncountably many sets such that ”. They prove that, over the class of countable linear orders, every formula of this extended logic is effectively equivalent to a pure formula. Consequently, Condition (2) of Theorem 4.2 can be expressed in and is therefore decidable over countable linear orders by Rabin’s theorem [7].
We now turn to the existence and effective construction of finite-set reparameterizations. Assume that does not have a cardinality obstruction to finite-set reparameterization. We will prove that admits a reparameterization over using only image variables ranging over finite sets. We begin with the following definition.
Definition 4.3 (Reparameterization by finite unions of intervals).
A reparameterization is a reparameterization of over by finite unions of intervals if each image variable is restricted to range over finite unions of intervals.
The following theorem is a consequence of results in [1]; see Appendix D for a proof.
Theorem 4.4 (Reparameterization by finite unions of intervals).
Let be the class of countable chains, and let be an formula. If for every the set is at most countable, then effectively admits a reparameterization over in which each image variable ranges over finite unions of intervals.
The Dedekind completeness assumption in Theorem 4.2 is needed to represent intervals by pairs of endpoints, which is possible only in Dedekind-complete orders. Theorem 4.2 then follows from Theorem 4.4, together with the observation that, over such orders, finite unions of intervals can be encoded by a bounded tuple of finite sets.
Lemma 4.5 (Uniform coding of finite unions of intervals).
There exists a constant and a first-order formula such that:
-
1.
For every Dedekind-complete linear order and every set that is a finite union of intervals, there exist finite sets such that for all :
-
2.
Conversely, for every Dedekind-complete linear order and every tuple of finite sets , the set defined by is a finite union of intervals.
Hence every reparameterization by finite unions of intervals can be uniformly converted into a finite-set reparameterization, yielding Theorem 4.2.
Functional refinement over ordinals
The reparameterizations obtained in Theorem 4.4 (and hence in Theorem 4.2) are not necessarily functional. Over ordinals, however, they can be made functional by choosing, for each input, a canonical (least) tuple of finite-set parameters.
Lemma 4.6 (Definable well-order on finite subsets of ordinals).
There exists an -formula such that, for every ordinal , the relation is a well-order on the family of finite subsets of .
Remark (Canonical choice yields functionality).
Over ordinals, any reparameterization with finite-set image variables can be made functional by requiring that the image tuple be -least among all witnesses, where is an -definable well-order on finite subsets (Lemma 4.6).
5 Conclusion and Further Results
We establish reparameterization as a unifying and effective framework for systematically simplifying MSO interpretations. By leveraging Rabin’s theorem in this new context, we obtain a complete, decidable toolkit for interpretation simplification over infinite countable chains.
Our primary goal in this work is to establish existence results rather than optimality. In particular, Theorem 3.1 characterizes when a finite-set-to-point reparameterization exists, and Theorem 4.2 characterizes when a set-to-finite-set reparameterization exists. However, our constructions are not optimized with respect to the dimension of the resulting reparameterizations.
Bojańczyk [2] introduced polyregular functions, a class of string-to-string functions with polynomial output size, and showed that it is decidable whether an formula with free first-order variables admits a -dimensional point reparameterization over finite words. In [8], we extended this result to arbitrary countable labeled chains, showing that it is decidable whether an formula with free first-order variables admits a -dimensional point reparameterization in this setting. Together with Theorem 3.1, this yields a characterization of the optimal dimension of finite-set-to-point reparameterizations.
A natural open problem is to decide whether an formula with free finite-set variables admits a -dimensional reparameterization over countable chains using only image variables ranging over finite sets. This problem appears to require new techniques beyond those developed in the present work.
Another interesting problem is to decide when a formula admits a functional set-to-finite-set reparameterization over .
References
- [1] Vince Barany, Lukasz Kaiser, and Alexander Rabinovich. Expressing cardinality quantifiers in monadic second-order logic over chains. J. Symb. Log., 76(2):603–619, 2011. doi:10.2178/jsl/1305810766.
- [2] Mikołaj Bojańczyk. On the growth rates of polyregular functions. In 2023 38th Annual ACM/IEEE Symposium on Logic in Computer Science (LICS), pages 1–13. IEEE, 2023. doi:10.1109/LICS56636.2023.10175808.
- [3] Paul Gallot, Nathan Lhote, and Lê Thành Dũng Nguyên. The structure of polynomial growth for tree automata/transducers and MSO set queries. To appear in TheoretiCS, 2025. Available at https://doi.org/10.48550/arXiv.2501.10270.
- [4] Ronald L. Graham, Bruce L. Rothschild, and Joel H. Spencer. Ramsey Theory. Wiley, 1990.
- [5] Yuri Gurevich. Monadic second-order theories. Model-theoretic logics, pages 479–506, 1985.
- [6] Jaakko Hintikka. Distributive Normal Forms in the Calculus of Predicates. Number 6 in Acta Philosophica Fennica. Societas Philosophica Fennica, Helsinki, 1953.
- [7] Michael O Rabin. Decidability of second-order theories and automata on infinite trees. Transactions of the american Mathematical Society, 141:1–35, 1969.
- [8] Alexander Rabinovich. Decidability of mso reparametrization over countable labelled chains. In Proceedings of the 33rd Workshop on Logic, Language, Information and Computation (WoLLIC 2026), 2026.
- [9] Joseph G. Rosenstein. Linear Orderings. Academic Press, New York, 1982.
- [10] Saharon Shelah. The monadic theory of order. Annals of Mathematics, 102(3):379–419, 1975.
- [11] Alfred Tarski, Andrzej Mostowski, and Raphael M. Robinson. Undecidable Theories. North-Holland, Amsterdam, 1953.
- [12] Wolfgang Thomas. Automata on infinite objects. In Formal Models and Semantics, pages 133–191. Elsevier, 1990. doi:10.1016/B978-0-444-88074-1.50009-3.
Appendix A Interpretations and Reparameterizations
In this section, we recall the standard definition of interpretation and explain how reparameterizations can be used to simplify interpretations. Although not strictly necessary for our main results, this material provides useful background and motivation for the reparameterization problem.
We follow [2] and adapt the definition of interpretation to our setting.
Definition (Interpretation)
An MSO interpretation is a function
between two classes of structures. All formulas mentioned below are MSO formulas over the vocabulary of the input class .
-
1.
Components. There is a finite set of components. Each component has a dimension in .
-
2.
Universe formulas. Each component has a universe formula. The number of free variables equals the dimension of .
For an input structure , the universe of the output is
-
3.
Relation interpretations. Let be a relation in the output vocabulary of arity . For every , there is a formula such that for every ,
if and only if belongs to in the output structure.
An interpretation is a set (respectively, finite-set, point) interpretation if its free variables range over sets (respectively, finite sets, singleton sets). It is -dimensional if the maximal dimension of its components is .
Two interpretations are equivalent if, for every , the structures and are isomorphic.
The following proposition is well known (folklore).
Proposition A.1.
Let be a class of structures equipped with an MSO-definable linear order. Assume that for each component of a finite-set interpretation over , the corresponding universe formula admits a functional point reparameterization of dimension . Then the interpretation is equivalent to a -dimensional point interpretation. In addition, there exists an formula that uniformly defines an isomorphism between the two interpretations.
Sketch.
Let be a functional reparameterization of of dimension , and let be a bound on the number of preimages.
New components are pairs , where and . The universe formula for states that has at least preimages under .
To interpret relations, let be defined by a formula corresponding to components . For components , define a formula such that holds, where is the -th preimage of under , taken in lexicographic order.
Since the linear order is MSO-definable, so is the lexicographic order on finite sets, and hence the -th preimage is MSO-definable.
This yields a -dimensional interpretation. The correspondence between original elements and their representatives is MSO-definable and induces an isomorphism. Every reparameterization has an equivalent reparameterization of bound . This reduction is achieved by introducing additional first-order image variables, at the cost of losing functionality.
Proposition A.2 (Reduction to preimage one).
Let be a reparameterization of with bound . Then there exists a reparameterization
of whose bound is , where are first-order variables, such that
Furthermore, is effectively computable from . However, need not be functional.
Sketch.
We present the construction in the one-dimensional case; the general case follows by a similar argument.
Assume and . Fix , and let , where , be all distinct -preimages of . For simplicity, assume that for all . Then, for every , there exists an element .
In this simplified case, we take new first-order image variables.
Define to hold if:
-
(i)
;
-
(ii)
;
-
(iii)
for every , if , then
Then has bound . Indeed, for fixed , there is at most one satisfying , since the tuple is contained in such an and, by condition (iii), is not contained in any other -preimage of .
Moreover,
For the nontrivial direction, choose for each other -preimage an element of ; this is possible by the simplifying assumption. Since there are at most such preimages, the variables suffice.
Note that need not be functional. In an interpretation as defined above, each element of the output structure is represented by a unique tuple from the input structure. In contrast, in an interpretation with equivalence, an element may admit several representations.
An interpretation with equivalence is equipped with a definable equivalence relation that is a congruence with respect to all interpreted relations. The elements of the output structure are equivalence classes of tuples satisfying the universe formulas.
Proposition A.3.
Assume that for each component , the corresponding universe formula admits a reparameterization of dimension with bound . Then the interpretation is equivalent to a -dimensional interpretation with equivalence. Moreover, there exists an formula that uniformly defines an isomorphism between the two interpretations.
Sketch.
Replace each component by its -dimensional reparameterization. For each component , define the new universe formula
Define the new equivalence relation by
To interpret relations, let be defined by a formula corresponding to components . For components , define a formula such that holds, where is the preimage of under .
Since has bound , this is well defined. It is straightforward to check that is an equivalence relation and a congruence with respect to the interpreted relations. The resulting interpretation with equivalence is equivalent to the original one.
Appendix B Proof of Claim 3.5
Claim 3.5. [Restated, see original statement.]
For every and every idempotent -type , there exists an idempotent -type such that . Moreover, if is satisfiable, then is also satisfiable.
Proof.
Let be the natural projection from -types to -types. This projection is a semigroup morphism with respect to concatenation.
Since is satisfiable, choose an -type such that . Since the semigroup of -types is finite, some power is idempotent. Put
Then is an idempotent -type, and
because is idempotent. Hence .
Assume now that
is satisfiable. Then there is a structure with two distinct assignments realizing . For each , consider the concatenation of copies of , and for every define an assignment by using on the copies in and on the remaining copies. Since is idempotent, every realizes the same -type .
There are only finitely many -types. Hence, for large enough, two distinct sets yield assignments and with the same -type, say . Since both refine , we have . Choose such that is idempotent and put . Then is an idempotent -type with .
In addition, is realized at least twice: take the concatenation of copies of a structure realizing twice, and use the first realization in all copies for one assignment, and the second realization in one copy and the first realization elsewhere for another. These two assignments are distinct and both have -type . Thus is satisfiable.
Appendix C Proof of Lemma 3.10
Lemma 3.10 (Uniform bound on restricted factorizations). [Restated, see original statement.]
For every finite semigroup , there exists such that every word over admits a restricted factorization with .
Proof.
Let be a finite semigroup. By Ramsey’s theorem for pairs, there exists such that for every coloring of pairs with by elements of , there exist
such that
We show that this satisfies the claim.
Suppose, for contradiction, that there exists a word with that admits no restricted factorization of length at most . Among all such words, fix one together with a restricted factorization
of minimal length , and let be the corresponding factors. Then .
Define a coloring of pairs by
Since , there exist indices such that
Let . Then , so is idempotent.
We merge the factors into a single factor. Define a new word by
Then has length .
Moreover, it is a restricted factorization of , since the merged factor has value
which is idempotent.
This contradicts the minimality of . Hence every word admits a restricted factorization of length at most .
Appendix D Proof of Theorem 4.4
Using the results of [1], we now prove the following strengthening of Theorem 4.4.
Theorem D.1 (Reparameterization by finite unions of intervals).
Let be the class of countable chains, and let be an formula. Then one can effectively compute an formula such that for every , if is at most countable, then defines a reparameterization of over , where each image variable in ranges over finite unions of intervals.
Proof.
A finite family of non-empty intervals is a cover of a chain if it forms a partition of the domain of , that is,
We first observe that every finite interval cover can be encoded by a single monadic predicate interpreted as a finite union of intervals. Assume that is such a cover, and let
be the union of the odd-indexed intervals. Let express that is a maximal interval of such that either or . Then
Thus, every finite interval cover of can be encoded bijectively by a single monadic predicate , interpreted as a finite union of intervals.
Now fix a chain and an formula . The following notions and facts are defined and proved in [1]:
-
The notion of a balanced – cover for with respect to and is defined in [1, Definition 14]. Every balanced – cover is a finite interval cover.
-
There exists an formula expressing that a given cover is a balanced – cover for with respect to and (see [1, Definition 14]).
-
If is at most countable, then every tuple with admits a balanced – cover (see [1, Lemma 10 and Lemma 13]).
Furthermore, if is a balanced – cover of a tuple , then each interval belongs to one of finitely many kinds (e.g. -intervals, left-balanced unsplittable intervals, and right-balanced unsplittable intervals); see [1, Definition 14 and Lemma 15]. Furthermore, by [1, Lemma 16 and its proof] there exists a constant , computable from , such that, for any fixed balanced – cover and any fixed interval kind, the restriction can take at most distinct values among all tuples admitting the cover .
Consequently, every tuple with can be encoded by the following data:
-
1.
a balanced – cover of associated with ,
-
2.
for each interval :
-
the kind of , and
-
an index in identifying the restriction among all possibilities consistent with that kind.
-
By the first part of the proof, the cover can be encoded by a monadic predicate interpreted as a finite union of intervals. The interval kinds and the corresponding indices can be encoded using finitely many additional monadic predicates, each definable as a finite union of intervals; moreover, for this information, finite predicates already suffice. Hence, the above information can be represented by a bounded tuple of monadic predicates, each ranging over finite unions of intervals.
Therefore, one obtains a reparameterization of in which all image variables range over finite unions of intervals.
Finally, the construction is effective: the definitions of balanced – covers, the finite list of interval kinds, and the bound are computable from . This yields the required formula and completes the proof.
Appendix E Proof of Lemma 4.5
Lemma 4.5 (Uniform coding of finite unions of intervals). [Restated, see original statement.]
There exists a constant and a first-order formula such that:
-
1.
For every Dedekind-complete linear order and every set that is a finite union of intervals, there exist finite sets such that for all :
-
2.
Conversely, for every Dedekind-complete linear order and every tuple of finite sets , the set defined by is a finite union of intervals.
Proof.
Let be a Dedekind-complete linear order. Any set that is a finite union of intervals can be uniquely decomposed into a union of disjoint, non-adjacent intervals .
Construction of the finite sets
We define six finite sets (i.e., ) to encode the boundary behavior of :
-
and : the sets of finite left endpoints of the intervals that are closed and open, respectively.
-
and : the sets of finite right endpoints of the intervals that are closed and open, respectively.
-
and : flag sets. We set if and only if is unbounded below, and if and only if is unbounded above. (For example, can be a singleton containing any arbitrary element of if the condition holds, and empty otherwise.)
Since is a finite union of intervals, the set of all finite endpoints is finite.
The first-order formula
The formula determines membership in by identifying the relative position of with respect to the finite set . Using first-order logic over the signature , we can define the greatest endpoint at or below :
In a Dedekind-complete order, if the set is non-empty, then the maximum exists because is finite. The formula is defined by a case analysis:
-
1.
If has no endpoints at or below it (), then if and only if .
-
2.
If there exists such that , then if and only if:
-
, or
-
and , or
-
and .
-
This logic ensures that if falls within an interval , , , or , its membership is correctly determined by the kind of the last boundary point . If is beyond all endpoints, its membership is determined by whether the final interval is unbounded above, which is consistent with the behavior of the last endpoint in and the flag .
Property of the constructed formula
The second part of the lemma follows from the structure of . For any choice of finite sets , the points in partition into finitely many points and open segments . Because evaluates solely based on its identity as an endpoint or its relative order to the nearest element in , the truth value of remains constant on each such segment. Consequently, for any finite , the set is necessarily a finite union of intervals.
