Documentation

CslibFrontier.Probability.Guessing.UniformList

Guessing bounds for uniform bit strings #

Bounds the probability of guessing a uniform n-bit word from a d-bit hint, specializing Cslib.Probability.PMF.tsum_mul_apply_le_card_mul to BitString.uniformList.

Main results #

theorem Cslib.Probability.PMF.tsum_uniformList_mul_apply_le {n d : ℕ} (hint : List Bool → List Bool) (hhint : ∀ (w : List Bool), w.length = n → (hint w).length = d) (guess : List Bool → PMF (List Bool)) :
∑' (w : List Bool), (BitString.uniformList n) w * (guess (hint w)) w ≤ 2 ^ d * (1 / 2 ^ n)

Guessing a uniform n-bit word w from a d-bit hint hint w succeeds with probability at most 2 ^ d / 2 ^ n in ℝ≥0∞.