Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Subadditivity of the entropy: H^S(l₁ + l₂) ≤ H^S(l₁) + H^S(l₂)

Proved
VapnikChervonenkis.Entropy.entropy_subadditive

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 HS(l)=Elog⁡2ΔS(x1,…,xl)H^S(l) = \mathbf{E} \log_2 \Delta^S(x_1, \dots, x_l)HS(l)=Elog2​ΔS(x1​,…,xl​) is subadditive: for all l1,l2≥0l_1, l_2 \ge 0l1​,l2​≥0,

HS(l1+l2)≤HS(l1)+HS(l2).H^S(l_1 + l_2) \le H^S(l_1) + H^S(l_2) .HS(l1​+l2​)≤HS(l1​)+HS(l2​).

Subadditivity is what makes HS(l)/lH^S(l)/lHS(l)/l converge (Lemma 3).

Formalization Note. The measurability of the index is the paper's own assumption (p. 273: "In what follows it will be assumed that the index … is measurable with respect to the measure P").

Preamble
import Mathlib
import Definitions.Def_VapnikChervonenkis_Shared_index
import Definitions.Def_VapnikChervonenkis_Entropy_entropy

open MeasureTheory Filter Topology
Formal statement
namespace VapnikChervonenkis.Entropy

/-- Vapnik and Chervonenkis (1971), p. 273, Subsection 6: "Inequality (13) implies that
`H^S(l_1 + l_2) ≤ H^S(l_1) + H^S(l_2)`." The entropy `H^S(l) = E log₂ Δ^S(x_1, …, x_l)` is
subadditive in the sample size. `hΔ` is the paper's assumption (p. 273) that the index is a
measurable function of the sample. -/
theorem entropy_subadditive {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)) (l₁ l₂ : ℕ) :
    entropy S P (l₁ + l₂) ≤ entropy S P l₁ + entropy S P l₂ := 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, Subsection 6 (display after "Inequality (13) implies that")
Read-back

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

The setting:

  • XXX is a type with a σ-algebra and PPP is a probability measure on XXX.
  • SSS is any family of subsets of XXX. Its members are 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(x) dP⊗l(x)H^S_P(l)=\int_{X^l}\log_2\Delta^S(x)\,dP^{\otimes l}(x)HPS​(l)=∫Xl​log2​ΔS(x)dP⊗l(x) is the Bochner integral of log⁡2ΔS\log_2\Delta^Slog2​ΔS over the product measure. The integral is 000 if the integrand is not integrable, and log⁡20\log_2 0log2​0 is taken to be 000.

Hypothesis: for every l∈Nl\in\mathbb{N}l∈N, the map Xl→NX^l\to\mathbb{N}Xl→N, x↦ΔS(x)x\mapsto\Delta^S(x)x↦ΔS(x), is measurable, where every subset of N\mathbb{N}N counts as measurable.

Conclusion: for all l1,l2∈Nl_1,l_2\in\mathbb{N}l1​,l2​∈N,

HPS(l1+l2)  ≤  HPS(l1)+HPS(l2).H^S_P(l_1+l_2)\;\le\;H^S_P(l_1)+H^S_P(l_2).HPS​(l1​+l2​)≤HPS​(l1​)+HPS​(l2​).

Degenerate cases:

  • Integrability of log⁡2ΔS\log_2\Delta^Slog2​ΔS is not assumed. If it fails for some lll, the corresponding HPS(l)H^S_P(l)HPS​(l) is 000 by convention, and the inequality is asserted with those values.
  • For l1=0l_1=0l1​=0 the claim is HPS(l2)≤HPS(0)+HPS(l2)H^S_P(l_2)\le H^S_P(0)+H^S_P(l_2)HPS​(l2​)≤HPS​(0)+HPS​(l2​), where HPS(0)=log⁡2ΔS(())H^S_P(0)=\log_2\Delta^S(())HPS​(0)=log2​ΔS(()) for the empty sample. This amounts to log⁡2ΔS(())≥0\log_2\Delta^S(())\ge 0log2​ΔS(())≥0. The case l2=0l_2=0l2​=0 is symmetric.
  • For l1=l2=0l_1=l_2=0l1​=l2​=0 it again reduces to HPS(0)≥0H^S_P(0)\ge 0HPS​(0)≥0.
  • SSS may be empty and XXX may be any type carrying a probability measure.
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