Symmetric Linear Arc Monadic Datalog and Gadget Reductions
Manuel Bodirsky, Florian Starke
TL;DR
This paper characterizes the finite-domain CSPs solvable by symmetric linear arc monadic (slam) Datalog as exactly those with a gadget reduction to CSP$(\mathfrak{P}_2)$, linking this power to unfolded caterpillar duality and universal-algebraic conditions. It develops a tight web of equivalences involving pp-constructability in $\mathfrak{P}_2$, minor conditions, minion homomorphisms, and the presence of quasi Maltsev and $k$-absorptive polymorphisms for all $n,k\ge1$, and proves the decidability of the slam-Datalog expressibility meta-problem. The results show slam Datalog is the smallest non-trivial gadget-closed fragment, and they provide a constructive method to derive slam programs when possible. Overall, the work integrates constraint satisfaction dualities, Datalog fragments, and algebraic polymorphism theory to illuminate the boundary between tractable and intractable finite-domain CSPs in a robust, computable framework.
Abstract
A Datalog program solves a constraint satisfaction problem (CSP) if and only if it derives the goal predicate precisely on the unsatisfiable instances of the CSP. There are three Datalog fragments that are particularly important for finite-domain constraint satisfaction: arc monadic Datalog, linear Datalog, and symmetric linear Datalog, each having good computational properties. We consider the fragment of Datalog where we impose all of these restrictions simultaneously, i.e., we study \emph{symmetric linear arc monadic (slam) Datalog}. We characterise the CSPs that can be solved by a slam Datalog program as those that have a gadget reduction to a particular Boolean constraint satisfaction problem. We also present exact characterisations in terms of a homomorphism duality (which we call \emph{unfolded caterpillar duality}), and in universal-algebraic terms (using known minor conditions, namely the existence of quasi Maltsev operations and $k$-absorptive operations of arity $nk$}, for all $n,k \geq 1$). Our characterisations also imply that the question whether a given finite-domain CSP can be expressed by a slam Datalog program is decidable.
