Two variable logic with ultimately periodic counting
Michael Benedikt, Egor V. Kostylev, Tony Tan
TL;DR
This work extends two-variable logic with counting by introducing ultimately periodic counting quantifiers and proves the decidability of both satisfiability and finite satisfiability, while also showing that the spectrum of any sentence is definable in Presburger arithmetic. The authors reduce logical satisfiability to the analysis of constrained biregular graphs, establishing Presburger-definable characterizations of graph-size vectors via existential Presburger formulas. They develop a multi-layered framework, starting from a 1-color core and progressively handling multi-color and non-simple matrices, including completeness constraints and digraphs, with a detailed complexity analysis culminating in a 2-$ exp$ upper bound for satisfiability. The results yield precise information about the model sizes (spectrum) and position the work relative to existing decidability results for related logics. Overall, this paper demonstrates how Presburger-definable size constraints in biregular graphs can powerfully decide expressive extensions of FO2 with counting, with broad implications for description logic tools and finite-model theory.
Abstract
We consider the extension of two variable logic with quantifiers that state that the number of elements where a formula holds should belong to a given ultimately periodic set. We show that both satisfiability and finite satisfiability of the logic are decidable. We also show that the spectrum of any sentence is definable in Presburger arithmetic. In the process we present several refinements to the ``biregular graph method''. In this method, decidability issues concerning two-variable logics are reduced to questions about Presburger definability of integer vectors associated with partitioned graphs, where nodes in a partition satisfy certain constraints on their in- and out-degrees.
