Eq. (11) — as an integral of a permutation average
ProvedVapnikChervonenkis.Inequality.eq11_permutation_averageLet be a probability space and a collection of events, and assume that the semi-sample deviation is measurable for every . A permutation of the positions of a double sample produces the rearranged sample . Let for and for . Then, for every real and every ,
the sum running over all permutations .
The identity expresses the invariance of the product measure under rearrangements of the sample; it reduces the estimate of to a bound on the fraction of rearrangements of one fixed sample.
Formalization Note is x ∘ σ for σ : Equiv.Perm (Fin (l + l)), and the average of is the number of permutations with divided by . The left side is a value in and the right side the embedding of the real integral. The measurability of is the paper's standing assumption (p. 268).
import Mathlib import Definitions.Def_VapnikChervonenkis_Shared_index import Definitions.Def_VapnikChervonenkis_Shared_growthFunction import Definitions.Def_VapnikChervonenkis_Shared_deviation open MeasureTheory Filter Topology
namespace VapnikChervonenkis.Inequality
/-- **Eq. (11)** (p. 270): by the symmetry of the product measure under permutations `T_i` of
the double sample,
`P{ρ^(l) ≥ ε/2} = ∫ (1/(2l)!) Σ_i θ(ρ^(l)(T_i X_{2l}) − ε/2) dP`, the sum running over all
`(2l)!` permutations; `θ(ρ − ε/2)` is the indicator of `ρ ≥ ε/2`, and `T_i X_{2l}` is
`x ∘ σ`. -/
theorem eq11_permutation_average {X : Type*} [MeasurableSpace X] (P : Measure X)
[IsProbabilityMeasure P] (S : Set (Set X))
(hρ : ∀ l, Measurable (Shared.semiSampleDeviation S l)) (ε : ℝ) (l : ℕ) :
Measure.pi (fun _ : Fin (l + l) => P) {x | ε / 2 ≤ Shared.semiSampleDeviation S l x}
= ENNReal.ofReal (∫ x, ((Finset.univ.filter (fun σ : Equiv.Perm (Fin (l + l)) =>
ε / 2 ≤ Shared.semiSampleDeviation S l (x ∘ σ))).card : ℝ) / ((l + l).factorial : ℝ)
∂(Measure.pi (fun _ : Fin (l + l) => P))) := by sorry
end VapnikChervonenkis.Inequality
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Setting. is a type with a σ-algebra, is a probability measure on , and is a family of subsets of . No measurability of the members of is assumed. is the product measure on , the space of -tuples indexed by . is Shared.semiSampleDeviation S l, a real-valued function of . It comes from an external definitions bundle that is not shown. For a permutation of , the tuple is the rearranged tuple .
Hypotheses.
- For every , is measurable.
- is an arbitrary real number: it may be zero or negative.
- is arbitrary, and may be .
Conclusion. For , let
be the number of permutations whose rearranged tuple meets the threshold. Then
Here converts a real number to , sending negative reals to . The integral is a real-valued (Bochner) integral. By convention it equals whenever the integrand is not integrable, and the statement does not separately assert that the integrand is integrable. The integrand always lies in .
Degenerate cases.
- . has a single point (the empty tuple), puts mass on it, has one element, and . Both sides equal if , and otherwise.
- Values of . Because is unrestricted, the statement also covers values where the event may be all of ; this depends on the unseen .
- Unsatisfiable hypothesis. If the measurability hypothesis cannot hold for the unseen , the statement is vacuous.
- Non-integrable integrand. If the integrand failed to be integrable, the right side would be , and the statement would then assert that the event on the left has measure .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.