The Weighted First-Order Model Counting Problem (WFOMC) asks to compute the weighted sum of models of a given first-order logic sentence over a given domain. It can be solved in time polynomial in the domain size for sentences from the two-variable fragment with counting quantifiers, known as $C^2$. This polynomial-time complexity is known to be retained when extending $C^2$ by one of the following axioms: linear order axiom, tree axiom, forest axiom, directed acyclic graph axiom or connectedness axiom. An interesting question remains as to which other axioms can be added to the first-order sentences in this way. We provide a new perspective on this problem by associating WFOMC with graph polynomials. Using WFOMC, we define Weak Connectedness Polynomial and Strong Connectedness Polynomials for first-order logic sentences. It turns out that these polynomials have the following interesting properties. First, they can be computed in polynomial time in the domain size for sentences from $C^2$. Second, we can use them to solve WFOMC with all of the existing axioms known to be tractable as well as with new ones such as bipartiteness, strong connectedness, having $k$ connected components, etc. Third, the well-known Tutte polynomial can be recovered as a special case of the Weak Connectedness Polynomial, and the Strict and Non-Strict Directed Chromatic Polynomials can be recovered from the Strong Connectedness Polynomials.
Lifted Algorithms for Symmetric Weighted First-Order Model Sampling
Beihang University(北京航空航天大学);Zhongfa Aviation Institute of Beihang University(北京航空航天大学中法航空学院);ETH Zurich(苏黎世联邦理工学院);Czech Technical University in Prague(捷克技术大学布拉格分校)
Weighted First-Order Model Counting over Ordered Domains
Czech Technical University in Prague(布拉格捷克理工大学);The University of Hong Kong(香港大学);Jilin University(吉林大学);CRRC Zhuzhou Institute(中车株洲研究所);Tengen Intelligence Institute(天能智能研究院)