Distinct independent samples #
A noninjective sample tuple has at least one colliding pair. The first moment of the
existing collision count therefore bounds the probability of repetitions by
choose k 2 * collisionProbability μ. A bound on each point mass gives the usual birthday
union bound without a uniformity assumption. This is the sampling estimate used in
[CKMS26], proof of Lemma 5.2, printed p. 10 (PDF p. 11).
Main results #
collisionCount_eq_zero_iff: a tuple has no colliding pairs exactly when it is injective.iid_not_injective_le: the collision first-moment bound.iid_not_injective_le_of_mass_le: the point-mass version used for distinct input tuples.iid_injective_pair_ge: the sum of the two light-atom tuple-validity probabilities.
A sample tuple has no colliding pair precisely when all entries are distinct.
The probability of any repetition is at most the expected number of colliding pairs.
If every atom has mass at most bound, repetitions among k independent draws
have probability at most choose k 2 * bound, even for a nonuniform source.
The two distinct-tuple probabilities in the light-atom case of submission 865.
Their sum exceeds one by at least 1/k; the source subsequently telescopes k hybrid steps.
Averaging a bounded score over ordered distinct draws can increase its expectation by at most the birthday bound for independent uniform draws.
Conditioning on distinct draws can decrease a bounded expectation by at most the birthday bound for independent uniform draws.