Unary Functions, Automorphisms, and Unlabeled First-Order Model Counting
arXiv:2608.30580
Abstract
Every fixed first-order sentence determines an enumerative sequence , counting its models on the labeled domain . We study the complexity of these sequences when logical specifications may use genuine unary function symbols and hence nested terms . We first prove that, for every fixed sentence , with one unary function and an arbitrary finite relational vocabulary, is computable in time polynomial in . By contrast, permitting either a second variable or a second unary function already yields hardness. Without counting quantifiers, there is a fixed sentence in whose model-counting function is -complete. With one variable and two unary functions, there is a fixed constant-free universal sentence in , using only unary predicates besides and , whose model-counting function is again -complete. We also relate labeled and unlabeled enumeration exactly. For every relational sentence , we construct an extension in which a unary function records an automorphism and , where denotes the number of -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 , where , eliminating the auxiliary function yields single-query reductions from unlabeled and model counting to labeled and model counting, respectively.
61 pages