On Exact Sampling in the Two-Variable Fragment of First-Order Logic

02/06/2023
by   Yuanhong Wang, et al.
0

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 𝐅𝐎^2 (𝐔𝐅𝐎^2) to the entire fragment of 𝐅𝐎^2. Specifically, we prove the domain-liftability under sampling of 𝐅𝐎^2, meaning that there exists a sampling algorithm for 𝐅𝐎^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.

READ FULL TEXT
research
08/17/2023

Lifted Algorithms for Symmetric Weighted First-Order Model Sampling

Weighted model counting (WMC) is the task of computing the weighted sum ...
research
06/04/2020

Lifted Inference in 2-Variable Markov Logic Networks with Function and Cardinality Constraints Using Discrete Fourier Transform

In this paper we show that inference in 2-variable Markov logic networks...
research
03/07/2019

Lifted Weight Learning of Markov Logic Networks Revisited

We study lifted weight learning of Markov logic networks. We show that t...
research
11/06/2020

A New Inference algorithm of Dynamic Uncertain Causality Graph based on Conditional Sampling Method for Complex Cases

Dynamic Uncertain Causality Graph(DUCG) is a recently proposed model for...
research
05/13/2014

Understanding the Complexity of Lifted Inference and Asymmetric Weighted Model Counting

In this paper we study lifted inference for the Weighted First-Order Mod...
research
04/08/2022

On Presburger arithmetic extended with non-unary counting quantifiers

We consider a first-order logic for the integers with addition. This log...
research
04/26/2018

Weighted model counting beyond two-variable logic

It was recently shown by van den Broeck at al. that the symmetric weight...

Please sign up or login with your details

Forgot password? Click here to reset