English

Model Enumeration of Two-Variable Logic with Quadratic Delay Complexity

Logic in Computer Science 2025-05-27 v1 Artificial Intelligence

Abstract

We study the model enumeration problem of the function-free, finite domain fragment of first-order logic with two variables (FO2FO^2). Specifically, given an FO2FO^2 sentence Γ\Gamma and a positive integer nn, how can one enumerate all the models of Γ\Gamma over a domain of size nn? 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 nn (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 Ω(n2)\Omega(n^2) bits to represent.

Keywords

Cite

@article{arxiv.2505.19648,
  title  = {Model Enumeration of Two-Variable Logic with Quadratic Delay Complexity},
  author = {Qiaolan Meng and Juhua Pu and Hongting Niu and Yuyi Wang and Yuanhong Wang and Ondřej Kuželka},
  journal= {arXiv preprint arXiv:2505.19648},
  year   = {2025}
}

Comments

16 pages, 4 figures and to be published in Fortieth Annual ACM/IEEE Symposium on Logic in Computer Science (LICS)

R2 v1 2026-07-01T02:38:40.936Z