Nisan's generator on bit strings #
With the blocks the bit strings of length n and the Toeplitz hash family over Bool
(Cslib.BitString.isPairwiseIndependentHash_toeplitzHash_bool), Nisan's generator
Cslib.Crypto.PRG.Nisan.bitGenerator n k stretches a seed of n + k (3 n - 1) bits
(Cslib.Crypto.PRG.Nisan.card_bitSeed) into 2 ^ k n bits, the 2 ^ k blocks of
Cslib.Crypto.PRG.Nisan.blocks concatenated in order by Cslib.BitString.blocksEquiv.symm. A
read-once branching program on 2 ^ k n bits regroups into a program on 2 ^ k blocks of n bits
with the same states (Cslib.BranchingPrograms.ReadOnceProgram.blocks), so the generator fools
read-once branching programs of width w on bits with error (2 ^ k - 1) w / (2 √(2 ^ n))
(Cslib.Crypto.PRG.Nisan.secure_bitGenerator). For n = 2 (k + a + d) this is at most 2 ^ (-d)
for width up to 2 ^ a (Cslib.Crypto.PRG.Nisan.secure_bitGenerator_of_le): O((k + a + d) k)
seed bits fool programs of length 2 ^ k n, width 2 ^ a and error 2 ^ (-d). For width w,
length R and error ε, this is the seed length O(log (w R / ε) log R) of Nisan's generator
[Nis92], Arora and Barak, Theorem 16.48, Vadhan, Section 8.2.1,
the parametrized seed length of Hatami and Hoza, Theorem 3.8, which the remark
after that theorem attributes to Nisan as well.
Main definitions #
Cslib.Crypto.PRG.Nisan.BitSeed: the seeds of Nisan's generator on bit strings.Cslib.Crypto.PRG.Nisan.bitGenerator: Nisan's generator on bit strings.
Main results #
Cslib.Crypto.PRG.Nisan.card_bitSeed: seeds haven + k (3 n - 1)bits.Cslib.Crypto.PRG.Nisan.abs_dens_eval_bitGenerator_sub_le: Nisan's generator on bit strings fools read-once branching programs with any finite set of states.Cslib.Crypto.PRG.Nisan.secure_bitGenerator: Nisan's generator on bit strings is secure against read-once branching programs.Cslib.Crypto.PRG.Nisan.secure_bitGenerator_of_le: the parameters of Nisan's theorem.
References #
The seeds of Nisan's generator on bit strings of length n with k hash seeds: a block of
n bits and k seeds of the Toeplitz hash, each a Toeplitz matrix of 2 n - 1 bits and an offset
of n bits.
Nisan's generator on bit strings fools read-once branching programs with any states
[Nis92]: for every read-once branching program P on 2 ^ k n bits with a finite set S of
states, the probability that P accepts the output of bitGenerator n k on a uniform seed differs
from the probability that it accepts a uniform bit string by at most
(2 ^ k - 1) |S| / (2 √(2 ^ n)).
Nisan's generator on bit strings fools read-once branching programs [Nis92]: no
read-once branching program of width w on 2 ^ k n bits distinguishes the output of
bitGenerator n k from a uniform bit string with advantage more than
(2 ^ k - 1) w / (2 √(2 ^ n)).
Nisan's generator on bit strings of even length: for n = 2 m, the advantage of read-once
branching programs of width w is at most (2 ^ k - 1) w / 2 ^ (m + 1).
The parameters of Nisan's generator [Nis92]: with blocks of n = 2 (k + a + d) bits,
Nisan's generator on bit strings stretches O((k + a + d) k) seed bits into 2 ^ k n bits that
fool every read-once branching program of width at most 2 ^ a with error 2 ^ (-d).