Model Enumeration of Two-Variable Logic with Quadratic Delay Complexity
Qiaolan Meng, Juhua Pu, Hongting Niu, Yuyi Wang, Yuanhong Wang, Ond\v{r}ej Ku\v{z}elka

TL;DR
This paper introduces a new algorithm for enumerating all models of a two-variable first-order logic sentence over finite domains, achieving near-optimal quadratic delay complexity.
Contribution
The paper presents a novel enumeration algorithm for $FO^2$ logic models with quadratic delay, improving efficiency and approaching theoretical optimality.
Findings
Delay complexity is quadratic in domain size, up to logarithmic factors.
The algorithm is nearly optimal given the information-theoretic lower bound.
Provides a practical method for model enumeration in finite domain logic.
Abstract
We study the model enumeration problem of the function-free, finite domain fragment of first-order logic with two variables (). Specifically, given an sentence and a positive integer , how can one enumerate all the models of over a domain of size ? 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 (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 bits to represent.
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsAdvanced Algebra and Logic · semigroups and automata theory · Logic, Reasoning, and Knowledge
