Documentation

CslibFrontier.Crypto.Primitives.PRG.NisanWigderson.MXCircuit

Reading the bit-indexed polynomial design in AC⁰[2] #

Carmosino, Impagliazzo, Kabanets and Kolokolova show that the Nisan–Wigderson selection MX_NW(i, z) = z|S_i, which reads a seed z on block i of their polynomial design, is computed by AC⁰[p] circuits (Theorems 3.3, 3.6 and 3.7, pp. 10:10–10:13) [CIKK16]. This file builds these circuits for p = 2 and the design Cslib.Crypto.PRG.NisanWigderson.Design.binaryPolynomial n ℓ, over Unbounded.extSignature read with MOD₂ gates.

Bit c of A_i(r_j) is the parity of the index i on a set fixed by r_j (Cslib.Crypto.PRG.NisanWigderson.bits_bitPoly_eq_parityOn). So with e parity gates and their negations for each row j, cell (j, v) lies in block i exactly when the conjunction of the literals matching the bits of v holds (Theorem 3.6). Bit j of z|S_i is the seed bit of the one cell of row j in the block, so it is the disjunction over the columns v of z_(j, v) and that conjunction (Theorem 3.7). Inputs are the ℓ bits of i followed by the seed.

This differs from the source in these ways:

Main definitions #

Main results #

References #

Literals of parities #

Membership in a block #

Theorem 3.6, with the cell hard-wired: whether cell (j, v) lies in block i, from the bits of i. The e parities of row j and their negations, then one conjunction of the literals matching the bits of v [CarmosinoImpagliazzoKabanetsKolokolova2016, Theorem 3.6].

With MOD₂ gates, memCircuit n ℓ j v decides whether cell (j, v) lies in block i of Design.binaryPolynomial n ℓ.

memCircuit n ℓ j v has 2 e + 1 gates.

memCircuit n ℓ j v has depth at most 3.

The selection #

The selection MX_NW(i, z) = z|S_i in AC⁰[2] [CarmosinoImpagliazzoKabanetsKolokolova2016, Theorem 3.7], on the bits of i followed by the seed z. The literals of all rows, then for each cell (j, v) the conjunction of z_(j, v) with the literals matching the bits of v, then for each row j the disjunction of its cells.

The circuit computes the selection: with MOD₂ gates, on the index i followed by the seed z, output j of mxCircuit n ℓ is bit j of z restricted to block i.

mxCircuit n ℓ has n (2 e + 2 ^ e + 1) gates: 2 e literals, 2 ^ e conjunctions and one disjunction for each row.

mxCircuit n ℓ has at most 5 n² gates, whatever ℓ.

mxCircuit n ℓ has depth at most 4: parities, negations, conjunctions and disjunctions.