Skip to content

A Fine-Grained Dichotomy for Bounded-Variable Query Evaluation: The Calculus of Relations, a Boolean Modal Logic, and One-Variable Counting Logic

Yoshiki Nakamura, Yuya Uezato

cs.DBarXiv:2610.04573

Abstract

We study the fine-grained complexity of evaluating Boolean bounded-variable first-order queries over sparse relational structures. For every fixed k 2, every relational signature, and every fragment between k-variable primitive positive (PPk) and first-order (FOk) logic, we prove, assuming the Sparse MAX-3-SAT hypothesis, a dichotomy theorem for evaluation in O(mk-) time, where m is the number of tuples in the input structure. The only tractable cases fall into three families: (1) three-variable fragments, (2) two-variable fragments, and (3) fragments over unary signatures. On the hard side, for every fixed k 4 and every > 0, there is a fixed sentence φ in PPk over a single binary relation symbol, depending on but not on the input structure, whose evaluation cannot be performed in O(mk-) time. For the tractable cases, we show that the evaluation problem can be solved in 2O(|φ|) · mk- time for some > 0. Moreover, every tractable fragment reduces, with a 2O(|φ|) blowup in formula size under DAG representations, to one of the following query languages: (1) Tarski's calculus of relations, (2) a new Boolean modal logic for sparse model checking, and (3) one-variable counting logic.

Create a lesson