Contents / Combinatorics / The Probabilistic Method
Chapter 8
The Probabilistic Method
Proving a structure exists by showing a random one works, sharpened by the moment methods, by deletion, and by the Lovász Local Lemma.
Introduction
Proving a structure exists by showing a random one works, sharpened by the moment methods, by deletion, and by the Lovász Local Lemma.
8.1The Basic Idea
A combinatorial existence proof normally builds the object: here is the colouring, here is the graph, check that it works. The probabilistic method builds nothing. It puts a probability distribution on a set of candidate objects and shows that the probability of landing on a good one is not zero. Something that happens with positive probability happens; therefore a good object is in the set. The method is due to Erdős, who used it in 1947 to bound the Ramsey numbers from below, and it is now one of the standard tools of combinatorics.
Definition 8.1 (Probability space of candidates). Let be a finite set of objects — all -colourings of the edges of , all tournaments on vertices, all subsets of — equipped with a probability measure . A property is a subset . An element of is called good, and the complementary event is the bad event.
Proposition 8.2 (The existence principle). If then : an object with the property exists.
Proof. . An event of probability is empty, so an event of positive probability contains at least one outcome, and every outcome in is a good object.∎
The proposition is trivial, and that is the point: all the work in a probabilistic argument is in choosing the distribution and estimating . Nothing else is ever proved.
Remark (The counting form). When is uniform on a finite , the principle reads: if fewer than objects are bad, a good one exists. Every probabilistic proof over a uniform space can be rewritten as a counting proof, and the early literature did exactly that. The probabilistic language is kept because it gives access to expectation, variance and independence — machinery a counting argument has to reinvent by hand each time.
The bad event is almost never estimated directly. It is written as a union of many small bad events — "this -set is monochromatic", "this clause is violated", "these two vertices collide" — and bounded by the union bound.
Lemma 8.3 (Union bound). For any events ,
Proof. Induction on . For there is nothing to prove. For the step, since ; apply this with and use the inductive hypothesis on .∎
No independence is needed, which is what makes the union bound so usable — and what makes it weak. It is tight only when the bad events are nearly disjoint, and it is hopeless as soon as exceeds , however the events are arranged. Repairing that weakness is the business of the rest of the chapter: the deletion method tolerates a few bad events and removes them afterwards, and the Local Lemma exploits the fact that bad events are usually only locally entangled.
The first application is still the best advertisement for the method.
Theorem 8.4 (Erdős' lower bound for Ramsey numbers). If then there is a red/blue colouring of the edges of with no monochromatic ; that is, . Consequently
Proof. Colour each of the edges of red or blue independently, each with probability ; all colourings are then equally likely. For a -set of vertices let be the event that the edges inside all receive the same colour. Those edges are coloured independently, so
For the numerical consequence take . Using and ,
Intuition. The bound says something surprising: a random colouring of a large complete graph is already about as good as any colouring anyone has ever constructed. No explicit colouring of avoiding monochromatic is known for anywhere near , yet the counting argument above shows that almost every colouring works. The method finds objects nobody knows how to describe.
Pitfall. The argument proves existence and nothing more. It does not say how to find a good colouring, and it does not say a good colouring is easy to recognise — checking that a given colouring of has no monochromatic takes inspections. "Positive probability" is also not "high probability": near the threshold the failure probability is close to , and the argument is still valid.
A second classical use of the same two lemmas concerns tournaments. A tournament is a complete graph in which every edge has been given a direction; write for " beats ". It has property if for every set of players some player beats all of them — so no group of players is collectively unbeatable.
Theorem 8.5 (Tournaments with property ). If then there is a tournament on vertices with property .
Proof. Orient each of the edges independently, each direction with probability . Fix a -set and let be the bad event that no vertex beats all of . For a vertex , the edges from to are oriented independently, so beats all of with probability . The corresponding events for distinct involve disjoint sets of edges and are therefore independent, so
Example 8.6 (Making the tournament bound explicit). For , find the smallest for which the hypothesis of Tournaments with property is satisfied.
Solution. With the quantity to be made smaller than is
Since and is decreasing from onwards — the ratio is below exactly when — the smallest that the theorem certifies is . Final answer: .
Sanity check: the exponential factor eventually beats the polynomial , so and the method must succeed for all large , as it does. □
Remark (Crude numbers, sharp asymptotics). The smallest tournament with property in fact has vertices — the quadratic-residue tournament on , in which when is a nonzero square — so the certificate is far from tight. This is typical: the method is asymptotically strong and numerically crude. Its value here is that already holds for of order , so property is achievable with exponentially many rather than astronomically many players, a statement no explicit construction gave at the time.
8.2First and Second Moments
The union bound is a statement about probabilities. The moment methods are statements about a random variable counting the bad things, and they are strictly more flexible: expectation ignores dependence entirely, and variance quantifies how far a count can stray from its mean. Almost every argument in the rest of the chapter is one of the two below.
Theorem 8.7 (Linearity of expectation). For random variables on a common probability space and constants ,
Proof. On a finite space, . Hence
Proposition 8.8 (The averaging principle). If is a random variable with expectation , then there is an outcome with and an outcome with .
Proof. If at every outcome then , a contradiction; symmetrically for the other direction.∎
Intuition. Linearity is the reason the probabilistic method is so cheap. To count the expected number of monochromatic triangles, or of edges inside a random vertex set, compute the probability for one of them and multiply by how many there are — even though those events overlap violently. No independence is used and no inclusion–exclusion correction is needed. The averaging principle then converts the number into an object: something at least as good as average exists.
A first illustration puts a random dilation rather than a random object at the centre of the argument. A set of integers is sum-free if it contains no solution of with in the set, where is allowed.
Theorem 8.9 (Large sum-free subsets). Every set of nonzero integers contains a sum-free subset of size greater than .
Proof. Choose a prime larger than ; there are infinitely many primes in this residue class, and any sufficiently large one will do. Inside the middle block
Finally is sum-free: if with all three in , then multiplying by and reducing mod produces three elements of with the first two summing to the third, contradicting the sum-freeness of .∎
Pitfall. The theorem is about the integers, but the proof works in ; the condition is what stops a relation from being created or destroyed by the reduction. Drop it and the proof collapses. Whenever a probabilistic argument moves a problem into a modular world, check that the transport is faithful in both directions.
Turning a count into a bound on a probability is Markov's inequality, and the combination is called the first moment method.
Theorem 8.10 (Markov's inequality and the first moment method). Let be a random variable and . Then
Proof. , the first inequality because and the second because on the event in question. Divide by . For the second statement take : , and for a non-negative integer variable is the complement of .∎
Remark (Why this subsumes the union bound). With , linearity gives and Markov at returns exactly the union bound. The gain is that carries more information than the single event : the same computation at says the bad count rarely exceeds twice its mean, which is what the deletion method will use.
Linearity plus one planarity fact yields a theorem of a different flavour — a lower bound on how badly a dense graph must cross itself when drawn. Write for the least number of edge crossings over all drawings of in the plane.
Lemma 8.11 (Euler bound for crossings). Every graph with vertices and edges satisfies .
Proof. Take a drawing with crossings and delete one edge from each crossing pair. What remains is a plane drawing of a graph with at least edges on vertices, and a simple planar graph with vertices has at most edges by Euler's formula. Hence .∎
Theorem 8.12 (Crossing number lemma). If then
Proof. Fix a drawing of with crossings and a number , and let be the subgraph induced by a random vertex set that keeps each vertex independently with probability . Write and for its numbers of vertices and edges, and for the number of crossings the fixed drawing induces on . A vertex survives with probability , an edge with probability , and a crossing — which involves four distinct vertices — with probability , so by linearity of expectation
Remark (The shape of the bound). The growth rate is best possible, and the proof is the standard example of probabilistic amplification: a weak linear bound, applied to a randomly sampled piece and averaged, becomes a strong cubic one. The constant is an artefact of the sampling probability and has since been improved to roughly .
The first moment shows a count is typically small. To show a count is typically large — in particular nonzero — the mean alone is not enough, since a variable can have an enormous mean and still vanish almost always. Variance closes the gap.
Theorem 8.13 (Chebyshev's inequality). For a random variable with mean and finite variance, and any ,
Proof. Apply Markov's inequality to the non-negative variable at : , and the event is exactly .∎
Corollary 8.14 (The second moment method). If satisfies and along a sequence of probability spaces, then .
Proof. Take in Chebyshev's inequality. The event implies , so
Pitfall. A large mean is no evidence of existence on its own. If is with probability and otherwise, then while almost surely. This is exactly the situation in a random graph just below a threshold: the expected number of copies of a fixed subgraph can tend to infinity while the graph contains none with probability tending to , because a few outcomes carry an enormous count. Only a variance bound rules that out.
Example 8.15 (The threshold for a triangle in a random graph). In — the graph on in which each of the possible edges appears independently with probability — let be the number of triangles. Show that if with , then contains a triangle with probability tending to .
Solution. Write , summed over the triples , where is the event that all three edges inside are present.
The mean, by linearity. Each , so
The variance. Expand over ordered pairs. A pair sharing at most one vertex contributes , since then and involve disjoint edge sets and are independent. The diagonal pairs contribute at most each, and the at most ordered pairs sharing exactly two vertices contribute at most each, the two triangles using five distinct edges. Hence
The ratio. With ,
Sanity check: at with constant the same computation gives , a constant, and is then asymptotically Poisson with . The divergence is exactly what the conclusion needs. □
8.3The Deletion Method
When exceeds the union bound says nothing, and simply choosing a smaller random object often gives away too much. The deletion method — also called the alteration method — takes the third road: accept an outcome with a few bad substructures, then destroy them by hand and show that what survives is still large enough to be interesting.
Method 8.16 (Deletion).
- Sample a random object and let count the bad substructures in it.
- Compute by linearity of expectation; no independence is required.
- By the averaging principle, fix an outcome with at most bad substructures — or, using Markov's inequality, one that is simultaneously good in a second respect.
- Delete one element per bad substructure, destroying all of them.
- Bound the damage: the object that survives is smaller by at most , and must still have the property being claimed.
Intuition. The union bound insists that nothing goes wrong. Deletion only insists that not too much goes wrong, and then repairs the damage. The exchange rate is what decides whether it works: one deletion must cost only a bounded amount of the quantity being maximised, and the expected number of deletions must be small compared with the size of the object. When the expected number of bad things is, say, half the number of vertices, one can still throw a vertex at each of them and keep half the graph.
The simplest instance trades vertices for edges and gives a bound on the independence number , the size of the largest set of pairwise non-adjacent vertices.
Theorem 8.17 (Independent sets in a sparse graph). Let have vertices and edges. Then
Proof. Fix and let keep each vertex of independently with probability . Let and let be the number of edges with both endpoints in . A vertex survives with probability and an edge with probability , so by linearity of expectation and .
Delete one endpoint of each of the surviving edges. What remains is an independent set of size at least , so
Remark (Reading the bound). For a -regular graph, and the theorem gives . That is the right order: a greedy colouring uses at most colours, so the largest colour class — an independent set — has size at least . The probabilistic proof loses only a factor of and needs no regularity at all.
Applied to the Ramsey colouring, deletion improves Erdős' bound by a factor of order , at the cost of nothing but bookkeeping.
Theorem 8.18 (Ramsey lower bound by deletion). For every and ,
Proof. Colour the edges of red or blue independently and uniformly, and let be the number of monochromatic -sets. As computed in the proof of Erdős' lower bound for Ramsey numbers, each -set is monochromatic with probability , so linearity gives . Fix a colouring with and delete one vertex from each monochromatic -set. No monochromatic -set survives, since each has lost a vertex, and at least vertices remain. Restricting the colouring to those vertices gives a colouring of a complete graph on vertices with no monochromatic , which proves the displayed inequality.
For the asymptotic statement take . Using and ,
Pitfall. Deletion is only free when the deleted elements are cheap. Here one vertex kills a whole monochromatic -set, so deletions suffice; if instead each bad substructure had required removing half the graph, the same expectation would have proved nothing. Before reaching for the method, ask what one deletion costs and compare it with .
The deepest classical application settles a question that looks purely local against a question that is purely global. A graph of large girth — the length of its shortest cycle — has no short cycles at all, so every small neighbourhood in it is a tree and can be -coloured. One might expect such a locally tree-like graph to be colourable with few colours. Erdős showed the opposite.
Theorem 8.19 (Graphs of high girth and high chromatic number). For every pair of integers there is a graph with girth greater than and chromatic number greater than .
Proof. Fix with and take with , where is large.
Few short cycles. Let be the number of cycles of length at most . A cycle of length is determined by an ordered choice of distinct vertices up to rotations and reflections, and it appears with probability , so
No large independent set. Put . A fixed set of vertices is independent with probability , so by the union bound and ,
Combine and delete. For large both failure probabilities are below , so some graph has fewer than short cycles and . Delete one vertex from each cycle of length at most . The resulting graph has more than vertices, girth greater than , and — deleting vertices cannot create a larger independent set. Since every colour class of a proper colouring is independent,
Intuition. The proof works because the two demands pull on different scales. Short cycles are local: at the expected number of them is a vanishing fraction of , so they can be removed one vertex at a time. Large independent sets are global: a random graph of that density has none, because an independent set of size asks separate coin flips all to come up the same way. Nothing links the two, which is precisely why the sparse, locally tree-like graph can still refuse to be coloured with few colours — the obstruction to colouring is spread over the whole graph rather than sitting in any small piece of it.
Example 8.20 (Sizing the construction). Take and in the proof above. Estimate the exponent of in the bound on , and state the growth rate of the chromatic number obtained.
Solution. The bound on the expected number of short cycles is with and , that is . Since this is indeed , as the proof requires.
The chromatic number obtained is . Final answer: the expected number of short cycles is and .
Sanity check: satisfies , so the hypothesis holds with room to spare; pushing up towards would give a faster-growing chromatic number but leave less slack in the estimate. □
8.4Why a Local Lemma Is Needed
Everything so far has bounded the probability that some bad event occurs by adding up the individual probabilities. That sum is a global quantity: it grows with the number of bad events and takes no account of how they are arranged. Yet the arrangement is obviously relevant, and this section is about the gap between the two extreme ways of exploiting it. The Local Lemma, stated and proved in the two sections that follow, lives in that gap.
Start with the extreme case in which the arrangement is as favourable as it could possibly be.
Proposition 8.21 (Independent bad events are never a problem). If are mutually independent and for every , then
Proof. Mutual independence of the passes to their complements, so the probability of the intersection is the product of the probabilities. Each factor is strictly positive by hypothesis, and a finite product of positive numbers is positive.∎
Read that carefully, because it is the whole motivation. The number of events does not appear. A million bad events, each of probability , still leave a positive — astronomically small, but positive — probability that none of them occurs, and positive is all an existence proof needs. Under independence the union bound is not merely weak, it is irrelevant.
Intuition. The union bound and the independent case answer different questions. The union bound asks: how much probability mass could the bad events cover between them? If they are disjoint, the mass adds up, and once the total passes the question is closed. Independence instead makes the events interlock rather than pile up: avoiding tells you nothing about , so the chances of avoiding everything multiply, and a product of positive numbers can never reach zero in finitely many steps. The union bound counts; independence multiplies.
So why not simply use the proposition? Because its hypothesis essentially never holds. In a real application the bad events are built from a shared pool of random choices, and any two events reading the same choice are dependent.
Example 8.22 (A satisfiability problem the union bound cannot reach). A -CNF formula is a conjunction of clauses, each a disjunction of exactly literals over distinct variables. Set every variable to true or false independently and uniformly, and let be the event that clause is violated. Compare what the union bound can prove with what the structure of the formula suggests.
Solution. A clause is violated only when all of its literals are false, and since its variables are distinct and set independently,
That threshold is unsatisfying. Take and a formula with clauses in which the variables are spread out so widely that each clause shares a variable with only three others. Then , hopelessly larger than , so the union bound proves nothing — even though every individual clause is nearly always satisfied and the interactions between clauses are almost nonexistent. Only clauses sharing a variable can conspire; the other clauses are mutually independent of any given one and, by Independent bad events are never a problem, would cause no difficulty at all on their own.
Sanity check: the union bound's verdict depends only on and , so it returns the same answer for this formula as for one in which all clauses share the same variables — a formula that genuinely can be unsatisfiable. A bound that cannot tell those two apart must be discarding the very thing that distinguishes them. □
The example isolates what a better tool must do: measure dependence locally. The vocabulary for that is a graph on the events.
Definition 8.23 (Mutual independence and the dependency graph). An event is mutually independent of a family of events if for every subfamily and every choice of each or its complement, the probability of the intersection with factors as times the probability of that intersection.
A graph on the vertex set is a dependency graph for the events if each is mutually independent of the family . The dependency degree is the maximum degree of .
Remark (How a dependency graph is found in practice). One almost never verifies the definition directly. Instead the probability space is built from independent random variables — one per edge, per vertex, per variable — and each bad event is determined by a set of them. Joining and whenever then gives a dependency graph, because an event depending on one block of independent variables is mutually independent of any family of events depending only on a disjoint block. In the -CNF example is the set of variables of clause , and the dependency degree is the largest number of other clauses any one clause meets.
Pitfall. Mutual independence is much stronger than pairwise independence, and the Local Lemma needs the strong form. Let be independent fair coin flips and let . Any two of are independent, yet the three together are not: knowing two of them determines the third. A "dependency graph" drawn from pairwise correlations alone would show no edges here and would be wrong. The definition quantifies over all subfamilies for exactly this reason.
With that vocabulary the situation can be stated precisely. The union bound needs and ignores the dependency graph entirely; Independent bad events are never a problem needs the dependency graph to have no edges at all and then ignores the probabilities. Neither hypothesis is satisfied by the -CNF example above, in which there are far too many clauses for the first and a nonempty — though very sparse — dependency graph for the second.
What Lovász and Erdős found in 1975 is that a sparse dependency graph is almost as good as an empty one. If every bad event is unlikely and every bad event has few neighbours, then the number of events may be arbitrary and the conclusion of the independent case survives: with positive probability none of them occurs. The trade-off is a single inequality relating the probability and the dependency degree , and the surprise is that the number of events is absent from it. The next section states that inequality and the general form behind it; the one after proves them.
Intuition. Think of the events as a contagion. The union bound treats the whole population as one room: once enough people are infectious, someone is certainly infected. The Local Lemma treats them as a sparse network: each person is unlikely to be infected and can only infect a few neighbours, so the infection cannot build up, however large the population. The proof will make this precise by controlling the probability of one more bad event conditioned on all its neighbours having been avoided — the exact quantity a contagion argument needs.
8.5The Local Lemma
The Local Lemma comes in two forms. The general form is the one that gets proved; the symmetric form is the one that gets used, and it follows from the general one by a single choice of parameters.
Theorem 8.24 (Lovász Local Lemma, general form). Let be events with dependency graph , and write for the set of neighbours of in . Suppose there are real numbers such that
Theorem 8.25 (Lovász Local Lemma, symmetric form). Let be events such that for every and each is mutually independent of all but at most of the others. If
Three features of the symmetric statement deserve to be said out loud, because each is what makes an application possible.
First, the number of events is absent. The hypothesis constrains and only; may be or . This is the inheritance from Independent bad events are never a problem, and it is exactly what the union bound could not offer.
Second, the conclusion is only positivity. The general form gives the explicit lower bound , which in the symmetric case is — a quantity that decays exponentially in . The Local Lemma therefore proves existence and never "with high probability"; a random sample is overwhelmingly unlikely to be good, and finding a good one is a separate problem taken up in the applications.
Third, the constant is not decorative. It enters when the general form is specialised, and the bound is known to be close to optimal: there are families of events with and no good outcome, so the lemma cannot be improved beyond a constant factor.
The general form looks harder to use, since it asks for a whole vector , but that freedom is the point: when the bad events come in several kinds with wildly different probabilities and degrees, one sets separately for each kind. The symmetric form corresponds to the single flat choice .
Example 8.27 (The largest degree the symmetric lemma can tolerate). Given a per-event probability , what is the largest integer dependency degree for which the symmetric Local Lemma applies?
Solution. Solve the hypothesis for . From ,
Verify : .
Verify fails: , just above the threshold. Final answer: .
Sanity check: is the probability that a -uniform hyperedge is monochromatic under a random -colouring, since . So for -uniform hypergraphs the symmetric lemma certifies a proper -colouring only when each edge meets at most one other — a very weak conclusion, and a signal that is simply too small for this tool. □
Pitfall. The case needs a moment's care. The general form requires , and the symmetric choice equals when , which is not allowed. Nothing is lost: means the events are mutually independent, and Independent bad events are never a problem already handles them, needing only rather than . In every application below .
Pitfall. The hypothesis is about the dependency degree, not the number of events an outcome can break. A single shared variable is enough to make two events neighbours, however slight the resulting correlation — the definition of mutual independence quantifies over all conditionings, so "almost independent" does not qualify. Conversely, adding extra edges to a dependency graph is always legitimate; a graph with too many edges is still a dependency graph, and only makes , and so the hypothesis, worse.
Remark (The lopsided and constructive refinements). Two strengthenings are worth knowing by name. The lopsided Local Lemma replaces mutual independence by the one-sided condition for sets avoiding ; the proof below goes through with almost no change and the weaker hypothesis is what permutation arguments need. The constructive Local Lemma of Moser and Tardos supplies an algorithm, and is described in the applications section.
Intuition. Applying the lemma is a two-column calculation and nothing more. In the left column put the probability of a single bad event, computed as if it were alone in the world. In the right column put the number of other bad events that share a random choice with it. Then multiply: . Almost all of the skill lies in choosing the bad events so that both columns stay small — splitting a bad event into finer ones lowers but usually raises , and the art is in balancing them.
8.6Proof of the Local Lemma
The proof is short, entirely elementary, and worth following line by line: it is the only place in the chapter where conditioning does real work. The whole difficulty is that the quantity one wants to control, , cannot be estimated directly. What can be estimated is a conditional version of it, and that stronger statement is what carries the induction.
Lemma 8.28 (Conditional bound). Under the hypotheses of the Lovász Local Lemma, general form, for every index and every set with for which ,
Proof. Induction on .
Base case . The conditioning is vacuous, and the hypothesis gives
Inductive step. Let and assume the claim for all smaller conditioning sets. Split into the part that touches in the dependency graph and the part that does not:
If then is mutually independent of , hence of the event , and
The numerator. Since and is mutually independent of the events indexed by ,
The denominator. Write with and expand by the chain rule:
Conclusion. Dividing the two bounds, the products over cancel:
Intuition. The induction has to be set up in the conditional form because the naive statement — "the probability that no bad event occurs is positive" — gives nothing to induct on. Conditioning on having avoided some of the bad events is bad news for the remaining ones: it biases the random choices in directions that make a neighbour more likely. The lemma says the bias is bounded, and the mechanism is visible in the two estimates above. The neighbours can hurt, and their damage is exactly the factor in the denominator; the non-neighbours cannot hurt at all, since is mutually independent of them. The hypothesis of the lemma is precisely the statement that was small enough to absorb the worst that the neighbours can do.
With the conditional bound in hand the theorem is two lines.
Proof. Proof of the Lovász Local Lemma, general form. Apply the chain rule to the whole intersection:
The symmetric form is now a matter of choosing the and estimating one power.
Proof. Proof of the Lovász Local Lemma, symmetric form. If the events are mutually independent and , so Independent bad events are never a problem applies directly. Assume and put
Example 8.29 (Checking the estimate). Verify the inequality used above in the case , and compare the two sides.
Solution. Take , so .
The left side: .
The right side: .
Indeed , so the estimate holds with room to spare. Final answer: the left side is , the right side is .
Sanity check: the gap is the factor , which is exactly the amount by which exceeds at . As grows this factor decreases towards , so the symmetric form becomes tight in the limit — which is why the constant , and not something smaller, appears in the statement. □
Pitfall. The induction is on the size of the conditioning set , not on the number of events or on anything resembling the structure of the dependency graph. That is what lets the same proof cover dependency graphs with cycles: nothing in the argument requires to be a tree or even connected. Attempting an induction "on the events one at a time" instead fails, because removing an event from consideration does not restore independence to the rest.
8.7Applications of the Local Lemma
Every application below follows the same script: name the random choices, name the bad events, compute , bound , and check . What differs is only how the bad events are chosen.
The cleanest case is satisfiability, where the bad events are given by the problem itself.
Theorem 8.30 (Satisfiability of sparse -CNF formulas). Let be a -CNF formula in which every clause shares a variable with at most other clauses. If
Proof. Assign each variable true or false independently and uniformly, and let be the event that clause is violated. As computed in A satisfiability problem the union bound cannot reach, , since the literals of a clause use distinct variables. Each is determined by the variables of clause , so by the canonical construction of a dependency graph it is mutually independent of all events whose clauses avoid those variables; the dependency degree is therefore at most . The hypothesis rearranges to , so the Lovász Local Lemma, symmetric form gives positive probability that no clause is violated. Any outcome in that event is a satisfying assignment.∎
Remark (How strong is this?). For the theorem tolerates up to , with no constraint whatsoever on the number of clauses. The union bound, by contrast, capped the formula at clauses in total. The correct asymptotic threshold for this problem is , so the Local Lemma is off by only a factor of order — and the matching upper bound construction shows no argument of this form can do much better.
The same three lines colour a hypergraph. A -uniform hypergraph has property B if its vertices can be -coloured with no edge monochromatic.
Theorem 8.31 (Property B for sparse hypergraphs). Let be a -uniform hypergraph in which every edge meets at most other edges. If
Proof. Colour each vertex red or blue independently and uniformly. For an edge let be the event that all of its vertices receive the same colour; then . The event depends only on the colours of the vertices of , so it is mutually independent of all with , and the dependency degree is at most . The hypothesis is exactly , so the symmetric lemma applies and a proper -colouring exists.
For the second statement, each of the vertices of lies in at most further edges, so meets at most others and . Substituting into the first condition gives the stated form.∎
Intuition. Notice what the two theorems have in common: the individual bad event is exponentially unlikely in , while the dependency degree grows only polynomially in the local structure. That mismatch — exponentially small against a merely large — is the situation the Local Lemma was built for, and it is why -uniform problems are its natural home. Whenever the parameter that controls is in the exponent and the one that controls is not, the lemma will succeed for all large .
The lemma also improves the Ramsey bound again, by a further factor of over the deletion argument.
Theorem 8.32 (Ramsey lower bound by the Local Lemma).
Proof. Fix and set . Colour the edges of independently and uniformly, and for each -set let be the event that is monochromatic, so .
The dependency degree. is determined by the edges inside , so it is mutually independent of all with , those sharing no edge with . The number of -sets with is at most , so
The check. Using and ,
Conclusion. The symmetric lemma gives, for all large , a colouring of with no monochromatic , so . Letting increase to gives the stated asymptotic bound.∎
Remark (Three bounds, one colouring). The same random colouring has now been analysed three times, and each refinement bought a factor. The union bound gave ; deletion gave , a factor of order better because the few monochromatic sets could be removed; and the Local Lemma gave , a further factor of , because two -sets sharing at most one vertex do not interact at all. All three are still within a factor of one another, and the constant has not been improved since 1975 — the true order of remains one of the outstanding problems of combinatorics.
Example 8.33 (List colouring with lists of size ). A graph has maximum degree , and every vertex carries a list of allowed colours. Show that a proper colouring respecting the lists exists whenever .
Solution. The random choices. Colour each vertex independently with a uniformly random colour from its own list.
The bad events and . For each edge let be the event that and receive the same colour. Condition on the colour of : at most one colour of matches it, and picks uniformly from colours, so
The dependency degree. is determined by the choices at and , so it is mutually independent of all events on edges disjoint from . Each of and meets at most further edges, so and .
The check. exactly when . The symmetric lemma then gives positive probability that no edge is monochromatic, that is, a proper list colouring. Final answer: lists of size suffice, so the choice number satisfies .
Sanity check: for a single edge, and the formula asks for , whereas lists of size obviously suffice. The bound is loose by a constant factor on small graphs, as expected — its content is the linear dependence on . □
Every result in this section is an existence statement, and a random sample is essentially never good: the lemma's own lower bound decays exponentially in the number of bad events. For thirty years that gap between existence and construction was genuine. It was closed in 2009.
Method 8.34 (Moser–Tardos resampling). Suppose each bad event is determined by a subset of independent random variables.
- Sample every variable.
- While some bad event currently holds, pick one such and resample every variable in , leaving all other variables untouched.
- Stop when no bad event holds, and output the current assignment.
Under the hypothesis of the general Local Lemma the algorithm terminates with probability , and the expected number of resamplings of is at most — a total of steps in the symmetric case with .
Intuition. The striking feature of the algorithm is that it is the obvious one: repair whatever is currently broken, and pay no attention to what that might break elsewhere. The analysis, which is beyond our scope here, works by charging every resampling to a witness tree recording its causal history, and showing that a tree of size occurs with probability at most , so that large trees are too rare to appear. Everything the Local Lemma assumes about local sparsity is what keeps those trees from proliferating.
Pitfall. The resampling algorithm needs the probability space to be presented as independent variables with each bad event determined by a block of them. The abstract Local Lemma assumes only mutual independence, which is weaker, and there are spaces satisfying the abstract hypothesis where no such variable presentation exists. Applications stated in the abstract form therefore do not automatically become algorithmic.
- Expecting a construction. The method proves an object exists. Turning that into an algorithm is separate work — the method of conditional expectations and pessimistic estimators for union-bound arguments, Moser–Tardos resampling for the Local Lemma.
- Confusing "positive probability" with "high probability". Existence needs only , and the Local Lemma typically delivers a probability exponentially close to . A statement about a *typical* random object needs a concentration argument instead.
- Treating a large expectation as evidence of existence. is consistent with . Only a variance bound, via *The second moment method*, rules that out.
- Deleting without costing the deletion. Deletion works only when one removed element destroys a whole bad substructure and the expected number of removals is small compared with the size of the object.
- Mistaking pairwise independence for mutual independence. The Local Lemma needs mutual independence from the non-neighbours; three pairwise independent events need not be mutually independent, and a dependency graph drawn from correlations alone can be wrong.
- **Forgetting the or the . ** The condition is , not or . Borderline cases are common, and at the symmetric form must be replaced by the independent case.
- Using the symmetric form when the events are of different kinds. If the bad events split into families with very different probabilities and degrees, the general form with a separate per family is usually the only one that works.
- Leaving the probability space undescribed. The random experiment, the bad events, and the reason two events are neighbours all have to be written down. Most incorrect applications of the method are incorrect at exactly that step.