Algorithmic barriers from phase transitions
Dimitris Achlioptas, Amin Coja-Oghlan
Introduction
For many random Constraint Satisfaction Problems (CSP), such as random graph coloring, random -SAT, random Max -SAT, and hypergraph 2-coloring, by now, we have asymptotically tight estimates for the largest constraint density for which typical instances have solutions (see ). At the same time, all known efficient algorithms for each problem fair very poorly, i.e., they stop finding solutions at constraint densities much lower than those for which we can prove that solutions exist. Adding insult to injury, the best known algorithm for each problem asymptotically fairs no better than certain extremely naive algorithms for the problem.
For example, it has been known for nearly twenty years that the following very simple algorithm will find a satisfying assignment of a random -CNF formula with clauses for : if there is a unit clause satisfy it; otherwise assign a random value to a random unassigned variable. While it is known that random -CNF remain satisfiable for , no polynomial-time algorithm is known to find satisfying assignments for for some function .
Similarly, for all , the following algorithm will -color a random graph with average degree : select a random vertex with fewest available colors left and assign it a random available color. While it is known that random graphs remains -colorable for , no polynomial-time algorithm is known that can -color a random graph of average degree for some fixed and arbitrarily large . Equivalently, while it is trivial to color a random graph using twice as many colors as its chromatic number, no polynomial-time algorithm is known that can get by with colors, for some fixed .
Random -SAT and random graph coloring are not alone. In fact, for nearly every random CSP of interest, the known results establish a completely analogous state of the art:
There is a trivial upper bound on the largest constraint density for which solutions exist.
There is a non-constructive proof, usually via the second moment method, that the bound from (1) is essentially tight, i.e., that solutions do exist for densities nearly as high as the trivial upper bound.
Some simple algorithm finds solutions up to a constraint density much below the one from (2).
No polynomial-time algorithm is known to succeed for a density asymptotically greater than that in (3).
In this paper we prove that this is not a coincidence. Namely, for random graph coloring, random -SAT, and random hypergraph 2-coloring, we prove that the point where all known algorithms stop is precisely the point where the geometry of the space of solutions undergoes a dramatic change. This is known as a “dynamical” phase transition in statistical physics and our results establish rigorously for random CSPs a large part of the “1-step Replica Symmetry Breaking” hypothesis . Roughly speaking, this hypothesis asserts that while the set of solutions for low densities looks like a giant ball, at some critical point this ball shatters into exponentially many pieces that are far apart from one another and separated by huge “energy barriers”. Algorithms (even extremely simple ones) have no problem finding solutions in the “ball” regime, but no algorithm is known that can find solutions in the “error-correcting code” regime.
We believe that the presence of dynamical phase transitions in random CSPs is a very general phenomenon, whose qualitative characteristics should be problem-independent, i.e., universal. The fact that we can establish the exact same qualitative picture for a problem with binary constraints over -ary variables (random graph -coloring) and a problem with -ary constraints over binary variables (hypergraph 2-colorability) certainly lends support to this notion. That said, we wish to emphasize that determining for each random CSP the location of its dynamical phase transition (as we do in this paper for the three problems mentioned, in order to show that the transition coincides with the demise of all known algorithms) requires non-trivial, problem-specific ideas and computations.
Perhaps the following is an intuitive model of how a dynamical phase transition comes about. In random graph coloring, rather than thinking of the number of available colors as fixed and the constraint density (number of edges) as increasing, imagine that we keep the constraint density fixed, but we keep decreasing the number of available colors. If we start with available colors where , it is reasonable to imagine that the set of valid -colorings, viewed as a subset of , has a nice “round” shape, the rounder the greater is relative to . By the same token, when we restrict our attention to the set of those -colorings that only use colors , we are taking a “slice’ of the set of -colorings. With each slicing the connectivity of the set at hands deteriorates, until at some point the set shatters. For example, slicing the 2-dimensional unit sphere through the origin yields a circle, but slicing the circle, yields a pair of points.
We conclude the introduction with a few words about the technical foundation for our work. To prove the existence (and determine the location) of a dynamical phase transition one needs access to statistical properties of the uniform measure over solutions. A geometric way of thinking about this is as follows. Given a CSP instance, say a -CNF formula with clauses chosen uniformly at random, consider the function on that assigns to each truth assignment the number of clauses it violates. In this manner, defines a “landscape” in which satisfying assignments correspond to valleys at sea-level. Understanding statistical properties of the uniform measure over solutions amounts to understanding “the view” one enjoys from such a valley, a probabilistically formidable task. As we discuss in Section 4, we can establish the following: the number of solutions of a random CSP is sufficiently concentrated around its exponentially large expectation for the view from a random sea-level valley to be “the same” as the view from an “artificial” valley. That is, from the valley that results by first selecting a random and then forming a random -CNF formula, also with clauses, but now chosen uniformly among the clauses satisfied by , i.e., the view from the planted satisfying assignment in the planted model. This is a much easier view to understand and we believe that the “transfer” theorems we establish in this paper will significantly aid in the analysis of random CSPs.
Statement of Results
The height of a path is . We say that is a solution of an instance , if . We will denote by the set of all solutions of an instance . The clusters of an instance are the connected components of . A region is a non-empty union of clusters.
The term cluster comes from physics. Requiring to say that are adjacent is somewhat arbitrary (but conceptually simplest) and a number of our results hold if one replaces 1 with .
We will be interested in distributions of CSP instances as the number of variables grows. The set will typically consist of all possible constraints of a certain type, e.g., the set of all possible hyperedges in the problem of 2-coloring random -uniform hypegraphs. We let denote the set of all CSP instances with precisely distinct constraints from and we let denote the uniform distribution on the set of all instances . We will say that a sequence of events holds with high probability (w.h.p.) if and with uniformly positive probability (w.u.p.p.) if . As per standard practice in the study of random structures, we will take the liberty of writing to denote the underlying random variable and, thus, write things like “The probability that …”
We say that the set of solutions of shatters if there exist constants such that w.h.p. can be partitioned into regions so that:
The number of regions is at least .
Each region contains at most an fraction of all solutions.
The Hamming distance between any two regions is at least .
Every path between vertices in distinct regions has height at least .
Our first main result asserts that the space of solutions for random graph coloring, random -SAT, and random hypergraph 2-colorability shatters and that this shattering occurs just above the largest density for which any polynomial-time algorithm is known to find solutions for the corresponding problem. Moreover, we prove that the space remains shattered until, essentially, the CSP’s satisfiability threshold. More precisely:
– A random graph with average degree , i.e., , is w.h.p. -colorable for , where . The best poly-time -coloring algorithm w.h.p. fails for , where .
There exists a sequence , such that the space of -colorings of a random graph with average degree shatters for all
– A random -CNF formula with variables and clauses is w.h.p. satisfiable for . The best poly-time satisfiability algorithm w.h.p. fails for . In , non-rigorous, but mathematically sophisticated evidence is given that a different algorithm succeeds for , but not higher.
There exists a sequence such that the space of satisfying assignments of a random -CNF formula with clauses shatters for all
– A random -uniform hypergraph with variables and edges is w.h.p. 2-colorable for . The best poly-time 2-coloring algorithm w.h.p. fails for . In , non-rigorous, but mathematically sophisticated evidence is given that a different algorithm succeeds for , but not higher.
There exists a sequence such that the space of 2-colorings of a random -uniform hypergraph with edges shatters for all
As the notation in Theorems 2.1,2.2,2.3 is asymptotic in , the stated intervals may be empty for small values of . In this extended abstract we have not optimized the proofs to deliver the smallest values of for which the intervals are non-empty. Quick calculations suggest for hypergraph 2-colorability, for -SAT, and for -coloring.
2 Rigidity
The regions mentioned in Theorems 2.1, 2.2 and 2.3 can be thought of as forming an error-correcting code in the solution-space of each problem. To make this precise we need to introduce the following definition and formalize the notion of “a random solution of a random instance”.
Given an instance , a solution and a variable , we say that in :
Is -rigid, if every such that has .
Is -loose, if for every , there exists such that and .
We will prove that while before the phase transition, in a typical solution, every variable is loose, after the phase transition nearly every variable is rigid. To formalize the notion of a random/typical solution, recall that denotes the set of all instances with constraints over variables and let denote the set of all instance–solution pairs, i.e., . We let be the probability distribution induced on by the following:
Choose an instance uniformly at random.
If , select uniformly at random.
We will refer to instance-solution pairs generated according to as uniform instance-solution pairs. We note that although the definition of uniform pairs allows for to be typically empty, i.e., to be in the typically unsatisfiable regime, we will only employ the definition for constraint densities such that w.h.p. contains exponentially many solutions. Hence, our liberty in also using the term a “typical” solution.
Let be a uniform instance-solution pair where:
is a graph with edges, where is as in (1), and is a -coloring of , or,
is a -CNF formula with clauses, where is as in (2), and is a satisfying assignment of , or,
is a -uniform hypergraph with edges, where is as in (3), and is a 2-coloring of .
W.h.p. the number of rigid variables in is at least , for some sequence .
Theorem 2.4 is tight since for every finite constraint density, a random instance w.h.p. has variables that are not bound by any constraint.
The picture drawn by Theorem 2.4, whereby nearly all variables are rigid in typical solutions above the dynamical phase transition, is in sharp contrast with our results for densities below the transition for graph coloring and hypergraph 2-colorability. While we believe that an analogous picture holds for -SAT, see Conjecture 1, for technical reasons we cannot establish this presently. (We discuss the additional difficulties imposed by random -SAT in Section 4.)
Let be a uniform instance-solution pair where:
is a graph with edges, where , and is a -coloring of , or,
is a -uniform hypergraph with edges, where , and is a 2-coloring of .
There exists a sequence such that w.h.p. every variable in is -loose.
We note that in fact, for all and as in Theorem 2.5, w.u.p.p. is such that changing the color of any vertex to any color only requires changing the color of other vertices.
Let be a uniform instance-solution pair where is a -CNF formula with clauses, where , and is a satisfying assignment of . There exists a sequence such that w.h.p. every variable in is -loose.
Background and Related Work
Attempts for a “quick improvement” upon either of the naive algorithms mentioned in the introduction for satisfiability/graph coloring, stumble upon the following general fact. Given a CSP instance, consider the bipartite graph in which every variable is adjacent to precisely those constraints in which it appears, known as the factor graph of the instance. For random formulas/graphs, factor graphs are locally tree-like, i.e., for any arbitrarily large constant , the depth- neighborhood of a random vertex is a tree w.h.p. In other words, locally, random CSPs are trivial, e.g., random graphs of any finite average degree are locally 2-colorable. Moreover, as the constraint density is increased, the factor graphs of random CSPs get closer and closer to being biregular, so that degree information is not useful either. Combined, these two facts render all known algorithms impotent, i.e., as the density is increased, their asymptotic performance matches that of trivial algorithms.
In , Mézard, Parisi, and Zecchina proposed a new satisfiability algorithm called Survey Propagation (SP) which performs extremely well experimentally on instances of random 3-SAT. This was very surprising at the time and allowed for optimism that, perhaps, random -SAT instances might not be so hard. Moreover, SP was generalized to other problems, e.g., -coloring and Max -SAT . An experimental evaluation of SP for values of even as small as 5 or 6 is already somewhat problematic, but to the extent it is reliable it strongly suggests that SP does not find solutions for densities as high as those for which solutions are known to exist. Perhaps more importantly, it can be shown that for densities at least as high as , if SP can succeed at its main task (approximating the marginal probability distribution of the variables with respect to the uniform measure over satisfying assignments), so can a much simpler algorithm, namely Belief Propagation (BP), i.e., dynamic programming on trees.
The trouble is that to use either BP or SP to find satisfying assignments one sets variables iteratively. So, even if it is possible to compute approximately correct marginals at the beginning of the execution (for the entire formula), this can stop being the case after some variables are set. Concretely, in , Montanari et al. showed that (even within the relatively generous assumptions of statistical physics computations) the following Gibbs-sampling algorithm fails above the barrier, i.e., step 2 below fails to converge after only a small fraction of all variables have been assigned a value:
Compute the marginal distribution of using Belief Propagation.
Set to according to the computed marginal distribution; simplify the formula; go to step 1.
2 Relating the Uniform and the Planted Model.
The idea of deterministically embedding a property inside a random structure is very old and, in general, the process of doing this is referred to as “planting” the property. In our case, we plant a solution in a random CSP, by only including constraints compatible with . Juels and Peinado were perhaps the first to explore the relationship between the planted and the uniform model and they did so for the clique problem in dense random graphs , i.e., where each edge appears independently with probability 1/2. They showed the distribution resulting from first choosing and then planting a clique of size is very close to and suggested this as a scheme to obtain a one-way-function. Since the planted clique has size only , the basic argument in is closely related to subgraph counting. In contrast, the objects under consideration in our work (-colorings, satisfying assignments, etc.) have an immediate impact on the global structure of the combinatorial object being considered, rather than just being local features, such as a clique on vertices.
Coja-Oghlan, Krivelevich, and Vilenchik proved that for constraint densities well above the threshold for the existence of solutions, the planted model for -coloring and -SAT is equivalent to the uniform distribution conditional on the (exponentially unlikely) existence of at least one solution. In this conditional distribution as well as in the high-density planted model, the geometry of the solution space is very simple, as there is precisely one cluster of solutions.
3 Solution-space Geometry
In the first steps were made towards understanding the solution-space geometry of random -CNF formulas by proving the existence of shattering and the presence of rigid variables for . This was a far cry from the true threshold for the onset of both phenomena, as we establish here. Besides the quantitative aspect, there is also a fundamentally important difference in the methods employed in vs. those employed here. In those works, properties were established by taking a union bound over all satisfying assignments. It is not hard to show that the derived results are best possible using those methods and, in fact, there is good reason to believe that the results are genuinely tight, i.e., that for densities the derived properties simply do not hold for all satisfying assignments. Here, we instead establish a systematic connection between the planted model and the process of sampling a random solution of a random instance. This argument allows us to analyze “typical” solutions while allowing for the possibility that a (relatively small, though exponential) number of “atypical” solutions exist. Therefore, we are for the first time in a position to analyze the extremely complex energy landscape of below-threshold instances of random CSPs, and to estimate quantities that appeared completely out of reach prior to this work.
Our Point of Departure: Symmetry, Randomness and Inversion
As mentioned, the results in this paper are enabled by a set of technical lemmas that allow one to reduce the study of “random solutions of random CSP instances” to the study of “planted CSP solutions”. The conceptual origin of these lemmas can be traced to the following humble observation.
Let be an arbitrary - matrix with the property that all its rows have the same number of 1s and all its columns have the same the number of 1s. A moment’s reflection makes it clear that for such a matrix, both of the following methods select a uniformly random 1 from the entire matrix:
Select a uniformly random column and then a uniformly random 1 in that column.
Select a uniformly random row and then a uniformly random 1 in that row.
An example of how we employ this fact for random CSPs is as follows. Let be the set of all -CNF formulas with variables and distinct clauses (chosen among all possible -clauses). Say that NAE-satisfies a formula if under , every clause of has at least one satisfied and at least one falsified literal. Let be the matrix where iff NAE-satisfies . By the symmetry of , it is clear that all rows of have the same number of 1s. Imagine, for a moment, that the same was true for all columns. Then, a uniformly random solution of a uniformly random instance would be distributed exactly as a “planted” instance-solution pair: first select uniformly at random; then select distinct clauses uniformly at random among all clauses NAE-satisfied by .
Our contribution begins with the realization that exact row- and column-balance is not necessary. Rather, it is enough for the 1s in to be “well-spread”. More precisely, it is enough that the marginal distributions induced on the rows and columns of by selecting a uniformly random 1 from the entire matrix are both “reasonably close to” uniform. For example, assume we can prove that columns of have 1s, where is the average number of 1s per column. Indeed, this is precisely the kind of property implied by the success of the second moment method for random NAE--SAT . Under this assumption, proving that a property holds w.u.p.p. for a uniformly random solution of a uniformly random instance, reduces to proving that it holds w.h.p. for the planted solution of a planted instance, a dramatically simpler task.
There is a geometric intuition behind our transfer theorems which is more conveniently described when every constraint is included independently with the same probability , i.e., we take . For all and , it was shown in that the resulting instances w.u.p.p. have exponentially many solutions for . Consider now the following way of generating planted NAE -SAT instances. First, select a formula by including each clause with probability , exactly as above. Then, select uniformly at random and remove from all constraints violated by . Call the resulting instance . Our results say that as long as , the instance is “nearly indistinguishable” from a uniform instance created by including each clause with probability . (We will make this statement precise shortly.)
To prove our transfer theorems we instantiate this idea for random graph -coloring, random -uniform hypergraph -coloring, and random -SAT. For this, a crucial step is deriving a lower bound on the number of solutions of a random instance. For example, in the case of random graph -coloring, we prove that the number of -colorings, , for a random graph with vertices and edges is “concentrated” around its expectation in the sense that w.h.p.
To prove this, we use the upper bound on the second moment from to show that w.u.p.p. . Then, we perform a sharp threshold analysis, using theorems of Friedgut , to prove that (4) holds, in fact, with high probability. A similar approach applies to hypegraph -coloring.
The situation for random -SAT is more involved. Indeed, we can prove that the number of satisfying assignments is not concentrated around its expectation in the sense of (4). This problem is mirrored by the fact that the second moment of the number of satisfying assignments exceeds the square of the first moment by an exponential factor (for any constraint density). Nonetheless, letting denote a uniformly random -CNF formula with variables and clauses, combining techniques from with a sharp threshold analysis, we can derive a lower bound on the number of satisfying assignments that holds w.h.p., namely , where exponentially with . This estimates allows us to approximate the uniform model by the planted model sufficiently well in order to establish Theorems 2.2 and 2.4.
Proof sketches
Due to the space constraints, in the remaining pages we give proof sketches of our results for -coloring, to offer a feel of the transfer theorems and of the style of the arguments one has to employ given those theorems (actual proofs appear in the Appendix). The proofs for hypergraph 2-coloring are relatively similar, as it is also a “symmetric” CSP and the second moment methods works on its number of solutions. For -SAT, though, a significant amount of additional work is needed, as properties must be established with exponentially small error probability to overcome the large deviations in the number of satisfying assignments (proofs appear in the Appendix).
We consider a fixed number and assume that for some sufficiently large . We denote as . We are interested in the probability distribution on resulting from first choosing a random graph and then a random -coloring of (if one exists). To analyze this distribution, we consider the distribution on induced by following expermient.
Generate a uniformly random -partition .
Generate a graph with edges chosen uniformly at random among the edges bicolored under .
The distribution is known as the planted model.
Suppose that . There exists a function such that the following is true. Let be any graph property such that has with probability , and let be any property of pairs . If for all sufficiently large
2 Loose Variables Below the Transition
Suppose that . Recall that a graph with vertex set is said to be -choosable if for any assignments of color lists of length at least to the elements of , there is a proper coloring in which every vertex receives a color from its list. To prove Theorem 2.5, we consider the property that all vertices are -loose and the following condition :
For any set of size the subgraph induced on is -choosable.
Here is some function such that , where is the function from Theorem 5.1. A standard argument shows that a random graph , where , satisfies w.h.p.
By Theorem 5.1, we are thus left to establish (5). Let be a uniformly random -partition, and let be a random graph with edges such that is a -coloring of . Since is uniformly random, we may assume that the color classes satisfy . Let be any vertex, and let be the “target color” for . Our goal is to find a coloring such that and .
If has no neighbor in , then we can just assign this color to . Otherwise, we run the following process. In the course of the process, every vertex is either awake, dead, or asleep. Initially, all the neighbors of in are awake, is dead, and all other vertices are asleep. In each step of the process, pick an awake vertex arbitrarily and declare it dead (if there is no awake vertex, terminate the process). If there are at least five colors available such that has no neighbor in , then we do nothing. Otherwise, we pick five colors randomly and declare all asleep neighbors of in awake for .
With probability at least there are at most dead vertices when the process terminates.
The proof of Lemma 1 is based on relating our process to a subcritical branching process. The basic insight here is that when it is very likely that a vertex has five immediately available colors. More precisely, for any the number of neighbors in any class with is asymptotically Poisson with mean . Hence, the probability that does not have a neighbor in is about . As there are colors in total, we expect about colors available for , i.e., a lot.
To obtain a new coloring in which takes color we consider the set of all dead vertices. We let for all . Moreover, conditioning on the event , we can assign to each a color from the list . Thus, the new coloring differs from on at most vertices.
3 Rigid Variables Above the Transition
Suppose that . To prove Theorem 2.4 for coloring we apply Theorem 0.A.1 as follows. We let be sufficiently small numbers and denote by the following property of a pair :
Also, we let be the property that the maximum degree is at most .
We shall prove that for a pair chosen from a subgraph as in (6) exists w.h.p. If that is so, then every vertex in has at least one neighbor in every color class other than its own. Therefore, it is impossible to just assign a different color to any vertex in . In fact, since all vertices in have a lot (namely, at least ) of neighbors with every other color, the expansion properties of the random graph imply that recoloring any vertex in necessitates the recoloring of at least further vertices. Loosely speaking, the conflicts resulting from recoloring spread so rapidly that we necessarily end up recoloring a huge number of vertices. Thus, all vertices in are -rigid. Note that we can not hope for much better, as we can always recolor by swapping two color classes, i.e., vertices.
To prove the existence of the subgraph , we establish the following.
Condition (5) holds for and as above.
To obtain Lemma 2, let be a random pair chosen from the distribution . We may assume that for all . To obtain the graph , we perform a “stripping process”. As a first step, we obtain a subgraph by removing from all vertices that have fewer than neighbors in any color class other than their own. If is sufficiently small, then the expected number of vertices removed in this way is less than for a , because for each vertex the expected number of neighbors in another color class is bigger than . Then, we keep removing vertices from that have “a lot” of neighbors outside of . Given the event , we then show that with probabiltiy the final result of this process is a subgraph that satisfies (6).
4 Proof of Theorem 2.1
Theorem 2.1 concerns the “view” from a random coloring of . Basically, our goal is to show that only a tiny fraction of all possible colorings are “visible” from , i.e., lives in a small, isolated valley. To establish the theorem, we need a way to measure how “close” two colorings are. The Hamming distance is inappropriate here because two colorings can be at Hamming distance , although simply results from permuting the color classes of , i.e., although and are essentially identical. Instead, we shall use the following concept. Given two coloring , we let be the matrix with entries
To measure how close is to we let
be the squared Frobenius norm of . Observe that this quantity reflects the probability that a single random edge is monochromatic under both and , i.e., the correlation of and , precisely as desired. Hence, is a map from the set of -partitions to the interval , where . Thus, the larger , the more resembles . Furthermore, for a fixed and a number we let
In order to show that with decomposes into exponentially many regions, we employ the following lemma.
Suppose that . There are numbers and such that with high probability a pair chosen from the distributoin has the following two properties.
For all we have .
The number of colorings such that is at most .
Let be a random graph and call good if both (1) and (2) hold. Then Lemma 3 states that w.h.p. a -fraction of all are good. Hence, to decompose into regions, we proceed as follows. For each we let Then starting with the set and removing iteratively some for a good yields an exponential number of regions. Furthermore, each such region is separated by a linear Hamming distance from the set , because is “continuous” with respect to Hamming distance. Thus, Theorem 2.1 follows from Lemma 3.
Finally, by Theorem 5.1, to prove Lemma 3 it is sufficient to show the following.
Suppose that . There are and such that with probability at least a pair chosen from the distributoin has the two properties stated in Lemma 3.
The proof of Lemma 4 is based on the “first moment method”. That is, for any we compute the expected number of assignments such that and . This computation is feasible in the planted model and yields similar expressions as encountered in in the course of computing the second moment of the number of -colorings. Therefore, we can show that the expected number of such assignments is exponentially small for a regime , whence Lemma 21 follows from Markov’s inequality.
References
Appendix 0.A Graph coloring
In this section we consider a fixed number and assume that for some sufficiently large . We are interested in the probability distribution on . To analyze this distribution, we consider the distribution on induced by following expermient (“planted model”).
Generate a uniformly random -partition .
Generate a graph with edges chosen uniformly at random among the edges bicolored under .
Suppose that . There exists a function such that the following is true. Let be any graph property such that has with probability , and let be any property of pairs . If for all sufficiently large we have
For a given assignment we let be the set of all graphs with edges for which is a proper coloring. Then it is immediate that
Let be sufficiently small. Moreover, let , , and . Then . Therefore,
Since for a random the numbers are multinomially distributed, with probability we have . Hence, letting , we conclude that there is a constant such that
Thus, by Stirling’s formula with probability at least we have
Since and , in the case we have
We have .
because for all . Hence, Corollary 1 yields
There is a function such that with high probability.
Since , this contradicts Lemma 6. ∎
A.2 Proof of Lemma 7
To prove Lemma 7, we combine the second moment argument from with a sharp threshold argument. Let be a random graph and let be the number of balanced colorings of , i.e., colorings such that for all . Recall that denotes the set of all -colorings of . A direct computation involving Stirling’s formula shows that
In addition, [4, Section 3] shows that there is a constant such that
Applying the Paley-Zigmund inequality, we thus conclude that there is a number such that
where . Thus, we obtain the following.
To complete the proof of Lemma 7, we combine Lemma 8 with a sharp threshold result. Let be the property that a graph on vertices has less than -colorings.
For any fixed the property has a sharp threshold. That is, there is a sequence such that for any we have
We shall prove Lemma 9 in Appendix 0.A.3. Lemma 7 is an immediate consequence of Lemmas 8 and 9.
A.3 Proof of Lemma 9
The property is monotone under the addition of edges. Therefore, it is sufficient to prove that has a sharp threshold in the random graph , in which edges are added with probability independently. Let . The argument builds upon . We denote the set of -colorings of a graph by .
Let be a (very) slow growing function of . Moreover, let be the event that the first constraints: “ must not receive color ” for , cause the number of -colorings to be at most . Then given that has more than -colorings (i.e., coditional on the event ), the probability of is at least . Hence, conditional on , we have
Since for each of the colorings the probability that a new random edge spoils this coloring is , we can reduce the number of colorings to at most by adding random edges (use Markov’s inequality).
Now, note that instead of first imposing the constraints and then adding the random edges as in Cases 1 and 2 we could first add a set of random edges to . As is of smaller order than the standard deviation of the number of edges of , the resulting distribution is within from the originial distribution in total variation distance. Therefore, we conclude that actually just imposing the constraints suffices to increase the probability of having -colorings to . ∎
Applying the lemma times, we can reduce the number of constraints that is necessary to reduce the number of colorings to to . ∎
To prove that has a sharp threshold, we assume for contratiction that this is not so. Hence, there exists an edge probability such that the probability that has is exactly equal to for a small . Further, by [15, Theorem 2.4] there exists a fixed graph on vertices such that with probability the following is true. If we first pick and then insert a random copy of into , then the resulting graph has . Furthermore, this graph is -colorable. In fact, by monotonicity we may assume that is uniquely -colorable. The experiment of inserting a random copy of into is actually equivalent to the following (because is symmetric with respect to vertex permutations). We let denote a random graph obtained by first inserting a copy of into the first vertices , and then adding edges with probability independently (among all vertices ). Then the probability that has is at least . Hence,
Let signify the subraph of induced on the vertices . Then , and (9) implies that
Furthermore, we can relate the -colorings of and the -colorings of as follows. Let be the set of edges from the set to . Then w.h.p. and no vertex in is incident to more than one edge in . Furthermore, since admits a unique -coloring, each edge in forbids its endpoint in exactly one color. Hence, the edges in impose constraints on randomly chosen vertices as in Lemma 10. Therefore, (8) implies that
Furthermore, as we may add another random edges to without shifting the distribution by more than in total variation distance, and since each of these edges reduces the expected number of colorings by , Markov’s inequality entails that
A.4 Proof of Theorem 2.5
Suppose that , and that for a sufficiently large . Let and recall that a graph is -choosable if for any assignments of color lists of length at least to the vertices of the graph there is a proper coloring such that each vertex receives a color from its list. To prove Theorem 2.5, we consider the property that all vertices are loose and the following condition :
For any set of size the subgraph induced on is -choosable.
Here is a constant and , where is the function from Theorem 0.A.1.
With high probability the random graph satisfies .
Since , this follows from a standard first moment argument. ∎
By Theorem 0.A.1, we just need to establish (7). Thus, let be a coloring such that the color classes satisfy , and let be a random graph with edges such that is a -coloring of . Let be any vertex; without loss of generality we may assume that . In addition, let be the “target color” for . If has no neighbor in , then we can just assign this color to .
Otherwise, we run the following process. In the course of the process, every vertex is either awake, dead, or asleep. Initially, all the neighbors of in are awake, is dead, and all other vertices are asleep. In each step of the process, pick an awake vertex arbitrarily and declare it dead (if there is no awake vertex, terminate the process). If there are at least colors such that has no neighbor in , then we do nothing. Otherwise, we pick colors randomly and declare all asleep neighbors of in awake for .
With probability at least there are at most dead vertices when the process terminates.
We show that the aforementioned process is dominated by a branching process in which the expected number of successors is less than one. Then the assertion follows from Chernoff bounds.
To set up the analogy, note that the expected number of neighbors of any in is asymptotically . Hence, the probability that has no neighbor in is at least . Therefore, the expected number of classes in which has no neighbor is at least . Furthermore, the number of such classes is asymptotically binomially distributed. Therefore, assuming that is sufficiently large, we conclude that the probability that there are less than classes in which has no neighbor is less than . Given that this is so, the number of neighbors of in each of the chosen classes has mean at most . Therefore, the expected number of newly awake vertices resulting from is at most . Thus, the above process is dominated by a branching process with successor rate . Therefore, the assertion follows from stochastic domiance and Chernoff bounds. ∎
Proof of Theorem 2.5. Let be the set of dead vertices left by the aforementioned process. By Lemma 12 we may assume that . Hence, conditioning on , we may assume that is -choosable. Now, we assign lists of colors to the vertices in as follows. The list of just consists of its target color . To any other we assign the list . Now, we can color the subgraph by assigning color to and a color from to any other . We extend this to a coloring of by assigning color to any . Let signify the resulting coloring.
We claim that is a proper coloring of . For both the subgraph induced on and the subgraph induced on are properly colored. Moreover, by construction no is adjacent to a vertex of color in . Finally, and are at Hamming distance at most . Hence, the assertion follows from Theorem 0.A.1. ∎
A.5 Rigid variables
Let , and assume that for a large enough . Suppose that . To prove Theorem 2.4 for coloring, we apply Theorem 0.A.1 as follows. We let be a sufficiently small number and denote by the following property of a pair .
Also, we let be the property that the maximum degree is at most .
Condition (7) is satisfied with and as above.
Proof of Theorem 2.4 for coloring. Given a random coloring of a random graph , Lemma 13 and Theorem 0.A.1 imply that w.h.p. there is a subgraph satisfying (11). In addition, we assume that has the following property.
A standard 1st moment argument shows that (12) holds in w.h.p.
Assume for contradiction that there is another coloring such that the set has size . Let and . Then
Every has at least neighbors in . Hence, if , then all of these neighbors lie inside of . We claim that this implies that . For assume that and set . Then , and spans at least edges, in contradiction to (12). Thus, we conclude that for all , in contradiction to (13). Hence, all the vertices in are -rigid. ∎
A.6 Proof of Lemma 13
Let be a random pair chosen from the distribution . We may assume that for all and let . To simplify the analysis, we shall replace the random graph , which has a fixed number of edges, by a random graph in which is obtained by including each edge with with probability independently. Here is chosen so that the expected number of edges of equals .
Thus, in the sequel we will work with rather than . Let be a sufficiently small number, and let . Moreover, for a vertex and a set let signify the number of --edges in . We construct a subgraph of as follows.
Let , , and .
Let and .
Let . While there is a vertex that has at least neighbors in , add to .
Let .
For each vertex and each color the expected number of neighbors of with color is . Hence, the sets contain those vertices form that have a lot fewer neighbors with color than expected.
There is a number such that with probability we have for any . Hence, , and .
In the random graph for each the number is binomially distributed. Hence, the probability that is at most , where depends only on and . Furthermore, as in edges occur independently, is binomially distributed as well (with mean ). Therefore, the assertion follows from Chernoff bounds. ∎
Each of the vertices in has a lot of neighbors in the small set . Therefore, since the random graph is a good expander, we expect to be much smaller than .
Given that occurs, with probability at least the set contains at most vertices.
With probability the set contains at most vertices.
Assume that this is not the case. Let contain all vertices of and the first vertices added to by step 3 of the construction of . Then and . However, a simple first moment argument shows that the probability that a set with these two properties is present in is at most . ∎
Combining Lemma 15, 16, and 17, we conclude that contains at least vertices (provided that is sufficiently larger). Moreover, the construction of ensures that this graph satisfies (11).
A.7 Proof of Lemma 14
Given that has exactly edges, is just a uniformly random graph with planted coloring . That is, given that the number of edges is , is identically distributed to . Therefore,
Furthermore, since , with probability the maximum degree of as well as of is at most . Therefore, have with probability . Hence, (14) yields
A.8 Proof of Lemma 16
To analyze the sets from the second step of the construction of , consider
With probability we have .
The definition of the set depends solely on the --edges. Therefore, the --edges are indepenent of the random set , which with probability has size by the Lemma 15. Assuming that this is indeed the case, we conclude that for any vertex the number is binomially distributed with mean . Hence, the probability that has neighbors inside is at most
Conditional on the event , with probability we have .
We just need to analyze the bipartite subgraph . The set consists of all vertices that have degree in this subgraph. To investigate , we condition on the degree sequence of this bipartite graph. Since we also condition on the event , the maximum degree is . Hence, we can generate the random bipartite graph with degree sequence via the configuration model, and the probability that the resulting multigraph happens to be a simple graph is . Thus, we just need to study a random configuration.
Now, in a random configuration the probability that a vertex has neighbors in the set is , because the total number of edges of is concentrated about . Therefore, the (conditional) expected size of is . Consequently, Azuma’s inequality yields that with probability the size of is . ∎
Finally, Lemma 16 follows immedately from the fact that .
A.9 Proof of Theorem 2.1
To prove the coloring part of Theorem 2.1, we need to come up with an appropriate way to measure how “similar” two -colorings of a given graph are . A first idea may be to just use the Hamming distance. However, if we construct a coloring simply by permuting the color classes of another coloring , then and can have Hamming distance , although they are essentially identical. Therefore, instead of the Hamming distance we shall use the following concept. Given two coloring , we let be the matrix with entries
Then to measure how close is to we let
be the squared Frobenius norm of . Hence, is a map from the set of -colorings to the interval , where . (Thus, the larger , the more resembles .) Furthermore, for a fixed and a number we let
In order to show that with decomposes into exponentially many regions, we employ the following lemma.
Suppose that . There are numbers and such that with high probability a pair chosen from the distributoin has the following two properties.
For all we have .
The number of colorings such that is at most .
Let be a random graph and call good if 1. and 2. hold. Then Lemma 20 states that with high probability a -fraction of all is good. Hence, to decompose into regions, we proceed as follows. For each we let
Then starting with the set and removing iteratively some for a good from yields an exponential number of regions. Furthermore, each such region is separated by a linear Hamming distance from the set , because is continuous with respect to Hamming distance (that is, for any there is such that for all satisfying ). Thus, the property stated in Theorem 2.1 follows from Lemma 20.
To establish Lemma 20, we employ the planted model.
Suppose that . There are and such that with probability at least a pair chosen from the distributoin the two properties stated in Lemma 20.
Thus, Lemma 20 follows from Lemma 21 and Theorem 0.A.1.
Proof of Lemma 21. The proof is based on the first moment method. Let be a fixed assignment of colors to the vertices. We may assume that for all , because all but an exponentially small fraction of all assignments in have this property. Further, let be a graph with edges such that is a -coloring of chosen uniformly at random from the set of all such graphs. A direct computation shows that for an assignment the probability that is
where . To prove the lemma, we shall compute the expected number of assignments such that and for a suitable .
To this end, we have to take into account the number of possible colorings . We parameterize the set of all possible by a matrix , where . Then by (15) the contribution of a matrix to the first moment is at most
(the accounts for the fact that we consider the coloring fixed). Taking logarithms, we obtain
For a given number we let be the set of all matrices such that , , and . Since there are at most possible matrices , for any given the expected number of colorings such that is at most
Hence, by continuity it suffices to show that for some the expression is strictly negative for a small enough .
Let and . Then Theorem 9 from shows that the maximum is attained for a matrix with entries
asymptotically as grows. An explicit computation shows that for this matrix the value is strictly negative, provided that is sufficiently small. Therefore, we can apply Markov’s inequality to complete the proof. ∎
Appendix 0.B Proofs for Random k𝑘k-SAT
Consider the distribution on the set of pairs , where is a -SAT formula with variables and with clauses, and is a satisfying assignment of .
Generate a random formula .
Sample a satisfying assignment of uniformly at random; if is unsatisfiable, fail.
To analyze this distribution, we consider the distribution on induced by following expermient.
Generate a random assignment .
Generate a random -CNF formula with clauses chosen uniformly among those satisfied by .
Our goal is to establish the following connection between these two distributions.
There is a sequence such that the following holds. Let for some , and let be any function that such that . Let be any property such that has with probability , and let be any property of pairs . If for all sufficiently large we have
The proof of Theorem 0.B.1 is based on the following lemma, which we establish in Section 0.B.2.
Let denote the expected number of satisfying assignments of a random -CNF . Then for , w.h.p.
On the other hand, as is just the uniform distribution on the set , (16) implies that
As , this contradicts (17) for sufficiently large . ∎
B.2 Proof of Lemma 22
Let be the function defined by
Suppose that . Then has at least satisfying assignments w.h.p.
Recall that denotes a random -SAT formula on variables . For a fixed number we let denote the property that a -SAT formula on the variables has less than satisfying assignments. The following lemma shows that has a sharp threshold.
For any there is a sequence of integers such that for any we have
Assuming Lemma 24, we can infer Lemma 23 easily.
Let . Equations (18) and (19) show that is a continuous function. Therefore, for any there is a such that satisfies
Let . Setting , the second moment argument from shows in combination with the Paley-Zigmund inequality that
Therefore, Lemma 24 implies that for sufficiently large . Consequently, for large we have Hence, Lemma 24 yields
Thus, with probability the number of satisfying assignments of satisfies
Since this is true for any , the assertion follows. ∎
As shown in , the solution to (19) satisfies
Plugging these bounds into (18) and performing a tedious but straightforward computation, we obtain that
Since , the assertion thus follows from Lemma 23. ∎
To prove Lemma 24, we need a bit of notation. If is a formula on a set of variables disjoint from , then we let denote the set of all formulas that can be obtained from by substituting distinct variables among for . Moreover, for a formula on we let , where is chosen uniformly at random from .
Note that is a monotone property, i.e., if has the property and is another formula on the variables , then has the property as well. Therefore, we can use the following theorem from Friedgut to prove by contradiction that has a sharp threshold. Let for concreteness.
Suppose that does not have a sharp threshold. Then there exist a number , a formula , and for any numbers , and a formula with variables such that the following is true.
.
.
With probability at least a random formula contains an element of as a subformula.
.
In the sequel we assume the existence of , , , , and satisfying conditions T1–T3. To conclude that has a sharp threshold, we shall show that then condition T4 cannot hold. Clearly, we may assume that is sufficiently large (by choosing appropriately). Let .
Any -SAT formula that contains at most as many clauses as variables is satisfiable. Hence, to establish the lemma, we will show that the probability that contains a subformula on variables with at least clauses is smaller than ; then the assertion follows from T3.
To prove this statement, we employ the union bound. There are ways to choose a set of variables, and ways to choose slots for the clauses of the subformula. Furthermore, the probability that the random clauses in these slots contain only the chosen variables is at most . Hence, the probability that has variables that span a subformula with at least clauses is at most
Further, T2 implies that , because for the expected number of satisfying assignments of is less than . Thus, assuming that is sufficiently large, we see that (21) implies , as claimed. ∎
Thus, fix a satisfying assignment of . Then we say that a satisfying assignment of is compatible with a tuple if for all . Furthermore, we call a tuple bad if has less than satisfying assignments that are compatible with .
There are at least bad tuples.
The formula is obtained by substituting randomly chosen variables for the variables of and adding the resulting clauses to . Since by T1 with probability at least the resulting formula has at most satisfying assignments, a uniformly chosen tuple is bad with probability at least . Thus, there are at least bad tuples. ∎
With probability at least a random formula contains clauses with the following two properties.
For each there is a -tuple of variables such that if , and if .
For any function the -tuple is bad.
The proof of Lemma 27 is based on the following version of the Erdős-Simonovits theorem(cf. [15, Proposition 3.5]).
For any there are numbers such that for any and any set of size the following is true. If -tuples are chosen uniformly at random and independently, then with probability at least for any function the tuple belongs to .
Assuming that is sufficiently large, we apply Theorem 0.B.3 to , , and the set of bad -tuples. Then by Lemma 26 we have . Now, consider random -clauses over the variable set chosen uniformly and independently. Let be the -tuples of variables underlying . Then Theorem 0.B.3 entails that satisfy condition B2 with probability at least . Moreover, given that this is the case, condition B1 is satisfied with probability . Therefore, the clauses satisfy both B1 and B2 with probability at least . Hence, the probability that does not feature an -tuple of clauses satisfying B1 and B2 is at most . Since , we can ensure that this expression is less than by choosing large enough. ∎
With probability at least the formula has at most satisfying assignments.
We will show that if are clauses satisfying the two conditions from Lemma 27, then has at most satisfying assignments. Then the assertion follows from Lemma 27.
Thus, let be a satisfying assignment of . Then by the B1 for each there is an index such that . Moreover, by B2 the tuple is bad. Hence, the map yields a bad tuple for each satisfying assignment. Therefore, the number of satisfying assignments mapped to any tuple in is at most . Consequently, has at most satisfying assignments in total. ∎
With probability at least the formula satisfies .
The formula is obtained from by attaching random clauses. Let be the formula resulting by attaching the first random clauses. Then by Corollary 3 with probability at least the formula has at most satisfyng assignments. Conditioning on this event, we form by attaching another random clauses to . Since for any satisfying assignment of the probability that these additional clauses are satisfied as well is , the expected number of satisfying assignments of is at most
provided that is sufficiently large. Therefore, Markov’s inequality entails that
Combining Theorem 0.B.2 and Corollary 4, we conclude that has a sharp threshold, thereby completing the proof of Lemma 24.
B.3 Proof of Theorem 2.2
Using Theorem 0.B.1, we shall establish the following lemma.
There exist numbers , , and such that a random pair chosen from the distribution has the following two properties w.h.p.
Any assignment such that satisfies .
.
Let be a random -SAT instance. To each assignment we assign the set
Due to Lemma 22, a similar argument as in the proof of Theorem 2.1 in Section 0.A.9 yields Theorem 2.2. ∎
Let be small but fixed. Let be a random -SAT formula with clauses. Then for any we have
because of the independence of all clauses. Furthermore, if is a second assignment at Hamming distance from , then
Indeed, there is a function such that and
Let signify the number of assignments at Hamming distance from such that .
There is a number such that for sufficiently small we have
There are ways to choose an assignment at Hamming distance from . Therefore, due to the formulas derived above, we have
Setting and simplifying, we obtain the assertion. ∎
There are numbers and such that with probability at least in a pair chosen from the distribution there is no assignment such that such that and .
Furthermore, the following estimate has been established in .
Finally, Lemma 28 follows from Theorem 0.B.1 in combination with Corollary 5 and Lemma 30.
B.4 Proof of Theorem 2.4 (k𝑘k-SAT)
If is a -SAT formula and an assignment, then we say that a variable supports a clause if changing the value of would render unsatisfied. Suppose that is sufficiently large and . Let be sufficiently small numbers.
A pair chosen from has the following property w.h.p.
Let signify a sufficiently small constant. Let be chosen from the distribution . We may assume that the random pair satisfies (22). Moreover, a 1st moment computation shows that the random formula has the following property w.h.p.
Now, assume for contradiction that there is a satisfying assignment of such that the set has size . Each supports in at least clauses that contain no variable from . Since these clauses are satisfied in , although , each such contains another variable from . Hence, contains at least clauses containing at least two variables from , in contradiction to (23). ∎
Lemma 31 is an immediate consequence of Theorem 0.B.1 and the following lemma.
A pair chosen from has the property (22) with probability .
We may assume that for a fixed . Moreover, without loss of generality, we may assume that the assignment sets all variables to true. Let denote a random formlua with clauses satisfied by , and let signify the set of all uniquely satisfied clauses of . Consider the following process.
Let be the set of all variables that support fewer than clauses.
Let . While there is a variable that supports at least clauses from that contain a variable from , add to .
The expected number of uniquely satisfied clauses is at least . Hence, each variable is expected to support at least clauses. Therefore, if is sufficiently small, then there is a contant such that the probability that a variable supports fewer than clauses is at most . Hence, by Chernoff bounds we have with probability at least .
Thus, assume that . We claim that then the final set resulting from Step 2 has size at most . For assume that . Then Step 2 removed at least variables, whence there are at least clauses that contain two variables from . However, a standard 1st moment argument shows that the probability that there exists a set with this property is . Hence, with probability at least we have . Setting concludes the proof. ∎