Documentation

CslibFrontier.MachineLearning.UniformLearning.NisanWigderson.BestOf

Query-count and hypothesis-size step toward boosted Nisan–Wigderson reconstruction learning #

This module formalizes a query-count and nonuniform-hypothesis-size step toward [Carmosino, Impagliazzo, Kabanets and Kolokolova, Theorem 2.11, p. 10:9] [CIKK16], not Theorem 2.11 itself: the learner is an uncosted QueryLearner (QueryLearner.bestOf (nwLearner D test) k t) with no poly(L) machine-level running-time certificate. The machine-level runtime certificate (IsOraclePPTOn) remains open on #798.

Following the repetition-and-selection stage of Theorem 2.11, the learner runs Cslib.MachineLearning.UniformLearning.nwLearner k times and selects the best guess on t sample points (Cslib.MachineLearning.UniformLearning.QueryLearner.bestOf).

Let test accept outputs of the generator built from the design D and each target in the class C with probability at least ε > 0 more than uniform strings of m bits. Then k runs of the learner built from test, selected on t uniform points, learn C with error 1 / 2 - ε / (4 m) and confidence 1 - η when ε / (2 m) ≤ 1, log (2 / η) ≤ (ε / (2 m)) k and 8 log (4 k / η) ≤ t (ε / (2 m))² (Cslib.MachineLearning.UniformLearning.bestOf_nwLearner_learns). The natural-property special case takes a test accepting at least a δ > 0 fraction of all strings but no output of the generator, whose negation has advantage at least δ (Cslib.MachineLearning.UniformLearning.bestOf_nwLearner_learns_of_dens). The learner makes at most k m 2 ^ a + t queries (Cslib.MachineLearning.UniformLearning.bestOf_nwLearner_queriesAtMost), and every hypothesis has the De Morgan circuit bound of a single run (Cslib.MachineLearning.UniformLearning.complexity_eval_bestOf_nwLearner_le).

Gaps relative to Theorem 2.11 (tracked on #798): the running time of the oracle circuit-construction algorithm (Cons^f(..., poly(L))) is not certified—only queries and nonuniform De Morgan leaf sizes are bounded. In addition, any advantage ε > 0 replaces the source's advantage greater than 1 / 5, one test serves every target in C (where the source has a single f), the error is 1 / 2 - ε / (4 m) in place of 1 / 2 - 1 / L (L = m), and k and t are explicit rather than poly(L). The source's confidence parameter α is η.

Main results #

References #

theorem Cslib.MachineLearning.UniformLearning.bestOf_nwLearner_queriesAtMost {ℓ n a m k t : ℕ} (D : Crypto.PRG.NisanWigderson.Design ℓ n a m) (test : (Fin m → Bool) → Bool) [NeZero k] :
((nwLearner D test).bestOf k t).QueriesAtMost (k * (m * 2 ^ a) + t)

Best-of-k selection over the Nisan–Wigderson learner makes at most k m 2 ^ a + t queries.

Small hypotheses. Every hypothesis of best-of-k selection over the Nisan–Wigderson learner has De Morgan circuit complexity at most that of the test plus m * (2 ^ a * (2 * a + 3) + 1) + 1, the bound of a single run.

theorem Cslib.MachineLearning.UniformLearning.bestOf_nwLearner_learns {ℓ n a m k t : ℕ} (D : Crypto.PRG.NisanWigderson.Design ℓ n a m) (test : (Fin m → Bool) → Bool) [NeZero m] [NeZero k] {C : PACLearning.ConceptClass (Fin n → Bool) Bool} {ε η : ℝ} (hε0 : 0 < ε) (hε1 : ε / (2 * ↑m) ≤ 1) (hC : ∀ f ∈ C, ε ≤ (((Crypto.PRG.NisanWigderson.generator D f).realExperiment fun (y : Fin m → Bool) => PMF.pure (test y)) true).toReal - ((Crypto.PRG.Generator.idealExperiment fun (y : Fin m → Bool) => PMF.pure (test y)) true).toReal) (hη : 0 < η) (hk : Real.log (2 / η) ≤ ε / (2 * ↑m) * ↑k) (ht : 8 * Real.log (4 * ↑k / η) ≤ ↑t * (ε / (2 * ↑m)) ^ 2) :

A query-model learning step toward [Carmosino, Impagliazzo, Kabanets and Kolokolova, Theorem 2.11, p. 10:9] [CIKK16], not Theorem 2.11 itself. Let 0 < m and let the deterministic test test accept outputs of the Nisan–Wigderson generator built from D and each target f ∈ C with probability at least ε > 0 more than uniform strings. Then best-of-k selection on t sample points over the learner built from test learns C with error 1 / 2 - ε / (4 m) and confidence 1 - η, when ε / (2 m) ≤ 1, log (2 / η) ≤ (ε / (2 m)) k and 8 log (4 k / η) ≤ t (ε / (2 m))². The first condition holds whenever C is nonempty, since an advantage is at most 1. No poly(L) running-time certificate is proved; that remains open on #798.

theorem Cslib.MachineLearning.UniformLearning.bestOf_nwLearner_learns_of_dens {ℓ n a m k t : ℕ} (D : Crypto.PRG.NisanWigderson.Design ℓ n a m) (test : (Fin m → Bool) → Bool) [NeZero m] [NeZero k] {C : PACLearning.ConceptClass (Fin n → Bool) Bool} {δ η : ℝ} (hδ0 : 0 < δ) (hδ : δ ≤ ↑{y : Fin m → Bool | test y = true}.dens) (havoid : ∀ f ∈ C, ∀ (z : Fin ℓ → Bool), test ((Crypto.PRG.NisanWigderson.generator D f) z) = false) (hη : 0 < η) (hk : Real.log (2 / η) ≤ δ / (2 * ↑m) * ↑k) (ht : 8 * Real.log (4 * ↑k / η) ≤ ↑t * (δ / (2 * ↑m)) ^ 2) :
((nwLearner D fun (y : Fin m → Bool) => !test y).bestOf k t).Learns (QueryLearner.bestOfSeed (Probability.PMF.uniformOfFintype (Crypto.PRG.NisanWigderson.Trial ℓ m)) k t) C (1 / 2 - δ / (4 * ↑m)) η

A query-model learning step toward [Carmosino, Impagliazzo, Kabanets and Kolokolova, Theorem 2.11, p. 10:9] [CIKK16] for one-sided dense tests avoiding the generator (the special case of bestOf_nwLearner_learns), not Theorem 2.11 itself. Let the deterministic test test accept at least a δ > 0 fraction of all strings of m bits but no output of the Nisan–Wigderson generator built from D and any target f ∈ C, so that its negation has advantage at least δ. Then best-of-k selection on t sample points over the learner built from the negation of test learns C with error 1 / 2 - δ / (4 m) and confidence 1 - η, when log (2 / η) ≤ (δ / (2 m)) k and 8 log (4 k / η) ≤ t (δ / (2 m))². No poly(L) running-time certificate is proved; that remains open on #798.