Coupled runs of the Moser–Tardos algorithm #
Two runs of the Moser–Tardos algorithm, one on a table of samples from μ and one on a table of
samples from ν, can share randomness: give each table entry (v, k) a pair of samples drawn
from a coupling of μ v and ν v, independently for each entry. If the selection rule is
non-anticipating, meaning it sees only the log and the current assignment
(Cslib.Probability.MoserTardos.historyRule), then the two runs stay identical for as long as the
entries the first run reads agree (run_eq_of_agree). So the runs can differ only if some entry
read by the first run is a disagreeing pair.
Whether the first run ever reads entry (v, k) does not depend on that entry
(dependsOn_le_uses), so it is independent of whether the pair at (v, k) disagrees. A
union bound over the entries read then bounds the probability that the runs differ by
∑ v, η v · E[N v] (coupledTable_diverge_le), where η v is the disagreement probability of the
coupling at v and N v is the number of samples of v that the first run reads. The bound
counts samples actually read: comparing the two infinite tables would not work, since some entry
eventually disagrees.
When the rule stops only once no event occurs, the first run almost surely stops at a good
assignment, and away from divergence the second run stops at the same step with the same
assignment. So the two runs output the same assignment avoiding every event except with the
divergence probability (coupledTable_not_agreeGood_le, correlated_not_agreeGood_le).
The statement and its proof route are original (cslib-frontier issue #6718).
Main definitions #
Cslib.Probability.MoserTardos.historyRule: the selection rule given by a function of the log and the current assignment.Cslib.Probability.MoserTardos.coupledTable: a table of independent coupled pairs, withfstTableandsndTablethe two runs' tables.Cslib.Probability.MoserTardos.Diverge: the two runs' logs or assignments differ at some step.Cslib.Probability.MoserTardos.AgreeGood: both runs stop at the same step with the same assignment, which avoids every event.Cslib.Probability.MoserTardos.correlatedCoupling: the coupling given by Holenstein's correlated sampling from a distribution-independent seed.
Main results #
Cslib.Probability.MoserTardos.run_eq_of_agree: tables that agree on the entries read by the firstnsteps give the same log afternsteps.Cslib.Probability.MoserTardos.dependsOn_le_uses: whether entry(v, k)has been read afternsteps does not depend on that entry.Cslib.Probability.MoserTardos.coupledTable_diverge_le: the first-disagreement boundPr[diverge] ≤ ∑ v, η v · E[N v].Cslib.Probability.MoserTardos.coupledTable_diverge_le_of_lll: with the local-lemma hypothesis,E[N v] ≤ 1 + ∑_{i ∋ v} x i / (1 - x i).Cslib.Probability.MoserTardos.coupledTable_diverge_le_two_mul: in the symmetric casee p (d + 1) ≤ 1,Pr[diverge] ≤ 2 ∑ v, η v.Cslib.Probability.MoserTardos.correlated_diverge_le: with correlated sampling,Pr[diverge] ≤ 4 ∑ v, d_TV(P v, Q v).Cslib.Probability.MoserTardos.coupledTable_not_agreeGood_le: for a rule that stops only when no event occurs, the runs fail to output the same good assignment with probability at mostPr[diverge].Cslib.Probability.MoserTardos.correlated_not_agreeGood_le: with correlated sampling, the runs output the same good assignment except with probability4 ∑ v, d_TV(P v, Q v).Cslib.Probability.MoserTardos.coupledTable_ae_terminate,Cslib.Probability.MoserTardos.correlated_ae_terminate: if both runs' distributions satisfy the local-lemma hypothesis, both runs stop almost surely.
Implementation notes #
The coordinates take values in countable types with the discrete measurable structure, so every
event determined by finitely many table entries is measurable
(MeasureTheory.measurableSet_of_dependsOn) and the rule needs no measurability assumption. The
event AgreeGood need not be measurable; its complement is bounded through measure_mono_ae,
which holds for outer measure.
correlatedCoupling is Holenstein's protocol (Cslib.Probability.CorrelatedSampling.seed): the
seed at each table entry is a sequence of uniform points of α v × [0, 1] whose law depends only
on α v, and each run computes its sample from the seed and its own distribution alone. So the
two runs can be carried out by parties who share the seed table but each know only their own
distributions. The coupling's marginal and termination results (correlatedCoupling_map_fst,
correlatedCoupling_map_snd, correlated_ae_terminate) assume that each alphabet has measurable
singletons (MeasurableSingletonClass), which the protocol uses for the measurability of its graph
regions; the discrete measurable structure on a finite alphabet satisfies it.
The divergence and output bounds use no hypothesis on Q: they need only the first run's
expected sample counts, and the second run stops whenever the runs agree. Almost-sure termination
of both runs (coupledTable_ae_terminate) does need the local-lemma hypothesis for Q as well.
References #
The non-anticipating selection rule given by r: after the log w, it selects
r w a, where a is the current assignment. Unlike a general rule, it cannot read table entries
the algorithm has not yet used.
A valid r, one that only selects events occurring in the given assignment, gives a valid
selection rule.
How often v has been resampled: the number of steps of w on events containing v.
A variable is resampled at most as often as there are steps.
Agreement. Under a non-anticipating rule, two tables that agree on every entry read by the
first n steps on T give the same log after n steps.
The table entries read by the first n + 1 steps, other than (v, k).
If v has been resampled fewer than k times after m ≤ n steps, the run so far has not read
entry (v, k): tables that agree on horizon n v k give the same log after m steps.
Reading (v, k) does not depend on (v, k). Whether v has been resampled at least k
times after n steps depends only on the entries in horizon n v k, which exclude (v, k).
The events containing a variable pairwise share it, so if every event has at most d
neighbours in Γ, at most d + 1 events contain any one variable.
The coupled table: an independent pair of samples T (v, k) ∼ κ v for every table entry,
where κ v couples the two runs' distributions of v.
Instances For
The first run's table is a resampling table for the first marginals of the couplings.
The second run's table is a resampling table for the second marginals of the couplings.
The two runs on the coupled table T diverge: at some step their logs or their current
assignments differ.
The runs diverge only if some entry (v, k) that the first run reads is a disagreeing
pair.
Independence of reading and disagreeing. The probability that the first run reads entry
(v, k) and the pair there disagrees factors.
Expected samples read. The expected number of samples of v read by a run, 1 for the
initial sample plus one per resampling of v, bounds the sum over k of the probability that the
run reads entry (v, k).
The first-disagreement bound. Let both runs use the non-anticipating rule historyRule r
on the coupled table. The probability that they diverge is at most ∑ v, η v · E[N v]. Here
η v is the probability that the coupling κ v gives two different samples, and N v is the
number of samples of v that the first run reads, 1 plus the number of resamplings of v.
Divergence under the local-lemma hypothesis. Suppose the first run's distributions satisfy
the hypothesis of the asymmetric local lemma with weights x, and r only selects occurring
events. Then the two runs diverge with probability at most
∑ v, η v · (1 + ∑_{i ∋ v} x i / (1 - x i)), where η v is the disagreement probability of the
coupling at v.
The symmetric hypothesis e p (d + 1) ≤ 1, with at most d neighbours per event, gives the
asymmetric one with the weights x = 1 / (d + 2).
The symmetric case. Suppose every event has at most d neighbours in Γ and probability
at most p under the first run's distributions, with e p (d + 1) ≤ 1, and r only selects
occurring events. Then each variable is read at most twice in expectation, and the two runs
diverge with probability at most 2 ∑ v, η v.
The two runs on the coupled table T agree on a good output: after the same n steps
both stop, with the same log and the same assignment, and no event A i occurs in it.
If the runs do not diverge and the first run stops, both stop at the same step with the same assignment, and a rule that stops only when no event occurs leaves a good assignment.
The runs output the same good assignment. Under the asymmetric local-lemma hypothesis for
the first run's distributions, for a valid r that stops only when no event occurs, the two runs
fail to stop together at one assignment avoiding every event with probability at most the
divergence probability. The second run's termination is not assumed: it follows from agreement.
Both runs terminate. If each run's distributions satisfy the asymmetric local-lemma
hypothesis, with weights x and y, then almost surely both runs stop. The local-lemma
hypothesis for the second run cannot be dropped. Take one coin, a second-run distribution that
always gives true, and the rule that resamples whenever the coin shows true. The second run's
table is then almost surely all true, and on that table the rule resamples forever.