Theorem 4.1 — structural risk minimization converges to the smallest risk with asymptotic rate r_{n(ℓ)} + T_{n(ℓ)} √(h_{n(ℓ)} ln ℓ / ℓ)
DisprovedNatureSLT.SRM.theorem_4_1Let be a probability measure on a set and a nonempty set of measurable, integrable, nonnegative functions on , indexed by an arbitrary parameter set . Write for the risk and for the empirical risk on an i.i.d. sample from .
Structure. carries a structure of nested subsets , (4.3), each nonempty, which is admissible with constants : each has a finite VC dimension , and either
- (i) every element consists of totally bounded functions, for , and ( the VC dimension of as a set of real functions with ); or
- (ii) for a fixed every element satisfies (4.4), , and ( the VC dimension with ).
The union is everywhere dense in in the metric : for every and some , for some , has .
SRM. A law (4.5) chooses the element in which the empirical risk is minimized, and , , is a function minimizing the empirical risk over (for every sample). Let
the smallest risk and the rate of approximation, and
Theorem. If the law satisfies
then the sequence of risks converges in probability to the smallest risk , and it converges to with asymptotic rate : there is a constant such that in probability as (the book's definition of an asymptotic rate, footnote 3, p. 97).
This is the asymptotic justification of the structural risk minimization principle: by choosing the element of the structure as a function of the sample size, one trades the approximation error against the confidence term .
Formalization Note The structure is indexed by (the book starts at ; a shift of index changes nothing). The empirical minimizer is a given map from samples to , with assumed a measurable function of the sample (the book's measurability conditions); its existence is not claimed. Functions are nonnegative throughout (the book's setting of bounded nonnegative and unbounded nonnegative losses). The ratio in (4.4) is written multiplied out, with assumed integrable. The infima are over nonempty sets of reals bounded below by , so they are genuine. Convergence in probability is for every . The rate is the book's literal footnote-3 definition (convergence in probability of the normalized error to a constant), stronger than the usual reading; where Lean reads . The page does not require , and none is added: as printed, a law that keeps returning to a small element of the structure satisfies (4.7) while the risks fail to converge (finding F1); the item is stated as printed.
import Mathlib import Definitions.Def_NatureSLT_SRM_vcDimReal import Definitions.Def_NatureSLT_SRM_ConvergesWithRate open MeasureTheory Filter Topology
namespace NatureSLT.SRM
/-- **Theorem 4.1** (Vapnik, *The Nature of Statistical Learning Theory*, 2nd ed., pp. 97–98).
Setting (§4.1–4.2, pp. 94–97): a set `S` of measurable, integrable, nonnegative functions
`Q(z, α)`, `α ∈ Λ`; an admissible structure of nested subsets `S_k = {Q(z, α), α ∈ Λ_k}`
(4.3), each nonempty with finite VC dimension `h_k`, and either (i) all elements totally bounded,
`0 ≤ Q ≤ T_k = B_k` on `S_k` (`h_k` the VC dimension with `β ∈ (0, B_k)`), or (ii) all elements
satisfying (4.4), `(∫ Q^p dF)^{1/p} ≤ T_k ∫ Q dF` on `S_k` for a fixed `p > 2`, `T_k = τ_k`
(`h_k` the VC dimension with `β ∈ (0, ∞)`); `S* = ⋃ S_k` everywhere dense in `S` in the metric
`ρ(Q₁, Q₂) = ∫ |Q₁ − Q₂| dF`. For a law `n = n(ℓ)` (4.5) satisfying (4.7)
`T²_{n(ℓ)} h_{n(ℓ)} ln ℓ / ℓ → 0`, let `α^{n(ℓ)}_ℓ` minimize the empirical risk over
`Λ_{n(ℓ)}`. Then `R(α^{n(ℓ)}_ℓ)` converges (in probability) to `R(α₀) = inf_{α ∈ Λ} R(α)`
with asymptotic rate (footnote 3) `V(ℓ) = r_{n(ℓ)} + T_{n(ℓ)} √(h_{n(ℓ)} ln ℓ / ℓ)` (4.6),
where `r_n = inf_{Λ_n} R − inf_Λ R` (4.8). -/
theorem theorem_4_1 {Z Λ : Type*} [MeasurableSpace Z] (F : Measure Z) [IsProbabilityMeasure F]
[Nonempty Λ] (Q : Λ → Z → ℝ) (hQ0 : ∀ α z, 0 ≤ Q α z)
(hQmeas : ∀ α, Measurable (Q α)) (hQint : ∀ α, Integrable (Q α) F)
(Λs : ℕ → Set Λ) (hnest : Monotone Λs) (hne : ∀ k, (Λs k).Nonempty)
(hdense : ∀ α : Λ, ∀ ε : ℝ, 0 < ε → ∃ k, ∃ β ∈ Λs k, ∫ z, |Q α z - Q β z| ∂F ≤ ε)
(h : ℕ → ℕ) (T : ℕ → ℝ)
(hcase :
(∀ k, (∀ α ∈ Λs k, ∀ z, Q α z ≤ T k) ∧
vcDimReal (fun α : Λs k => Q α) 0 ((T k : ℝ) : EReal) = h k) ∨
(∃ p : ℝ, 2 < p ∧ ∀ k,
(∀ α ∈ Λs k, Integrable (fun z => Q α z ^ p) F ∧
(∫ z, Q α z ^ p ∂F) ^ (1 / p) ≤ T k * ∫ z, Q α z ∂F) ∧
vcDimReal (fun α : Λs k => Q α) 0 ⊤ = h k))
(n : ℕ → ℕ)
(h47 : Tendsto (fun ℓ : ℕ => T (n ℓ) ^ 2 * h (n ℓ) * Real.log ℓ / ℓ) atTop (𝓝 0))
(αhat : ∀ ℓ : ℕ, (Fin ℓ → Z) → Λ) (hαmem : ∀ ℓ z, αhat ℓ z ∈ Λs (n ℓ))
(herm : ∀ ℓ (z : Fin ℓ → Z), ∀ α ∈ Λs (n ℓ),
(1 / (ℓ : ℝ)) * ∑ i, Q (αhat ℓ z) (z i) ≤ (1 / (ℓ : ℝ)) * ∑ i, Q α (z i))
(hαmeas : ∀ ℓ, Measurable (fun z : Fin ℓ → Z => ∫ x, Q (αhat ℓ z) x ∂F)) :
let R : Λ → ℝ := fun α => ∫ z, Q α z ∂F
let R₀ : ℝ := ⨅ α, R α
let r : ℕ → ℝ := fun k => (⨅ α : Λs k, R α) - R₀
let V : ℕ → ℝ := fun ℓ => r (n ℓ) + T (n ℓ) * Real.sqrt (h (n ℓ) * Real.log ℓ / ℓ)
(∀ ε : ℝ, 0 < ε → Tendsto (fun ℓ : ℕ => (Measure.pi fun _ : Fin ℓ => F)
{z | ε < |R (αhat ℓ z) - R₀|}) atTop (𝓝 0)) ∧
ConvergesWithRate F (fun ℓ z => R (αhat ℓ z)) R₀ V := by sorry
end NatureSLT.SRM
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Throughout, is a type with a -algebra and is a nonempty type. is a probability measure on . is a family of real functions , one for each . Two symbols come from imported files and are not unfolded here, because their definitions are not part of the code under review:
- is a VC-dimension-type quantity of a family of real functions, taking two further parameters.
- is a convergence-with-rate predicate.
What follows reports only how the statement uses them.
Hypotheses. Assume all of the following.
-
The functions . For every and , . Each is measurable and -integrable.
-
The nested sets . is a sequence of subsets of . It is monotone (), and every is nonempty.
-
Density. For every and every real there are an index and some with
- Two sequences and . and are arbitrary sequences that must satisfy one of the following two cases.
- Case (i). For every :
- for all and all ;
- of the family , with parameters and (as an extended real), equals .
- Case (ii). There is a single real such that for every :
- for every , the function is -integrable and
- Case (i). For every :
- $\operatorname{vcDimReal}$ of $\{Q(\cdot,\alpha)\}_{\alpha\in\Lambda_k}$, with parameters $0$ and $+\infty$, equals $h_k$.
Neither case requires the to be monotone. Case (ii) does not explicitly require .
- The law . is an arbitrary map such that, with running over the naturals,
Nothing requires , or that be monotone.
- The estimator . For each sample size , maps a sample to . It must satisfy:
- ;
- minimizes the empirical average over : for all ,
- for each , the map is measurable on with the product -algebra.
Defined quantities.
- The risk of is
- The overall infimum is . This is a genuine infimum: is nonempty and every .
- The approximation gap of is
- The rate is
where returns on negative arguments.
Conclusion. Write for the -fold product of on (an i.i.d. sample of size ). Both of the following hold:
- For every real ,
This is convergence in probability, with measures read in .
-
holds when applied to:
- the measure ;
- the random quantities ;
- the limit ;
- the rate sequence .
Its meaning is fixed by the imported definition, which is not unfolded here.
Degenerate cases.
- Sample size . is a single point. Both sides of the minimization condition are (an empty sum times ), so it holds automatically. The term in hypothesis 5 is , since and division by gives . The square-root term of is . At the factor also makes both of those terms .
- cannot be empty. is a probability measure, so has at least one point.
- Sign of . In case (i), is forced by nonnegativity of , because is nonempty. In case (ii), a negative is allowed, but only if every with has zero integral, so that both sides of the moment inequality are . Such a then makes the second term of negative.
- One-element . Every is , is constant, and . Both conclusions then concern a quantity that is identically , and .
- need not grow. If is eventually constant, hypothesis 5 must still hold, and density (hypothesis 3) must still be satisfied by the whole sequence .
- The value . Each is a finite natural number. So the equalities with assert that this quantity takes the finite value , read in whatever codomain has.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.