Classical agnostic sample complexity is Ω(d/ε² + log(1/δ)/ε²)
OpenQAlgorithms.Arunachalam.agnostic_lower_boundLet be a concept class of VC dimension . For a distribution on let and . A classical -agnostic learner using samples is a randomized map from i.i.d. samples to hypotheses in such that, for every , it outputs with with probability at least .
For every there is a constant such that for all , , all of VC dimension , all , all and every such learner,
Together with the matching upper bound this pins down the classical agnostic sample complexity up to constant factors.
Formalization Note Two corrections of the source: the constant is uniform over (as in Lemma 7.4.2), and is assumed, since at the class has at most one concept and outputting it without samples is an agnostic learner.
import Definitions.Def_QAlgorithms_Defs_Learning set_option autoImplicit false
namespace QAlgorithms.Arunachalam
open QAlgorithms.Learning
/-- Arunachalam p.165–166, Theorem 7.4.4: for a concept class `C` with `VC-dim(C) = d`, every
(randomized) classical `(ε, δ)`-agnostic learner for `C` with `ε ∈ (0, 1/4)` (outputting
`h ∈ C` with `err_D(h) ≤ opt_D(C) + ε` with probability `≥ 1 − δ`, for every distribution `D` on
`{0,1}^{n+1}`) uses `Ω(d/ε² + log(1/δ)/ε²)` samples.
Corrected statement (trap 30): the constant is uniform over `δ ∈ (0, δ₀]` for each
`δ₀ < 1/2` (as Lemma 7.4.2); and `d ≥ 1` is assumed (at `d = 0` the class has at most one
concept, and outputting it without samples is an `(ε, δ)`-agnostic learner). -/
theorem agnostic_lower_bound :
∀ δ₀ : ℝ, 0 < δ₀ → δ₀ < 1 / 2 → ∃ C₀ : ℝ, 0 < C₀ ∧
∀ (n : ℕ) (C : Finset (Qubits n → Bool)) (d : ℕ), vcDimClass C = d → 1 ≤ d →
∀ δ ε : ℝ, 0 < δ → δ ≤ δ₀ → 0 < ε → ε < 1 / 4 →
∀ (T : ℕ) (L : (Fin T → Qubits n × Bool) → PMF (Qubits n → Bool)),
IsAgnosticLearner C ε δ T L →
C₀ * ((d : ℝ) / ε ^ 2 + Real.log (1 / δ) / ε ^ 2) ≤ T := by
sorry
end QAlgorithms.Arunachalam
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
The statement has the following quantifier structure. For every real with there exists a real , depending only on , such that the following holds for all of the data below:
- every ;
- every finite class of Boolean functions on whose VC dimension equals , with . The VC dimension is the largest size of a subset of shattered by the sets , . No nontriviality assumption is made, although forces ;
- all reals with and ;
- every ;
- every randomized learner mapping each labelled sample to a probability distribution over Boolean functions on .
The hypothesis is that is an agnostic learner. This means two things.
First, is proper: for every sample , every with lies in .
Second, for every distribution on (nonnegative, summing to ),
where
The conclusion, with natural logarithm, is
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.