Skip to content

Unary Functions, Automorphisms, and Unlabeled First-Order Model Counting

Ondřej Kuželka

cs.LOarXiv:2608.30580

Abstract

Every fixed first-order sentence φ determines an enumerative sequence n(φ,n), counting its models on the labeled domain [n]. We study the complexity of these sequences when logical specifications may use genuine unary function symbols and hence nested terms x,f(x),f2(x),…. We first prove that, for every fixed sentence φ∈C1=[f], with one unary function and an arbitrary finite relational vocabulary, FOMC(φ,n) is computable in time polynomial in n. By contrast, permitting either a second variable or a second unary function already yields hardness. Without counting quantifiers, there is a fixed sentence in FO2=[f] whose model-counting function is \#P1-complete. With one variable and two unary functions, there is a fixed constant-free universal sentence in FO1=[f,g], using only unary predicates besides f and g, whose model-counting function is again \#P1-complete. We also relate labeled and unlabeled enumeration exactly. For every relational sentence φ, we construct an extension φaut in which a unary function records an automorphism and FOMC(φaut,n)=n!·UFOMC(φ,n), where UFOMC(φ,n) denotes the number of n-element models of φ up to isomorphism. Thus automorphism marking gives a one-query exact reduction from unlabeled to labeled model counting at the same domain size. Over relational vocabularies of maximum arity at most k, where k≥2, eliminating the auxiliary function yields single-query reductions from unlabeled FOk= and Ck model counting to labeled FOk+1= and Ck+1 model counting, respectively.

Create a lesson