arXiv:2610.18287cs.LOOct 2026

Manuscript Offprint

arXiv:2610.18287

Finite-on-Top-of-Temporal CSPs in Fixed-Point Logic

Manuel Bodirsky, Philipp A. Grzywaczyk

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 definability in fixed-point logic with counting (FPC) for a class of constraint satisfaction problems (CSPs) that simultaneously generalises finite-domain CSPs and temporal CSPs. The templates for the CSPs are first-order expansions of the structure [k]×Q;<1,…,<k,∼[k] \times \mathbb{Q}; <_1, \ldots, <_k, \sim where <i:={((i,x),(i,x′))∣x<x′}<_i := \{((i, x), (i, x')) \mid x < x'\} and ∼:={((i,x),(i,x′))∣i∈[k],x,x′∈Q}\sim := \{((i, x), (i, x')) \mid i \in [k], x, x' \in \mathbb{Q}\}, i.e., kk copies of (Q;<)(\mathbb{Q}; <).

Such a CSP is definable in FPC precisely when the template pp-constructs neither the ternary temporal relation X, which holds on three elements if the minimum is attained exactly twice, nor a nontrivial finite affine structure. Equivalently, the template has global polymorphisms that witness the tractability of the temporal CSPs on the copies, and that provide 3-4 weak near-unanimity operations on the set of copies of Q. In this case, we prove that the CSP is even expressible in the less expressive logic FP*, which is the restriction of FPC without counting terms (i.e., the extension of first-order logic by a fixed point operator and an ordered auxiliary number sort).

Our algorithm samples finitely many values in each copy and then performs nested constraint-singleton consistency tests (which is a uniform polynomial-time algorithm for finite-domain CSPs). The correctness proof uses finite-domain CSP theory to combine consistency certificates by a single polymorphism term, fixing each variable to one copy without destroying the certificates needed for the temporal algorithm. We then use a known normal form for algebraic products to control the remaining interactions between different copies.

2012 ACM Subject Classification Theory of computation → Constraint and logic programming; Theory of computation → Finite Model Theory

Keywords and phrases Constraint satisfaction, temporal constraints, fixed-point logic, counting, polymorphisms, bounded width, sampling

Funding Both authors have been funded by the European Research Council (Project POCOCOP, ERC Synergy Grant 101071674). Views and opinions expressed are however those of the authors 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.

Acknowledgements The authors would like to thank Antoine Mottet for the discussions on the topic of this paper.

AI Disclosure. OpenAI's ChatGPT was used for initial algorithm and proof development, as well as drafting an initial LaTeX file. It contributed the ideas of the outer colour-pair testing in the algorithm, and using the syntactical normal forms for algebraic products of (Q;<)(Q; <). Many of the other ideas, e.g., using the combination of sampling and consistency algorithms, determining the colours via cycle-consistency of the induced finite CSP, and using palette polymorphisms came from the authors, and some others emerged during discussions with ChatGPT. The authors reviewed and revised all arguments produced by LLMs; the proofs have been streamlined and rewritten. In particular, the entire text of the paper has been written by the authors. The authors verified the mathematical content, claims and citations and take full responsibility for the paper.

Finite on Top of Temporal CSPs in Fixed-Point Logic

Contents

1 Introduction 2
2 Preliminaries 6
3 Nested Singleton Consistency 8
4 Determining the Colours 10
5 Solutions from Determined Colours 13
6 Fixed-Point Implementation 16
7 Obstructions and the Classification 19
8 Conclusion and Open Problems 21

References (24)