CSE 525: Randomized Algorithms Spring 2026 Lecture 5: Lovasz Local Lemma Lecturer: Shayan Oveis Gharan 04/21/2026 Scribe:
Disclaimer: These notes have not been subjected to the usual scrutiny reserved for formal publications.
This lecture and the next are based on Alistair Sinclair’s course on randomized algorithms
Recall from earlier lectures that the probabilistic method provides a useful non-constructive strategy for proving the existence (or non-existence) of an object that satisfies some prescribed property. Generally, the argument involves selecting an object randomly from a specific set and demonstrating that it has the desired property with strictly positive probability. This in turn proves the existence of at least one such object. In most of the examples we have seen, the desired property holds not just with positive probability but actually with quite large probability, even with probability approaching as . This in turn often leads to an efficient randomized algorithm for constructing such an object: we just select an object at random and with high probability it has the desired property.
For some problems, it is natural to describe the selected object in terms of a set of ”bad” events , whose occurrences render the object undesirable, while the desired property is simply the avoidance of all these bad events in the set. In such scenarios, the existence of a non-trivial lower bound on
is of particular interest. One immediate approach is just to use the union bound. The union bound fails if the probability of each bad is way larger than . Of particular interest to us are the case that each occurs with a small constant probability.
Clearly, if all ”bad” events are independent, and if the probability of each of them satisfies , then the probability that none of the events occur is simply the product
| (5.1) |
which is strictly positive (provided only that the trivial condition holds).
Informally, the Lovász Local Lemma can be viewed as extending the above result to a more general setting, in which we allow limited dependencies among the events in question. In light of (5.1), the resulting probability that no bad event occurs will typically be exponentially small. Thus the Local Lemma tends to apply in situations where we are looking for a ”needle in a haystack,” so does not immediately lead to an efficient randomized algorithm. (However, see below and the next lecture for more recent developments on constructive versions of the Lemma.)
Definition 5.1.
An event is said to be mutually independent of a set of events if for any subset of events or their complements contained in , we have .
Lemma 5.2 (Lovász Local Lemma).
Let be a set of ”bad” events with such that each event is mutually independent of all but at most of the other ’s. If then
Often the Lovász Local Lemma is stated with the condition replaced by , which is slightly weaker for but asymptotically stronger. In fact, the constant above is asymptotically optimal.
5.1 Application 1: Satisfying Solutions to -SAT
Theorem 5.3.
Any instance of -SAT in which no variable appears in more than clauses is satisfiable.
As a quick example, the above claim implies that for , any formula in which no variable appears in more than 25 clauses is satisfiable. Note that there is no restriction at all on the total number of clauses!
Proof.
Suppose we have an arbitrary instance of -SAT consisting of clauses. Let’s pick a truth assignment to the variables of uniformly at random and let denote the event ”clause is not satisfied”. Noting that exactly one of the possible assignments fails to satisfy any particular clause, we have
Furthermore, we observe that each event is independent of all other events except those corresponding to clauses that share at least one variable with clause . Let denote the largest possible number of such clauses. Clearly, since each variable is assumed to appear in at most clauses, we have
The condition in the local lemma now becomes
Hence, the lemma implies that
Since the probability of picking an assignment that satisfies every clause in is non-zero, we can invoke the standard argument of the probabilistic method and infer the existence of a satisfying truth assignment. ∎
In the above proof, we claimed that each is independent of all for which clauses and do not share any variables. This is an instance of the following general principle that is frequently useful in applications of the Local Lemma:
Proposition 5.4 (Mutual Independence Principle).
Suppose that is an underlying sequence of independent variables, and suppose that each event is completely determined by some subset . If for , then is mutually independent of .
In our above application, the underlying independent events are the assignments to the variables.
5.2 Application 2: Min Congestion Routing with Dilation
Recall that in the last lecture we discussed the min congestion problem: We have terminal pairs, and let be the set of paths from to for all and . Furthermore, let be a feasible LP solution with fractional congestion 1 (everything we say will generalize for larger congestion, but here we choose 1 for simplicity of the arguments). So, for all .
We say the LP solution has dilation if
i.e., is the maximum length of all paths in the support of LP. We prove the following theorem:
Theorem 5.5 (Leighton-Rao-Srivisan [LRS98]).
Given a fractional solution with dilation , it is possible to round this to integral flow with congestion at most .
Note that , so the above theorem only improves over what we proved in that last lecture when . The proof uses Loväsz Local Lemma, so the rounding procedure was not algorithmic at the time that the paper was published but it can be made algorithmic using new developments.
We assume that the to simplify the argument, although it naturally extends to when .
Step 1: Discretization. It turns out that the analysis is simpler if is invariant over all paths with . To do that, we ”discretize” the LP solution, simply by choosing an -small enough and repeat every path many times. This can incur an extra loss of on the congestion of every edge which we ignore for simplicity. So, assume that for every path where . Furthermore, since the fractional congestion of every edge is , there are at most many paths going over an edge .
Step 2: Bad Events The crux of the proof is to define the right set of bad events. Let be the target congestion. Here the idea is as follows: For every edge , and every set of paths going through we add an event which occurs if all of the paths in are chosen. So, if none of the bad events happen the congestion of every edge is at most and we are done. Next, we upper bound the probability of a bad event. Fix a bad event , where ; We use the notation to denote the ’th path of the many paths connecting to in , and write to denote this path.
Now, notice if contains two paths of the same source/destination pair, then . So, we ignore these events from any further considerations. Otherwise, if all of the paths of come from distinct source/destination pair, we have
Step 3: Dependency Set Fix two bad event where paths in are from distinct source/destination pairs. Say and . Observe that if then are independent. So assume , say . For how many choices of and do we have a bad event? First, there are choices for . Fix such a choice. The path uses that many edges and each edge has at most paths going through it. Thus the number of bad events containing is at most
Since there are option for the common index between we have
So, to apply LLL we need
The latter holds as long .
5.3 Proof of the Lovász Local Lemma
First, we prove the following lemma which is the main ingredient of the proof:
Lemma 5.6.
For any subset , and any , such that we have
Proof.
We prove by induction on . The base case, , holds since For the inductive step we first partition into the two sets and , where is the ”dependency set” of , i.e., the set of at most indices such that is independent of all except for those in this set. Note that by definition . Then, by Bayes rule we may write
To bound the numerator we write,
So, it remains to lower bound the denominator. WLOG, perhaps after renaming, assume . We use the Bayes rule together with IH:
Putting this together with the bound on the numerator, we obtain that
as desired. ∎
To prove 5.2, we applying the above lemma repeatedly,
Note that the above proof is not algorithmic. After around 20 years of intense study Moser and Tardos manage to give an algorithmic proof of the lemma which we will discuss in the next lecture.
5.4 General Lovasz Local Lemma
In some settings it is useful to have a more flexible version of the Local Lemma, which allows large differences in the probabilities of the ”bad” events. We state this next.
Lemma 5.7 (General Lovász Local Lemma).
Let be a set of ”bad” events, and let denote the ”dependency set” of (i.e., is mutually independent of all events not in ). If there exists a set of real numbers such that
then
Exercise 5.8.
Corollary 5.9 (Asymmetric Lovász Local Lemma).
In the same scenario as in 5.7, if for all then
Proof.
The result follows easily by applying 5.7 with . ∎