The Moser–Tardos algorithmic local lemma #
Let finitely many mutually independent random variables σ v ∼ μ v be given, and finitely many
events A i, each determined by the variables in a finite set vbl i. The Moser–Tardos algorithm
[MT10] starts from a random assignment and, while some event occurs, picks one such
event and resamples its variables. The randomness is the table table μ: independent samples
T (v, n) ∼ μ v, where T (v, n) is the value of v after its n-th resampling. The paper calls
these the sample lists P_v^(n).
A selection rule sel T w names the event to resample after the log w (latest first), or
returns none to stop. run sel T n is the log after n steps and resamplings sel i T the
total number of resamplings of A i (possibly ∞). A rule is valid when it only selects events
that occur in the current assignment. The paper allows any rule, deterministic or randomized. A
rule here may depend on the whole table, future samples included. So the bounds below hold for
every valid rule, and a randomized rule's own coins can be averaged over afterwards.
Main definitions #
Cslib.Probability.MoserTardos.table: the resampling table,Measure.infinitePi.Cslib.Probability.MoserTardos.run,Cslib.Probability.MoserTardos.resamplings: the log of the algorithm under a selection rule and the number of resamplings of each event.Cslib.Probability.MoserTardos.greedy: a rule resampling some occurring event, if any.
Main results #
Assume x i ∈ [0, 1) and Pr[A i] ≤ x i ∏ j ∈ Γ i, (1 - x j) for every i, where Γ i contains
every other event sharing a variable with A i (the hypothesis of the asymmetric local lemma).
Cslib.Probability.MoserTardos.measure_check_eq_prod: a proper witness structure passes its check with probability∏ p ∈ S, Pr[A p.1][MoserTardos2010, Lemma 2.1].Cslib.Probability.MoserTardos.table_witness_le: the probability that a fixed structure occurs as the witness structure of a step of a valid log is at most∏ p ∈ S, Pr[A p.1][MoserTardos2010, Lemma 2.1(ii)].Cslib.Probability.MoserTardos.lintegral_resamplings_le: Theorem 1.2 of [MT10]. For every valid rule, the expected number of resamplings ofA iis at mostx i / (1 - x i).lintegral_sum_resamplings_lesums this over the events, andlintegral_iSup_count_lestates it for all valid logs at once.Cslib.Probability.MoserTardos.exists_measurable_ge_resamplings: one measurable function with the same bound dominates the count under every valid rule, so the bound also holds for the outer expectation.Cslib.Probability.MoserTardos.ae_exists_run_eq_none: almost surely the algorithm stops after finitely many steps, for every valid rule. The step it rests on,Cslib.Probability.MoserTardos.ae_exists_forall_isLog_length_le_of_bound, says that almost surely the valid logs on the table have bounded length; the parallel algorithm uses it too.Cslib.Probability.MoserTardos.ae_exists_forall_notMem_run: almost surely a valid rule that stops only when no event occurs reaches an assignment avoiding every event;ae_exists_forall_notMem_run_greedyis the case of the greedy rule.Cslib.Probability.MoserTardos.exists_forall_notMem: consequently some assignment avoids every event. This is the variable version of the existential local lemma (compareCslib.Probability.PMF.prod_one_sub_le_pi_iInter_compl).
Implementation notes #
A rule may be any function of the table and the log, measurable or not. For such a rule the
expectation ∫⁻ in lintegral_resamplings_le is the lower Lebesgue integral. The proof shows
more: the count is dominated, for every valid rule at once, by the measurable rule-independent
function T ↦ ⨆ (w valid on T), w.count i (resamplings_le_iSup_count,
measurable_iSup_count). The integral of that function is at most x i / (1 - x i), so the bound
holds for the outer expectation too (exists_measurable_ge_resamplings). To bound this
function, the proof dominates the number of steps labelled i of a valid log by the number of
proper structures in shapes vbl i H whose checks pass
(Cslib.Probability.MoserTardos.exists_witnesses). That number is measurable, and its
expectation is at most x i / (1 - x i) by Lemma 2.1 and the counting bound
Cslib.Probability.MoserTardos.sum_prod_shapes_le.
References #
- [R. A. Moser, G. Tardos, A constructive proof of the general Lovász Local Lemma] [MT10]
The resampling table: mutually independent samples T (v, n) ∼ μ v for every variable v
and every n : ℕ.
Instances For
Reading one sample of every variable from the table gives the product distribution.
The witness-structure lemma [MoserTardos2010, Lemma 2.1(ii)]: a proper structure passes
its check with probability exactly ∏ p ∈ S, Pr[A p.1]. With the coupling check_witness, this
bounds the probability that the structure occurs in the log, as in the paper.
Lemma 2.1(ii) of [MT10]: the probability that a fixed structure S occurs as
the witness structure of a step of some valid log on the table is at most
∏ p ∈ S, Pr[A p.1]. The event is measured by the outer measure, so no measurability is
needed.
Generalized Moser–Tardos expectation bound for all valid logs at once, over any reflexive
dependency relation R and any measurable witness-structure check Pass bounded in probability
by ∏ p ∈ S, Pr[A p.1]. Both Theorem 1.2 and Lopsided Theorem 6.1 specialize this lemma.
Moser–Tardos, for all valid logs at once [MoserTardos2010, Theorem 1.2]. Under the
local-lemma hypothesis, the expected supremum, over all valid logs w on the table, of the number
of resamplings of A i in w is at most x i / (1 - x i).
The log (latest first) of the Moser–Tardos algorithm after n steps on the table T, under
the selection rule sel. At each step sel T w names the event to resample after the log w, or
returns none, after which the log stays fixed.
Under a valid selection rule, which only selects occurring events, every prefix of the run is a valid log.
The number of resamplings of A i performed by the algorithm on the table T under the rule
sel (possibly ∞).
Under a valid selection rule, the number of resamplings of A i is at most the largest number
of steps labelled i in a valid log on the table, a bound that does not depend on the rule.
Valid logs form a measurable set of tables.
The largest number of steps labelled i in a valid log is a measurable function of the
table.
The length of a valid log is at most the sum over the events of the largest number of steps labelled with that event in a valid log on the same table.
Generic deduction from an upper bound on ⨆ (w valid), w.count i to the expected
resampling count of A i under any valid rule.
Generic deduction from an expectation bound on ⨆ (w valid), w.count i to a measurable
rule-independent dominating function.
Generic deduction from per-event expected supremum bounds to a bound on the integral of the
measurable majorant ∑ i, ⨆ (w valid), w.count i. Pointwise bounds by this sum, such as
resamplings_le_iSup_count for a sequential run and length_le_sum_iSup_count for any valid log,
turn into expectation bounds through it.
Generic deduction from per-event expected supremum bounds to the expected total number of resamplings.
Generic deduction from finite per-event expected supremum bounds: almost surely the valid logs on the table have bounded length. Any procedure whose logs are valid and grow at every step, sequential or parallel, therefore stops almost surely.
Generic deduction from finite per-event expected supremum bounds to almost sure termination for every valid rule.
Generic deduction from finite per-event expected supremum bounds to almost sure success for every valid rule that stops only when no event occurs.
Generic deduction from finite per-event expected supremum bounds to almost sure success of the greedy rule.
Generic deduction from finite per-event expected supremum bounds to existence of a good assignment.
The Moser–Tardos theorem [MoserTardos2010, Theorem 1.2]. Let x i ∈ [0, 1) with
Pr[A i] ≤ x i ∏ j ∈ Γ i, (1 - x j), where Γ i contains every other event sharing a variable
with A i. Then for every selection rule that only resamples occurring events, the expected
number of resamplings of A i is at most x i / (1 - x i).
The rule is not assumed measurable, so ∫⁻ is the lower Lebesgue integral. The upper bound is
nevertheless the full statement: exists_measurable_ge_resamplings dominates the count, for every
valid rule, by one measurable function with the same bound.
Theorem 1.2 for the outer expectation [MT10]. Under the local-lemma hypothesis
there is a measurable function g of the table, with ∫⁻ g ≤ x i / (1 - x i), that bounds the
number of resamplings of A i under every valid selection rule. So the bound holds for the upper
(outer) expectation of the count as well, whether or not the rule is measurable.
The expected total number of resamplings [MoserTardos2010, Theorem 1.2]: at most
∑ i, x i / (1 - x i), for every valid selection rule.
Termination [MoserTardos2010, Theorem 1.2]: under the local-lemma hypothesis, for every
valid selection rule, almost surely the rule stops (returns none) after finitely many steps.
The algorithm finds a good assignment [MoserTardos2010, Theorem 1.2]: under the local-lemma hypothesis, for every valid selection rule that stops only when no event occurs, almost surely the run reaches, after finitely many resamplings, an assignment in which no event occurs.
The greedy run finds a good assignment [MoserTardos2010, Theorem 1.2]: under the local-lemma hypothesis, almost surely the greedy run reaches, after finitely many resamplings, an assignment in which no event occurs.
The variable local lemma, constructively [MoserTardos2010, Theorem 1.2]: under the local-lemma hypothesis some assignment avoids every event.