Goldreich–Levin decoding of the amplified function #
Let h be a predictor for glAmp f k = (f^k)^GL. For a tuple y of k blocks, the
Goldreich–Levin candidate for r ↦ h (y, r), with K fixed masks and a guess of their
parities, is a guess for f^k (y) = (f (y i))ᵢ (Cslib.Circuits.Boolean.glAmpCandidate). With
the true guess for h = glAmp f k it is exactly f^k
(Cslib.Circuits.Boolean.glAmpCandidate_glAmp).
Claim 4.4 in library form (Cslib.Circuits.Boolean.dens_filter_glAmpCandidate_agree). Suppose
h agrees with glAmp f k on a 1 / 2 + γ fraction of the inputs, and
k ≤ 2 * (γ / 2) ^ 2 * (2 ^ K - 1). Then for at least a γ / 2 ^ (K + 3) fraction of the masks
and guesses, the candidate equals f^k on at least a γ / 2 ^ (K + 3) fraction of the tuples
[Carmosino, Impagliazzo, Kabanets and Kolokolova, Claim 4.4, pp. 10:15–10:16]
[CIKK16]. The proof follows the source: by averaging, a
γ / 2 fraction of the tuples have agreement 1 / 2 + γ / 2 over the masks r
(Cslib.Crypto.GoldreichLevin.dens_filter_agreement_ge), and Goldreich–Levin decoding is applied
to each of them (Cslib.Crypto.GoldreichLevin.dens_filter_candidate_eq_ge).
Two deviations from the source are labelled here:
- List loss. The source uses the Goldreich–Rubinfeld–Sudan decoder [Thm 4.2, p. 10:15], with a
list of size
O(1 / γ²). The library's decoder is the corrected-majority decoder of [GL89], which decodes thekcoordinates separately. It needs2 ^ Kguesses with2 ^ K - 1 ≥ 2 k / γ², a list of sizeO(k / γ²). - A deterministic circuit per seed. The source outputs a random element of the list and gets
expected agreement
Ω(γ³). Here each choice of masks and guess gives a fixed function, and the statement is a fractionδ₀ = γ / 2 ^ (K + 3)of seeds with agreementδ₀. That is at leastγ³ / (36 k)for the least admissibleKwhenγ ≤ 1 / 2.
Each output bit of the candidate, as a function of the flat input x read in blocks
(BitString.block x), has a De Morgan circuit with at most
(2 ^ K - 1) * (s + 1) + (4 + 2 * (2 ^ K - 1) * (2 ^ K + 1)) gates when h has one with s
(Cslib.Circuits.Boolean.complexity_glAmpCandidate_apply_le). The same bound holds when h is
computed from q answer bits and its input by a circuit with s gates, and the candidate reads
those answer bits as inputs too
(Cslib.Circuits.Boolean.complexity_glAmpCandidate_answers_apply_le). Running time is not
certified.
Main definitions #
Cslib.Circuits.Boolean.glAmpCandidate: the Goldreich–Levin candidate forf^kat a tuple of blocks.
Main results #
Cslib.Circuits.Boolean.glAmpCandidate_apply,Cslib.Circuits.Boolean.glAmpCandidate_block: unfolding the candidate, at a tuple and at the blocks of a flat input.Cslib.Circuits.Boolean.glAmpCandidate_glAmp: the true guess recoversf^kexactly.Cslib.Circuits.Boolean.dens_filter_glAmpCandidate_agree: Claim 4.4 in library form.Cslib.Circuits.Boolean.complexity_glAmpCandidate_apply_le: the circuit complexity of each output bit.Cslib.Circuits.Boolean.complexity_glAmpCandidate_answers_apply_le: the same bound with the predictor's answer bits as inputs.
References #
The Goldreich–Levin candidate for f^k. At a tuple y of k blocks of n bits, the
corrected-majority candidate for the parities predicted by r ↦ h (y, r), with the masks masks
and the guess guess of their parities.
Unfolding glAmpCandidate, whose body is not exposed.
For the exact predictor glAmp f k and the true guess, the candidate is f^k.
Claim 4.4 of Carmosino, Impagliazzo, Kabanets and Kolokolova, in library form. If h
agrees with glAmp f k on a 1 / 2 + γ fraction of the inputs, K ≥ 1 and
k ≤ 2 * (γ / 2) ^ 2 * (2 ^ K - 1), then for at least a γ / 2 ^ (K + 3) fraction of the masks
and guesses, the candidate equals f^k on at least a γ / 2 ^ (K + 3) fraction of the tuples.
The list has 2 ^ K = O(k / γ²) entries instead of the source's O(1 / γ²), and the statement is
per seed rather than for a random list element; see the module docstring.
The candidate at the blocks of a flat input x is the Goldreich–Levin candidate for
r ↦ h (x, r).
The circuit complexity of the candidate. If h has a De Morgan circuit with at most s
gates, each output bit of the candidate, as a function of the flat input read in blocks, has one
with at most (2 ^ K - 1) * (s + 1) + (4 + 2 * (2 ^ K - 1) * (2 ^ K + 1)) gates: two constants,
2 ^ K - 1 copies of h, each with at most one negation, and a strict majority.
The candidate with the predictor's answers as inputs. Let the predictor be computed by a
De Morgan circuit F from q answer bits w and its input, so that it is
y ↦ F (w ++ y). Then each output bit of the candidate, as a function of w and the flat
tuple read in blocks, has the bound of complexity_glAmpCandidate_apply_le with s gates for
F. Reordering the inputs of F costs no gates.