Executable extraction of repeated labels #
The program samples a flat Boolean matrix, hashes the labels, and retains every observation and the matrix seed. Its exact law agrees with the finite two-universal family used by the extraction theorems. The supplied input width also defines behavior on malformed sample lists: labels are truncated or padded with false before hashing.
Main definitions #
extractWordLabels,extractWordLabelsIdeal: actual and ideal matrix-extraction programs.
Main results #
isPPTOn_extractWordLabels: certify sampling, normalization, hashing and copying.SamplablePair.HasGap.extract_indexed_word_labels: computational extraction for one uniformly efficient family of tests and arbitrary valid index choices.SamplablePair.HasGap.extract_word_labels: the ordinary single-test interface.
References #
- Thomas Holenstein, Pseudorandom Generators from One-Way Functions: A Simple Construction for Any Hardness, TCC 2006, Section 5, Game 2. [Hol06]. The Boolean-matrix implementation replaces the write-up's finite-field hash family.
Adapted from the cslib crypto branch at
5ff69ca93402e7c947208dc56396d6d86203ccd8.
Runtime dimensions and sample lists compose into a strict PPT extractor.
The finite and word extractors have exactly the same law, even on malformed sample lists.
The ideal word program agrees with the finite ideal distribution and retains the full seed.
An ordinary word test after extraction gives the finite test required by the security theorem. Sampling, padding, hashing, and encoding the public data are all charged to PPT. The test and dimensions may depend on any encoded runtime parameter.
An efficient indexed family of word extractors is computationally uniform along any bounded choice satisfying the entropy budget. The choice is used only in the proof and need not be efficient; the reduction certifies the whole family of tests.
Computational label extraction as two ordinary word programs. The client supplies the entropy budget and a certified test; matrix sampling, finite representations, and the uniform prediction reduction are discharged by the library.