Guessing after finite leakage #
A finite observation multiplies the largest input mass by at most the number of possible observations. The guessing strategy may be randomized and its output type may be infinite.
Main results #
Cslib.Probability.PMF.bind_le_card_mul_of_fiber_subsingleton: the finite-leakage bound.Cslib.Probability.PMF.tsum_mul_apply_le_card_mul: guessing a sample from a hint with finitely many values, for sources on any type.Cslib.Probability.PMF.uniform_bind_le_div_of_coordinate_subsingleton: its independent uniform-coordinate specialization.
A randomized test after finite leakage succeeds with probability at most the number of observations times the largest source mass, when each observation and test output identifies at most one successful source value.
A guess that depends on a sample only through a hint taking values in a finite set T equals
the sample with probability at most T.card times the largest source mass. Unlike
bind_le_card_mul_of_fiber_subsingleton, the source may live on an infinite type.
A coordinate of independent uniform inputs cannot be predicted from their coordinatewise
finite observations except with probability |Y| / |X|. The successful event may depend on all
coordinates and on an arbitrary randomized output, but fixes that coordinate once the other
coordinates and output are fixed.