Sampling Colorings with Fixed Color Class Sizes
Abstract
In 1970, Hajnal and Szemerédi proved a conjecture of Erdős stating that any graph with maximum degree admits an equitable -coloring, that is, a coloring where color class sizes differ by at most . In 2007 Kierstead and Kostochka reproved their result and provided a polynomial-time algorithm which produces such a coloring. In this paper we study the problem of approximately sampling uniformly random equitable colorings. A series of works gives polynomial-time sampling algorithms for colorings without the color class constraint, the latest improvement being by Carlson and Vigoda for . In this paper we give a polynomial-time sampling algorithm for equitable colorings when . Moreover, our results extend to colorings with small deviations from equitable (and as a corollary, establishing their existence). The proof uses the framework of the geometry of polynomials for multivariate polynomials, and as a consequence establishes a multivariate local Central Limit Theorem for color class sizes of uniform random colorings.
Keywords and phrases:
sampling, approximate counting, graph coloring, zero-freeness, Potts model, LCLTCategory:
Track A: Algorithms, Complexity and GamesFunding:
Aiya Kuchukova: Supported in part by a Georgia Tech ARC-ACO student fellowship.Copyright and License:
2012 ACM Subject Classification:
Theory of computation Generating random combinatorial structures ; Mathematics of computing Approximation algorithmsEditors:
Sayan Bhattacharya, Danupon Nanongkai, Michael Benedikt, and Gabriele PuppisSeries and Publisher:
Leibniz International Proceedings in Informatics, Schloss Dagstuhl – Leibniz-Zentrum für Informatik
1 Introduction
1.1 Sampling with Constraints
Many interesting problems in combinatorics and its applications can be formulated as problems about independent sets, matchings, graph cuts, or colorings with global constraints. Thus, the ability to sample those fundamental objects with constraints solves a broad range of nuanced questions and strengthens current techniques and tools used for sampling. We begin by providing examples of some fundamental objects that we can sample and how introducing constraints alters the sampling problem.
One example comes from the ferromagnetic Ising model, a statistical physics model of graph cuts and magnets. It is possible to approximately count [20] and sample the states of the model [35] for all parameters and all graphs. However, when restricting the magnetization (number of vertices on one side of the cut/ number of particles with a positive spin), an algorithmic thresholds emerges. For the ferromagnetic Ising model with fixed magnetization, Carlson, Davies, Kolla, and Perkins established a computational threshold [4], meaning that there are regimes of temperature and magnetization for which efficient sampling algorithms exist and regimes in which no sampling is possible unless NP=RP (example of dynamical threshold also shown in [23]). Another example of interest comes from independent sets, often studied using the hard-core model. When introducing a size constraint on the independent sets, Davies and Perkins [9] showed the existence of a computational threshold; there exists such that it is possible to sample independent sets of size for in polynomial time, but no sampling algorithm exists for unless NP=RP. Work of Jain, Michelen, Pham, and Vuong [17], establishes fast mixing of the down-up walk on independent sets of size .
Placing constraints on the size of the object is natural for statistical physics models, since they differentiate between settings where the number of particles can vary, called grand canonical ensembles, versus settings where the number of particles is fixed, called canonical ensembles. In practice, there are a lot more results in sampling algorithms for the grand canonical ensemble, since placing an additional constraint adds a layer of complexity. Under additional constraints the behavior of the system can change completely; for example, a well behaved system (like the ferromagnetic Ising model on a random graph) can exhibit “glassy” behavior with the imposition of a constraint on the magnetization [28].
Observe that the examples of constraints we have mentioned so far are one-dimensional. In this paper we will explore the instance of placing multiple global constraints on the model. More precisely, we will show that given an integer vector (with some assumptions on it), we can sample colorings in which color class sizes form the requested vector. It is a delicate problem since each of the color class sizes is an independent set of restricted size, and moreover, the union of colors should cover all the vertices of the graph. We introduce the background about sampling colorings as well as known existence results in the next subsection.
1.2 Sampling Colorings with Multiple Constraints
Before looking at colorings with constraints, we give background for sampling colorings with no constraints, since this problem is also far from being well understood. The following is a classical conjecture about sampling colorings [19, 38]:
Conjecture 1.
For the class of graphs of maximum degree and , there is a polynomial-time algorithm to approximately sample uniformly random -colorings.
Moreover, it is conjectured that a simple Markov chain, the Glauber dynamics, achieves this.
There has been a lot of progress in the past 30 years towards the resolution of the conjecture. In his seminal paper, Jerrum proved it for [19]. An exciting result by Vigoda improved that to sampling colorings with [38]. There were also a lot of substantial improvements on the bounds for special families of graphs [10, 30, 13, 27, 11, 31, 14, 37, 7]. For general graphs, was further improved to by Chen, Delcourt, Moitra, Perarnau, and Postle [6], and recently to by Carlson and Vigoda [5].
Despite the impressive progress in this direction, the problem presents a considerable challenge and might require many more ideas to decrease the necessary amount of colors down to . Thus, it seems important to ask the following questions: How refined are our current tools and techniques? How well can we control the colorings that we can sample?
We now define the size constraints on color classes we have previously mentioned.
Definition 2 (-coloring).
Given a vector , an -coloring is a proper coloring of the vertices of a graph such that there are vertices of color , .
Let us describe perhaps the simplest case of -colorings, equitable colorings.
Definition 3 (Equitable colorings).
An equitable -coloring is a proper coloring with colors such that the sizes of every pair of color classes differ by at most 1.
Note that if divides , then all color class sizes must be equal.
Erdős conjectured in 1964 that any graph of maximum degree has an equitable -coloring. In 1970, Hajnal and Szemerédi gave a proof of the conjecture [12]. Later, Kierstead and Kostochka provided a simpler proof, which also gives a polynomial-time algorithm for finding such a coloring. [22].
As a corollary of our main theorem, we establish a polynomial-time algorithm for approximately sampling uniform equitable colorings when .
Definition 4.
An algorithm is said to -approximately sample from a target distribution if the distribution of its output satisfies .
Theorem 5 (Sampling Equitable Colorings).
There exists a sampling algorithm that, given and any on vertices from the class of graphs with maximum degree , -approximately samples equitable colorings on with high probability with running time .
In a more general version of the theorem, we show the existence of a sampling algorithm for colorings that we call “skewed”, establishing their existence as a corollary.
Theorem 6 (Sampling Skewed Colorings).
Fix . There exists a constant small enough, such that given any on vertices from the class of graphs with maximum degree and given satisfying and for all , there is an algorithm that -approximately samples -colorings on with high probability with running time .
As a simple corollary we obtain the existence of such colorings.
Corollary 7.
Fix . Then there exists constant small enough such that for large enough, and any satisfying and for all , every graph of maximum degree on vertices has an -coloring.
To the best of our knowledge, very little is known about the existence of skewed colorings beyond the equitable case (this can also be thought of as a way to generalize Hajnal and Szemerédi’s theorem). One can apply a result by Hurley, Joos, and Lang [16] to guarantee that the complement of the graph can be decomposed into cliques of constant size, which is equivalent to finding a proper coloring with constant color class sizes, but the coloring requires linearly many colors.
We conjecture that the following bound on color class sizes (matching the size of an independent set guaranteed to exist in a graph of maximum degree ) suffices.
Conjecture 8.
For any graph with maximum degree and satisfying and for all , there exists an -coloring of .
Note that the conditions on are tight for a union of -cliques, and the floor can not be improved to a ceiling, since a union of -cliques together with one isolated vertex would serve as a counterexample.
Note as well that no assumption on is made, though the assumptions on and already imply that . Since constitutes a natural barrier for many approaches related to sampling colorings, a first step in proving Conjecture 8 might be to prove existence under the stronger condition that all .
We also conjecture that it should be possible to sample colorings in that regime, although the proof would require new ideas.
Conjecture 9.
There is a polynomial-time approximate sampling algorithm for uniform -colorings in graphs of maximum degree , for satisfying for all .
1.3 Short Preliminaries: Potts and Coloring Models, Univariate Zero-Freeness
Let us give definitions of some statistical physics models that we use throughout the paper.
The following model is called anti-ferromagnetic Potts model, it is a generalization of another popular statistical physics model called anti-ferromagnetic Ising model. It differentiates between improper and proper colorings by introducing weights that penalize improper colorings.
Definition 10 (Anti-ferromagnetic Potts model).
Let be the penalty parameter. We define the partition function
where is the number of monochromatic edges in the coloring (not necessarily proper).
This also defines a natural Gibbs measure in which each coloring (not necessarily proper) appears with probability
Note that at the partition function counts the number of proper colorings, and the Gibbs measure is simply a uniform distribution over proper colorings. If the number of colors satisfies , a proper coloring exists, and thus the partition function at is non-zero. Even though the probability distribution requires to be non-negative and real, it is possible to work with the partition function for complex . Liu, Sinclair, and Srivastava proved that in the complex plane around there exists a zero-free region for [25].
Theorem 11 ([25]).
There exists a such that the following is true. Let be a simply connected region in the complex plane obtained as the union of disks of radius centered at all points on the segment . For any graph of maximum degree at most and integer , when .
Using their zero-freeness result and a theorem by Barvinok [1], they get a deterministic algorithm for approximately counting proper colorings of a graph with bounded maximum degree and a sampling algorithm for colorings of . We will explain more on how zero-freeness results can be useful for combinatorial algorithms in the next section.
We will use a variant of the Potts model with external fields (weights) for each of the colors. Since the model is only defined over proper colorings, we will, for simplicity, refer to it as the coloring model (equivalently it can be defined over all colorings with monochormatic edges having penalty ).
Definition 12 (Coloring model with external fields).
The coloring model is the model defined through the partition function
The vector is called the fugacity, and represents the weight assigned to each of the colors. Observe that for , the partition function simply counts the number of proper colorings. For positive real , the model induces a Gibbs measure on the space of proper colorings, given by
We will often drop the subscripts of where there is no confusion.
As in the previous model, the probability distribution requires to be a non-negative real vector. However, we can still analyze the partition function for complex , which is explained in the subsection below.
1.4 Multidimensional Zero-Freeness
An extremely powerful property of the model in a certain parameter regime is the absence of complex zeros (zero-freeness) of the partition function. It can imply properties of the model, like deterministic counting [40], Spectral Independence [8], Central Limit Theorems [29], Strong Spatial Mixing [36], and thus has applications in approximation and sampling algorithms.
There is a lot of existing work that establishes zero-freeness for different models and with different motivations. For example, Lee–Yang theorem shows that, for the ferromagnetic Ising model, the zeros of the partition function lie on the complex unit circle for any graph [39]. One of the theorem’s implications is the absence of phase transition for non-zero external field. See also more work on the hard-core model [33], the Ising model [34], [32], and the monomer-dimer model [15]. It is important to note that in most cases one has to assume that a graph has bounded maximum degree , since the zero-freeness radius often depends on .
Our motivation for proving zero-freeness is getting very precise control over the cumulants (expectation, covariances and more) of the color class sizes. Derivatives of are tightly connected with these cumulants, and thus showing zero-freeness of lets us control the cumulants via convergent power series.
For example, zero-freeness implies linear upper bounds on the cumulants of any order. As one of the consequences, we can compute the asymptotics of the determinant of the covariance matrix, which will be important for the runtime of our algorithm. Moreover, zero-freeness allows us to Taylor expand the characteristic function of the random vector of color class sizes and establish a Local Central Limit Theorem (LCLT). We use this for the rejection sampling part of our algorithm, see an overview in Subsection 1.5 and details in Section 3 of the extended version.
Let us now give an overview of the zero-freeness result for the coloring model (see Definition 12). The approach we are taking is similar to the blueprint developed by Liu, Sinclair, and Srivastava for the Potts model with penalty [25] (see Definition 10), however, we need to generalize their result to a multivariate partition function and handle parameters (one for each color) instead of one. This is done so that each color receives its own variable, which lets us regulate each color class size. Generalizing existing tools to work in multivariate settings gives control over different parameters, which allows for better understanding and efficient algorithms for models with global constraints.
Definition 13 (Assumptions).
Let , . From now on, we will assume that is chosen so that for any ,
-
1.
;
-
2.
;
-
3.
.
Theorem 14 (Zero-freeness around ).
For , and graph with maximum degree , and such that the assumptions from Definition 13 hold, then .
The following corollary of this result lets us rephrase it in terms of a zero-freeness ball with constant -radius:
Corollary 15.
Let such that . If is chosen so that for every , then the assumptions from Definition 13 are satisfied. Hence, for , , and graph with maximum degree , in a polydisc of radius around .
The proof can be found in Section 2. The main idea behind the proof is an inductive argument in terms of the number of unpinned (i.e. not yet colored) vertices. For each iteration of the induction, we show that the ratio of the probability of a vertex to be colored vs be colored is very close to 1.
We note that in the paper of Liu, Sinclair, and Srivastava [25] the theorem holds generally for colorings they call “admissible” and requires fewer colors for triangle-free graphs. It is also mentioned that their result should generalize to list colorings. We expect these generalizations to hold for our model as well. Note that we write theorems in a general enough way that an improvement to the zero-freeness region would lead to an immediate improvement on the sampling and existence result. Bencs, Berrekkal, and Regts [2] recently relaxed the condition on the number of colors for the Potts model (with penalty parameter for monochromatic edges) from to , where . By adapting their ideas, we suspect a similar improvement is possible for our main results.
1.5 A Local Central Limit Theorem
As one of our main theorems, we prove a Local Central Limit Theorem (LCLT), which states that the distribution of color class sizes in the coloring model approaches a multivariate Gaussian distribution pointwise. We also obtain asymptotic control over the eigenvalues and determinant of the covariance matrix, and thus can lowerbound the probability of sampling an -coloring. This is the main ingredient that is needed for the rejection sampling procedure.
Theorem 16 (Local Central Limit Theorem).
Let , , and such that , where is a zero-freeness radius. Let be the random vector of color class sizes with the last color dropped. We will denote its expected value and covariance matrix as and . Then, for such that ,
Lemma 17 (Covariance Determinant Asymptotics).
Let , , and such that , where is a zero-freeness radius. Then,
Note that if we choose (corresponding to uniform distribution), by symmetry . We show that if , , and so
This is an important component of the proof, since it provides a guarantee for the number of times a rejection sampling step has to be repeated to reach the desired coloring. We explain how that is done in the next subsection.
The proof of the LCLT uses two ingredients. The first one is the Taylor expansion of the logarithm of the characteristic function () , which can be done in the region where the characteristic function is non-zero (this region is contained in the original zero-freeness region of ). We show that for small , is dominated by the terms corresponding to expectation and covariances (see Subsection 3.3 in the extended version). For larger we utilize a lemma which shows an upper bound on the absolute value of the characteristic function, thus showing that the contribution of larger is negligible (see Subsection 3.4 in the extended version).
1.6 Sampling Equitable Colorings
In this subsection we will explain how to sample equitable colorings and then in the next subsection we explain how to adjust the algorithm slightly to sample skewed colorings. We use the LCLT as the main ingredient to give us guarantees on the success of rejection sampling. This is a standard tool in sampling (see [21] for example).
By a classical result of Vigoda [38], there exists an algorithm that approximately samples colorings (uniformly) in for . One can use the Glauber dynamics as the chain in that algorithm (see [3], [26] for relevant details on its mixing time). We use this as the first step in the rejection sampling algorithm.
Definition 18 (Rejection Sampling Algorithm).
-
1.
Approximately sample a uniform coloring (for example by running Glauber dynamics for steps).
-
2.
Check if the coloring produced is an -coloring. If yes, output the coloring. If no, reject and repeat the first step.
Since the LCLT together with bounds on the determinant of the covariance matrix imply that , it is easy to show that after iterations of rejection sampling, the probability of the failure of the algorithm is at most . Hence, the total running time of the algorithm is . Note that this algorithm actually lets us sample more than just equitable colorings. For any constant and such that and we know that the LCLT and bounds on eigenvalues of the covariance matrix imply that , and hence the same rejection algorithm works.
One could also ask for deterministic algorithms to approximate the number of equitable colorings, just as the zero-freeness result of [25] gives a deterministic algorithm (FPTAS) for the total number of colorings. This should be possible using an algorithmic implementation of the LCLT, as in [18]. We leave this for future work.
1.7 Sampling Skewed Colorings
It is natural to predict that one could sample skewed colorings ( for small ) the same way that we sample equitable colorings. However, there are several challenges that appear. One of such challenges is showing that we can find (algorithmically) weights such that they give the right (or close to the right) color class sizes in expectation. For the equitable colorings (and colorings with deviation from equitable) it was enough to take (to sample from the uniform distribution). To be able to sample colorings with a linear deviation from equitable, we need to find such that . This will allow us to sample colorings from the Gibbs distribution corresponding to and use LCLT to show that rejection sampling works. Note that the probability distribution we care about only makes sense in the zero-freeness region, thus it is not enough to only find appropriate choice of weights, but also show that they reside within the zero-freeness region.
To find , we discretize our zero-freeness region such that for (we keep for simplicity). We show that the expectation map is -Lipschitz (Subsection 4.1 of the extended version) and since the distance between optimal and one of the candidate is at most (in -norm), the difference between expectations is at most for each color. Hence, we simply run the rejection sampling for each of the candidate until we obtain an -coloring. Since there are candidates, the runtime is .
To understand what colorings we can sample with this technique, we show that the expectation map (restricted to a certain hyperplane) is surjective on the zero-freeness region (Subsection 4.2 of the extended version), which let’s us show that this procedure works for any coloring such that and for small enough.
We also need to make sure that we can sample from the Gibbs distribution corresponding to . This can be done by running the Glauber dynamics for steps. We prove the mixing time for using a standard path coupling technique in Subsection 4.3 of the extended version.
Figure 1 shows a diagram of the structure of the proof. Note that for sampling equitable colorings only the middle layer of the figure is necessary.
This extended abstract only contains some of the proofs; for full proofs, see the full version [24].
2 Zero-freeness
Note that the proofs of some claims in this section were removed or shortened, but the full proofs can be found in the extended version.
2.1 Overview
Recall the partition function and Gibbs measure of the coloring model:
For it to have a probabilistic interpretation, we would need , but we can still consider the partition function as a multivariate polynomial over the complex numbers.
Remark 19.
At , the partition function is counting the number of proper -colorings. Since , a proper -coloring always exists, and hence .
The aim of this section is to show that in there exists a ball around such that , .
The proof here uses the framework of Liu, Sinclair and Srivastava [25] for the Potts model, in which the weight of a configuration is determined by the number of monochromatic edges in the coloring.
A variable specifies the “penalty” for a monochromatic edge. Let be the number of monochromatic edges introduced by the coloring . The partition function of the Potts model is a sum over all colorings (including improper ones), where the weight of a coloring is proportional to . In other words, the partition function for the Potts model is
Note that this partition function is univariate. In contrast, our partition function is multivariate, since each color has its own weight; part of our work is therefore to lift several key ingredients of their proof to the multivariate case. Note also that in our model there are no monochromatic edges, so the penalty for such edges is simply .
Since all the steps had to be adapted for our model, we will provide detailed calculations, and we utilize the structure and definitions of [25] for the acquainted reader to track differences easily.
2.2 Main result
Throughout this section we fix the constants , , and . We will use to denote the principal branch of the logarithm, which is analytic on and satisfies .
We will commonly refer to the following assumptions on .
Definition 20 (Assumptions on ).
We say that is valid if, for any ,
-
1.
-
2.
-
3.
We will denote and .
Remark 21.
The main result we will prove is the following:
Theorem 22 (Zero-freeness around ).
Let , , and let be a graph with maximum degree . Assume that is valid, in the sense of Definition 20. Then, .
The assumptions from Definition 20 are expressed in terms of the logarithm of the ratio between components of . That may not be practical for some applications, but it can be shown that any sufficiently close to (for example, in -distance) satisfies those.
Lemma 23.
Let . Then, any such that for every is valid, in the sense of Definition 20.
Hence, we may derive the following corollary from Theorem 22:
Corollary 24 (Zero-freeness radius).
Let , , and let be a graph with maximum degree . Then, for any , where , we have that .
Remark 25.
The constants used in the proof of Theorem 22 are not particularly optimized, so the zero-freeness radius is susceptible to improvement.
Remark 26.
According to Corollary 24, is zero-free within the simply-connected region . Hence, there exists a branch of the logarithm such that is well-defined and analytic for (i.e. an analytic satisfying ). In the proofs in this section we are always able to take the principal branch of the logarithm, but that will not be the case for some results in the extended version of the paper.
The inductive proof not only shows that , but actually gives a lower bound on its norm (which, despite being exponentially decreasing in , will be of use later in bounding ).
Corollary 27.
Let , , and let be a graph with vertices and maximum degree . Let be valid, according to Definition 20. Then,
where and .
2.3 Partial colorings and recursive structure
We will prove Theorem 22 with a slightly stronger assumption; some vertices of the graph may already be “pinned” to a color. That will allow us to proceed by induction on the number of unpinned vertices of the graph. We will formalize this idea through the following definition:
Definition 28 (Partially--colored graph).
Let . A partially--colored graph is a graph together with a partial -coloring . The partial coloring needs to be proper, that is, for every edge either or need to hold. Vertices such that are said to be unpinned. Vertices such that are said to be pinned to color . We additionally require that for all pinned .
Remark 29.
We may extend our model to a partially-colored graph by restricting the partition function to sum over the colorings that agree with on the pinned vertices. That is, we define
We will use to denote the set of proper -colorings of which agree with on the pinned vertices.
We will also introduce the following operation, which from a partially--colored graph generates another partially--colored graph which has one unpinned vertex fewer:
Definition 30 (Pinning operation).
Let be a vertex in with degree . To pin vertex to color means that we have constructed a new graph in which we replaced the vertex with copies (each of them joined to a different neighbor of ), and which is equipped with a partial coloring defined so that for all and for all other .
Remark 31.
Note that, after applying the previous operation, the newly-pinned vertices have all degree 1, as required in the definition of partially-colored graph.
Since we are working with a model that only allows proper colorings, we will never want to pin a vertex to a color which is already present in its neighborhood. Thus, following the notation from [25], we will classify the colors as either good or bad (for a given vertex):
Definition 32 (Good color, bad color).
A is a good color for vertex if it is different from all colors to which the neighbors of are pinned to. Otherwise, it is called a bad color. The set of good colors of a vertex will be denoted as , while the set of bad colors will be denoted as .
We will denote as , despite the abuse of notation, whenever it is clear from context that we are referring to a partially-colored graph and there is no ambiguity with respect to the underlying partial coloring . That extends as well to (in place of ) and (in place of ).
Next, we develop the definitions needed to frame the zero-freeness problem recursively, in terms of graphs which have fewer unpinned vertices.
Definition 33 (Restricted partition function, marginal pseudo-probability, marginal ratio).
Let be a partially--colored graph. Let be a vector of formal variables. For a given unpinned vertex and a color , we define
which corresponds to the restriction of the partition function to the colorings in which has color .
Let be the maximum degree of the graph , and assume that . Then, we define the marginal pseudo-probability
and, given another color , we define the marginal ratio
Remark 34.
All the expressions above are to be interpreted as quotients of polynomials of the vector of formal variables . Note that, under this interpretation, for any . On the other hand, if and , we know that there is at least one proper coloring of which is consistent with the current partial coloring, so (and, by the same logic, ). Hence, both the marginal pseudo-probability and the marginal ratios are well-defined. Nonetheless, it could still happen that and/or once we substitute the formal variables for a specific value .
Remark 35.
The name and notation for the marginal pseudo-probability comes from the fact that, for real positive , this is the marginal probability that has color under our model. Note, however, that for a general , this quantity has no direct probabilistic meaning.
We would like to relate to the partition function of a graph with fewer unpinned vertices than . The numerator can be related to the graph in which we pin vertex to color , while the denominator can be related to the graph in which we pin vertex to color . Next, we define a sequence of graphs that allows us to interpolate between these two cases.
Definition 36 (Graph ).
Given a partially-colored graph , an unpinned vertex with degree , and an ordering of the neighbors of (denoted as ), for every and for every we define the partially-colored graph obtained from by replacing with copies , attaching each to , pinning vertices to color , pinning vertices to color , and deleting .
One can then derive a recurrence relation that expresses the ratios in in terms of the marginal pseudo-probabilities in each of the .
Lemma 37 (Recurrence relation).
Let the vertices be the neighbors of vertex in the graph . Then,
Remark 38.
The recurrence relation holds under the interpretation that is a vector of formal variables. It will also hold after plugging in a particular , as long as all the terms are well-defined, that is,
-
,
-
, and
-
for all .
Proof.
Let us first define an auxiliary graph , which is analogous to , but in which is pinned to color , instead of being deleted.
Definition 39 (Graph ).
Given a partially-colored graph , an unpinned vertex with degree , and an ordering of the neighbors of , we define the graph by replacing vertex with copies , attaching each to , pinning vertices to color and pinning vertices to color .
Note that and correspond to the edge cases in which all copies of are colored , or all copies are colored , respectively. Hence, and . Therefore, we may write the marginal ratio as
There is a correspondence between proper colorings of and proper colorings of in which . Therefore,
and, similarly,
Hence,
2.4 Complex analysis tools
In this subsection we introduce the ingredients from complex analysis we will need for the proof. The first three lemmas are from [25], while the last three are refinements of simple facts that were implicitly used in [25].
Let be a domain in with the following properties:
-
For any , .
-
For any , there exists a point such that one of the numbers has zero real part while the other has zero imaginary part.
-
If are such that either or , then the segment lies in .
As remarked by Liu, Sinclair and Srivastava [25], a rectangular region symmetric about the real axis will satisfy all of the above properties.
Lemma 40 (Mean value theorem for complex functions – Lemma 3.5 from [25]).
Let be a holomorphic function on a domain as above such that, for , has the same sign as . Suppose further that there exist positive constants and such that
-
for all , ;
-
for all , .
Then for any , there exists such that
and furthermore,
The first point of the next lemma is needed to show that the function
| (1) |
satisfies the conditions of the previous lemma.
Lemma 41 (Lemma 3.6 from [25]).
The next lemma gives us a way to lower-bound the sum of complex numbers, if we know that the angles between them are small enough.
Lemma 42 (Lemma 3.7 from [25]).
Let be complex numbers such that the angle between any two non-zero is at most . Then,
An important part of the proof will require going from bounds on to bounds on , and viceversa. That’s what the following two lemmas provide.
Lemma 43.
Let such that and for certain . Let . Then, and . Furthermore, if , then we also have that .
Lemma 44.
Let with and . Then, and .
Finally, a result in the same vein as Lemma 42.
Lemma 45.
Let be complex numbers such that for all and some . Then, and .
2.5 Induction hypothesis
The main idea of the proof of the zero-freeness result of Theorem 22 is to pick a vertex and rewrite the partition function as a sum of for all . If we can prove that the angles between these terms are small, then it is enough for one of the terms to be non-zero for the whole sum to be non-zero (see Lemma 42).
Both the zero-freeness of and the fact that the angles are small are shown by induction on the number of unpinned vertices of the graph. For the first, we simply use that , where is the graph obtained by pinning vertex to color . For the second, we need to bound the argument of the ratios . For that purpose, we use Lemma 37, in which we derived a recursive formula that expresses in terms of marginal pseudo-probabilities of certain graphs , which all have one fewer unpinned vertex than .
The following lemma summarizes the statements constituting our induction hypothesis.
Lemma 46.
Let be a partially--colored graph with maximum degree and . Let be an unpinned vertex of . Then, for a valid , in the sense of Definition 20,
-
1.
For all ,
where the number of unpinned vertices and the total number of vertices of .
-
2.
For , if has all of its neighbors pinned, then .
-
3.
For , .
-
4.
For , if has unpinned neighbors, then
-
5.
For , if has unpinned neighbors, then
-
6.
For , we have that .
Remark 47.
Remark 48.
Note that counts the number of colorings of which have . For and , that number is non-zero, so is a quotient of positive reals, and hence .
The zero-freeness of the full partition function follows easily once Lemma 46 is proved:
Corollary 49.
Let be a partially--colored graph with maximum degree and . Let be an unpinned vertex of . Then,
where is the number of unpinned vertices and the total number of vertices of .
Proof.
Observe that for . Hence, . Since , from item 5 of Lemma 46 we know that the angle between the terms is at most
where we also used assumption 2 from Definition 20. Using Lemma 42 together with the fact that , we have that
The result then follows by item 1 of Lemma 46. The previous corollary states that the partition function is zero-free for any partially-colored graph. Then, our main theorem follows as the particular case in which the partial coloring is “empty”:
Proof of Theorem 22.
Let be a graph of maximum degree , and let . By definition, , where is the partially-colored graph in which for all . Using Corollary 49, , from which the desired conclusion follows.
Corollary 27 follows analogously by taking in Corollary 49, since all vertices are unpinned. Note that Corollary 49 is not only used now for the final zero-freeness conclusion, but also will be used at every step of the induction.
2.6 Consequences of the induction hypothesis
The remainder of the section deals with the inductive proof of Lemma 46. First, we will state a series of consequences of Lemma 46, which will be used to carry out the induction step. Their full proofs can be found in the extended version of the paper. We will assume throughout that is a partially-colored graph of maximum degree for which Lemma 46 holds, that , that is an unpinned vertex of with unpinned neighbors, and that is valid, in the sense of Definition 20.
Lemma 50.
For any ,
-
, and
-
.
Lemma 51.
For any ,
Lemma 52 (Approximation of pseudo-probabilities by real probabilities).
For any ,
and
For the next result, we need that no color is “too probable” in vertex of . We quantify that through the following definition, analogous to the one from Liu, Sinclair and Srivastava [25]:
Definition 53 (Nice vertex).
Let be a partially-colored graph. We say vertex is nice if, for any color , we have that , where is the number of unpinned neighbors of .
Lemma 54.
Let and . Consider the graph from Definition 39, obtained from graph and unpinned vertex . Let denote the neighbors of in . Then, the vertex is nice in .
Proof.
Let and let be its number of unpinned neighbors. By definition of the graph, has one neighbor less in than it had in , so . Since , it suffices to show that for all .
Note that counts the number of proper colorings which are consistent with the partial coloring of and that assign . Hence, we need to prove that the number of colorings in which is at most a -fraction of the total. We will do that by showing there exists an injective function , where is the set of all possible colorings of that agree with its partial coloring, and is the subset of those which assign .
Fix an order on the colors (for example, the natural one induced by ). For a given and , we define as the coloring where is the -th element of , while for all . Note that this is well-defined, as . It just remains to show that this function is injective.
Assume and satisfy . That means that for all , while , so . Hence, we have the equality , so means that .
Remark 55.
Our niceness condition is equivalent to taking in the one in [25]. Note that there is nothing special about the vertex or the graph : the same proof holds for any vertex with degree at most .
For the next lemma, we adopt the notation for , and define . Recall that this function is the same as from Lemma 41.
Lemma 56.
Assume is a nice vertex in , and that . Then, for any colors , there exists a real constant so that
| (2) | ||||
| (3) | ||||
| (4) |
Proof.
We will show that we can define parameters and satisfying the hypothesis from Lemma 41, so that , where is the domain defined in Lemma 41. Then, we will be able to apply Lemma 40 to obtain the desired bounds.
Claim 57.
Claim 58.
Let , where and are defined as in Claim 57. Then, for any , we have that and .
Next, we give some bounds for and , as defined in Lemma 41:
Claim 59.
Let and . Then, and .
From Lemma 41, we know that the function and the domain satisfy the hypothesis of Lemma 40. That lemma tells us that there exists a constant (possibly depending on ), such that
| (5) | |||
Using Lemma 52 and Claim 59, we can bound the right-hand side of eq. (5) with
which proves eq. (2).
Note that , and all satisfy , in the first two cases due to Lemma 52, and in the third case due to item 5 of Lemma 46 and Definition 20. Therefore, applying the second part of Lemma 40 to the pair , , we get eq. (3):
Finally, applying the second part of Lemma 40 to the pair and using that , we get:
which once again follows from Claim 59 and Lemma 52. This proves eq. (4) and finishes the proof of the lemma.
Remark 60.
Note that these bounds are slightly tighter than the ones in the analogous lemma from [25], since we do not need to approximate with .
2.7 Proof of Lemma 46
Note that the proof of Lemma 46 was shortened, but the full proof can be found in the extended version.
Proof.
We will prove Lemma 46 by induction on the number of unpinned vertices. Let us first prove it for the base case in which is the only unpinned vertex:
Claim 61.
If is the only unpinned vertex of , the induction hypothesis from Lemma 46 holds.
Proof.
- (1)
-
Note that sums over the colorings which agree with the partial coloring on and in which . Since is the only unpinned vertex, there is only one possible such coloring . Hence, we have that . Note that this can not vanish, as satisfies assumption 1 from Definition 20.
- (2)
-
Since , then .
- (3)
- (4), (5)
-
Follows directly from item 2:
- (6)
-
If , then by definition , while if , then by item 1. Hence, is well-defined in this case and it takes value 0.
Let us now assume that has unpinned vertices (of which is one) and that Lemma 46 holds for any partially-colored graph with at most unpinned vertices. Items 1 and 2 are straightforward to prove. For item 1, observe that when we pin to color , we obtain a new graph with partition function . The graph has one fewer unpinned vertex than , so we can assume Lemma 46 holds for it. On the other hand, note that the total number of vertices of is at most more than in . Hence, Corollary 49 tells us that . By definition, , so we conclude that .
For item 2, note that if all neighbors of are pinned, then for any (this is not true in general because an unpinned neighbor of will have the restriction of not being colored or ). Hence, .
For items 3 through 5 we will use the recurrence relation from Lemma 37:
| (6) |
where denote the neighbors of in .
We may restrict this product only to the vertices that were unpinned in . That’s because if was pinned in to a certain color , then (recall we are taking ), so . That means that the factor corresponding to does not alter the product. We will thus restrict this product to the unpinned neighbors of , and rename them .
For item 3, we will show a crude upper-bound on (note that we already know that due to item 1). From eq. (6):
The first term can be bounded through assumption 2 of Definition 20. For the rest, notice that the term involving either vanishes (if ) or can be bounded with eq. (4) from Lemma 56 (if ). The same logic applies to the terms involving color . Thus,
which finalizes the proof of item 3. Note that we are able to apply Lemma 56 (and all the other lemmas which are a consequence of Lemma 46) due to the fact that has one unpinned vertex fewer than , and hence is covered by the induction hypothesis.
For items 4 and 5, we take logarithms in equation (6) and split the terms depending on whether colors and are good/bad for each vertex . Recall that has one pinned vertex fewer than , so all the consequences of Lemma 46 hold for it. In particular, we know that is nice in , due to Lemma 54. Moreover, due to the definition of , . Therefore, we can apply Lemma 56, which combined with an elementary (yet somewhat involved) case analysis, yields the desired bounds. The full details can be consulted in the extended version of the paper.
References
- [1] Alexander Barvinok. Combinatorics and complexity of partition functions, volume 30. Springer, 2016. doi:10.1007/978-3-319-51829-9.
- [2] Ferenc Bencs, Khallil Berrekkal, and Guus Regts. Deterministic approximate counting of colorings with fewer than colors via absence of zeros. TheoretiCS, 5, 2026. doi:10.46298/theoretics.26.1.
- [3] Antonio Blanca, Pietro Caputo, Zongchen Chen, Daniel Parisi, Daniel Štefankovič, and Eric Vigoda. On mixing of Markov chains: Coupling, spectral independence, and entropy factorization. In Proceedings of the 2022 Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), pages 3670–3692. SIAM, 2022. doi:10.1137/1.9781611977073.145.
- [4] Charlie Carlson, Ewan Davies, Alexandra Kolla, and Will Perkins. Computational thresholds for the fixed-magnetization Ising model. In Proceedings of the 54th Annual ACM SIGACT Symposium on Theory of Computing, pages 1459–1472, 2022. doi:10.1145/3519935.3520003.
- [5] Charlie Carlson and Eric Vigoda. Flip dynamics for sampling colorings: Improving (11/6—) using a simple metric. In Proceedings of the 2025 Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), pages 2194–2212. SIAM, 2025. doi:10.1137/1.9781611978322.71.
- [6] Sitan Chen, Michelle Delcourt, Ankur Moitra, Guillem Perarnau, and Luke Postle. Improved bounds for randomly sampling colorings via linear programming. In Proceedings of the Thirtieth Annual ACM-SIAM Symposium on Discrete Algorithms, pages 2216–2234. SIAM, 2019. doi:10.1137/1.9781611975482.134.
- [7] Zongchen Chen, Kuikui Liu, Nitya Mani, and Ankur Moitra. Strong spatial mixing for colorings on trees and its algorithmic applications. In 2023 IEEE 64th Annual Symposium on Foundations of Computer Science (FOCS), pages 810–845. IEEE, 2023. doi:10.1109/FOCS57990.2023.00053.
- [8] Zongchen Chen, Kuikui Liu, and Eric Vigoda. Spectral independence via stability and applications to Holant-type problems. TheoretiCS, 3, 2024. doi:10.46298/theoretics.24.16.
- [9] Ewan Davies and Will Perkins. Approximately counting independent sets of a given size in bounded-degree graphs. SIAM Journal on Computing, 52(2):618–640, 2023. doi:10.1137/21m1466220.
- [10] Martin Dyer and Alan Frieze. Randomly coloring graphs with lower bounds on girth and maximum degree. Random Structures & Algorithms, 23(2):167–179, 2003. doi:10.1002/rsa.10087.
- [11] Charilaos Efthymiou, Thomas P Hayes, Daniel Štefankovič, and Eric Vigoda. Sampling random colorings of sparse random graphs. In Proceedings of the Twenty-Ninth Annual ACM-SIAM Symposium on Discrete Algorithms, pages 1759–1771. SIAM, 2018. doi:10.1137/1.9781611975031.115.
- [12] András Hajnal and E. Szemerédi. Proof of a conjecture of P. Erdős. Colloq Math Soc János Bolyai, 4, January 1970.
- [13] Thomas P Hayes and Alistair Sinclair. A general lower bound for mixing of single-site dynamics on graphs. In 46th Annual IEEE Symposium on Foundations of Computer Science (FOCS’05), pages 511–520. IEEE, 2005. doi:10.1109/SFCS.2005.6.
- [14] Thomas P Hayes and Eric Vigoda. A non-Markovian coupling for randomly sampling colorings. In 44th Annual IEEE Symposium on Foundations of Computer Science, 2003. Proceedings., pages 618–627. IEEE, 2003. doi:10.1109/SFCS.2003.1238234.
- [15] Ole J Heilmann and Elliott H Lieb. Theory of monomer-dimer systems. Communications in Mathematical Physics, 25(3):190–232, 1972. doi:10.1007/BF01877590.
- [16] Eoin Hurley, Felix Joos, and Richard Lang. Sufficient conditions for perfect mixed tilings. Journal of Combinatorial Theory, Series B, 170:128–188, 2025. doi:10.1016/j.jctb.2024.08.007.
- [17] Vishesh Jain, Marcus Michelen, Huy Tuan Pham, and Thuy-Duong Vuong. Optimal mixing of the down-up walk on independent sets of a given size. In 2023 IEEE 64th Annual Symposium on Foundations of Computer Science (FOCS), pages 1665–1681. IEEE, 2023. doi:10.1109/FOCS57990.2023.00101.
- [18] Vishesh Jain, Will Perkins, Ashwin Sah, and Mehtaab Sawhney. Approximate counting and sampling via local central limit theorems. In Proceedings of the 54th Annual ACM SIGACT Symposium on Theory of Computing, pages 1473–1486, 2022. doi:10.1145/3519935.3519957.
- [19] Mark Jerrum. A very simple algorithm for estimating the number of k-colorings of a low-degree graph. Random Structures & Algorithms, 7(2):157–165, 1995. doi:10.1002/rsa.3240070205.
- [20] Mark Jerrum and Alistair Sinclair. Polynomial-time approximation algorithms for the Ising model. SIAM Journal on computing, 22(5):1087–1116, 1993. doi:10.1137/0222066.
- [21] Mark R Jerrum, Leslie G Valiant, and Vijay V Vazirani. Random generation of combinatorial structures from a uniform distribution. Theoretical computer science, 43:169–188, 1986. doi:10.1016/0304-3975(86)90174-X.
- [22] Hal A Kierstead and Alexandr V Kostochka. A short proof of the Hajnal–Szemerédi theorem on equitable colouring. Combinatorics, Probability and Computing, 17(2):265–270, 2008. doi:10.1017/S0963548307008619.
- [23] Aiya Kuchukova, Marcus Pappik, Will Perkins, and Corrine Yap. Fast and slow mixing of the Kawasaki dynamics on bounded-degree graphs. Random Structures & Algorithms, 67(4):e70038, 2025. doi:10.1002/rsa.70038.
- [24] Aiya Kuchukova, Will Perkins, and Xavier Povill. Sampling colorings with fixed color class sizes, 2026. doi:10.48550/arXiv.2603.08259.
- [25] Jingcheng Liu, Alistair Sinclair, and Piyush Srivastava. Correlation decay and partition function zeros: Algorithms and phase transitions. SIAM J. Comput., 54(4):S19–200, 2025. doi:10.1137/20m1317384.
- [26] Kuikui Liu. From coupling to spectral independence and blackbox comparison with the down-up walk. In Mary Wootters and Laura Sanità, editors, Approximation, Randomization, and Combinatorial Optimization. Algorithms and Techniques (APPROX/RANDOM 2021), volume 207 of Leibniz International Proceedings in Informatics (LIPIcs), pages 32:1–32:21, Dagstuhl, Germany, 2021. Schloss Dagstuhl – Leibniz-Zentrum für Informatik. doi:10.4230/LIPIcs.APPROX/RANDOM.2021.32.
- [27] Fabio Martinelli, Alistair Sinclair, and Dror Weitz. Fast mixing for independent sets, colorings, and other models on trees. Random Structures & Algorithms, 31(2):134–172, 2007. doi:10.1002/rsa.20132.
- [28] Marc Mézard and Giorgio Parisi. Mean-field theory of randomly frustrated systems with finite connectivity. EPL (Europhysics Letters), 3(10):1067–1074, 1987. doi:10.1209/0295-5075/3/10/002.
- [29] Marcus Michelen and Julian Sahasrabudhe. Central limit theorems and the geometry of polynomials. Journal of the European Mathematical Society, 2024.
- [30] Michael Molloy. The Glauber dynamics on colourings of a graph with high girth and maximum degree. In Proceedings of the thiry-fourth annual ACM symposium on Theory of computing, pages 91–98, 2002. doi:10.1145/509907.509924.
- [31] Elchanan Mossel and Allan Sly. Gibbs rapidly samples colorings of . Probability theory and related fields, 148(1):37–69, 2010. doi:10.1007/s00440-009-0222-x.
- [32] Viresh Patel, Guus Regts, and Ayla Stam. A near-optimal zero-free disk for the Ising model. Combinatorial Theory, 4(2), 2024. doi:10.5070/c64264237.
- [33] Han Peters and Guus Regts. On a conjecture of Sokal concerning roots of the independence polynomial. Michigan Mathematical Journal, 68(1):33–55, 2019.
- [34] Han Peters and Guus Regts. Location of zeros for the partition function of the Ising model on bounded degree graphs. Journal of the London Mathematical Society, 101(2):765–785, 2020. doi:10.1112/jlms.12286.
- [35] Dana Randall and David Wilson. Sampling spin configurations of an Ising system. In Symposium on Discrete Algorithms: Proceedings of the tenth annual ACM-SIAM symposium on Discrete algorithms, volume 17, pages 959–960, 1999. URL: http://dl.acm.org/citation.cfm?id=314500.314945.
- [36] Guus Regts. Absence of zeros implies strong spatial mixing. Probability Theory and Related Fields, 186(1):621–641, 2023. doi:10.1007/s00440-023-01190-z.
- [37] Allan Sly and Yumeng Zhang. The Glauber dynamics of colorings on trees is rapidly mixing throughout the nonreconstruction regime. Annals of Applied Probability, 27(5):2646–2674, 2017.
- [38] Eric Vigoda. Improved bounds for sampling colorings. In 40th Annual Symposium on Foundations of Computer Science (Cat. No. 99CB37039), pages 51–59. IEEE, 1999. doi:10.1109/SFFCS.1999.814577.
- [39] Chen-Ning Yang and Tsung-Dao Lee. Statistical theory of equations of state and phase transitions. i. Theory of condensation. Physical Review, 87(3):404, 1952. doi:10.1103/PhysRev.87.404.
- [40] Penghui Yao, Yitong Yin, and Xinyuan Zhang. Polynomial-time approximation of zero-free partition functions. In Mikolaj Bojanczyk, Emanuela Merelli, and David P. Woodruff, editors, 49th International Colloquium on Automata, Languages, and Programming, ICALP 2022, Paris, France, July 4-8, 2022, volume 229 of LIPIcs, pages 108:1–108:20. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2022. doi:10.4230/LIPIcs.ICALP.2022.108.
