Uniform sampling of fixed-length byte strings #
An observation which is true at most once on an n-byte space succeeds with probability
at most 2^(-8n) on a uniformly random string.
There are 2^(8n) strings of exactly n bytes.
theorem Cslib.Crypto.FixedBytes.uniform_test_le {n : ℕ} {win : FixedBytes n → Bool} (unique : {x : FixedBytes n | win x = true}.Subsingleton) :
A test accepting at most one uniform byte string has success at most 2^(-8n).