arXiv:2610.21967math.LOOct 2026

Manuscript Offprint

arXiv:2610.21967

Discrete Temporal CSPs et al

Lukas Pieper

Abstract

We revisit the complexity classification of constraint satisfaction problems (CSPs) for first-order reducts of (Z,<)(\mathbb{Z}, <), established by Bodirsky, Martin, and Mottet in 2018. Following their approach, we give a self-contained proof of this classification, correcting several errors in the argument. We further show that, with the exception of cases arising from finite-domain CSPs, all tractable cases are solved by a well-known uniform algorithm, eliminating the need for the collection of ad-hoc algorithms used in the original paper.

A central component of the proof allows the analysis to be restricted to first-order reducts of (Z,<)(\mathbb{Z}, <) that contain the successor relation. We substantially simplify this reduction and generalize the underlying construction. This generalization allows us to apply the same technique to first-order reducts of the triangular lattice graph and of infinite regular trees, yielding a complete complexity classification for these classes of structures, in particular a P versus NP-complete dichotomy.

1 Introduction

The constraint satisfaction problem CSP(M) of a relational structure M asks, given a primitive positive sentence ϕ\phi over the signature of M, that is, an existentially quantified conjunction of atomic formulas, whether ϕ\phi holds in M. Equivalently, viewing ϕ\phi as encoding, in the natural way, a structure N over the same signature, this is the question of whether there exists a homomorphism from N to M. When M is finite, the complexity of CSP(M) is by now completely understood: the celebrated proof of the Feder–Vardi dichotomy conjecture shows that every such problem is solvable in polynomial time or NP-complete. For infinite M, no such general classification can be expected, but CSP(N) has been studied extensively for first-order reducts N of a fixed infinite structure M. A first-order reduct of M is a structure with the same domain whose relations are first-order definable in M. Complete complexity classifications, and in several cases full P versus NP-complete dichotomies, have been obtained for the CSPs of first-order reducts of the order of the rationals, the random graph, the random poset, and various other ω\omega-categorical structures.

Among these structures, first-order reducts of (Z,<)(\mathbb{Z}, <) occupy a distinguished position: (Z,<)(\mathbb{Z}, <) is not ω\omega-categorical, a property that in the other cases provides powerful tools, most notably a correspondence between primitive positive definability and preservation by polymorphisms, for classifying the complexity of the corresponding CSPs. Essentially, the relations that first-order reducts of (Z,<)(\mathbb{Z}, <) can express beyond those already definable over (Q,<)(\mathbb{Q}, <) are relations that constrain the distance between elements.

Example 1. Let diff2:={(a,a+2)∣a∈Z}\text{diff}_2 := \{(a, a + 2) \mid a \in \mathbb{Z}\}. Then ∃u∀v(x<v<y↔u=v)\exists u \forall v (x < v < y \leftrightarrow u = v) defines diff2\text{diff}_2 in (Z,<)(\mathbb{Z}, <) and hence (Z,diff2)(\mathbb{Z}, \text{diff}_2) is a first-order reduct of (Z,<)(\mathbb{Z}, <).

At the same time, every CSP of a first-order reduct of (Q,<)(\mathbb{Q}, <) equals CSP(Γ)\text{CSP}(\Gamma) for some first-order reduct Γ\Gamma of (Z,<)(\mathbb{Z}, <). So the latter class strictly generalizes the former. The complexity of CSP(Γ)\text{CSP}(\Gamma) for every finite-signature, first-order reduct Γ\Gamma of (Z,<)(\mathbb{Z}, <) was classified by Bodirsky, Martin, and Mottet [7], building on an earlier classification, due to Bodirsky et al. [8], of the CSPs of locally finite, finite-signature, first-order reducts of (Z,succ)(\mathbb{Z}, \text{succ}), the integers equipped with the successor relation. More recently, the classification of Bodirsky, Martin, and Mottet [7] has found application beyond its original setting: Dabrowski et al. [11] use it as a key ingredient in the parametrized complexity analysis of disjunctive temporal problems.

*Funded by the European Union (ERC, POCOCOP, 101071674). Views and opinions expressed are however those of the author(s) only and do not necessarily reflect those of the European Union or the European Research Council Executive Agency. Neither the European Union nor the granting authority can be held responsible for them.

In this paper we revisit the classification of Bodirsky, Martin, and Mottet [7] and make the following contributions. We correct several errors in the original proof. Most importantly, the argument in [7] relies on the claim that every first-order reduct of (Z,<)(\mathbb{Z}, <) that contains the successor relation either primitively positively defines < or is itself a first-order reduct of (Z,succ)(\mathbb{Z}, \text{succ}). We show that this claim is false, and we close the resulting gap in the classification. We also show that, with the exception of those cases whose CSP equals the CSP of a finite structure, every tractable CSP( Γ\Gamma) for a first-order reduct Γ\Gamma of (Z,<)(\mathbb{Z}, <) can be solved by a single, well-known uniform algorithm, which removes the need for the collection of ad-hoc algorithms designed separately for individual cases in [7] and in [8]. Our main technical contribution, however, is a significant simplification and generalization of the technique underlying the reduction, in [7], of the full classification to the case of first-order reducts of (Z,<)(\mathbb{Z}, <) that contain the successor relation. As a minor additional point, whereas the original proof relies on quantifier elimination in a way that only works for finite signatures, our proof does not rely on quantifier elimination in the same way and therefore also applies to reducts with infinite signatures. Finally, we demonstrate the reach of this generalized technique by applying it to two further classes of structures: first-order reducts of the triangular lattice graph, and first-order reducts of infinite regular trees. In both cases we obtain a full complexity classification, and in particular a P versus NP-complete dichotomy, for the corresponding CSPs.

Tool and computational resource disclosure Large language models were used to assist with the writing and editing of this manuscript. All mathematical content was developed without AI assistance. GPT-6 Astra by OpenAI was used to review an earlier version of the manuscript and identified mathematical errors. All identified errors were corrected without AI assistance.

Notation N\mathbb{N} denotes the non-negative integers, including zero, and for n∈Nn \in \mathbb{N}, [n]:={1,…,n}[n] := \{1, \ldots, n\}. We write aˉ\bar{a} for a tuple (a1,…,ak)(a_1, \ldots, a_k); if the tuple itself carries an index, as in aˉi\bar{a}_i, we instead write its entries as ai(1),…,ai(k)a_i^{(1)}, \ldots, a_i^{(k)}. The projection onto the ii-th coordinate is written πi\pi_i, i.e., πi(aˉ):=ai\pi_i(\bar{a}) := a_i, and the projection of a relation RR of arity kk onto coordinates I⊆[k]I \subseteq [k] is written ProjI(R):={(πi(aˉ))i∈I∣aˉ∈R}\text{Proj}_I(R) := \{(\pi_i(\bar{a}))_{i \in I} \mid \bar{a} \in R\}. Given an equivalence relation ∼\sim and an element aa, [a]∼[a]_\sim denotes the ∼\sim-equivalence class of aa. A\mathcal{A}, M\mathcal{M}, N\mathcal{N}, and occasionally M\mathbb{M}, denote structures with respective domains AA, MM, and NN, while Γ\Gamma and Δ\Delta are reserved for first-order reducts of a fixed structure. The σ\sigma-reduct of a τ\tau-structure M\mathcal{M}, for σ⊆τ\sigma \subseteq \tau, is written M↾σ\mathcal{M} \upharpoonright \sigma; the substructure induced by A⊆MA \subseteq M is written M∣A\mathcal{M}|_A, and the same bar notation restricts a function or relation to a subset of its domain. We write M⪯N\mathcal{M} \preceq \mathcal{N} to mean that M\mathcal{M} is an elementary substructure of N\mathcal{N}. Let Hom(M,N)\text{Hom}(\mathcal{M}, \mathcal{N}) denote the set of homomorphisms from M\mathcal{M} to N\mathcal{N}, End(M):=Hom(M,M)\text{End}(\mathcal{M}) := \text{Hom}(\mathcal{M}, \mathcal{M}), and Aut(M)\text{Aut}(\mathcal{M}) the automorphism group of M\mathcal{M}. When M\mathcal{M} and N\mathcal{N} are relational, we further let Pol(M,N):=⋃k∈NHom(Mk,N)\text{Pol}(\mathcal{M}, \mathcal{N}) := \bigcup_{k \in \mathbb{N}} \text{Hom}(\mathcal{M}^k, \mathcal{N}). For a binary relation symbol RR, n∈Zn \in \mathbb{Z}, and variables x,yx, y, define

Rnxy:={x=yifn=0R−nyxifn<0∃zn(Rn−1xzn∧Rzny)ifn>0.R^{n}xy:=\begin{cases}x=y&if n=0\\R^{-n}yx&if n<0\\\exists z_{n}(R^{n-1}xz_{n}\wedge Rz_{n}y)&if n>0.\end{cases}

Finally, for S,T⊆ZS, T \subseteq \mathbb{Z} and ∘∈{+,−,⋅}\circ \in \{+,-,\cdot\}, we write S∘T:={s∘t∣s∈S,t∈T}S \circ T := \{s \circ t \mid s \in S, t \in T\}, and n∘T:={n}∘Tn \circ T := \{n\} \circ T, S∘n:=S∘{n}S \circ n := S \circ \{n\} for n∈Zn \in \mathbb{Z}.