Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 3 — H^S(l)/l has a limit c ∈ [0, 1]

Proved
VapnikChervonenkis.Entropy.lemma3_entropy_rate_limit

by mikedeng1 · Sep 28, 2026 · Mathlib 0df444a (Lean v4.33.1)

p2o-batch-p100bp2o-gran-per-chapterp2o-plan-paperp2o-v1probabilityvc-theory

Let (X,P)(X, P)(X,P) be a probability space and SSS a collection of subsets of XXX such that the index ΔS(x1,…,xl)\Delta^S(x_1, \dots, x_l)ΔS(x1​,…,xl​) is a measurable function of the sample for every lll. Then the entropy per observation converges: there is a number ccc with 0≤c≤10 \le c \le 10≤c≤1 such that

lim⁡l→∞HS(l)l=c.\lim_{l \to \infty} \frac{H^S(l)}{l} = c .l→∞lim​lHS(l)​=c.

The limit ccc is the asymptotic entropy rate of the class. Theorem 4 states that uniform convergence in probability holds exactly when c=0c = 0c=0.

Formalization Note. The measurability of the index is the paper's own assumption (p. 273). lll ranges over N\mathbb{N}N and HS(l)/lH^S(l)/lHS(l)/l is a real quotient (its value at l=0l = 0l=0 does not affect the limit).

Preamble
import Mathlib
import Definitions.Def_VapnikChervonenkis_Shared_index
import Definitions.Def_VapnikChervonenkis_Entropy_entropy

open MeasureTheory Filter Topology
Formal statement
namespace VapnikChervonenkis.Entropy

/-- **Lemma 3** of Vapnik and Chervonenkis (1971), p. 273: the sequence `H^S(l)/l` has a limit
`c` with `0 ≤ c ≤ 1` as `l → ∞`. `hΔ` is the paper's assumption (p. 273) that the index is a
measurable function of the sample. -/
theorem lemma3_entropy_rate_limit {X : Type*} [MeasurableSpace X] (P : Measure X)
    [IsProbabilityMeasure P] (S : Set (Set X))
    (hΔ : ∀ l : ℕ, Measurable (fun x : Fin l → X => Shared.index S x)) :
    ∃ c : ℝ, 0 ≤ c ∧ c ≤ 1 ∧
      Tendsto (fun l : ℕ => entropy S P l / (l : ℝ)) atTop (𝓝 c) := by sorry

end VapnikChervonenkis.Entropy
Source
Vapnik and Chervonenkis, On the Uniform Convergence of Relative Frequencies of Events to Their Probabilities, Theory Probab. Appl. 16 (1971), p. 273, Lemma 3
Read-back

What the Lean code literally says, in plain math · claude-opus-5-5

The setting:

  • XXX is a type with a σ-algebra, PPP is a probability measure on XXX, and SSS is any family of subsets of XXX (not assumed measurable).
  • ΔS\Delta^SΔS is the imported natural-number-valued index of a finite sample (definition not shown).
  • HPS(l)=∫Xllog⁡2ΔS dP⊗lH^S_P(l)=\int_{X^l}\log_2\Delta^S\,dP^{\otimes l}HPS​(l)=∫Xl​log2​ΔSdP⊗l, with log⁡20:=0\log_2 0 := 0log2​0:=0 and the integral equal to 000 when the integrand is not integrable.

Hypothesis: for every lll, the map x↦ΔS(x)x\mapsto\Delta^S(x)x↦ΔS(x) on XlX^lXl is measurable.

Conclusion: there exists a real number ccc with 0≤c≤10\le c\le 10≤c≤1 such that

lim⁡l→∞HPS(l)l=c,\lim_{l\to\infty}\frac{H^S_P(l)}{l}=c,l→∞lim​lHPS​(l)​=c,

where the limit is taken over natural numbers l→∞l\to\inftyl→∞.

Degenerate cases:

  • At l=0l=0l=0 the quotient is a division by zero, which gives 000 by convention. A single term does not affect the limit.
  • Integrability is not assumed. Wherever it fails, the corresponding HPS(l)H^S_P(l)HPS​(l) is 000 and enters the sequence as 000.
  • The statement asserts existence of a limit in [0,1][0,1][0,1] for every SSS and every probability measure PPP satisfying the measurability hypothesis, including S=∅S=\emptysetS=∅.
Human review
  • Endorsed by Shuze Chen · Sep 28, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Sep 28, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me