Limitations on small-bias generators #
We read the bits Bool as the field GF(2) (exclusive or and conjunction, the ring structure
under which the library's parities and inner products of bit strings are sums and products).
If the output bits of a sample space G : σ → ι → Bool, as functions of the seed, all lie in a
fixed affine translate of a subspace W of the functions σ → Bool (each output bit is a constant
plus an element of W), and there are more output bits than the dimension of W, then some
nonempty set of output bits has a constant sum, so G, with a uniform seed, has bias ±1 there
(Cslib.BitString.exists_abs_bias_eq_one_of_finrank_lt).
This gives the limitations on small-bias generators of Goldreich, Exercise
8.37. An ε-bias generator G : {0,1}^k → {0,1}^ℓ with ε < 1 whose
output bits are GF(2) polynomials of total degree at most d in the seed bits has
ℓ ≤ ∑_{i=1}^d C(k, i): the polynomials, without their free terms, lie in the span of the
products of between one and d seed bits (Cslib.BitString.le_sum_choose_of_isSmallBias).
Whatever the degree, ℓ < 2^k, since the functions vanishing at a fixed seed form a subspace of
dimension 2^k - 1 (Cslib.BitString.card_lt_card_of_isSmallBias, for any finite seed set), and
if ℓ > k, then G is not a linear map (Cslib.BitString.not_exists_linearMap_of_isSmallBias,
the case d = 1).
Main results #
Cslib.BitString.exists_abs_bias_eq_one_of_finrank_lt: few dimensions force a constant parity.Cslib.BitString.le_sum_choose_of_isSmallBias: the degree bound of Exercise 8.37.Cslib.BitString.card_lt_card_of_isSmallBias: Corollary 1 of Exercise 8.37,ℓ < 2^k.Cslib.BitString.not_exists_linearMap_of_isSmallBias: Corollary 2 of Exercise 8.37.
References #
A low-dimensional span of the output bits forces a constant parity. If every output bit
s ↦ G s i of a sample space is a constant plus an element of a subspace W of the functions on
the seeds, and there are more output bits than the dimension of W, then some nonempty set S of
output bits has a constant parity, so the bias of G at S, with a uniform seed, is ±1.
An ε-biased sample space with ε < 1 has its output bits outside every translate of a
subspace of smaller dimension than their number.
Corollary 1 of Goldreich, Exercise 8.37: an ε-biased sample space
with ε < 1 has fewer output bits than seeds; for an ε-bias generator with k-bit seeds,
ℓ(k) < 2^k, whatever the degree of its output bits.
Limitations on small-bias generators Goldreich, Exercise 8.37: if
G : {0,1}^k → {0,1}^ℓ, with a uniform seed, is ε-biased for some ε < 1, and each output bit
of G is a GF(2) polynomial in the seed bits of total degree at most d, then
ℓ ≤ ∑_{i=1}^d C(k, i).
Corollary 2 of Goldreich, Exercise 8.37: an ε-bias generator
G : {0,1}^k → {0,1}^ℓ with ε < 1 and ℓ > k is not a GF(2)-linear map.