Documentation

CslibFrontier.Crypto.Primitives.PRG.NisanWigderson.AmpGeneratorCircuit

The functions of the CIKK generator in AC⁰[2] #

Carmosino, Impagliazzo, Kabanets and Kolokolova build a black-box generator within AC⁰[p] (Definition 3.1 and Theorem 3.2, p. 10:10) from the Nisan–Wigderson generator of the amplified function Amp(f). For a seed z, the function g_z maps i to bit i of the generator's output on z, that is g_z(i) = Amp(f)(z|S_i), and each g_z has small circuits relative to f (Nonuniform AC⁰[p]-Efficiency, proof of Theorem 3.2, p. 10:11) [CIKK16]. This file proves that efficiency clause for p = 2, the amplification Amp(f) = Cslib.Circuits.Boolean.glAmp f k on n' = k n + k bits and the design Cslib.Crypto.PRG.NisanWigderson.Design.binaryPolynomial n' ℓ.

From a circuit C for f, glAmpGeneratorCircuit φ C k ℓ z computes g_z. Its ℓ inputs i, together with the seed z fixed by two constant gates, feed the selection Cslib.Crypto.PRG.NisanWigderson.mxCircuit (Theorem 3.7, p. 10:13). Its n' outputs z|S_i feed the amplification circuit Cslib.Circuits.Boolean.glAmpCircuit (proof of Theorem 4.3, p. 10:16). It has at most k |C| + 6 n'² + 3 gates and depth at most C.depth + 7.

The construction is generic in the basis, as glAmpCircuit is: C is a circuit over any signature σ, and the rest is built over Unbounded.extSignature and translated into σ along a map φ that keeps its meaning under MOD₂ gates. For AC⁰[2] circuits take σ = Unbounded.extSignature, I = Unbounded.extInterpretation (modGate 2) and φ = Signature.Hom.id _.

This differs from the source in these ways:

Main definitions #

Main results #

References #

The circuit for g_z(i) = glAmp f k (z|S_i) from a circuit C for f: the inputs i and the fixed seed z feed the selection mxCircuit, whose outputs feed glAmpCircuit φ C k. The selection and the constant gates are translated into σ along φ.

@[simp]
theorem Cslib.Crypto.PRG.NisanWigderson.size_glAmpGeneratorCircuit {σ : Circuits.Signature} {n : ℕ} (φ : Circuits.Boolean.Unbounded.extSignature.Hom σ) (C : Circuits.Circuit σ n 1) (k ℓ : ℕ) (z : Fin ((k * n + k) * 2 ^ binaryFieldDegree (k * n + k)) → Bool) :
(glAmpGeneratorCircuit φ C k ℓ z).size = k * C.size + k + 3 + (k * n + k) * (2 * binaryFieldDegree (k * n + k) + 2 ^ binaryFieldDegree (k * n + k) + 1)

glAmpGeneratorCircuit φ C k ℓ z has k |C| + k + 3 + n' (2 e + 2 ^ e + 1) gates, where n' = k n + k and e = binaryFieldDegree n'.

theorem Cslib.Crypto.PRG.NisanWigderson.size_glAmpGeneratorCircuit_le {σ : Circuits.Signature} {n : ℕ} (φ : Circuits.Boolean.Unbounded.extSignature.Hom σ) (C : Circuits.Circuit σ n 1) (k ℓ : ℕ) (z : Fin ((k * n + k) * 2 ^ binaryFieldDegree (k * n + k)) → Bool) :
(glAmpGeneratorCircuit φ C k ℓ z).size ≤ k * C.size + 6 * (k * n + k) ^ 2 + 3

glAmpGeneratorCircuit φ C k ℓ z has at most k |C| + 6 n'² + 3 gates, where n' = k n + k, whatever ℓ.

glAmpGeneratorCircuit φ C k ℓ z is at most seven deeper than C: one for the constants, four for the selection and two for the amplification.

glAmpGeneratorCircuit φ C k ℓ z computes g_z: on i it outputs bit equivFin ℓ i of the Nisan–Wigderson generator of glAmp f k on the seed z, where f is the function C computes.

g_z has small circuits relative to f [CarmosinoImpagliazzoKabanetsKolokolova2016, proof of Thm 3.2, p. 10:11]: if C computes f, then glAmpGeneratorCircuit φ C k ℓ z computes the function whose truth table is the Nisan–Wigderson generator of glAmp f k on the seed z.

Nonuniform AC⁰[2]-Efficiency of the CIKK generator [CarmosinoImpagliazzoKabanetsKolokolova2016, Def 3.1 and proof of Thm 3.2, pp. 10:10–10:11], for p = 2, Amp(f) = glAmp f k and the design Design.binaryPolynomial (k n + k) ℓ. If C computes f, then for every seed z the function g_z, whose truth table is the Nisan–Wigderson generator of glAmp f k on z, is computed from k copies of C with at most 6 n'² + 3 more gates (n' = k n + k) and at most 7 more depth. The basis is any σ into which φ translates the unbounded fan-in basis with MOD₂ gates; σ = Unbounded.extSignature with φ = Signature.Hom.id _ gives AC⁰[2] circuits.