arXiv:2610.05412cs.CCOct 2026

Manuscript Offprint

arXiv:2610.05412

A Dichotomy for Planar Graph Homomorphisms with Nonnegative Weights

Chenghua Liu, Boning Meng

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

We prove a complete complexity dichotomy for planar graph homomorphism counting with any fixed symmetric nonnegative matrix of arbitrary finite order, giving an explicit criterion for tractability. We also characterize exactly which fixed positive vertex weights preserve tractability, with both classifications extending from algebraic weights to fixed real weights in a prescribed exact representation. Our proof hinges on an entropy-based continuation argument: maximal logarithmic support identifies distance kernels as maximum-entropy completions, extending their positive definiteness throughout the parameter interval. This enables distance geometry to recover hidden product coordinates even when planar gadgets cannot distinguish colors; counting-hardness arguments then force the factors to be zero-field Boolean Ising interactions. The classification also yields complete tractability criteria for clock models, coupled Ising systems, and planar contractions of stoquastic imaginary-time kernels. All results have been formally verified in Lean 4. 1^{1}

1 Introduction

Counting graph colorings and evaluating spin partition functions are two versions of the same problem: sum the weights of all assignments of states to vertices, with interactions along edges. In combinatorics, an interaction can prescribe which pairs of colors are allowed; in statistical physics, it assigns a Boltzmann weight to each pair of spins. The resulting partition function is both a counting invariant and the normalizing constant for a Gibbs distribution. Understanding when it can be computed efficiently is a common question across these subjects.

Planarity makes this question particularly interesting. The Fisher–Kasteleyn–Temperley (FKT) algorithm for the zero-field Ising model [Kas61, Kas63, TF61] is a striking exception to the hardness of exact counting on general graphs [BG05]. Independent Ising systems can be combined to give tractable models with arbitrarily many states. Does every tractable nonnegative interaction arise this way, apart from elementary local summations? And which single-site fields preserve this advantage of planarity? These questions ask for the extent of the Ising phenomenon, beyond a particular model or number of states.

We study them in the language of weighted graph homomorphisms. Each vertex receives one of qq states, also called colors, indexed by [q]={1,…,q}[q] = \{1, \ldots, q\}. A fixed symmetric nonnegative matrix MM specifies the edge weight MijM_{ij} when its endpoints receive states i,ji, j. The partition function is

ZM(G)=∑σ:V(G)→[q]∏uv∈E(G)Mσ(u),σ(v).Z_{M}(G)=\sum_{\sigma:V(G)\to[q]}\prod_{u v\in E(G)}M_{\sigma(u),\sigma(v)}.

1^{1}The formalization is available at https://github.com/liuchliuch/planar-homomorphisms-lean.

When MM is a zero-one adjacency matrix, this counts homomorphisms to its target graph. In a spin system, Mij=e−βEijM_{ij} = e^{-\beta E_{ij}} encodes the pair energy EijE_{ij} at inverse temperature β\beta; zero entries allow hard exclusions. Write Pl-GH(MM) for exact evaluation on planar input graphs. The interaction and its number of states are fixed; the size and shape of the input graph vary.

References (31)