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 #
Cslib.Circuits.Boolean.glAmpCircuit: the circuit forglAmp f kbuilt from a circuit forf.
Main results #
Cslib.Circuits.Boolean.eval_glAmpCircuit,Cslib.Circuits.Circuit.Computes.glAmpCircuit: it computes the amplification of the functionCcomputes.Cslib.Circuits.Boolean.size_glAmpCircuit: it hask * C.size + k + 1gates.Cslib.Circuits.Boolean.depth_glAmpCircuit_le: its depth is at mostC.depth + 2.
References #
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 φ.
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.
glAmpCircuit φ C k has k * C.size + k + 1 gates.
glAmpCircuit φ C k is at most two deeper than C.