English

Bridging Weighted First Order Model Counting and Graph Polynomials

Logic in Computer Science 2025-12-09 v3 Artificial Intelligence

Abstract

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 C2C^2. This polynomial-time complexity is known to be retained when extending C2C^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 C2C^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 kk 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.

Keywords

Cite

@article{arxiv.2407.11877,
  title  = {Bridging Weighted First Order Model Counting and Graph Polynomials},
  author = {Qipeng Kuang and Ondřej Kuželka and Yuanhong Wang and Yuyi Wang},
  journal= {arXiv preprint arXiv:2407.11877},
  year   = {2025}
}

Comments

To be published in CSL 2026

R2 v1 2026-06-28T17:43:18.570Z