The realizable upper bound for multiclass PAC learning on countable domains #
This module proves the countable-domain realizable upper-bound step toward the multiclass
fundamental theorem [ShalevShwartzBenDavid2014, Theorem 29.3] (#5084). Let C be a concept class
on a countable domain α with labels in a finite type β of size k, all of whose N-shattered
finite sets have at most d points. Then every consistent learner (in particular every empirical
risk minimizer) learns C to accuracy ε with confidence 1 - δ over every distribution
realizable by C from
m ≥ (8 / ε) (d log (48 / ε) + 2 d log k + log (4 / δ))
examples. Consequently every class of finite Natarajan dimension with finitely many labels on a
countable domain is PAC learnable in the realizable setting, with realizable sample complexity
O((d log (k / ε) + log (1 / δ)) / ε).
The proof reuses the binary ε-net machinery (EpsilonNet.lean and VCUpperBound.lean) on the
Boolean loss class {(x, y) ↦ [h x ≠ y] | h ∈ C}. The misclassification pattern on labeled points
is determined by the labeling of their domain points, so Natarajan's lemma bounds the growth
function of the loss class by natarajanSum m k d ≤ k ^ (2 d) exp (m / T) T ^ d. Running the
binary sample-size bound (le_of_vcSampleSize_le) at confidence δ / k ^ (2 d) absorbs the
factor k ^ (2 d).
The domain is assumed countable with measurable singletons and the labels finite with measurable
singletons, so every set of samples is measurable; learners are arbitrary semantic maps without
running-time claims. General measurable domains (#2868) and the sample-complexity lower bounds of
Theorem 29.3 remain open in #5084; the agnostic countable-domain upper bound is in
NatarajanAgnostic.lean.
Main definitions #
natarajanSampleSize d k ε δ: the realizable multiclass sample size(8 / ε) (d log (48 / ε) + 2 d log k + log (4 / δ)).
Main results #
growthFunction_lossClass_le_natarajanSum: the loss class of a class whose N-shattered finite sets have at mostdpoints has growth function at mostnatarajanSum m k d.natarajanSum_le_pow_mul_exp_mul_pow:natarajanSum n k d ≤ k ^ (2 d) exp (n / T) T ^ d.natarajanSampleSize_eq_vcSampleSize:natarajanSampleSizeequalsvcSampleSizeat confidenceδ / k ^ (2 d).IsConsistent.measure_pi_lt_error_le_of_natarajanSampleSize_le: consistent-learner tail bound on countable domains (realizable step toward Theorem 29.3).isPACLearnerFor_realizableDistributions_of_natarajanSampleSize_le,sampleComplexity_realizableDistributions_le_of_hasFiniteNatarajanDim,isPACLearnable_realizableDistributions_of_hasFiniteNatarajanDim: realizable PAC learnability and sample-complexity bound on countable domains.
References #
Natarajan's lemma for the loss class: if C N-shatters no finite set of more than d
points, its Boolean loss class has growth function at most ∑_{i ≤ d} (m choose i) (k choose 2)^i.
The misclassification pattern on labeled points is determined by the labeling of their domain
points.
Real-exponential form of Natarajan's lemma for sample-size bounds: with at least one label,
∑_{i ≤ d} (n choose i) (k choose 2) ^ i ≤ k ^ (2 d) exp (n / T) T ^ d for every T ≥ 1.
The realizable multiclass sample size (8 / ε) (d log (48 / ε) + 2 d log k + log (4 / δ)) for
k labels. It equals vcSampleSize d ε (δ / k ^ (2 d)) (natarajanSampleSize_eq_vcSampleSize).
Countable-domain realizable upper-bound step toward [ShalevShwartzBenDavid2014, Theorem 29.3]
(#5084): if every finite set N-shattered by C has at most d points, D is realizable by C,
A is consistent with C, and m ≥ (8 / ε) (d log (48 / ε) + 2 d log k + log (4 / δ)) with k
labels, then A on m i.i.d. examples has error greater than ε with probability at most δ.
Countable-domain realizable PAC learner step toward [ShalevShwartzBenDavid2014, Theorem 29.3]
(#5084): a class whose N-shattered finite sets have at most d points is (ε, δ)-PAC learnable
over the distributions it realizes from m ≥ natarajanSampleSize d k ε δ examples.
Countable-domain realizable sample-complexity step toward [ShalevShwartzBenDavid2014,
Theorem 29.3] (#5084): a class of finite Natarajan dimension d with k labels has realizable
sample complexity at most ⌈(8 / ε) (d log (48 / ε) + 2 d log k + log (4 / δ))⌉.
Countable-domain realizable learnability step toward [ShalevShwartzBenDavid2014, Theorem 29.3] (#5084): every class of finite Natarajan dimension on a countable domain with finitely many labels is PAC learnable over the distributions it realizes.