Lemma 18 — under Eq. (12), a consistent and generalizing rule is an AERM
ProvedLearnStability.Characterization.lemma18_consistent_generalizing_aermconsistencylearning-theoryp2o-batch-p100bp2o-gran-per-chapterp2o-plan-paperp2o-v1
Let be a learning problem satisfying the standing assumptions, with nonempty, a measurable learning rule and a distribution on . Suppose Equation (12) holds under with rate , i.e.
and that is -consistent and -generalizing under . Then is an AERM under with rate
Combined with Lemmas 16 and 20 this shows that a learnable problem has a universal AERM, the necessity direction of Theorem 7.
Preamble
import Mathlib import Definitions.Def_LearnStability_Characterization_Setting import Definitions.Def_LearnStability_Characterization_RuleProperties open MeasureTheory
Formal statement
namespace LearnStability.Characterization
/-- Lemma 18 (p. 2653): if Equation (12) holds under `D` with rate `ε_emp`, i.e.
`E_{S∼D^m}[|F_S(ĥ_S) − F*|] ≤ ε_emp(m)` for all `m ≥ 1`, and a (measurable) rule `A` is
`ε_cons`-consistent and `ε_gen`-generalizing under `D`, then `A` is an AERM under `D` with
rate `ε_emp + ε_gen + ε_cons`. -/
theorem lemma18_consistent_generalizing_aerm {H Z : Type*} [MeasurableSpace Z] [Nonempty H]
(f : H → Z → ℝ) (B : ℝ) (hP : StandingAssumptions f B)
(A : Rule H Z) (hA : MeasurableRule f A)
(D : Measure Z) [IsProbabilityMeasure D] (εemp εcons εgen : ℕ → ℝ)
(h12 : ∀ m : ℕ, 1 ≤ m →
∫ S, |ermValue f S - optRisk f D| ∂(sampleLaw D m) ≤ εemp m)
(hcons : Consistent f A D εcons) (hgen : Generalizes f A D εgen) :
IsAERM f A D (fun m => εemp m + εgen m + εcons m) := by sorry
end LearnStability.Characterization
Source
Shalev-Shwartz, Shamir, Srebro and Sridharan, Learnability, Stability and Uniform Convergence, JMLR 11 (2010), p. 2653, Lemma 18
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Hypotheses.
- is nonempty.
- A loss and a real number satisfying the standing assumptions:
- ;
- each is measurable;
- is measurable for each , where and .
- A rule with jointly measurable for every .
- A probability measure on .
- Arbitrary functions .
- For every ,
where and .
- is consistent under with rate : for every .
- generalizes under with rate : for every .
Conclusion. is an AERM under with rate : for every ,
Degenerate cases.
- If is empty, the statement is vacuous.
- is never tested.
- None of the three rates is required to be monotone, vanishing or nonnegative.
- The three hypotheses all concern the single fixed .
- Non-integrable integrands would be read as .
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.