Manuscript Offprint
arXiv:2610.09758Two-Variable Logic with Arbitrarily Many Successor Relations
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original. This text is shared under the same licence.
Abstract
We study two-variable first-order logic with a finite, input-dependent number of distinguished successor relations and arbitrary additional unary and binary predicates. Each distinguished relation must be the exact immediate-successor relation of some linear order on the common domain; the orders themselves are not available in the language and may have arbitrary order types. We prove that satisfiability belongs to 2-NEXPTIME, uniformly in the number of successors.
The proof gives finite certificates for possibly infinite models. A closure operation separates local neighbourhood descriptions, called star types, into those of bounded multiplicity and those that can be realized infinitely often. The bounded part is represented explicitly. Outside it, integer height vectors allow overlapping successor requirements to be matched without creating cycles or unintended identifications. Ordering the resulting path components densely then recovers exact successor relations. Consistent assignments of the additional binary predicates handle witnesses involving the bounded part.
The same certificates decide infinite satisfiability in 2-NEXPTIME and give a doubly exponential threshold above which a finite model guarantees an infinite model. A doubly exponentially large finite core can be forced with only two successors and unary predicates. For finite models, we prove that satisfiability subject to a bound on the total number of reference adjacencies lost by the other orders is NEXPTIME-complete, even when the budget is encoded in binary and the number of successors is part of the input.
2012 ACM Subject Classification Theory of computation → Finite Model Theory; Theory of computation → Logic and verification
Keywords and phrases two-variable logic, successor relations, satisfiability, finite models, infinite models
Two-Variable Logic with Arbitrarily Many Successor Relations
1 Introduction
We prove that satisfiability for two-variable first-order logic remains decidable in the presence of arbitrarily many independent successor relations. The number of successors is part of the input, additional unary and binary predicates are unrestricted, and our 2-NEXPTIME upper bound is uniform in all these parameters. Each distinguished relation is the exact immediate-successor relation of a linear order on the common domain. The orders may have arbitrary order types and are absent from the signature.
This result identifies a boundary between access to order and access to adjacency. Ordinary two-variable first-order logic, , uses only two variable names, reused under quantification; its satisfiability problem is NEXPTIME-complete and it has the finite-model property [18, 8]. Requiring three predicates to be linear orders already makes satisfiability undecidable, even with only additional unary predicates [9]. For successors, finite satisfiability with two distinguished relations is NEXPTIME-complete [6], also with additional binary predicates [4]. Our main theorem allows any input-dependent number of successors in arbitrary models, with no hierarchy or restriction on how their edges overlap. Different successors may share an edge or traverse the same pair in opposite directions. Here NEXPTIME and 2-NEXPTIME denote nondeterministic singly and doubly exponential time, respectively.
Passing to arbitrary models changes the problem substantially. Every successor relation on a finite domain is a single directed spanning path. On an infinite domain, an exact successor graph may have many components, or even no edges. Moreover, successor constraints destroy the finite-model property: has a model over and no finite model. An empty successor relation on at least two elements is realizable over , but cannot occur in a finite admissible model. A decision procedure must therefore account for models that are necessarily infinite.
▶ Theorem 1. Satisfiability of with any finite number of distinguished exact successor relations belongs to 2-NEXPTIME, uniformly in the number of successors, with arbitrary additional unary and binary predicates. It is NEXPTIME-hard already with one distinguished successor.
Our construction resolves these obstacles in four steps. A star type records a complete successor neighbourhood, including shared neighbours. A closure operation propagates multiplicity bounds through these descriptions and separates the bounded part from types that can be realized infinitely often. We store the bounded elements and their neighbours in a finite interface; rows record consistent binary assignments to the bounded elements. Outside the interface, integer height vectors allow whole neighbourhood masks to be matched simultaneously, preserving shared edges and excluding directed cycles in every colour. Finally, a dense ordering of the resulting path components makes each graph an exact successor relation. The freedom to choose the invisible underlying orders is what permits this last step.
Consequences and the size of the finite part
The certificates also decide infinite satisfiability in 2-NEXPTIME and yield countably infinite models. They give an effective doubly exponential threshold above which a finite model guarantees an infinite model (Section 6.2). The finite part can itself be doubly exponential: for every , a sentence of size polynomial in , using only two successors and unary predicates, forces exactly elements in a designated finite set, while requiring the whole model to be infinite (Appendix B). This establishes a structural limitation of certificates that list the core explicitly. The exact complexity between the NEXPTIME lower bound and our 2-NEXPTIME upper bound remains open.
A finite-model counterpart with a binary budget
Our second result allows arbitrarily many successors on finite domains when their adjacency disagreement is bounded. Choose one order as a reference and count its directed successor edges missing from the other orders, with multiplicity across orders. Given a budget b, the resulting finite satisfiability problem is NEXPTIME-complete even when both the number of successors and the binary-encoded budget are part of the input (Section 7). The restriction places no bound on the domain size. Binary ranks using unary bits per relation exclude cycles, allowing a polynomial-size reduction to two-variable counting logic with one successor. Thus the time bound depends on the length of the budget's encoding. A separate decomposition into common blocks gives a model-size bound singly exponential in the value of b. These results leave unrestricted finite satisfiability with three or more successors unresolved.
1.1 Related work
The closest results concern finite structures with two successors. The other comparisons below clarify the roles of arbitrary order types, invisible orders, and unrestricted binary predicates.
Successors and forests
The finite two-successor problem was studied by Manuel [14]; Figueira proved NEXPTIME-completeness with additional unary predicates [6]. Charatonik and Witkowski obtained finite NEXPTIME-completeness for counting logic over two forests of ranked trees, including additional binary predicates [4]. Charatonik, Guskov, Pratt-Hartmann, and Witkowski lifted the rank restriction and also proved general satisfiability decidable for one forest [2]. Their finite one-forest result supplies the one-successor procedure used in our binary-budget reduction. Our unrestricted theorem concerns arbitrary models with an input-dependent number of exact successors; our finite theorem controls their disagreement.
Visible orders and arbitrary order types
Schwentick and Zeume proved finite-model decidability for two linear orders and related preorder signatures with additional unary predicates [22]. Manuel and Zeume treated two successors with one corresponding order and additional unary predicates [16]; Zeume and Harwath extended that result to additional binary predicates in their study of order-invariance [25]. Their exponential small-model bound for one order and its successor also underlies our finite-model size bound. For labelled linear orders without a successor predicate, Manuel and Sreejith obtained NEXPTIME-completeness over arbitrary, countable,
Two-Variable Logic with Arbitrarily Many Successor Relations
and scattered orders [15]. Toruńczyk and Zeume proved general satisfiability decidable for two linear orders with arbitrary additional predicates [24]. Our use of arbitrary order types has a different purpose: it lets us order successor components densely after their edges have been fixed.
Words and data
Etessami, Vardi, and Wilke characterized with order and successor on finite and one-sided infinite words by temporal logic with unary future and past operators [5]. Bojańczyk, David, Muscholl, Schwentick, and Segoufin proved decidability when data equality is also available [1]. These settings combine one sequence with further structure; we allow many independent adjacency relations on a common domain.
Other semantic constraints
A single equivalence relation preserves NEXPTIME-completeness and the finite-model property [12]. Kieroński, Michaliszyn, Pratt-Hartmann, and Tendera proved 2-NEXPTIME-completeness for two equivalence closures, with hardness already for two equivalence relations; three equivalence relations give undecidability [11]. Fiuk, Kieroński, and Michielini obtained finite NEXPTIME-completeness for nested equivalences with a linear order and for nested total preorders; adding successors of the preorders yields EXPSPACE-completeness [7]. Our successors need no nesting. For transitivity and related constraints, decidability results depend on finiteness [21], guarded witnesses [23, 13], a universal fragment with constants and transitive closure [10], or restricted universal comparability [17]. Our existential witnesses may lie outside every successor neighbourhood.
Types and counting
Our proof builds on local types and finite exceptional parts [12], and on separating witnesses into groups [19, 25]. The additional ingredients are multiplicity propagation through complete neighbourhoods, consistent rows to the bounded part, and simultaneous matching at integer heights. Pratt-Hartmann's NEXPTIME procedure for two-variable counting logic, , uses star types and integer multiplicities, even with binary-encoded counts [20]. In counting logic, one order and its successor yield finite NEXPTIME-completeness with additional unary predicates; with additional binary predicates the problem is equivalent under elementary reductions to multicounter-automata emptiness [3]. Our budget reduction uses one successor without an order predicate.
Reading guide
Section 2 fixes the semantics and local descriptions. Sections 3–5 develop the certificates; Section 6 derives the decision procedures. The finite-model argument in Section 7 is independent and can be read after the preliminaries. The appendices give normalization details, the large-core construction and a worked certificate.
2 Preliminaries
All structures have nonempty domains and finite relational signatures, with equality, unary and binary predicates, and no constants or functions. The fragment uses only the variables , which may be reused under quantification. The explicitly represented signature contains distinguished predicates , with . All other predicates are unrestricted.
▶ Definition 2. A structure on A is admissible if for each i there is a strict linear order on A such that
The orders may have arbitrary order types and are not part of the signature. Satisfiability means existence of an admissible model.
Write n for the input length, including its signature. Scott normalization, recalled in Appendix A, produces in polynomial time a sentence in Scott normal form
where all matrices are quantifier-free. An original structure satisfies the input precisely when some expansion by fresh unary predicates satisfies . Thus normalization preserves the domain and every original predicate. We assume that is symmetric, replacing it by if necessary. We call the requirement to satisfy at an element its jth witness obligation.
Neighbourhoods and masks
The graph of is called the colour-i graph. Two distinct elements are neighbours if or holds for some . The symbols and denote the successor and predecessor ports of colour : the positions at which an element can have its -successor and -predecessor. Each port has at most one neighbour, giving at most neighbours per element. For distinct , their mask is . A legal mask contains at most one sign of each colour, and reverses all signs. A far pair is a pair of distinct elements with empty mask; we also say that its endpoints are far from each other. A nonempty mask records a single neighbour, possibly shared by several colours: means that this neighbour is both the -successor and the -predecessor of the source.
Types and assignments
After normalization, let count the unary predicates and the additional binary predicates. A 1-type records their unary values and diagonal values ; all are false. Thus it uses bits, giving at most 1-types. The parameters are polynomially bounded in , since normalization has polynomial size. Let be the set of additional binary relation symbols, and let , where is a formal converse symbol. A binary assignment is a set . On distinct endpoints , membership of means , and membership of means ; absent symbols mean false atoms. The inverse inv() exchanges and . Each of the predicates has two directed truth values, so an assignment uses bits and . For 1-types , a legal mask , and ,
Two-Variable Logic with Arbitrarily Many Successor Relations
the tuple determines a 2-type: the complete atomic description of two distinct endpoints, including their 1-types and the literal . For a quantifier-free formula , let be its truth value when denote the same element of 1-type , and let be its truth value on that 2-type. The permitted assignments for a far pair are
Symmetry gives if and only if . If there are no additional binary predicates, contains just the empty assignment.
Paths and exact successors
A directed graph is functional if each vertex has at most one outgoing edge, and inverse-functional if each has at most one incoming edge. Throughout, acyclic means having no directed cycle, and components are taken after forgetting edge directions. A functional, inverse-functional, acyclic graph consists of paths with order types finite, , , or Z. Such a graph need not be an exact successor graph: no linear order on two elements has both vertices isolated.
▶ Lemma 3 (Dense completion). A countable functional and inverse-functional directed graph with no directed cycles and infinitely many components is the exact successor graph of a linear order.
Proof. Index the components bijectively by Q. Order elements first by their component indices and then by their positions along the path. Consecutive elements of one component are exactly its edges. Two elements from different components have an intervening component, so they cannot be consecutive.
3 Star types of bounded multiplicity
We first identify the part of a model that our certificate will store element by element. The test uses star types, defined below, which record an element's 1-type and complete successor neighbourhood. Star types with the same source 1-type may have different neighbourhoods and therefore different multiplicity bounds.
▶ Definition 4. A ray describes one neighbour: its 1-type , a nonempty legal mask , and the binary assignment from the source to that neighbour. A star type consists of a source 1-type and a set of rays whose masks are pairwise disjoint. Distinct rays stand for distinct neighbours. A star type is legal if holds and holds for every .
An element realizes if describes its 1-type and all its neighbours exactly. The multiplicity of in a model is the number of elements realizing . There are at most rays, since each uses at least one of the ports and their masks are disjoint. Put . Encode a star type by its source bits and ray slots, ordering the rays by their first port. Each slot stores an occupancy bit, a mask ( bits), a neighbour 1-type ( bits), and a binary assignment (2a bits). Hence the number of legal star types satisfies
Counting all bit strings includes invalid descriptions and only enlarges the bound. Its exponent is polynomial in , so .
Guess a nonempty set of legal star types, intended to be precisely the realized star types, and write for . The inverse of a ray at a source of star type is . The star types that match form the set
Reject immediately if a matching set is empty.
There are two ways to force a star type to have bounded multiplicity. First, if its source 1-type admits no far assignment with a realized 1-type , each realization is either equal to or a neighbour of one fixed element of 1-type . Second, if a required neighbour can only have a bounded star type, injectivity of the relevant successor port bounds the number of sources as well. These two observations give the closure
(5)
The sequence stabilizes after at most strict increases, each of which adds a previously absent star type. Let be its fixed point and . Call these star types bounded and regular, respectively. “Regular” means that the star type survives this closure; it need not occur infinitely often in a given model. An element is called bounded or regular according to its star type.
▶ Lemma 5 (Multiplicity bounds). For each one can compute a bound on its multiplicity in every model realizing exactly , with
For each , all sets with are nonempty, and every ray of has a match in .
Proof. For , choose a realized 1-type with , and fix one element of 1-type . Every element of 1-type equals this element or is its neighbour. Set .
When a new star type enters the closure, choose a ray all of whose matches were added earlier, and set . Map each realization of to its -neighbour. This map is injective: choose any port in the nonempty mask of ; two sources with one target would occupy the same inverse port there. The stated bound is therefore valid.
Process the bounded types in closure order, maintaining plus the sum of bounds assigned so far. A seed contributes ; any later contribution is a sum of earlier bounds. Neither exceeds the current total, so each step at most doubles it. After at most steps the total is at most and dominates the sum in (6), also when . The assertions about follow from the fixed point.
▶ Example 6. Suppose forbids two distinct K-elements and K is realized. Every star type whose source 1-type contains K is bounded: two distinct elements of that 1-type admit no far assignment. A star type requiring a K-element as a predecessor is bounded next. Another star type with the same source 1-type, but allowing a regular predecessor, can remain regular. The closure must therefore distinguish star types with the same 1-type. Appendix C gives a four-star-type example tracing this distinction through the full construction.
If , Lemma 5 already bounds the whole domain, and a finite model can be guessed explicitly. For the rest of the construction assume .
Two-Variable Logic with Arbitrarily Many Successor Relations
4 The finite certificate
The certificate stores a finite interface and describes other elements by rows: star types with assignments to the bounded elements. Section 5 constructs a model from these data and then proves that every model supplies them.
4.1 The finite interface
Guess a finite set with labels . Its core will contain all bounded elements. The interface consists of this core and its neighbours; is the boundary. There are at most core elements. Each contributes itself and at most neighbours, so Lemma 5 and give
Guess an interface pair table giving a mask and a binary assignment on each unordered pair of distinct elements of C, in one orientation. Reverse data are obtained by inversion; diagonals are fixed by the labels. Require:
(11) Each labels between one and elements, and every boundary element has a neighbour in the core.
(12) At each , the neighbours specified by the pair table realize distinct rays of . At each , they realize all its rays.
(13) Every pair satisfies , and each colour graph on C is acyclic.
In (I2), an entry from to with realizes the ray at and its inverse at . Thus the check fixes both endpoints and forbids reuse of a ray.
For an element assigned star type , a ray occurrence is a pair with . It is free if no neighbour has yet been assigned to it. Every free occurrence in lies on the boundary and has a match in , by Lemma 5. No new element will have a neighbour in the core. If , then . The table records the restriction of the successor relations to . It does not take successors afresh in a restricted order: deleting intervening elements must not create new edges.
4.2 Rows and witnesses
A row describes a new regular element , far from the whole core. Formally, it is a pair , where is the star type of and satisfies for every . Thus one row fixes the binary assignment to every core element. The orientation is from to : means , and means .
A row is feasible if, for each witness obligation j, at least one of the following choices makes true:
(W1) the source itself: ;
(W2) a neighbour described by : ;
(W3) a far regular element: some and satisfy ;
(W4) a core element .
The same map must work for all obligations, although their witnesses may differ. Guess a finite set of feasible rows, containing at least one row for every , with
The bound concerns the selected rows, not all feasible rows. It allows one row for each regular star type and at most one additional row per each of the interface obligations; Lemma 9 proves that these suffice. Different rows with the same star type may be necessary: if is asymmetric and lies in the core, one copy may require , while another must witness . These requirements cannot share a row. Every selected row receives infinitely many copies. Appendix C gives an explicit example.
For each and obligation , choose a witness in one of three ways:
(a) an element of , possibly itself;
(b) the neighbour to be assigned to a free ray occurrence at ;
(c) a new far element described by a row , with an assignment from to that element.
The chosen diagonal, pair, or ray must satisfy . In (c), this means ; if , also require
The equality requires the two descriptions of the pair to agree. For a boundary source there is no row entry to constrain .
After has been chosen, the certificate therefore has three parts:
| Data | What they specify |
|---|---|
| Interface and pair table | The bounded elements, their neighbours, and all pairs between them. |
| Rows | The allowed descriptions of new elements: a star type and one consistent assignment to the whole core. |
| Witness choices | For every interface obligation, an element of , a free ray occurrence, or a row and a compatible far assignment. |
A certificate is accepting if all these conditions hold.
5 Certificates and models
Sections 5.1–5.2 construct an admissible model from an accepting certificate; Section 5.3 proves the converse by extracting a certificate from an admissible model. For the construction, fix an accepting certificate with . Give every row infinitely many copies. We first match their successor requirements, then fill the far pairs to satisfy the remaining obligations.
5.1 Matching rays at integer heights
Choose height vectors on so that increases by one along each -edge. This is possible because each colour graph is a disjoint union of paths. Add
where . An element carries row and has star type . The vector gives its heights and will rule out cycles. Elements with the same form one group: successor edges inside stay in that group, while far witnesses are chosen in group . Finally, supplies infinitely many copies of each row at every height and group.
Two-Variable Logic with Arbitrarily Many Successor Relations
For a legal mask M, define
A ray with mask will lead from height to . For example, leads to one shared neighbour at displacement , whereas separate rays and lead to different heights. The map is injective, , and nonempty masks have nonzero displacement.
Attach the interface
For each free occurrence with mask , choose a row whose star type matches , and a distinct copy at height in group 0. Match to its inverse there, using its binary assignment. This uses just one occurrence at the copy. Every such attachment starts at the boundary, since all core rays are already realized.
For each interface witness choice of kind (c), reserve a separate copy of its chosen row in group 0, distinct from all attachment targets. It receives no successor edge to C, so the chosen pair is far. Separate copies also prevent different obligations from prescribing incompatible assignments to the same pair. There are at most attachment targets and reserved witnesses, so the coordinate supplies enough copies. All of R remains far from the core.
▶ Lemma 7 (Ray realization). All remaining free ray occurrences in R can be matched so that each assigned star type is realized exactly, every colour is acyclic, and edges inside R preserve g.
Proof. An occurrence of at a source of 1-type prescribes 2-type . Its inverse is . They are distinct because is nonempty and legal. Choose one representative from each inverse pair of 2-types occurring in regular star types.
For each representative with mask and each , match its free occurrences at bijectively with inverse occurrences at , and give each matched pair its specified 2-type. Both sets are countably infinite. Regularity ensures that both orientations occur in , and contains a row for every star type in . Each such row has infinitely many copies at every fixed height and group, and attachments consume only finitely many occurrences. Every occurrence belongs to exactly one such matching: one of inverse type at height belongs to the matching at .
No pair is a loop, since its displacement is nonzero. If two occurrences at one element reached the same neighbour, their masks would have the same displacement, hence would be equal. Distinct rays cannot have equal nonempty masks, and each occurrence is used only once. Thus no pair is assigned twice, from either endpoint. Distinct attachment targets give the same property for pairs involving C. Since each port belongs to at most one ray and each occurrence is used only once, every colour graph is functional and inverse-functional.
Put and . Every -edge, including an attachment, increases by one, so no -cycle exists. All matchings inside preserve .
Every group is nonempty and has no successor edge leaving it. Hence each colour has infinitely many components. Lemma 3 supplies an order with exactly that successor relation, independently for each colour.
5.2 Assigning far pairs
For every new element with row , assign on its pair to each . Also assign each reserved interface-witness pair as specified by its witness choice. The two instructions agree at a core source by (9); at a boundary source they concern separate pairs. Distinct reserved witnesses prevent further conflicts. Fill the other far pairs between C and R from their permitted assignment sets. These are nonempty because the endpoint in R is regular, even when the endpoint in C is bounded.
All interface obligations are now satisfied. For new elements, any obligation admitting (W1), (W2), or (W4) already has its diagonal, ray, or core witness. By row feasibility, every remaining obligation admits (W3), the case of a far regular witness (Section 4.2).
▶ Lemma 8 (Far witnesses). The remaining obligations can be satisfied without changing any assigned pair or violating .
Proof. For each remaining obligation of an element in group g, choose a target 1-type and a permitted assignment as in (W3), and a target of that type in group . Use distinct targets for different obligations of the same source. Every required 1-type has infinitely many realizations there, and every selected pair is far because successor edges preserve groups.
No unordered pair is selected twice. Two different sources could do so only by selecting each other, whereas selections always increase the group number. Sharing a target uses different pairs and causes no conflict. Assign the selected pairs, then fill every remaining far pair in R from its set of permitted assignments. These sets are nonempty by regularity. Choose one orientation per pair; symmetry of validates the reverse assignment.
5.3 From a model to a certificate
▶ Lemma 9 (Extraction). Every admissible model realizing exactly P, with , supplies an accepting certificate.
Proof. Take all bounded elements as the core, add their neighbours to obtain C, and retain the actual pair table. Lemma 5 and the successor semantics give (I1)–(I3) and (7).
For each , choose a realization , possibly on the boundary, and form a row describing a new element far from the core. Copy the assignments of to far core elements. At a core neighbour, use any permitted far assignment, which exists by regularity. A neighbour witness is still represented by its ray in , and that ray has a matching regular star type by Lemma 5. Thus actual witnesses give (W1) on the diagonal, (W2) at neighbours, (W4) at far core elements, and (W3) otherwise, proving feasibility.
Choose actual witnesses for the interface obligations. A witness in C gives (a); a neighbour outside C gives (b). Every remaining witness lies outside C and is far from the whole core. Add its actual row to F and use (c). The same classification proves row feasibility, and the actual assignments satisfy (9). There is one initial row per regular type and at most one additional row per interface obligation, proving (8).
▶ Proposition 10 (Certificate equivalence). Fix P with nonempty matching sets and . An accepting certificate exists if and only if has an admissible model realizing exactly P. Every accepting certificate yields a countably infinite such model, with every star type in U realized infinitely often.
Proof. Lemmas 7 and 3 realize the certified star types with exact successors. Star type legality, the interface checks, and the permitted far assignments ensure everywhere. The
Two-Variable Logic with Arbitrarily Many Successor Relations
witness choices and Lemma 8 satisfy all obligations. The interface realizes every star type in B, and the rows supply infinitely many realizations of every star type in U. The converse is Lemma 9.
Infinitely many copies allow the ray matchings, and infinitely many components allow dense completion. The construction does not in general yield a finite model or orders of type .
6 Decision procedures and consequences
6.1 Satisfiability and the complexity bound
The algorithm enumerates the legal star types and the permitted assignment sets , guesses a nonempty set of realized star types, rejects empty matching sets, and computes the boundedness closure from (5). Set , the set of regular star types. There are two branches.
(1) If , guess a nonempty structure of size at most , with the multiplicity bounds from Lemma 5. Check , exact realization of , and that each distinguished successor is a single directed spanning path.
(2) If , guess and check an accepting certificate.
The first branch covers all models with its star type set by Lemma 5. The second is sound and complete by Proposition 10. The second branch can also accept a star type set originally extracted from a finite model; it then constructs an infinite model with the same set of star types.
Proof of Theorem 1. Recall that counts legal star types, , counts additional binary predicates, and counts the witness obligations in (1). The lists of legal star types and permitted assignments have singly exponential size by (3) and . Once is chosen, matching sets and at most closure steps are computed in time polynomial in these lists. By (6), , so its binary representation has bits. Thus even arithmetic on the multiplicity bounds takes only singly exponential time.
Put and . Assignments in the pair table and rows take
one 2a-bit assignment per interface pair and per row entry at a core element. Here and by (8). Masks use bits; labels and indices use binary encodings. Together with the witness choices, their total size is polynomial in . All checks are polynomial in the explicit certificate and the precomputed lists; for (W3), scan the realized regular 1-types and permitted assignments. Only selected rows are checked. By (7), is exponential in , which is singly exponential in . Hence the certificate, and the time to guess and check it, are at most doubly exponential: . The finite-model branch obeys the smaller domain bound (6) and the same time bound.
Hardness follows by adding an unused successor to ordinary .
6.2 Infinite models and an effective size threshold
The branch with also decides infinite satisfiability. The multiplicity bounds give a threshold above which a finite model implies the existence of an infinite model.
▶ Theorem 11 (Infinite satisfiability). Existence of an infinite admissible model belongs to 2-NEXPTIME and is NEXPTIME-hard already for one successor. Every sentence with an infinite admissible model has a countably infinite admissible model supplied by an accepting certificate with .
Proof. In an infinite model, the finitely many bounded star types account for only finitely many elements. Its realized star type set therefore has , and Lemma 9 supplies a certificate. Conversely, every such certificate yields an infinite model. Restricting the algorithm to its second branch proves the bound.
For hardness, relativize ordinary to a nonempty unary predicate and add infinitely many elements outside it.
▶ Corollary 12 (Effective threshold). Let be the number of legal star types of a normalized sentence , let , and put . If has a finite admissible model of size greater than , it has an infinite admissible model. Equivalently, if it has no infinite admissible model, every admissible model has size at most .
Proof. Take the realized star type set of the given finite model. If all its star types were bounded, Lemma 5 would bound its size by , using . Hence ; extracting and realizing a certificate gives an infinite model. The second exponential comes from exponentiating the singly exponential number of legal star types.
This is not a small-model property for finite satisfiability: it bounds finite models only when there is no infinite model. In that case, checking all structures up to determines all possible model sizes. Normalization preserves domain size, so the threshold also applies to the original sentence.
How large can the core be?
An explicit core cannot always have singly exponential size. Proposition 14 in Appendix B gives sentences polynomial in forcing exactly bounded elements, using only two successors and unary predicates; all their models are infinite. This is a model-size lower bound, not 2-NEXPTIME hardness.
7 Finite models with bounded adjacency disagreement
The preceding construction relies on infinitely many copies and a dense ordering of components. For finite models, each successor must instead form one spanning path. We now obtain a separate decision procedure by bounding the number of reference adjacencies lost by the other paths. Throughout this section all models are finite.
Define the disagreement cost relative to the first order by
Budgeted finite satisfiability takes a sentence and a nonnegative integer , and asks whether there is a finite admissible model with . The orders, including the reference order, are chosen with the model. Since every finite successor has edges, each summand is also the number of added edges and half the symmetric difference. A reference edge lost by two orders is counted twice.
Two-Variable Logic with Arbitrarily Many Successor Relations
▶ Theorem 13 (Budgeted finite satisfiability). Budgeted finite satisfiability is NEXPTIME-complete for a binary-encoded budget, uniformly in the number of successors and with arbitrary additional unary and binary predicates. It is also NEXPTIME-complete for unary-encoded budgets and for every fixed . Every satisfiable instance has a model of size at most , for a fixed polynomial .
The model-size bound depends on the value of b, which can be exponential in its binary encoding length. The decision-time bound uses that length: the algorithm below need not list a model.
7.1 Reduction to one successor
We use two-variable logic with counting quantifiers, . The quantifier means that at most distinct values of satisfy ; is defined similarly. Counts are written in binary. Let denote this logic with one distinguished successor, interpreted as a single finite spanning path, and arbitrary additional unary and binary predicates. Its finite satisfiability problem is NEXPTIME-complete for binary-encoded counts. The upper bound follows from [2, Theorem 1]: use the distinguished forest relation for , bound its outdegree by one, and require exactly one root (an element with no incoming edge). Every finite forest satisfying these counting conditions is a spanning path, including the one-element path. The lower bound follows from ordinary -satisfiability.
Keep distinguished and treat the other as ordinary predicates. Their ranks stay constant on shared -edges and increase on added edges, excluding cycles since is acyclic. Degree and root constraints then make each a spanning path.
Guess nonnegative integers with , all written in binary. An admissible model of cost at most has at most added edges per path, so ranks suffice. Put : then , with at least one bit even when . For each , introduce fresh unary predicates encoding a rank , with bit 0 least significant. The quantifier-free comparisons are
They express equality and strict comparison of the ranks. Equality compares w bits; strict comparison has w cases, each inspecting at most w bits. Thus the expansions have atom occurrences.
For each , include the degree and root conditions
and the rank condition
Finally, use a fresh unary predicate to count the tails of lost reference edges:
Let be the conjunction of with (12)–(14) for all , expanding the comparisons. Each of the relations adds atom occurrences and a count , written with at most bits. Thus the resulting sentence has size polynomial in the input length .
7.2 Correctness and complexity
Suppose first that has a finite model. On an -cycle the rank cannot decrease and increases strictly on any edge outside . Hence such a cycle would consist entirely of -edges, contrary to the semantics of the distinguished successor. Together with (12), acyclicity makes a finite union of directed paths, including possible isolated vertices. Each component has one vertex with no predecessor, and there is exactly one such vertex in total. Thus is a single spanning path. Since is functional, . Equation (14) therefore gives total cost at most , and the original-signature reduct is an admissible model of .
Conversely, let be a finite admissible model of cost at most . Choose . Both paths have edges, so . For an element , let count the edges in on the -path from its first element to . These ranks lie between and and therefore fit into the chosen bits. They remain constant on shared edges and increase by one on the other edges, satisfying (13). The degree, root, and cost conditions hold as well. This expands to a finite model of .
Each guessed takes at most bits, so all guesses use bits. Applying the NEXPTIME procedure for finite satisfiability of to the polynomial-size sentence gives time . This also covers , when no extra constraints are needed, and , when all ranks in the completeness argument are zero. The procedure need not list a model explicitly.
For hardness, identical successors have cost zero, so the usual reduction works for every fixed and .
7.3 The finite-model size bound
To prove the size bound, we encode the successors by at most common blocks and apply a small-model theorem for one order. Fix a finite admissible model of cost at most . Let . Since the union counts each lost edge once, . Cutting in the reference path gives nonempty directed blocks. Their internal edges belong to every , so functionality and inverse-functionality force each block to remain consecutive in every order. Thus every order permutes the blocks without reversing them. Number the blocks in reference order, and let be their permutations. Only block boundaries contribute to the cost. Writing , we have
For example, three blocks can be arranged as follows:
| Order | Block sequence | Lost reference adjacencies |
|---|---|---|
| Reference | — | |
| Second | ||
| Third |
The cost is two, independently of block lengths. Keeping the permutations fixed will preserve this cost when we apply the small-model theorem.
We now encode these fixed permutations using one linear order < and its successor S. Fresh unary predicates mark the blocks in reference order. Require them to partition the domain into nonempty sets and put every -element before every -element
Two-Variable Logic with Arbitrarily Many Successor Relations
whenever ; this makes each block an interval. To express the connections between blocks, define predicates for their first and last elements:
The partition and block order use clauses, and the endpoint definitions use . In a finite model each nonempty block has unique endpoints, possibly the same element. In , replace by and every , , by
The first disjunct preserves edges within blocks; the second joins successive blocks in order . The substitution is quantifier-free, including for reversed or repeated arguments. Let be the substituted sentence with the block and endpoint clauses. Marking the blocks and endpoints of gives a model of .
Each replacement has atom occurrences. With the block clauses and , the length of is polynomial in . The small-model theorem for one order and its successor, with additional unary and binary predicates [25, Section 3], gives a finite model of of size exponential in this length. Reconstruct the by concatenating blocks according to , leaving the other predicates unchanged. The result satisfies , retains this small model's domain, and has the original cost by (15). Hence its size is at most , proving Theorem 13.
Trying all budgets does not decide unrestricted finite satisfiability: the argument provides no computable stopping budget for instances with no finite model.
8 Conclusion
Arbitrarily many independent successor relations preserve decidability of -satisfiability over arbitrary order types, with a uniform 2-NEXPTIME upper bound and unrestricted additional binary predicates. The proof separates local compatibility from global realization: a finite interface records bounded multiplicities and their witness requirements, while integer heights and dense completion realize the remaining successor structure. This supplies finite certificates despite the failure of the finite-model property. The same certificates decide infinite satisfiability and bound every model of a sentence that has only finite models.
For finite structures, bounding adjacency disagreement gives a different way to control the interaction of successors. The resulting problem remains NEXPTIME-complete with both the number of successors and a binary budget in the input. Thus allowing a specified amount of disagreement does not increase the complexity class beyond the one-successor case. Common blocks explain the structural restriction, while binary ranks make its succinct encoding algorithmically useful.
Three questions remain. Can the gap between the NEXPTIME lower bound and the 2-NEXPTIME upper bound for general satisfiability be closed? The forced doubly exponential core limits explicit enumeration, but does not establish a matching complexity lower bound. Can certificates be adapted to scattered or well-founded underlying orders, for which dense completion is unavailable? Finally, can the interaction of three or more successors be controlled in finite models without a supplied disagreement budget? Resolving these questions would clarify which aspects of order type and interaction between adjacencies govern the boundary of decidability.
References
1 Mikolaj Bojańczyk, Claire David, Anca Muscholl, Thomas Schwentick, and Luc Segoufin. Two-variable logic on data words. ACM Transactions on Computational Logic, 12(4):27:1–27:26, 2011. doi:10.1145/1970398.1970403.
2 Witold Charatonik, Yegor Guskov, Ian Pratt-Hartmann, and Piotr Witkowski. Two-variable first-order logic with counting in forests. In LPAR-22. 22nd International Conference on Logic for Programming, Artificial Intelligence and Reasoning, pages 214–232. EasyChair, 2018. URL: https://easychair.org/publications/paper/f6fB, doi:10.29007/24fm.
3 Witold Charatonik and Piotr Witkowski. Two-variable logic with counting and a linear order. Logical Methods in Computer Science, 12(2):8:1–8:31, 2016. URL: https://arxiv.org/abs/1604.06038, doi:10.2168/LMCS-12(2:8)2016.
4 Witold Charatonik and Piotr Witkowski. Two-variable logic with counting and trees. ACM Transactions on Computational Logic, 17(4):31:1–31:27, 2016. doi:10.1145/2983622.
5 Kousha Etessami, Moshe Y. Vardi, and Thomas Wilke. First-order logic with two variables and unary temporal logic. Information and Computation, 179(2):279–295, 2002. doi:10.1006/inco.2001.2953.
6 Diego Figueira. Satisfiability for two-variable logic with two successor relations on finite linear orders. arXiv:1204.2495v3, 2013. URL: https://arxiv.org/abs/1204.2495v3.
7 Oskar Fiuk, Emanuel Kieroński, and Vincent Michielini. Two-variable logic for hierarchically partitioned and ordered data. In Proceedings of the 22nd International Conference on Principles of Knowledge Representation and Reasoning, pages 316–325, 2025. doi:10.24963/kr.2025/31.
8 Erich Grädel, Phokion G. Kolaitis, and Moshe Y. Vardi. On the decision problem for two-variable first-order logic. The Bulletin of Symbolic Logic, 3(1):53–69, 1997. doi:10.2307/421196.
9 Emanuel Kieroński. Decidability issues for two-variable logics with several linear orders. In Computer Science Logic (CSL'11), volume 12 of Leibniz International Proceedings in Informatics (LIPIcs), pages 337–351. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2011. doi:10.4230/LIPIcs.CSL.2011.337.
10 Emanuel Kieroński and Jakub Michaliszyn. Two-variable universal logic with transitive closure. In Computer Science Logic (CSL'12), pages 396–410. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2012. doi:10.4230/LIPIcs.CSL.2012.396.
11 Emanuel Kieroński, Jakub Michaliszyn, Ian Pratt-Hartmann, and Lidia Tendera. Two-variable first-order logic with equivalence closure. SIAM Journal on Computing, 43(3):1012–1063, 2014. doi:10.1137/120900095.
12 Emanuel Kieroński and Martin Otto. Small substructures and decidability issues for first-order logic with two variables. The Journal of Symbolic Logic, 77(3):729–765, 2012. doi:10.2178/js1/1344862160.
13 Emanuel Kieroński and Lidia Tendera. Finite satisfiability of the two-variable guarded fragment with transitive guards and related variants. ACM Transactions on Computational Logic, 19(2):8:1–8:34, 2018. doi:10.1145/3174805.
14 Amaldev Manuel. Two variables and two successors. In Mathematical Foundations of Computer Science 2010 (MFCS 2010), volume 6281 of Lecture Notes in Computer Science, pages 513–524. Springer, 2010. doi:10.1007/978-3-642-15155-2_45.
15 Amaldev Manuel and A. V. Sreejith. Two-variable logic over countable linear orderings. In 41st International Symposium on Mathematical Foundations of Computer Science (MFCS 2016), pages 66:1–66:13. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2016. doi:10.4230/LIPIcs.MFCS.2016.66.
16 Amaldev Manuel and Thomas Zeume. Two-variable logic on 2-dimensional structures. In Computer Science Logic 2013 (CSL 2013), pages 484–499. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2013. doi:10.4230/LIPIcs.CSL.2013.484.
17 Dariusz Marzec and Lidia Tendera. On two-variable first-order logic with a partial order. Journal of Logic and Computation, 36(2):exaf068, 2026. doi:10.1093/logcom/exaf068.
Two-Variable Logic with Arbitrarily Many Successor Relations
18 Michael Mortimer. On languages with two variables. Zeitschrift für mathematische Logik und Grundlagen der Mathematik, 21:135–140, 1975. doi:10.1002/malq.19750210118.
19 Martin Otto. Two variable first-order logic over ordered domains. The Journal of Symbolic Logic, 66(2):685–702, 2001. doi:10.2307/2695037.
20 Ian Pratt-Hartmann. Complexity of the two-variable fragment with counting quantifiers. Journal of Logic, Language and Information, 14(3):369–395, 2005. doi:10.1007/s10849-005-5791-1.
21 Ian Pratt-Hartmann. Finite satisfiability for two-variable, first-order logic with one transitive relation is decidable. Mathematical Logic Quarterly, 64(3):218–248, 2018. doi:10.1002/malq.201700055.
22 Thomas Schwentick and Thomas Zeume. Two-variable logic with two order relations. Logical Methods in Computer Science, 8(1):15:1–15:27, 2012. doi:10.2168/LMCS-8(1:15)2012.
23 Wiesław Szwast and Lidia Tendera. On the satisfiability problem for fragments of two-variable logic with one transitive relation. Journal of Logic and Computation, 29(6):881–911, 2019. URL: https://arxiv.org/abs/1804.09447, doi:10.1093/logcom/exz012.
24 Szymon Toruńczyk and Thomas Zeume. Register automata with extrema constraints, and an application to two-variable logic. Logical Methods in Computer Science, 18(1):42:1–42:38, 2022. URL: https://arxiv.org/abs/2101.03866, doi:10.46298/1mcs-18(1:42)2022.
25 Thomas Zeume and Frederik Harwath. Order-invariance of two-variable logic is decidable. In Proceedings of the 31st Annual ACM/IEEE Symposium on Logic in Computer Science, pages 807–816. ACM, 2016. Full version: arXiv:1604.05843; theorem numbering follows that version. URL: https://arxiv.org/abs/1604.05843, doi:10.1145/2933575.2933594.
Use of generative AI
During the preparation of this work, the authors utilized GPT-6 Astra to assist with problem-solving, text condensation, and manuscript editing. Specifically, based on the authors' initial notes, GPT-6 Astra proposed a very complex proof argument to address the decidability problem; the authors subsequently spent substantial effort deconstructing, simplifying, and fully comprehending this argument, ultimately rewriting nearly the entire proof and independently verifying its mathematical correctness. Additionally, GPT-6 Astra and GPT-6.1 SOL were employed as supporting tools for proofreading, stylistic refinement, and text reduction. The authors have thoroughly reviewed and edited all content and accept full responsibility for the final accuracy and integrity of the publication.
A Scott normalization on the same domain
Given , introduce fresh unary predicates and construct a sentence
such that, for every original structure iff some expansion satisfies [8]. For example, the definition is replaced by
The clauses express the two implications. Nonemptiness supplies a witness for the first clause at elements where is false. For a closed subformula , use a fresh unary predicate and impose
Its definition is expressed by the same two clauses above, with in place of . Nonemptiness ensures that has one global truth value and that these clauses equate that value with the existential sentence. Universal quantifiers are handled by . Subformulas whose only free variable is are treated by exchanging and simultaneously; no third variable is needed.
Replace quantified subformulas from the inside out, retaining their separate definitions rather than expanding them at every occurrence. There is at most one fresh predicate and a constant number of defining clauses per quantified subformula; no exponential unfolding is needed. The remaining Boolean combination of predicates naming closed subformulas is imposed at every element. A clause with one universally quantified variable can be given a second, unused universal quantifier. An existential sentence can be written , again using nonemptiness. Combining the universal clauses gives (17) in polynomial size. The new predicates are chosen in the expansion; the domain and all original predicate interpretations are unchanged. Conversely, the defining clauses force the named subformulas to have their intended truth values, so forgetting the fresh predicates recovers . Finally, conjoining to changes no model because both variables are universally quantified.
B The bounded part can be doubly exponential
Polynomial-size sentences can force a doubly exponential finite set in every model, even when all their models are infinite.
▶ Proposition 14. For every there is a satisfiable sentence , of size polynomial in , with two distinguished successors and only additional unary predicates, such that every admissible model has exactly elements in a designated unary predicate . All these elements realize bounded star types of . Every admissible model of is infinite.
Proof. Use unary predicates , with the encoding a level in binary, least significant bit first. Let and say that all bits are zero and all bits are one, respectively. Let say that the level of is the level of plus one, without overflow. Explicitly,
Two-Variable Logic with Arbitrarily Many Successor Relations
where abbreviates exclusive or and the empty conjunction is true. There are clauses, each inspecting at most bits, so expansion gives atom occurrences. The other requirements below also have polynomial size. Require a unique -element at level zero, called the root, and at least one element outside . Constrain the successor edges by
Every T-element below the maximum level must have a successor in each colour; every T-element above level zero must have a predecessor in at least one colour. These requirements are the two-variable clauses
The two children of one element are distinct because they disagree on L. Different parents cannot share a child in one colour, by inverse-functionality, or across colours, by the same L-constraint. Conversely, every positive-level T-element is a child of an element on the preceding level. Starting from the unique root, level j therefore has exactly elements. The r bits allow levels , so
For satisfiability, take the full binary tree of this height, using for left-child edges and for right-child edges, and add countably infinitely many elements outside T with no incident edges. In each colour this graph is functional, inverse-functional, acyclic, and has infinitely many components. Lemma 3 supplies the required orders. No finite model is possible: an element outside T has neither a predecessor nor a successor, whereas a finite spanning path with more than one vertex has no isolated vertex.
The sentence can be written directly in Scott normal form without fresh unary predicates. Fix any realized star type set . Let be the root's 1-type. Uniqueness of a element makes the set of permitted far assignments from (2) empty, so the root's star type lies in the initial closure set from (5). Every realized -star type on level has a predecessor ray, because the predecessor clause must hold at each realization. All star types matching that ray lie at level : this follows from the increment constraint on its inverse edge. Induction on therefore puts every such star type into the boundedness closure .
Consequently, an explicit interface need not have singly exponential size. This is a lower bound on the size of a forced finite part, not a 2-NEXPTIME hardness result: a more succinct algorithm could represent that part without listing all its elements.
C A worked certificate
Take unary predicates K, A, V, two successor relations constrained by , and an additional binary predicate E. The unique K-element starts a path alternating V- and A-elements. The relation E is asymmetric and may hold only on far pairs. The example exhibits both boundedness propagation and the need for several rows of one star type.
Let say that exactly one of holds, and abbreviate
Define the following quantifier-free formulas:
Use and five witness matrices:
Together with , these matrices define in Scott normal form, as in (1). The first obligation makes nonempty; uniqueness comes from . The next two require a successor for every element and a predecessor for every non- element. The last two require the -element to have an -edge to an -element, and each -element to have an -edge to the -element or a -element. No auxiliary unary predicates are needed for Scott normalization.
Star types and closure.
Let be the three 1-types; their diagonal is false by asymmetry. Write , . The empty assignment to is . Guess as follows.
| Star type | 1-type | Rays |
|---|---|---|
Every ray has an inverse match. The only empty set of permitted far assignments is , since two distinct elements of 1-type are forbidden; all other such sets contain . Applying the boundedness closure (5), we obtain . The predecessor ray of has only as a match, so is added next. No further star type is added: the predecessor ray of matches both and , its successor ray matches , and both rays of match . Thus the bounded and regular star types are, respectively,
Here . The seed bound is ; the sole predecessor match of is , so propagation gives . These are safe upper bounds: uniqueness and port functionality make both actual multiplicities one. In particular, and have the same 1-type but different boundedness status. The closure must operate on star types, not 1-types.
Two-Variable Logic with Arbitrarily Many Successor Relations
The interface and rows.
Choose the bounded core and the interface with labels , respectively. In both colours, the interface edges are . Set true and all other -atoms on the interface false. The only free ray occurrence is the successor ray at ; it matches . The core budget is . Allowing each core element itself and four neighbours gives the interface bound in (7); our interface uses only three elements and passes the structural checks.
The row bound (8) allows rows. We use only the three rows , , and shown below. In a row with source , the entry at means , while means .
| Row | Star type | At | At | Witness for |
|---|---|---|---|---|
| Source itself | ||||
| A far -element |
All three rows are feasible. Obligation uses ; use the successor and predecessor rays; and holds on the diagonal. For , row uses , row uses its source, and row uses a far -element with assignment . Thus the two rows of star type satisfy the same obligation in different ways.
The -element's obligation cannot use , since excludes . Choose a new element with row and assignment from . The compatibility condition (9) between the core and the row holds because . Row would not work for this choice. Let denote the future successor of . The interface witness choices are:
| Source | |||||
|---|---|---|---|---|---|
Here selects a free ray occurrence, and selects the row and assignment . The other entries select elements already in .
Completing the model.
We use the construction with integer heights and groups from Section 5.1. Set both interface heights to 0, 1, 2 at . The height displacement for the common mask is , so attach the free ray occurrence at to a copy of row at height (3, 3) in group 0. Reserve a distinct copy of row at height (0, 0) in that group for the -element's -obligation. Its row already sets , and it receives no successor edge to the interface. Choose a copy of row in group 1 and set . This pair is far because successor edges preserve the group. Figure 1 shows these finite choices.

Figure 1 The interface and its reserved witnesses. The interface is inside the solid box, and its core is inside the dotted box. Solid arrows are pairs in both and ; dashed arrows are E-edges. The attachment target and the far witness are distinct new elements. The remaining neighbours are supplied by matching at integer heights.
Match the remaining rays at displacement , independently in each group. Every new element uses its row: copies of have , while copies of have and choose an E-witness of row in the next group. These choices satisfy for every copy, not just . All other obligations are already supplied by the interface, the rows, and the matched rays. Dense completion gives the two underlying orders without adding successor pairs.
Necessity of the certificate conditions
Splitting a ray with mask into independently chosen neighbours would violate . Choosing row for would conflict with , violating (9). Agreement on that pair alone does not ensure feasibility: if we replace by
row remains feasible but does not. Its source now needs and cannot use instead. The strengthened sentence is unsatisfiable: an -element witnessing the unique -element's -obligation would require the reverse -edge, contradicting asymmetry.