Lune

LICS2025Top-tier venue

Model Enumeration of Two-Variable Logic with Quadratic Delay Complexity

Qiaolan Meng, Juhua Pu, Hongting Niu, Yuyi Wang, Yuanhong Wang, Ondrej Kuzelka

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 Γ and a positive integer n, how can one enumerate all the models of Γ 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 Ω(n 2 ) bits to represent.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

Questions to start from

Lune can draw on

the full paper · related work

Get the answer

Free to start. No credit card required.

Lineage

  • On Exact Sampling in the Two-Variable Fragment of First-Order Logic cites Domain-Lifted Sampling for Universal Two-Variable Logic and Extensions
  • Domain-Lifted Sampling for Universal Two-Variable Logic and Extensions cites Towards a more efficient approach for the satisfiability of two-variable logic
Builds onCited byLeft to right by year; the more cited, the higher.

Builds on3

  1. Domain-Lifted Sampling for Universal Two-Variable Logic and ExtensionsYuanhong Wang, Timothy van Bremen, Yuyi Wang, Ondrej KuzelkaAAAI 2022 · 7 citations
  2. Towards a more efficient approach for the satisfiability of two-variable logicTing-Wei Lin, Chia-Hsuan Lu, Tony TanLICS 2021 · 3 citations
  3. On Exact Sampling in the Two-Variable Fragment of First-Order LogicYuanhong Wang, Juhua Pu, Yuyi Wang, Ondrej KuzelkaLICS 2023 · 2 citations

Related papers

  1. Tractable Weighted First-Order Model Counting with Bounded Treewidth Binary EvidenceVáclav Kula, Qipeng Kuang, Yuyi Wang, Yuanhong Wang et al.AAAI 2026
  2. Lifted Inference with Linear Order AxiomJan Tóth, Ondrej KuzelkaAAAI 2023 · 16 citations
  3. Finite Model Theory of the Triguarded Fragment and Related LogicsEmanuel Kieronski, Sebastian RudolphLICS 2021 · 4 citations
  4. Uniformisation of Regular Relations in First-Order Logic with Two VariablesNathan Lhote, Vincent Michielini, Michal SkrzypczakLICS 2024
  5. Weighted Model Counting in FO2 with Cardinality Constraints and Counting Quantifiers: A Closed Form FormulaSagar Malhotra, Luciano SerafiniAAAI 2022 · 9 citations
Dusk over the sea between two cliffs drawn in fine vertical lines