Correlated sampling from a distribution-independent seed #
Two parties hold distributions P and Q on a finite set S and share randomness, but do not
communicate. Holenstein's protocol Holenstein, §5, Figure 1 and the proof of Lemma 5.2,
pp. 152–153 gives them a shared
sequence of independent uniform points (x_n, u_n) of S × [0, 1] (seed). Each party outputs
the first x_n with u_n < P (x_n), the first point under the graph of its own distribution
(seedSample). The law of the seed depends only on S, not on P or Q, and each party
computes its output from the seed and its own distribution alone.
The first point of an i.i.d. sequence that lies in a set R of positive probability is
distributed as one point conditioned on R (map_firstHit). For the region under the graph of
P, that point's first coordinate has law P (map_seedSample). If the first point under the
graph of max P Q lies under the graph of min P Q, it is also the first point under each graph,
and both parties output it. The two regions have areas (1 + δ) / |S| and (1 - δ) / |S|, where
δ is the statistical distance, so the outputs differ with probability at most
2δ / (1 + δ) ≤ 2δ (seedSample_disagree_le).
The library's finite correlated sampling (Cslib.Probability.CorrelatedSampling.shared) proves the
same bounds from a seed whose law is built from the whole family of distributions. This file is
Holenstein's protocol itself, with the seed fixed in advance.
The statement of the seed's independence and of both bounds follows Holenstein: the infinite
product and the strict acceptance predicate are his sampling step (Figure 1), and conditioning the
first hit in the union gives his min/max ratio (proof of Lemma 5.2) before weakening to 2δ. The
formal proof route through firstHit is original (cslib-frontier issue #6718). The results here
concern two finite-alphabet distributions; they do not assert Holenstein's full embedding lemma.
Main definitions #
Cslib.Probability.CorrelatedSampling.firstHit: the first entry of a sequence in a set.Cslib.Probability.CorrelatedSampling.seed: Holenstein's shared sequence of uniform points ofS × [0, 1].Cslib.Probability.CorrelatedSampling.seedSample: a party's output, read off the seed using only its own distribution.
Main results #
Cslib.Probability.CorrelatedSampling.map_firstHit: the first entry inRof an i.i.d. sequence is distributed as one entry conditioned onR.Cslib.Probability.CorrelatedSampling.map_seedSample: each party outputs a sample of its own distribution.Cslib.Probability.CorrelatedSampling.seedSample_disagree_le: the two outputs differ with probability at most2δ.
Implementation notes #
The seed is an infinite sequence, so it is a Measure on ℕ → S × unitInterval, not a PMF.
When no point of the sequence lies under the graph of its distribution, a party outputs a fixed
default element. Both parties use the same default, so they agree when neither has a hit. If only
one party has no hit, it returns the default while the other may return a different element. For
each fixed distribution the no-hit event has measure zero (infinitePi_forall_notMem), and the
disagreement bound accounts for it: it bounds the event that the first point under the graph of
max P Q is not under the graph of min P Q, which contains every disagreement.
The alphabet carries a measurable structure with measurable singletons
(MeasurableSingletonClass), so that the graph regions are measurable.