Data-Complexity of the Two-Variable Fragment with Counting Quantifiers
Ian Pratt-Hartmann
TL;DR
The paper determines data-complexity boundaries for two counting-augmented two-variable logics: $ ext{C}^2$ and $ ext{GC}^2$. It proves that satisfiability and finite satisfiability for $ ext{C}^2$ lie in $NP$, while query-answering and finite query-answering for $ ext{GC}^2$ with positive conjunctive queries lie in $co$-$NP$, with tightness results including undecidability for unrestricted $ ext{C}^2$ query answering. The core method is a novel reduction to Presburger arithmetic via a frame-and-star-type encoding, enabling compact representation of models and polynomial-time data procedures. Together these results place sharp, practical limits on satisfiability and query answering for counting-quantified two-variable fragments, informing both theoretical understanding and database-querying techniques under counting quantifiers.
Abstract
The data-complexity of both satisfiability and finite satisfiability for the two-variable fragment with counting is NP-complete; the data-complexity of both query-answering and finite query-answering for the two-variable guarded fragment with counting is co-NP-complete.
