Documentation

CslibFrontier.Crypto.Computational.PseudorandomGenerator.Parallel

Parallel composition of uniform strict-PPT pseudorandom generators #

Given a bitstring generator generator : List Bool → List Bool, a repetition count count, and a block width width, parallelGenerator generator count width seed splits seed into count blocks of length width, evaluates generator on each block, and concatenates the outputs ([BS23], §3.4.1).

Differences from [BS23], Theorem 3.2 (pp. 54–59):

Main definitions #

Main results #

References #

def Cslib.Crypto.parallelGenerator (generator : List Bool → List Bool) (count width : ℕ) (seed : List Bool) :

count-wise parallel composition of a bitstring generator generator on blocks of width width: split seed into count rows of length width, apply generator to each row, and concatenate the outputs ([BS23], §3.4.1).

Polynomial-time efficiency certificate for parallelGenerator: if generator is deterministic polynomial-time on bitstrings and count, width, seed are polynomial-time in input, then parallelGenerator generator (count a) (width a) (seed a) is deterministic polynomial-time.

theorem Cslib.Crypto.length_parallelGenerator {generator : List Bool → List Bool} {length : ℕ → ℕ} (hlen : ∀ {seed : List Bool}, (generator seed).length = length seed.length) (count width : ℕ) (seed : List Bool) :
(parallelGenerator generator count width seed).length = count * length width

Exact output length of parallelGenerator when each row output has length length width.

Boneh–Shoup Theorem 3.2 (uniform strict-PPT word layer, pp. 54–59): if generator is a PseudorandomGenerator with output length length and count is a unary polynomial-time copy count, then applying generator to count n independent uniform n-bit seeds and concatenating the outputs is computationally indistinguishable from BitString.uniformList (count n * length n). Delegates the PPT hybrid reduction (sequenceTest, loss dyadicSize (count n)) and its isPPTOn_sequenceTest certificate to ComputationallyIndistinguishable.replicate_bind.