Parallel Moser–Tardos algorithm #
This module formalizes the parallel resampling algorithm for the variable-model Lovász Local Lemma ([MoserTardos2010, Algorithm 1.2, Section 4, Theorem 1.3]).
In each parallel round, an admissible selection rule psel inspects the current assignment
current vbl T w and selects a maximal independent set of occurring bad events:
- every selected event occurs at
current vbl T w(IsValidParallelRule.mem); - selected events are pairwise non-adjacent (
¬Adj vbl i j), i.e., distinct and defined on disjoint variable sets (IsValidParallelRule.pairwise); - every occurring event shares at least one variable with (or equals) some selected event
(
IsValidParallelRule.max).
In particular, psel T w = [] holds if and only if no bad event occurs at current vbl T w.
Resampling all events in the chosen batch in sequence appends them onto the cumulative log w
(parallelRun), preserving IsLog. Any event resampled in round k yields a witness structure
of depth k and size at least k + 1 ([MoserTardos2010, Lemma 4.1]). Summing the resulting
tail bounds Pr[parallelRounds ≥ k + 1] ≤ min 1 ((1 - ε)^(k+1) * ∑ i, x i / (1 - x i)) yields
the logarithmic expected round bound ((max 0 (Real.log M) + 1) / ε) of Theorem 1.3.
Termination needs no slack. Every prefix of the parallel run is a valid log, so the bound of
Theorem 1.2 for all valid logs (lintegral_iSup_count_le) applies to it. Under the plain
hypothesis Pr[A i] ≤ x i * ∏ j ∈ Γ i, (1 - x j), almost surely every admissible rule reaches an
empty batch, and the whole run performs at most ∑ i, x i / (1 - x i) resamplings in
expectation. The slack ε is needed only for the round bound.
Main definitions #
Cslib.Probability.MoserTardos.IsValidParallelRule: admissibility predicate for a parallel selection rule choosing a maximal independent set of occurring events.Cslib.Probability.MoserTardos.parallelRun: the cumulative log afternparallel rounds.Cslib.Probability.MoserTardos.parallelRounds: the number of non-empty parallel rounds (ℝ≥0∞, equal to⊤if no terminating round is reached).Cslib.Probability.MoserTardos.greedyIndependentSubset,Cslib.Probability.MoserTardos.greedyParallelList,Cslib.Probability.MoserTardos.greedyParallel: greedy maximal independent set selection rules.
Main results #
Cslib.Probability.MoserTardos.isLog_parallelRun: parallel execution produces a valid log.Cslib.Probability.MoserTardos.parallel_witness_depth: [MoserTardos2010, Lemma 4.1] (witness structure of depthkand cardinality at leastk + 1for every event resampled in roundk).Cslib.Probability.MoserTardos.table_succ_le_parallelRounds_leandCslib.Probability.MoserTardos.lintegral_parallelRounds_le: [MoserTardos2010, Theorem 1.3] tail and expected round bounds underPr[A i] ≤ (1 - ε) * x i * ∏ j ∈ Γ i, (1 - x j).Cslib.Probability.MoserTardos.ae_exists_parallelRun_eq_nil,Cslib.Probability.MoserTardos.ae_exists_forall_notMem_parallelRun: almost sure termination at an assignment avoiding every event, underPr[A i] ≤ x i * ∏ j ∈ Γ i, (1 - x j)with no slack;ae_exists_parallelRun_eq_nil_of_boundis the generic form andae_exists_forall_notMem_parallelRun_symmetricthe symmetric casee * q * (d + 1) ≤ 1.Cslib.Probability.MoserTardos.lintegral_iSup_length_parallelRun_le: the expected total number of resamplings of the parallel run is at most∑ i, x i / (1 - x i), with no slack, as a consequence oflintegral_iSup_count_lethrough a measurable majorant.Cslib.Probability.MoserTardos.lintegral_parallelRounds_le_symmetric,Cslib.Probability.MoserTardos.lintegral_parallelRounds_le_symmetric_of_pos: symmetric specializations of the round bound undere * q * (d + 1) ≤ 1 - ε.Cslib.Probability.MoserTardos.lintegral_parallelRounds_le_pmfPiandCslib.Probability.MoserTardos.lintegral_parallelRounds_le_pmfPi_symmetric:PMF.pibridges.
References #
- [R. A. Moser, G. Tardos, A constructive proof of the general Lovász Local Lemma] [MT10]
A parallel selection rule for the Moser–Tardos algorithm chooses, from the table T and the
current log w, a maximal independent subset of the events occurring at current vbl T w.
Returning [] indicates that no bad event occurs.
Every chosen event occurs in the current assignment.
- pairwise (T : (p : V × ℕ) → α p.1) (w : List ι) : List.Pairwise (fun (i j : ι) => ¬Adj vbl i j) (psel T w)
Distinct steps in a batch have disjoint variable sets (in particular, no duplicates).
- max (T : (p : V × ℕ) → α p.1) (w : List ι) (i : ι) : current vbl T w ∈ A i → ∃ j ∈ psel T w, Adj vbl i j
Every occurring event shares at least one variable with some chosen event.
A valid parallel rule returns [] if and only if no bad event occurs in the current
assignment.
Once a round returns [], all subsequent logs remain unchanged.
Once a round returns [], all subsequent rounds return [].
Every finite prefix parallelRun psel T n produced by a valid parallel selection rule is a
valid log.
If round n returns [], at most n rounds are non-empty.
Greedy maximal independent subset of candidates cand satisfying Boolean predicate P,
scanning right-to-left and accepting each candidate that satisfies P and is distinct from and
variable-disjoint from all already-selected elements.
Computable greedy maximal independent set parallel selection rule over an explicit candidate
list cand and Boolean event detector occur.
Noncomputable canonical greedy maximal independent set parallel selection rule for finite
event index types ι.
Parallel witness-tree depth lemma [MoserTardos2010, Lemma 4.1]: if round k selects a
non-empty batch containing i (with suffix suff after i in that batch), then the witness
structure witness vbl i (suff ++ parallelRun psel T k) lies in shapes vbl i k, is proper,
passes its check on T, and contains a vertex at depth k (hence has cardinality ≥ k + 1).
Parallel Moser–Tardos tail bound ([MoserTardos2010, Section 4]): under
Pr[A i] ≤ (1 - ε) * x i * ∏ j ∈ Γ i, (1 - x j) with ε ∈ (0, 1], for every admissible
parallel selection rule psel, the probability that the algorithm performs at least k + 1
parallel rounds is at most (1 - ε) ^ (k + 1) * ∑ i, x i / (1 - x i).
Parallel Moser–Tardos theorem [MoserTardos2010, Theorem 1.3]: under
Pr[A i] ≤ (1 - ε) * x i * ∏ j ∈ Γ i, (1 - x j) with ε ∈ (0, 1], any admissible parallel
selection rule terminates in at most (max 0 (Real.log (∑ i, x i / (1 - x i))) + 1) / ε
expected parallel rounds.
The rule is not assumed measurable, so ∫⁻ is the lower Lebesgue integral. As in the sequential
theorem, exists_measurable_ge_parallelRounds dominates parallelRounds psel for every valid
parallel rule by a single measurable function of the table with the same expected bound.
Theorem 1.3 for the outer expectation [MT10]: under the slack local-lemma
hypothesis there is a measurable function g of the table, with
∫⁻ g ≤ (max 0 (Real.log (∑ i, x i / (1 - x i))) + 1) / ε, that bounds parallelRounds psel
for every valid parallel selection rule psel. So the bound holds for the upper (outer)
expectation of the number of rounds as well, whether or not the rule is measurable.
Termination of the parallel algorithm, generic form. If every event's largest count in a
valid log has finite expectation, then almost surely every admissible parallel rule reaches an
empty batch after finitely many rounds. No slack is needed: the run's logs are valid
(isLog_parallelRun) and grow in every non-empty round, while
ae_exists_forall_isLog_length_le_of_bound bounds the length of every valid log.
Under the local-lemma hypothesis Pr[A i] ≤ x i * ∏ j ∈ Γ i, (1 - x j) of Theorem 1.2,
without the slack 1 - ε that Theorem 1.3 needs for its round bound, almost surely every
admissible parallel rule reaches an empty batch after finitely many rounds. This is a consequence
of the valid-log bound lintegral_iSup_count_le through ae_exists_parallelRun_eq_nil_of_bound.
Moser and Tardos make the same observation when they introduce Algorithm 1.2
[MoserTardos2010, Section 1]: the parallel algorithm "can be considered a special case of the
sequential algorithm, so the statement of Theorem 1.2 applies to the parallel version too".
Under the local-lemma hypothesis of Theorem 1.2 (no slack), parallelRounds psel T < ⊤ almost
surely for every admissible parallel rule psel.
Under the local-lemma hypothesis of Theorem 1.2 (no slack), almost surely every admissible parallel rule reaches an assignment avoiding all bad events in finitely many parallel rounds.
Under the local-lemma hypothesis of Theorem 1.2 (no slack), every admissible parallel rule
performs at most ∑ i, x i / (1 - x i) resamplings in expectation over the whole run. This is a
consequence of the valid-log bound lintegral_iSup_count_le: each prefix of the parallel run is a
valid log (isLog_parallelRun), so its length is at most the measurable majorant
∑ i, ⨆ (w valid), w.count i (length_le_sum_iSup_count), whose integral
lintegral_sum_iSup_count_le_of_bound bounds. Moser and Tardos note after introducing
Algorithm 1.2 that Theorem 1.2 applies to the parallel version [MoserTardos2010, Section 1].
As for lintegral_parallelRounds_le, the rule is not assumed measurable and ∫⁻ is the lower
Lebesgue integral. The theorem bounds that lower integral through the majorant; it does not
identify it with the integral of the majorant.
Symmetric parallel Moser–Tardos theorem (1 ≤ d): under e * q * (d + 1) ≤ 1 - ε with
ε ∈ (0, 1], any admissible parallel selection rule terminates in at most
(max 0 (Real.log (card ι / d)) + 1) / ε expected parallel rounds.
Symmetric parallel Moser–Tardos theorem (all d : ℕ): under e * q * (d + 1) ≤ 1 - ε
with ε ∈ (0, 1], any admissible parallel selection rule terminates in at most
(max 0 (Real.log (card ι)) + 1) / ε expected parallel rounds.
Almost sure termination and avoidance under the symmetric local-lemma hypothesis
e * q * (d + 1) ≤ 1, with no slack, for every d : ℕ.
PMF.pi bridge for parallel Moser–Tardos expected rounds under the general asymmetric slack
LLL hypothesis.
PMF.pi bridge for almost-sure parallel Moser–Tardos termination and avoidance under the
general asymmetric local-lemma hypothesis, with no slack.
PMF.pi bridge for symmetric parallel Moser–Tardos expected rounds (all d : ℕ).