Corollary 2.11 — generalization bound, single hypothesis
DisprovedFoundationsML.PAC.single_hypothesis_generalization_boundStatement (Corollary 2.11, p. 19, PDF p. 36). Fix a hypothesis . Then, for any , the following inequality holds with probability at least (over an i.i.d. sample ):
This is the Hoeffding-inequality step (via Theorem D.2 and Corollary 2.10) applied to a single fixed hypothesis, which Theorem 2.13's union-bound argument then applies to every hypothesis in a finite simultaneously.
Formalization Note. The i.i.d. sample S ~ D^m is modeled as the identity random
variable on the product-measure space (Fin m → X, Measure.pi (fun _ => D)), so the
probability statement is the Measure.pi-measure (cast to ℝ) of the event set
{S | R(h) ≤ R̂_S(h) + sqrt(log(2/δ)/(2m))}. No upper bound on δ is imposed, matching the
book's own unrestricted "for any δ > 0." Also carries the book's standing measurability
hypothesis (Definition 2.1, footnote 2, p. 10) on c and h, needed for the Hoeffding tail
bound to hold of the disagreement event's actual probability.
Retired. Retired because it allowed the degenerate sample size m = 0, where the bound is false; replaced by FoundationsML.PAC.single_hypothesis_generalization_bound_v2.
import Mathlib import Definitions.Def_FoundationsML_PAC_GeneralizationError import Definitions.Def_FoundationsML_PAC_EmpiricalError open MeasureTheory
namespace FoundationsML.PAC
/-- Corollary 2.11 (Generalization bound — single hypothesis; Mohri, Rostamizadeh &
Talwalkar, *Foundations of Machine Learning*, 2nd ed., MIT Press 2018, p. 19, PDF p. 36).
Fix a hypothesis `h : X → Bool` and a target concept `c : X → Bool`. Then, for any `δ > 0`,
with probability at least `1 − δ` over an i.i.d. sample `S ∼ D^m`,
`R(h) ≤ R̂_S(h) + sqrt(log(2/δ) / (2m))`.
**Formalization note.** Carries the book's standing measurability hypothesis (Definition 2.1,
footnote 2, p. 11) on `c` and `h`. -/
theorem single_hypothesis_generalization_bound
{X : Type*} [MeasurableSpace X] (D : Measure X) [IsProbabilityMeasure D]
(c h : X → Bool) (hc_meas : Measurable c) (hh_meas : Measurable h)
(m : ℕ) (δ : ℝ) (hδ : 0 < δ) :
(1 - δ) ≤ (Measure.pi (fun _ : Fin m => D)
{S : Fin m → X | GeneralizationError D c h ≤
EmpiricalError S c h + Real.sqrt (Real.log (2 / δ) / (2 * m))}).toReal := by sorry
end FoundationsML.PAC
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.