On Exact Sampling in the Two-Variable Fragment of First-Order Logic
Yuanhong Wang, Juhua Pu, Yuyi Wang, Ondrej Kuzelka
Abstract
In this paper, we study the sampling problem for first-order logic proposed recently by Wang et al.-how to efficiently sample a model of a given first-order sentence on a finite domain? We extend their result for the universally-quantified subfragment of two-variable logic FO 2 (UFO 2 ) to the entire fragment of FO 2 . Specifically, we prove the domain-liftability under sampling of FO 2 , meaning that there exists a sampling algorithm for FO 2 that runs in time polynomial in the domain size. We then further show that this result continues to hold even in the presence of counting constraints, such as ∀x∃ =k y : ϕ(x, y) and ∃ =k x∀y : ϕ(x, y), for some quantifier-free formula ϕ(x, y). Our proposed method is constructive, and the resulting sampling algorithms have potential applications in various areas, including the uniform generation of combinatorial structures and sampling in statistical-relational models such as Markov logic networks and probabilistic logic programs.
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.
1 top-tier paper has cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Lifted Inference with Linear Order Axiom cites Domain-Lifted Sampling for Universal Two-Variable Logic and Extensions
- Domain-Lifted Sampling for Universal Two-Variable Logic and Extensions cites Tinted, Detached, and Lazy CNF-XOR Solving and Its Applications to Counting and Sampling
- Model Enumeration of Two-Variable Logic with Quadratic Delay Complexity cites Domain-Lifted Sampling for Universal Two-Variable Logic and Extensions
Cited by top-tier papers1
Builds on4
- Tinted, Detached, and Lazy CNF-XOR Solving and Its Applications to Counting and SamplingMate Soos, Stephan Gocht, Kuldeep S. MeelCAV 2020 · 102 citations
- Lifted Inference with Linear Order AxiomJan Tóth, Ondrej KuzelkaAAAI 2023 · 16 citations
- Sampling constraint satisfaction solutions in the local lemma regimeWeiming Feng, Kun He, Yitong YinSTOC 2021 · 16 citations
- Domain-Lifted Sampling for Universal Two-Variable Logic and ExtensionsYuanhong Wang, Timothy van Bremen, Yuyi Wang, Ondrej KuzelkaAAAI 2022 · 7 citations
Related papers
- Weighted Model Counting in FO2 with Cardinality Constraints and Counting Quantifiers: A Closed Form FormulaSagar Malhotra, Luciano SerafiniAAAI 2022 · 9 citations
- Tractable Weighted First-Order Model Counting with Bounded Treewidth Binary EvidenceVáclav Kula, Qipeng Kuang, Yuyi Wang, Yuanhong Wang et al.AAAI 2026
- Separation and Definability in Fragments of Two-Variable First-Order Logic with CountingLouwe B. Kuijer, Tony Tan, Frank Wolter, Michael ZakharyaschevLICS 2025 · 1 citation
- Uniformisation of Regular Relations in First-Order Logic with Two VariablesNathan Lhote, Vincent Michielini, Michal SkrzypczakLICS 2024
- Pseudorandom Finite ModelsJan Dreier, Jamie Tucker-FoltzLICS 2023 · 1 citation
