Polynomial-time word and oracle-PPT list decoders for Goldreich–Levin (Goldreich 2008, Thm. 7.8) #
This module lifts the finite simultaneous Goldreich–Levin list decoders of
CslibFrontier.Crypto.Computational.GoldreichLevin.ListDecoding (decode and decodePruned) to:
- Deterministic polynomial-time word algorithms (
wordListDecodeandwordListDecodePruned) that output duplicate-free candidate listsList (List Bool)certified byComputableInPolyTime, and - Uniform strict oracle-PPT algorithms (
oracleListDecodeandoracleListDecodePruned) on a structured unary parameter recordListDecodeParams(encListDecodeParams), certified byIsOraclePPTOn(which supplies explicit polynomial step, query-count, and query-length bounds viaIsOraclePPTOn.query_bounds) and achieving simultaneous success probability at least1 / 2against every Boolean oracleB : BitString n → Boolwith no efficiency assumption onB.
Main definitions #
Cslib.Crypto.GoldreichLevin.ListDecodeParams,Cslib.Crypto.GoldreichLevin.encListDecodeParams: unary input record(dimension, precision)encoded viaenc_structure.Cslib.Crypto.GoldreichLevin.dedupWords: duplicate erasure onList (List Bool)viaList.eraseDupsBy.Cslib.Crypto.GoldreichLevin.wordListDecode: unpruned polynomial-time word list decoder.Cslib.Crypto.GoldreichLevin.wordEmpiricalHits,Cslib.Crypto.GoldreichLevin.wordPruneCandidates,Cslib.Crypto.GoldreichLevin.wordListDecodePruned: empirical-agreement pruning and the two-stage pruned polynomial-time word list decoder.Cslib.Crypto.GoldreichLevin.queryBatch,Cslib.Crypto.GoldreichLevin.lookupReply: batch oracle querying and transcript lookup.Cslib.Crypto.GoldreichLevin.oracleListDecode,Cslib.Crypto.GoldreichLevin.oracleListDecodePruned: uniform strict oracle-PPT list decoders.Cslib.Crypto.GoldreichLevin.predictorOracle,Cslib.Crypto.GoldreichLevin.bitStringOracle: stateless oracle handlers for arbitrary Boolean functionspredictor : List Bool → BoolandB : BitString n → Bool.
Main results #
Cslib.Crypto.GoldreichLevin.polyTime_wordListDecode,Cslib.Crypto.GoldreichLevin.polyTime_wordListDecodePruned: uniform deterministic polynomial-time certificates jointly indimension,precision, and any captured polynomial-time predictor.Cslib.Crypto.GoldreichLevin.toFinset_wordListDecode,Cslib.Crypto.GoldreichLevin.toFinset_wordListDecodePruned: exact agreement with the finite candidate setscandidatesandprunedCandidates.Cslib.Crypto.GoldreichLevin.length_wordListDecode_le,Cslib.Crypto.GoldreichLevin.wordListDecode_simultaneous_success_ge_half,Cslib.Crypto.GoldreichLevin.wordListDecodePruned_simultaneous_success_ge_half: duplicate-free list-length bounds and1 / 2simultaneous success bounds on uniform mask and sample bit tapes.Cslib.Crypto.GoldreichLevin.isOraclePPTOn_oracleListDecode,Cslib.Crypto.GoldreichLevin.isOraclePPTOn_oracleListDecodePruned,Cslib.Crypto.GoldreichLevin.oracleListDecode_query_bounds,Cslib.Crypto.GoldreichLevin.oracleListDecodePruned_query_bounds: strict oracle-PPT certificates and polynomial query budgets.Cslib.Crypto.GoldreichLevin.oracleListDecode_bitStringOracle_simultaneous_success_ge_half,Cslib.Crypto.GoldreichLevin.oracleListDecodePruned_bitStringOracle_simultaneous_success_ge_half: simultaneous list-decoding theorems fororacleListDecodeandoracleListDecodePrunedagainst every Boolean oracleB : BitString p.dimension → Bool.
References #
- O. Goldreich, L. Levin, A Hard-Core Predicate for All One-Way Functions
- 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. Structured parameters and joint mask-enumeration certificates #
Input parameters for the uniform Goldreich–Levin list decoder:
dimension: the bit-lengthnof secret stringsx : BitString n(encoded in unary),precision: the correlation denominatorpfor agreement threshold1 / 2 + 1 / p(encoded in unary).
- dimension : ℕ
Bit-length
nof secret stringsx : BitString n. - precision : ℕ
Correlation denominator
p(with target agreement1 / 2 + 1 / p).
Instances For
The tuple of the fields of encListDecodeParams.
Canonical unary pair encoding of ListDecodeParams.
Computing listMaskCount is polynomial-time from unary dimension and precision.
Computing pruneSampleCount is polynomial-time from unary dimension and precision.
The encoded size of enumList (listMaskCount n precision) is bounded by a fixed polynomial in
L whenever n ≤ L and precision ≤ L.
Enumerating all 2 ^ listMaskCount p.1 p.2 parity guesses is polynomial-time jointly in
p : ℕ × ℕ under (encPair encUnary encUnary).
Enumerating all 2 ^ listMaskCount (dimension a) (precision a) parity guesses is
polynomial-time from any unary dimension and precision.
Computing nonzeroSelectors (listMaskCount (dimension a) (precision a)) is polynomial-time
from any unary dimension and precision.
2. Duplicate erasure on candidate word lists (dedupWords) #
dedupWords is computable in polynomial time on framed word lists.
dedupWords preserves list membership.
dedupWords produces a duplicate-free list.
dedupWords preserves toFinset.
The length of dedupWords words equals words.toFinset.card.
3. Deterministic polynomial-time word list decoders #
wordListDecode is computable in polynomial time jointly in dimension, precision, masks,
and any captured polynomial-time predictor.
wordListDecode always returns a duplicate-free list of words.
The finite set of words returned by wordListDecode is the List.ofFn image of the finite
candidate set candidates.
For x : BitString n, List.ofFn x belongs to wordListDecode predictor n precision masks if
and only if x belongs to candidates.
Every word in wordListDecode predictor n precision masks is List.ofFn x for some
x ∈ candidates.
The length of wordListDecode equals the cardinality of the finite candidate set
candidates.
Uniform mask bits under wordListDecode induce the List.ofFn-image of the finite decode
distribution on toFinset.
Simultaneous word list-decoding success (ℝ≥0∞): for 0 < precision, sampling a uniform
mask bit tape and running wordListDecode outputs a list containing List.ofFn x for every
(1 / 2 + 1 / precision)-correlated x : BitString n with probability at least 1 / 2.
Simultaneous word list-decoding success (ℝ): real-probability form of
wordListDecode_simultaneous_success_ge_half.
wordEmpiricalHits is computable in polynomial time jointly in sampleRows, candidate, and
any captured polynomial-time predictor.
On List.ofFn sample rows and List.ofFn x, wordEmpiricalHits agrees with
empiricalHits.
wordPruneCandidates is computable in polynomial time.
Two-stage pruned polynomial-time Goldreich–Levin word list decoder: generate candidate words
from masks using listMaskCount dimension precision masks, then prune them on
pruneSampleCount dimension precision sample words from samples at threshold
(2 * precision + 3) / (4 * precision).
wordListDecodePruned is computable in polynomial time jointly in dimension, precision,
masks, samples, and any captured polynomial-time predictor.
wordListDecodePruned always returns a duplicate-free list of words.
The finite set of words returned by wordListDecodePruned is the List.ofFn image of
prunedCandidates.
For x : BitString n, List.ofFn x belongs to wordListDecodePruned if and only if x
belongs to prunedCandidates.
The length of wordListDecodePruned equals the cardinality of prunedCandidates.
Pruned simultaneous word list-decoding success (ℝ≥0∞): for 0 < precision, sampling
independent uniform mask and sample bit tapes and running wordListDecodePruned succeeds with
probability at least 1 / 2 in returning a duplicate-free list L that:
4. Uniform strict oracle-PPT list decoders (oracleListDecode, oracleListDecodePruned) #
candidateQueries is computable in polynomial time.
All oracle queries made by wordListDecode on (dimension, precision) and mask tape
masks.
listDecodeQueries is computable in polynomial time.
All oracle queries made by wordListDecodePruned on (dimension, precision), mask tape
masks, and sample tape samples.
listDecodePrunedQueries is computable in polynomial time.
lookupReply is computable in polynomial time.
wordCandidate depends on predictor only at queries in candidateQueries.
wordCandidates depends on predictor only at queries in candidateQueries.
wordListDecode depends on predictor only at queries in listDecodeQueries.
wordEmpiricalHits depends on predictor only at queries in sampleRows.
wordListDecodePruned depends on predictor only at queries in listDecodePrunedQueries.
Running wordListDecode with lookupReply queries (queries.map predictor) where
queries = listDecodeQueries dimension precision masks equals wordListDecode predictor.
Running wordListDecodePruned with lookupReply queries (queries.map predictor) where
queries = listDecodePrunedQueries dimension precision masks samples equals
wordListDecodePruned predictor.
queryBatchStep is a strict oracle-PPT step on (queries, replies).
Query every word in queries in order on channel (), returning the list of first reply
bits.
queryBatch is strict oracle-PPT on framed query lists.
queryBatch composed with a polynomial-time query-list generator is uniform strict oracle
PPT.
On List.ofFn x for x : BitString n, bitStringPredictor B equals B x.
Against predictorOracle predictor, queryBatch queries returns queries.map predictor.
Uniform strict oracle-PPT Goldreich–Levin list decoder (unpruned): sample listMaskCount
random masks, batch-query the oracle on listDecodeQueries, and return the duplicate-free
candidate list wordListDecode.
oracleListDecode is a uniform strict oracle-PPT algorithm on encListDecodeParams.
Uniform polynomial bounds on the number of oracle queries and the length of every oracle query
made by oracleListDecode.
Running oracleListDecode p against predictorOracle predictor induces the exact
wordListDecode distribution over uniform mask tapes.
Simultaneous oracle-PPT list decoding (ℝ≥0∞): for every Boolean oracle
B : BitString p.dimension → Bool (with no efficiency assumption on B) and 0 < p.precision,
running oracleListDecode p against bitStringOracle B outputs with probability at least 1 / 2
a duplicate-free list L of size at most 16 * p.dimension * p.precision ^ 4 + 2 that contains
List.ofFn x for every x : BitString p.dimension with
1 / 2 + 1 / p.precision ≤ agreement B x.
Uniform strict oracle-PPT Goldreich–Levin pruned list decoder: sample listMaskCount random
masks and pruneSampleCount random estimation points, batch-query the oracle on
listDecodePrunedQueries, and return the pruned duplicate-free candidate list
wordListDecodePruned.
oracleListDecodePruned is a uniform strict oracle-PPT algorithm on encListDecodeParams.
Uniform polynomial bounds on the number of oracle queries and the length of every oracle query
made by oracleListDecodePruned.
Running oracleListDecodePruned p against predictorOracle predictor induces the exact
wordListDecodePruned distribution over independent uniform mask and sample tapes.
Pruned simultaneous oracle-PPT list decoding (ℝ≥0∞, Goldreich 2008 Theorem 7.8): for
every Boolean oracle B : BitString p.dimension → Bool (with no efficiency assumption on B) and
0 < p.precision, running oracleListDecodePruned p against bitStringOracle B succeeds with
probability at least 1 / 2 in returning a duplicate-free list L that:
Pruned simultaneous oracle-PPT list decoding (ℝ): real-probability form of
oracleListDecodePruned_bitStringOracle_simultaneous_success_ge_half.