Counting homomorphisms modulo prime powers and classifying square-free graph targets

Graham, Peter

Published

In short

A graph homomorphism assigns a color to every vertex so that each edge receives an allowed pair of colors. In 2018, Göbel, Lagodzinski and Seidel showed that counting these assignments can be harder modulo a prime power than modulo the prime. We reduce that count to counts modulo a prime with some colors fixed in advance. For a target with no four-cycle, a test works at every positive modulus. It certifies that a polynomial-time algorithm exists or identifies the primes whose satisfying-assignment counts are jointly equivalent to the original count.

Abstract

Fix a finite relational target. Counting homomorphisms to it modulo a prime power pap^a is polynomial-time Turing equivalent to counting modulo pp with some images prescribed. The latter counts use a computable list of targets induced by vertex subsets. Once pap^a exceeds the largest power of pp dividing the number of automorphisms, only the original target occurs. Kazeminia and Bulatov classified square-free graphs (graphs with no four-cycle) at prime moduli. We extend their dichotomy to every positive modulus. A test finds a prime set BB. If BB is empty, counting takes polynomial time. Otherwise the count is polynomial-time Turing equivalent to the whole tagged family of satisfying-assignment counts modulo primes in BB, with the prime supplied in each query. We use their cycle gadget and the weighted independent-set dichotomy of Göbel, Lagodzinski and Seidel, who singled out prime powers. Lean verifies the equivalences, threshold and graph classification. The hardness proof assumes an axiom transcribing the weighted dichotomy with counting-class membership, SAT completeness and encoding translations. This work has not yet been reviewed by experts. The proofs, computations, Lean formalization, code and text were produced by AI models from OpenAI and Anthropic, working under the author's direction.

Counting equivalences, threshold and graph classification proved in Lean apart from the published Göbel–Lagodzinski–Seidel weighted counting dichotomy for bipartite independent sets with its membership, SAT completeness and encoding translations; not yet reviewed by experts.