Documentation

CslibFrontier.Probability.IID.Marked

Marked coin events #

When each of k indices is marked independently according to a Boolean distribution μ, the probability that a designated index ν ∉ R is marked (true) while every index in R is unmarked (false) equals μ true * μ false ^ R.card (Cslib.Probability.PMF.toOuterMeasure_iid_marked). When μ marks with real probability a⁻¹ and R.card + 1 ≤ a, this probability is at least Real.exp (-1) / a (Cslib.Probability.PMF.exp_neg_one_div_le_toOuterMeasure_iid_marked) and hence at least 1 / (2.72 * a) (Cslib.Probability.PMF.one_div_le_toOuterMeasure_iid_marked), formalizing the Claim in the proof of Lemma 13.6 of [BS23], §13.4.1 (p. 543, where a = Q + 1).

No client on main uses these lemmas yet; Lemma 13.6 (§13.4.1, pp. 541–543) and Theorem 13.4 (p. 538) are the intended clients and stay open.

Main results #

References #

theorem Cslib.Probability.PMF.toOuterMeasure_iid_marked (μ : PMF Bool) {k : ℕ} (R : Finset (Fin k)) {ν : Fin k} (hν : ν ∉ R) :
(iid μ k).toOuterMeasure {v : Fin k → Bool | v ν = true ∧ ∀ i ∈ R, v i = false} = μ true * μ false ^ R.card

Mark each of k indices independently with the coin μ. A designated index is marked and a set of other indices is unmarked with probability μ true * μ false ^ |R|.

theorem Cslib.Probability.PMF.exp_neg_one_div_le_toOuterMeasure_iid_marked (μ : PMF Bool) {a : ℝ} (hμ : (μ true).toReal = a⁻¹) {k : ℕ} (R : Finset (Fin k)) (hR : ↑R.card + 1 ≤ a) {ν : Fin k} (hν : ν ∉ R) :
Real.exp (-1) / a ≤ ((iid μ k).toOuterMeasure {v : Fin k → Bool | v ν = true ∧ ∀ i ∈ R, v i = false}).toReal

Sharper bound passed through in the proof of the Claim in Lemma 13.6 ([BS23], §13.4.1, p. 543): with marking probability a⁻¹ and at most a - 1 indices to avoid, the designated index is marked and no index of R is with probability at least e⁻¹ / a. The book has a = Q + 1.

theorem Cslib.Probability.PMF.one_div_le_toOuterMeasure_iid_marked (μ : PMF Bool) {a : ℝ} (hμ : (μ true).toReal = a⁻¹) {k : ℕ} (R : Finset (Fin k)) (hR : ↑R.card + 1 ≤ a) {ν : Fin k} (hν : ν ∉ R) :
1 / (2.72 * a) ≤ ((iid μ k).toOuterMeasure {v : Fin k → Bool | v ν = true ∧ ∀ i ∈ R, v i = false}).toReal

The Claim as printed in the proof of Lemma 13.6 ([BS23], §13.4.1, p. 543, at a = Q + 1): with marking probability a⁻¹ and at most a - 1 indices to avoid, the designated index is marked and no index of R is with probability at least 1 / (2.72 * a).