Documentation

CslibFrontier.Computability.Circuit.Boolean.HardnessAmplification.GLAmpCircuit

A circuit for the Goldreich–Levin amplification #

From a circuit C for f, glAmpCircuit φ C k computes glAmp f k = (f^k)^GL: k copies of C on the blocks of the input (Cslib.Circuits.Circuit.replicateScalar), then the inner product over GF(2) with the mask (Cslib.Circuits.Boolean.Unbounded.innerProductCircuit). It has k * C.size + k + 1 gates and depth at most C.depth + 2. This is the efficiency part of [CarmosinoImpagliazzoKabanetsKolokolova2016, Thm 4.3 and its proof, p. 10:16]: Amp(f) is computable from f with only an additive O(k) more gates and constant more depth, using one parity gate.

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

Deviation from the source: CIKK's Nonuniform Λ-Efficiency (Def 3.4, pp. 10:10–10:11) puts Amp(f) in AC⁰[2]^f. No oracle-circuit statement is formalized here. Because the construction is generic in the basis, taking for C the one-gate circuit of an f-oracle operation makes glAmpCircuit that oracle circuit, with k oracle gates.

Size counts gates (Circuit.size) and depth is the unit-cost Circuit.depth, in which negations count.

Main definitions #

Main results #

References #

def Cslib.Circuits.Boolean.glAmpCircuit {σ : Signature} {n : ℕ} (φ : Unbounded.extSignature.Hom σ) (C : Circuit σ n 1) (k : ℕ) :
Circuit σ (k * n + k) 1

The circuit for glAmp f k from a circuit C for f: k copies of C on the blocks of the first k * n inputs, and the inner product over GF(2) of their outputs with the last k inputs, translated into σ along φ.

theorem Cslib.Circuits.Boolean.eval_glAmpCircuit {σ : Signature} {I : Interpretation σ Bool} {n : ℕ} (φ : Unbounded.extSignature.Hom σ) [φ.Preserves (Unbounded.extInterpretation (modGate 2)) I] (C : Circuit σ n 1) (k : ℕ) (y : BitString (k * n + k)) (o : Fin 1) :
(glAmpCircuit φ C k).eval I y o = glAmp (fun (x : BitString n) => C.eval I x 0) k y

glAmpCircuit φ C k computes the amplification of the function that C computes.

The Goldreich–Levin amplification is efficient [CarmosinoImpagliazzoKabanetsKolokolova2016, proof of Thm 4.3, p. 10:16]: if C computes f, then glAmpCircuit φ C k computes glAmp f k.

@[simp]
theorem Cslib.Circuits.Boolean.size_glAmpCircuit {σ : Signature} {n : ℕ} (φ : Unbounded.extSignature.Hom σ) (C : Circuit σ n 1) (k : ℕ) :
(glAmpCircuit φ C k).size = k * C.size + k + 1

glAmpCircuit φ C k has k * C.size + k + 1 gates.

glAmpCircuit φ C k is at most two deeper than C.