Goldreich–Levin Simultaneous List Decoding (Goldreich Theorem 7.8 & Exercise 7.6) #
Decoding.lean proves the single-target Goldreich–Levin bound decode_failure_le: for any fixed
x : BitString n with 1 / 2 + ε ≤ agreement predictor x, the pairwise-independent candidate set
candidates predictor masks omits x with probability at most
n / (4 * ε ^ 2 * (2 ^ k - 1)).
Goldreich Theorem 7.8 (and Exercise 7.6) requires a simultaneous list decoder that outputs a
list containing every correlated string x : BitString n with
1 / 2 + ε ≤ agreement predictor x in one run with probability at least 1 / 2, together with a
pruned variant in which every output candidate is guaranteed to have correlation at least ε / 2
(and the returned list has size at most 1 / ε ^ 2).
This module develops both finite list-decoding results on top of Decoding.lean,
CslibFrontier/Foundations/BooleanAnalysis/Fourier.lean, and
CslibFrontier/Probability/Concentration.lean:
- Parseval bound on the number of correlated strings (
card_filter_agreement_ge_le): For everyx : BitString n, the Fourier coefficient ofr ↦ signVal (predictor r)on the support{i | x i = true}is2 * agreement predictor x - 1(fourierCoeff_signVal_eq_two_mul_agreement_sub_one). By Parseval's identity (BitString.sum_fourierCoeff_sq_signVal), the squared correlations sum to1(sum_two_mul_agreement_sub_one_sq), so at most1 / (4 * ε ^ 2)stringsx : BitString ncan satisfy1 / 2 + ε ≤ agreement predictor x. - Simultaneous list decoding (
decode_simultaneous_failure_le,decode_listMaskCount_simultaneous_success_ge_half): Union-boundingdecode_failure_leover the≤ 1 / (4 * ε ^ 2)heavy strings shows thatdecode predictor kmisses any string with1 / 2 + ε ≤ agreement predictor xwith probability at mostn / (16 * ε ^ 4 * (2 ^ k - 1)). SettinglistMaskCount n precision = maskCount n (2 * precision ^ 2)gives2 ^ k - 1 ≥ 8 * n * p ^ 4, so simultaneous failure is at most1 / 4 ≤ 1 / 2and simultaneous success is at least1 / 2(in fact≥ 3 / 4), with candidate list size at most2 ^ k ≤ 16 * n * p ^ 4 + 2. - Pruned simultaneous list decoding (
decodePruned,decodePruned_simultaneous_success_ge_half): Using a second independent batch ofm = pruneSampleCount n precisionuniform query points and Chernoff–Hoeffding concentration (PMF.uniform_abs_sum_div_sub_expect_ge_le), filteringcandidates predictor masksat empirical agreement threshold(2 * p + 3) / (4 * p)succeeds with probability at least1 / 2in returning a list that:- contains every
x : BitString nwith1 / 2 + 1 / p ≤ agreement predictor x, - contains only strings
x : BitString nwith1 / 2 + 1 / (2 * p) ≤ agreement predictor x, - has cardinality at most
p ^ 2on that event (and at most16 * n * p ^ 4 + 2unconditionally).
- contains every
Main definitions #
Cslib.Crypto.GoldreichLevin.listMaskCount: mask countmaskCount n (2 * precision ^ 2)for simultaneous list decoding at correlation1 / precision.Cslib.Crypto.GoldreichLevin.empiricalHits: count of sample pointsj : Fin mon whichpredictor (samples j) = x ⬝ᵥ samples j.Cslib.Crypto.GoldreichLevin.prunedCandidates: candidates fromcandidates predictor maskswhose empirical hit fraction is at leastnum / den.Cslib.Crypto.GoldreichLevin.decodePruned: two-stage distribution drawing uniformmasksand independent uniformsamplesand returningprunedCandidates.Cslib.Crypto.GoldreichLevin.pruneSampleCount: sample count32 * (listMaskCount n precision + 3) * precision ^ 2for concentration pruning.
Main results #
Cslib.Crypto.GoldreichLevin.fourierCoeff_signVal_eq_two_mul_agreement_sub_one: the Fourier coefficient on the support ofxequals2 * agreement predictor x - 1.Cslib.Crypto.GoldreichLevin.sum_two_mul_agreement_sub_one_sq: Parseval's identity for inner product correlations (∑ x, (2 * agreement predictor x - 1) ^ 2 = 1).Cslib.Crypto.GoldreichLevin.card_filter_agreement_ge_le: at most1 / (4 * ε ^ 2)strings satisfy1 / 2 + ε ≤ agreement predictor x.Cslib.Crypto.GoldreichLevin.decode_simultaneous_failure_le: simultaneous failure boundn / (16 * ε ^ 4 * (2 ^ k - 1)).Cslib.Crypto.GoldreichLevin.decode_listMaskCount_simultaneous_success_ge_half: simultaneous list decoding atlistMaskCount n precisionsucceeds with probability at least1 / 2.Cslib.Crypto.GoldreichLevin.decodePruned_simultaneous_success_ge_half: pruned simultaneous list decoding succeeds with probability at least1 / 2, outputting all(1 / 2 + 1 / p)-agreed strings, only(1 / 2 + 1 / (2 * p))-agreed strings, and at mostp ^ 2strings.
References #
- O. Goldreich, Computational Complexity: A Conceptual Perspective, Theorem 7.8
(p. 254) and Exercise 7.6 (see also the March 2007 draft
r4.pdf[Gol07c], Theorem 7.8 and Exercise 7.6).
1. Parseval identity for inner-product correlations and correlated-string count bound #
The uniform expectation of score predictor x over BitString n is agreement predictor x.
Pointwise sign product identity: signVal (predictor r) * signVal (x ⬝ᵥ r) equals
2 * score predictor x r - 1.
The Fourier coefficient of r ↦ signVal (predictor r) at the support {i | x i = true} of x
is 2 * agreement predictor x - 1.
Parseval's identity for inner-product correlations: the squared correlations
(2 * agreement predictor x - 1) ^ 2 summed over all x : BitString n equal 1.
Correlated-string count bound (multiplied form): for any 0 ≤ ε, the number of strings
x : BitString n with 1 / 2 + ε ≤ agreement predictor x satisfies card * (4 * ε ^ 2) ≤ 1.
At threshold 1 / 2 + 1 / (2 * precision), at most precision ^ 2 strings x : BitString n
satisfy 1 / 2 + 1 / (2 * (precision : ℝ)) ≤ agreement predictor x.
2. Simultaneous finite list decoding (decode predictor k) #
Simultaneous list-decoding failure bound: for any 0 < ε and 0 < k, the probability
that decode predictor k omits some x : BitString n with 1 / 2 + ε ≤ agreement predictor x
is at most n / (16 * ε ^ 4 * (2 ^ k - 1)).
General target-bound specialization of decode_simultaneous_failure_le: when
(n : ℝ) ≤ 16 * δ * ε ^ 4 * (2 ^ k - 1), decode predictor k fails to contain all
(1 / 2 + ε)-correlated strings with probability at most ENNReal.ofReal δ.
When (n : ℝ) ≤ 4 * ε ^ 4 * (2 ^ k - 1), decode predictor k fails to contain all
(1 / 2 + ε)-correlated strings with probability at most 1 / 4.
When (n : ℝ) ≤ 8 * ε ^ 4 * (2 ^ k - 1), decode predictor k fails to contain all
(1 / 2 + ε)-correlated strings with probability at most 1 / 2.
Simultaneous list-decoding success bound (ℝ≥0∞): when
(n : ℝ) ≤ 8 * ε ^ 4 * (2 ^ k - 1), decode predictor k outputs a list containing every
x : BitString n with 1 / 2 + ε ≤ agreement predictor x with probability at least 1 / 2.
Simultaneous list-decoding success bound (ℝ): when
(n : ℝ) ≤ 8 * ε ^ 4 * (2 ^ k - 1), the real success probability of simultaneous list decoding is
at least 1 / 2.
3. Explicit parameter schedule for simultaneous list decoding #
Number of random masks k for simultaneous list decoding at correlation 1 / precision
(or 1 / (2 * precision)): defined via maskCount n (2 * precision ^ 2) so that
2 ^ k - 1 ≥ 8 * n * precision ^ 4.
listMaskCount n precision is always positive.
2 ^ listMaskCount n precision - 1 is at least 8 * n * precision ^ 4.
The guess count 2 ^ listMaskCount n precision is at most 16 * n * precision ^ 4 + 2.
listMaskCount n precision is bounded by 8 * n * precision ^ 4 + 1.
At k = listMaskCount n precision and ε = 1 / precision, the quarter-failure parameter
condition (n : ℝ) ≤ 4 * ε ^ 4 * (2 ^ k - 1) holds (in fact 32 * n ≤ 4 * ε ^ 4 * (2 ^ k - 1)).
At k = listMaskCount n precision, simultaneous list decoding for threshold
1 / 2 + 1 / precision fails with probability at most 1 / 4.
At k = listMaskCount n precision, simultaneous list decoding for threshold
1 / 2 + 1 / precision fails with probability at most 1 / 2.
Simultaneous list decoding at listMaskCount (ℝ≥0∞): for 0 < precision,
decode predictor (listMaskCount n precision) outputs a list containing every
x : BitString n with 1 / 2 + 1 / precision ≤ agreement predictor x with probability at least
1 / 2.
Simultaneous list decoding at listMaskCount (ℝ): for 0 < precision, the real success
probability of decode predictor (listMaskCount n precision) is at least 1 / 2.
4. Pruned simultaneous list decoding (decodePruned) #
empiricalHits predictor samples x, cast to ℝ, is the sum of score predictor x (samples j)
over j : Fin m.
Candidates from candidates predictor masks whose empirical agreement on samples is at least
num / den, expressed in integer cross-multiplied form m * num ≤ den * empiricalHits.
Membership characterization for prunedCandidates.
prunedCandidates is a subset of candidates predictor masks.
prunedCandidates has cardinality at most 2 ^ k.
The two-stage pruned Goldreich–Levin list-decoding distribution: sample k uniform masks for
candidate generation and m independent uniform sample points for empirical-agreement pruning at
threshold num / den.
Empirical agreement concentration: for m uniform i.i.d. query points
samples : Fin m → BitString n and any x : BitString n, the empirical hit fraction deviates from
agreement predictor x by γ ≥ 0 with probability at most 2 * exp (-(m * γ ^ 2) / 2).
Number of independent uniform estimation queries m used to prune the candidate list at
accuracy 1 / (4 * precision) with failure probability at most 1 / 4.
pruneSampleCount n precision is positive whenever 0 < precision.
Polynomial upper bound on pruneSampleCount n precision.
Conditional on any fixed masks : Fin (listMaskCount n precision) → BitString n, the
probability over samples ← uniformOfFintype that empirical agreement deviates from true agreement
by at least 1 / (4 * precision) on some candidate x ∈ candidates predictor masks is at most
1 / 4.
Deterministic pruning correctness on a good sample batch: when candidates predictor masks
contains all (1 / 2 + 1 / p)-agreed strings and every candidate's empirical agreement on samples
is within 1 / (4 * p) of its true agreement, prunedCandidates at threshold
(2 * p + 3) / (4 * p) contains all (1 / 2 + 1 / p)-agreed strings, contains only
(1 / 2 + 1 / (2 * p))-agreed strings, and has cardinality at most p ^ 2.
Pruned simultaneous list-decoding failure bound: for 0 < precision, decodePruned
fails the simultaneous completeness, soundness, or list-size specification with probability at most
1 / 2 (in fact at most 1 / 4 + 1 / 4 = 1 / 2).
Pruned simultaneous list-decoding success bound (ℝ≥0∞): for 0 < precision,
decodePruned succeeds with probability at least 1 / 2 in returning a list that:
- contains every
x : BitString nwith1 / 2 + 1 / precision ≤ agreement predictor x, - contains only
x : BitString nwith1 / 2 + 1 / (2 * precision) ≤ agreement predictor x, - has cardinality at most
precision ^ 2.
Pruned simultaneous list-decoding success bound (ℝ): for 0 < precision, the real
success probability of decodePruned is at least 1 / 2.