Classical PAC sample complexity is Ω(d/ε + log(1/δ)/ε)
OpenQAlgorithms.Arunachalam.pac_lower_boundLet be a concept class of VC dimension (the largest set shattered by has elements), and assume is non-trivial. A classical -PAC learner using examples is a randomized map from labelled examples , i.i.d., to hypotheses such that for every and every distribution on , with probability at least over the examples and the learner's randomness.
For every there is a constant such that for all , , all such , all , all and every -PAC learner for using examples,
Together with the matching upper bound this pins down the classical PAC sample complexity up to constant factors.
Formalization Note Two corrections of the source: the constant is uniform over (the part is Lemma 7.4.1, which fails uniformly near ), and non-triviality is assumed, as Lemma 7.4.1 requires; it is automatic for , and at the class is learned exactly from one example.
import Definitions.Def_QAlgorithms_Defs_Learning set_option autoImplicit false
namespace QAlgorithms.Arunachalam
open QAlgorithms.Learning
/-- Arunachalam p.163–165, Theorem 7.4.3: for a concept class `C` with `VC-dim(C) = d + 1`,
every (randomized, possibly improper) classical `(ε, δ)`-PAC learner for `C` with
`ε ∈ (0, 1/4)` uses `Ω(d/ε + log(1/δ)/ε)` examples.
Corrected statement (trap 30): the constant is uniform over `δ ∈ (0, δ₀]` for each
`δ₀ < 1/2` (the `log(1/δ)/ε` part is Lemma 7.4.1, see there); and `C` is assumed non-trivial,
as Lemma 7.4.1, which the proof invokes, requires (at `d = 0` the class `{c, ¬c}` has
VC dimension 1 and is learned exactly from one example; for `d ≥ 1` non-triviality is
automatic). -/
theorem pac_lower_bound :
∀ δ₀ : ℝ, 0 < δ₀ → δ₀ < 1 / 2 → ∃ C₀ : ℝ, 0 < C₀ ∧
∀ (n : ℕ) (C : Finset (Qubits n → Bool)) (d : ℕ), vcDimClass C = d + 1 →
IsNontrivialClass C →
∀ δ ε : ℝ, 0 < δ → δ ≤ δ₀ → 0 < ε → ε < 1 / 4 →
∀ (T : ℕ) (L : (Fin T → Qubits n × Bool) → PMF (Qubits n → Bool)),
IsPACLearner C ε δ T L → C₀ * ((d : ℝ) / ε + Real.log (1 / δ) / ε) ≤ 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 , together with every , such that the VC dimension of equals . Here the VC dimension of is the largest size of a subset of shattered by the family of sets , ;
- is also nontrivial, meaning and for every ;
- all reals with and ;
- every ;
- every randomized classical learner . This is a map assigning to each -tuple of labelled examples a probability distribution over all Boolean functions on , not necessarily in .
The hypothesis is that is a PAC learner: for every and every distribution on (nonnegative, summing to ),
where . In words: on i.i.d. samples from labelled by , the learner outputs an -good hypothesis with probability at least .
The conclusion, with natural logarithm and with equal to the VC dimension minus one, is
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.