Adaptive Query Algorithms for Relational Structures Based on Homomorphism Counts
Balder ten Cate, Phokion G. Kolaitis, Arnar Á. Kristjánsson
TL;DR
The paper studies the expressive power of query algorithms that decide classes of finite relational structures using only homomorphism information, comparing left versus right queries, adaptive versus non-adaptive strategies, and running over the naturals ($\\mathbb{N}$) or the Boolean semiring ($\\mathbb{B}$). A central technical tool is a cycle-symmetry lemma that yields a simple formula for $\\hom(A, m\\cdot \\mathsf{C}_n)$ in terms of the invariant $\\gamma(A)$, enabling precise indistinguishability results and lower bounds. The authors establish sharp separations: over $\\mathbb{N}$, many signatures (notably with a binary or higher-arity relation) admit classes not decidable by any bounded adaptive left algorithm, while unbounded adaptivity recovers all classes; conversely, adaptive right queries collapse to a two-query bound. They also show that adaptive right queries over $\\mathbb{B}$ enjoy a topology-based dichotomy (clopen sets) and relate unbounded adaptivity to FO-definability, CSPs, and Datalog via upper envelopes, highlighting deep connections between homomorphism counts, logic, and database queries.
Abstract
A query algorithm based on homomorphism counts is a procedure to decide membership for a class of finite relational structures using only homomorphism count queries. A left query algorithm can ask the number of homomorphisms from any structure to the input structure and a right query algorithm can ask the number of homomorphisms from the input structure to any other structure. We systematically compare the expressive power of different types of left or right query algorithms, including non-adaptive query algorithms, adaptive query algorithms that can ask a bounded number of queries, and adaptive query algorithms that can ask an unbounded number of queries. We also consider query algorithms where the homomorphism counting is done over the Boolean semiring $\mathbb{B}$, meaning that only the existence of a homomorphism is recorded, not the precise number of them.
