arXiv · 2505.19648
Model Enumeration of Two-Variable Logic with Quadratic Delay Complexity
Abstract
We study the model enumeration problem of the function-free, finite domain fragment of first-order logic with two variables ($FO^2$). Specifically, given an $FO^2$ sentence $\Gamma$ and a positive integer $n$, how can one enumerate all the models of $\Gamma$ over a domain of size $n$? In this paper, we devise a novel algorithm to address this problem. The delay complexity, the time required between producing two consecutive models, of our algorithm is quadratic in the given domain size $n$ (up to logarithmic factors) when the sentence is fixed. This complexity is almost optimal since the interpretation of binary predicates in any model requires at least $\Omega(n^2)$ bits to represent.
Explore related subjects
Keep this discovery
Qiaolan Meng, Juhua Pu, Hongting Niu, Yuyi Wang, Yuanhong Wang, Ondřej Kuželka. 2025-05-26. Model Enumeration of Two-Variable Logic with Quadratic Delay Complexity. https://arxiv.org/abs/2505.19648
Cite the original work for its findings. Save a collection to share your selection of sources.