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:
- only
p = 2is built, overBinaryField ewithe = binaryFieldDegree n, so forn ≥ 1the field has betweennand2 nelements; - Theorem 3.6 is proved with the cell
(j, v)hard-wired (memCircuit), and the circuit takingjandvas inputs is not built; Theorem 3.7's construction (mxCircuit) inlines the same test for every cell, sharing the literals of each row; - the bounds are explicit and stronger than stated: the selection has depth at most
4andn (2 e + 2 ^ e + 1) ≤ 5 n²gates, independent ofℓ, where the source hasO(ℓ n³ log n)gates and depthd_NW + 2; the conjunctions of one row share its2 eliterals; - gates are counted (
Cslib.Circuits.Circuit.size), not wires, and depth is the unit-costCslib.Circuits.Circuit.depth, negations included; - the circuits are explicit, but no uniformity is claimed.
Main definitions #
Cslib.Crypto.PRG.NisanWigderson.memCircuit: membership of a fixed cell in blocki.Cslib.Crypto.PRG.NisanWigderson.mxCircuit: the selection(i, z) ↦ z|S_i.
Main results #
Cslib.Crypto.PRG.NisanWigderson.eval_memCircuit:memCircuit n ℓ j vdecides whether cell(j, v)lies in blocki(Theorem 3.6).Cslib.Crypto.PRG.NisanWigderson.size_memCircuit,Cslib.Crypto.PRG.NisanWigderson.depth_memCircuit_le:2 e + 1gates, depth at most3.Cslib.Crypto.PRG.NisanWigderson.eval_mxCircuit:mxCircuit n ℓcomputes the bits of the seed in blocki(Theorem 3.7).Cslib.Crypto.PRG.NisanWigderson.size_mxCircuit,Cslib.Crypto.PRG.NisanWigderson.size_mxCircuit_le,Cslib.Crypto.PRG.NisanWigderson.depth_mxCircuit_le:n (2 e + 2 ^ e + 1) ≤ 5 n²gates and depth at most4.
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.