Step 1° of necessity — 1 − P(C′) ≥ (1 − P(Q))²
ProvedVapnikChervonenkis.Entropy.necessity_step1Let be a probability space and a collection of subsets of such that is a measurable function of the sample for every . Let and . Consider the events
the first on independent samples of size , the second on independent samples of size split into two semi-samples with relative frequencies , . Then
If fails on both semi-samples then fails, and the two semi-samples are independent. The inequality transfers a lower bound on to a lower bound on ; in particular forces .
Formalization Note. The unweakened inequality is stated (the paper then weakens it to ); the conclusion of (29) needs the unweakened form. uses the strict inequality , as in its definition on p. 276. The measurability of is the paper's own assumption (p. 265). Probabilities are real numbers (Measure.real).
import Mathlib import Definitions.Def_VapnikChervonenkis_Shared_deviation open MeasureTheory Filter Topology
namespace VapnikChervonenkis.Entropy
/-- Step 1° of the proof of necessity in Theorem 4 (pp. 276–277), unweakened: with
`Q = {π^(l) > ε}` on samples of size `l` and `C′ = {sup_{A∈S} |ν′_A − ν″_A| > 2ε} = {ρ^(l) > 2ε}` on
double samples of size `2l`, independence of the two semi-samples gives
`1 − P(C′) ≥ (1 − P(Q))²`, i.e. `P(C′) ≤ 2P(Q) − P²(Q)`. `hπ` is the paper's assumption
(p. 265) that `π^(l)` is measurable. -/
theorem necessity_step1 {X : Type*} [MeasurableSpace X] (P : Measure X)
[IsProbabilityMeasure P] (S : Set (Set X))
(hπ : ∀ l, Measurable (Shared.maxDeviation S P l)) (ε : ℝ) (hε : 0 < ε) (l : ℕ) :
(1 - (Measure.pi (fun _ : Fin l => P)).real {x | ε < Shared.maxDeviation S P l x}) ^ 2
≤ 1 - (Measure.pi (fun _ : Fin (l + l) => P)).real
{x | 2 * ε < Shared.semiSampleDeviation S l x} := by sorry
end VapnikChervonenkis.Entropy
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
The setting:
- is a type with a σ-algebra, is a probability measure on , and is any family of subsets of (not assumed measurable).
- is the imported real-valued "maxDeviation" on .
- is the imported real-valued "semiSampleDeviation" on .
- Neither definition is in the code shown.
Hypotheses:
- For every , is measurable. No measurability of is assumed.
- .
- is arbitrary.
Conclusion, with probabilities taken as real numbers:
Both inequalities inside the events are strict.
Degenerate cases:
- is allowed. Both product measures are then the unit point mass at the empty sample. The claim compares with .
- is not assumed measurable. If the second event is not measurable, its measure is still defined, as an outer measure.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.