Nisan--Wigderson set systems and generators #
This module exposes an exact finite interface for the set systems and generator
used in the metacomplexity reconstruction. Blocks are injectively enumerated,
their intersection costs are finite natural numbers, and the associated NW
generator is definitionally a BitGenerator.
Combining the random-string statistical-test theorem with the finite hybrid lemma shows that every dense random test against a low-complexity NW generator has an oriented adjacent hybrid gap of at least its density divided by the output length. The public submodules also connect that gap to an exact next-bit predictor and realize the weak-design predecessor term as the entry count of canonical overlap-indexed hardwiring tables. A fixed-advice reconstruction then assembles those tables, outside seed coordinates, candidate bit, and later tail into exactly the query evaluated by that predictor. Finite fiber averaging fixes one such advice choice while preserving the predictor's full agreement rate.
A seed coordinate lies in a block support exactly when it is named by the block's injective enumeration.
Enlarging the overlap budget preserves the weak-design property.
Seed restriction is evaluation along the block's coordinate embedding.
Each NW output bit evaluates the hard function on the corresponding restricted seed.
A dense random-string test against a low-complexity NW generator yields an
oriented adjacent hybrid gap of at least density / outputLength.
Hirahara's finite NW hybrid bridge with the low-complexity premise discharged by direct short-seed descriptions.
End-to-end finite probabilistic NW reconstruction step: a dense random test
against a low-complexity generator yields a polarity and coordinate whose
canonical next-bit predictor succeeds with probability at least
1/2 + density / outputLength.
The same concrete next-bit prediction guarantee with low complexity discharged by direct production from seeds shorter than the threshold.