Documentation

CslibFrontier.MachineLearning.UniformLearning.CryptoHardness.GGM

Nonuniform subexponential-generator steps toward cryptographic hardness of learning #

This module formalizes nonuniform subexponential-circuit corollaries and intermediate steps after [RazborovRudich1997, Section 4], [Val84], and [GGM86] (locators for [Val84] and [GGM86] unverified). It is not the cited uniform polynomial-time / polynomially-secure-PRG unlearnability theorem of [Val84] and [GGM86], which remains open on #4927.

The GGM functions built from a length-doubling generator G with seeds of k bits have circuits of size n (C + 4 k) + 2, where C is the circuit complexity of G (Cslib.Crypto.GGM.complexity_booleanFamily_le), and are pseudorandom against truth-table circuits when G is (Cslib.Crypto.GGM.secure_truthTableGenerator_booleanFamily). A learner for the functions of that circuit size yields a single-point truth-table distinguisher (UniformLearning.QueryLearner.Learns.le_of_secure), giving three nonuniform circuit-model steps:

Gaps relative to [Val84] and [GGM86], tracked on #4927:

Main results #

References #

theorem Cslib.MachineLearning.UniformLearning.QueryLearner.Learns.le_of_secure_generator {k n : ℕ} [NeZero k] {G : Crypto.PRG.Generator (BitString k) (BitString (2 * k))} {Ω : Type u_1} {A : QueryLearner (Fin n) Ω} {μ : PMF Ω} {C : PACLearning.ConceptClass (BitString n) Bool} {ε δ : ℝ} {q t : ℕ} {η : NNReal} (hL : A.Learns μ C ε δ) (hA : A.HasCircuitTests q t) (hC : ∀ (f : BooleanFunction n), Circuits.complexity Circuits.Boolean.interpretation (Circuits.single f) ≤ n * (Circuits.complexity Circuits.Boolean.interpretation ⇑G + 4 * k) + 2 → f ∈ C) (hG : G.Secure (Crypto.PRG.IsCircuitTest (t + 2 ^ n * (n * Circuits.complexity Circuits.Boolean.interpretation ⇑G + 1))) η) (hε : ε ≤ 1) (hδ : 0 ≤ δ) :
(1 - δ) * (1 - ε) ≤ 1 / 2 + ↑q / 2 ^ (n + 1) + (2 ^ n - 1) * ↑η

A concrete nonuniform circuit-test step after [RazborovRudich1997, Section 4], [Val84], and [GGM86] (locators for [Val84] and [GGM86] unverified), not the cited uniform polynomial-time theorem. Let G be a length-doubling generator with seeds of k ≥ 1 bits and circuit complexity C, such that no test with t + 2 ^ n (n C + 1) gates distinguishes its output from uniform with advantage more than η. Let A have circuit tests of size t with q queries, and learn, with error ε ≤ 1 and confidence 1 - δ, a class containing every function on n bits of circuit size at most n (C + 4 k) + 2. Then (1 - δ) (1 - ε) ≤ 1 / 2 + q / 2 ^ (n + 1) + (2 ^ n - 1) η. Because the reduction tests a single point and routes through whole-truth-table GGM security, the uniform polynomial-PRG objective stays open on #4927.

theorem Cslib.MachineLearning.UniformLearning.eventually_le_of_isSubexponentiallySecure {G : (k : ℕ) → Crypto.PRG.Generator (BitString k) (BitString (2 * k))} {d : ℕ} (hsize : PolynomiallyBounded fun (k : ℕ) => Circuits.complexity Circuits.Boolean.interpretation ⇑(G k)) (hG : Crypto.PRG.IsSubexponentiallySecure G d) :
∃ (s : ℕ → ℕ), PolynomiallyBounded s ∧ ∀ (c : ℕ), ∀ᶠ (n : ℕ) in Filter.atTop, ∀ {Ω : Type u} (A : QueryLearner (Fin n) Ω) (μ : PMF Ω) (C : PACLearning.ConceptClass (BitString n) Bool) (ε δ : ℝ) (q t : ℕ), A.HasCircuitTests q t → t ≤ 2 ^ (c * n) → A.Learns μ C ε δ → (∀ (f : BooleanFunction n), Circuits.complexity Circuits.Boolean.interpretation (Circuits.single f) ≤ s n → f ∈ C) → ε ≤ 1 → 0 ≤ δ → (1 - δ) * (1 - ε) ≤ 1 / 2 + ↑q / 2 ^ (n + 1) + (2 ^ (c * n))⁻¹

A nonuniform subexponential-generator corollary after [RazborovRudich1997, Section 4], [Val84], and [GGM86] (locators for [Val84] and [GGM86] unverified); this is not the cited Valiant/GGM polynomial-PRG, uniform polynomial-time unlearnability theorem. Let G be a family of length-doubling generators of polynomial circuit complexity that is subexponentially secure with exponent 1 / d. Then there is a polynomially bounded s such that, for every c, for all large n, every learner with circuit tests of size at most 2 ^ (c n) with q queries that learns the functions on n bits of circuit size at most s n with error ε ≤ 1 and confidence 1 - δ satisfies (1 - δ) (1 - ε) ≤ 1 / 2 + q / 2 ^ (n + 1) + 2 ^ (-c n). The bound is s n = n (C + 4 k) + 2 for the GGM functions with keys of k = (n + 1) ^ (2 d + 1) bits, where C is the circuit complexity of G k.

This rests on PRG.IsSubexponentiallySecure (strictly stronger than polynomial PRG security), models nonuniform circuit tests with no running time, and is vacuous for weak learners with (1 - δ) (1 - ε) ≤ 1 / 2. The uniform polynomial-PRG theorem stays open on #4927.

theorem Cslib.MachineLearning.UniformLearning.exists_eventually_not_learns_of_isSubexponentiallySecure {G : (k : ℕ) → Crypto.PRG.Generator (BitString k) (BitString (2 * k))} {d : ℕ} (hsize : PolynomiallyBounded fun (k : ℕ) => Circuits.complexity Circuits.Boolean.interpretation ⇑(G k)) (hG : Crypto.PRG.IsSubexponentiallySecure G d) :
∃ (s : ℕ → ℕ), PolynomiallyBounded s ∧ ∀ (c : ℕ) (ε δ : ℝ), ε ≤ 1 → 0 ≤ δ → 3 / 4 < (1 - δ) * (1 - ε) → ∀ᶠ (n : ℕ) in Filter.atTop, ∀ {Ω : Type u} (A : QueryLearner (Fin n) Ω) (μ : PMF Ω) (q S : ℕ), A.HasAdaptiveCircuit q S → 2 * q ≤ 2 ^ n → S ≤ 2 ^ (c * n) → ¬A.Learns μ {f : (Fin n → Bool) → Bool | Circuits.complexity Circuits.Boolean.interpretation (Circuits.single f) ≤ s n} ε δ

A nonuniform subexponential-generator unlearnability step after [RazborovRudich1997, Section 4], [Val84], and [GGM86] (locators for [Val84] and [GGM86] unverified); this is not the cited Valiant/GGM polynomial-PRG, uniform polynomial-time unlearnability theorem. Let G be a family of length-doubling generators of polynomial circuit complexity that is subexponentially secure. Then there is a polynomially bounded s with the following property. For every c and every error ε ≤ 1 and confidence 1 - δ with (1 - δ) (1 - ε) > 3 / 4, for all large n, no learner with at most 2 ^ (n - 1) adaptive queries and circuits of at most 2 ^ (c n) gates in all learns the functions on n bits of circuit size at most s n with error ε and confidence 1 - δ. The threshold 3 / 4 is 1 / 2 for guessing an unqueried value plus 1 / 4 for the chance that the comparison point was queried. Non-adaptive learners with circuits are the special case of constant queries (UniformLearning.QueryLearner.HasCircuit.hasAdaptiveCircuit).

This step rests on PRG.IsSubexponentiallySecure (strictly stronger than polynomial PRG security), restricts to (1 - δ) (1 - ε) > 3 / 4 via single-point testing (excluding weak learning and fixed-parameter regimes like ε = 1 / 4, δ = 1 / 10), and models nonuniform per-seed circuits without running time. The uniform polynomial-PRG theorem stays open on #4927.