arXiv:2610.19943cs.LOOct 2026

Manuscript Offprint

arXiv:2610.19943

Finite Satisfiability of Two-Variable Logic with Arbitrarily Many Successors

Artur Jeż, Jakub Michaliszyn, Piotr Witkowski

Artur Jeż, Jakub Michaliszyn, Piotr Witkowski

University of Wrocław, Wrocław, Poland

Abstract. We study finite satisfiability of two-variable first-order logic over structures equipped with an arbitrary finite number of independent successor relations of linear orders. The number of successor relations is part of the input, and the vocabulary may contain further unrestricted unary and binary relations. We prove decidability in deterministic doubly exponential space together with a triply exponential bound on the size of a smallest finite model. This settles the unrestricted finite case beyond two successors.

1 Introduction

We prove that finite satisfiability of two-variable first-order logic remains decidable with any finite, input-dependent number of independent successor relations of linear orders and unrestricted additional unary and binary predicates. This resolves the finite-model problem left open beyond two successors by Figueira [7] and in the classification of Zeume and Harwath [33]. Our proof combines local descriptions of models with signed counting and effective recurrences to enforce all successor paths simultaneously.

The two-variable fragment, denoted by FO2FO^{2}, has the finite model property [20], an exponential model bound, and NEXPTIME-complete satisfiability [10]. Its correspondence with unary temporal logic on words [6] illustrates its relevance to navigation. A recurring question is whether its algorithmic properties survive semantic constraints on selected binary predicates.

For several familiar constraints, a small number of independent relations already destroys decidability. Three linear orders make finite satisfiability undecidable even when all additional predicates are unary [13]; three equivalence relations also give undecidability [15]. Two transitive relations suffice, whereas finite satisfiability with one remains decidable [27]. Successors behave differently: our result imposes no fixed bound on their number and requires no nesting or other prescribed relationship between them. Formulas can test immediate adjacency, including overlaps between successors, but cannot access the underlying order predicates. This establishes a robust decidable case for independent navigation relations in the finite setting.

A finite domain with several successors is one set of objects equipped with several traversals. Labels constrain consecutive objects, and ordinary binary predicates describe further relationships. The same pair may be consecutive in

Artur Jeż, Jakub Michaliszyn, Piotr Witkowski

several traversals, possibly in opposite directions. Finite satisfiability asks whether these requirements admit a finite realisation. Although the formula uses only two variables, each designated relation must form one directed path spanning the entire domain. Bounded degree alone does not enforce this condition.

For two successors, Figueira proved finite NEXPTIME-completeness with additional unary predicates [7]; unrestricted additional binary predicates are covered by counting logic over two forests [5,3]. Figueira explicitly asked about three and arbitrarily many successors [7, Section 7]. Both cases also appear as open entries for EMSO 2^{2} and ESO 2^{2} in Zeume and Harwath's classification [33, Fig. 1]. We settle them uniformly.

The recent work of Michaliszyn and Witkowski [19] decides general and infinite satisfiability with arbitrarily many successors in 2NEXPTIME, and a finite variant with bounded adjacency disagreement. It leaves unrestricted finite satisfiability unresolved. On an infinite domain, successor components can be ordered densely to recover exact successor relations; on a finite domain, each relation must instead be a single spanning path. Moreover, ∀x∃yS1(x,y)\forall x \exists y S_1(x, y) is satisfiable over the integer order and has no finite model. General decidability therefore does not settle the finite problem.

Our result. We allow equality, arbitrary unary and binary predicates, and designated symbols S1,…,SkS_1, \ldots, S_k. Each SiS_i is interpreted as the successor of a linear order on the same finite, nonempty domain. The underlying orders are absent from the vocabulary, and kk is part of the input.

Theorem 1. Finite satisfiability of FO2FO^2 with arbitrarily many independent linear-order successor relations is decidable in 2EXPSPACE. There is a polynomial p such that every finitely satisfiable sentence of length n has a model of size at most 22p(n)2^{2p(n)}.

The bound is uniform in the number of successors and includes unrestricted additional binary predicates. We do not claim optimal complexity: ordinary FO2FO^{2} gives a NEXPTIME lower bound, while the two-successor case is NEXPTIME-complete.

The theorem also yields 2EXPSPACE upper bounds for finite satisfiability of EMSO 2^{2} and ESO 2^{2} with three or arbitrarily many successors, closing the corresponding gaps in [33]. For satisfiability, existentially quantified unary and binary predicates can be treated as additional unrestricted relation symbols.

The obstacle: simultaneous global path conditions. Local successor degrees and a unique vertex without a predecessor allow one path together with disjoint cycles. Cycles must be excluded in every designated relation. Successors also cannot be matched independently: formulas may impose Si(x,y)∧Sj(y,x)S_i(x, y) \wedge S_j(y, x) or Si(x,y)↔Sj(x,y)S_i(x, y) \leftrightarrow S_j(x, y), and ordinary binary predicates may constrain the same pair. Changing an edge in one relation can therefore destroy requirements on the others. A construction must preserve the complete bundle of successor directions and ordinary binary data on every adjacent pair.

Our method counts locally consistent realisations with signs chosen so that every realisation containing a successor cycle cancels. The resulting sum counts exactly the cycle-free realisations and is positive precisely when a model of that size exists. This replaces the construction of all spanning paths by an arithmetic nonzero test. We must then bound the first size at which the count can be nonzero: evaluating counts at individually chosen sizes would not by itself decide finite satisfiability.

Proof strategy and technical contributions. We use local types, witness pools, and integer multiplicities familiar from two-variable satisfiability procedures [24,5,3,19]. The finite construction and the arithmetic argument fit together in four stages.

  1. A bounded witness core compatible with all successors. After Scott normalisation, distant existential witnesses can be redirected to one exponentially bounded core. Three witness pools prevent conflicting assignments to an ordinary binary pair, while all successor adjacencies and their binary data are preserved. Profiles record each distinct neighbour with its entire successor bundle. A bounded colouring makes compatible record matchings free of loops and repeated pairs. Logical consistency thereby reduces to finding a cycle-free realisation of these profiles.

  2. Cancellation for overlapping successor bundles. Marking cycles with weight -1 implements inclusion-exclusion simultaneously for all successors. Exchanging two partners in one record class changes the weight by (−1)t(-1)^{t}, where t counts the marked relations carried by the bundle. Odd classes cancel unless their multiplicity is at most one; even classes contribute factorials. The common sign of the surviving matchings depends only on profile multiplicities modulo two. This gives an explicit signed factorial sum for the nonnegative number of cycle-free realisations.

  3. A quantitative recurrence and an effective finite cutoff. We derive a nonzero polynomial-coefficient recurrence for these counts, with bounds on its order, degrees, and coefficient heights. The construction follows classical dimension-counting methods for hypergeometric sums [32,23]. A formal parameter handles factorial shifts across support boundaries, and weight variables prevent the relation from vanishing under summation. Cancelling common factors before successive specialisations retains a nonzero recurrence valid at every nonnegative index. Bounds on integer roots of its coefficients then bound the first nonzero count, yielding the triply exponential model-size bound.

  4. A zero test within doubly exponential space. The binary representation of the model-size cutoff has doubly exponential length, but the count itself can require many more bits. We evaluate factorial ratios modulo primes larger than their arguments and test sufficiently many residues to decide whether the count is zero. The computation uses space polynomial in the local data and the binary representation of the candidate size, giving the deterministic 2EXPSPACE upper bound.

Artur Jeż, Jakub Michaliszyn, Piotr Witkowski

These stages address distinct requirements: preserving logical data, enforcing global paths, terminating the search, and bounding its space. A small-model bound alone does not yield the space complexity; feasible multiplicity constraints alone do not establish existence, because signed contributions can cancel.

References (31)