Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Eq. (19): differential entropy on (0,1)d(0,1)^d(0,1)d is at most 000, with equality only for the uniform law

Proved
IActThereforeIAm.entropy_le_zero_on_unit_cube

by Xeroth · Nov 23, 2026 · Mathlib 0df444a (Lean v4.33.1)

causal-representation-learningidentifiabilityjepamutual-informationworld-models

Let μ\muμ be a probability measure on Rd\mathbb R^dRd carried by the open unit cube (0,1)d(0,1)^d(0,1)d. Then its differential entropy satisfies

H(μ)≤log⁡Vol⁡((0,1)d)=0,H(\mu)\le\log\operatorname{Vol}((0,1)^d)=0,H(μ)≤logVol((0,1)d)=0,

and H(μ)=0H(\mu)=0H(μ)=0 if and only if μ\muμ is the uniform distribution on (0,1)d(0,1)^d(0,1)d.

This is the bound that makes the entropy term of the objective non-positive for encoders into (0,1)d(0,1)^d(0,1)d, and it identifies the optimal representation law when λ>1\lambda>1λ>1.

Formalization Note H(μ)H(\mu)H(μ) takes the value −∞-\infty−∞ when μ\muμ has no Lebesgue density or flog⁡ff\log fflogf is not integrable.

Preamble
import Mathlib
import Definitions.Def_IActThereforeIAm_Basic

open MeasureTheory Filter Topology
open scoped ENNReal NNReal ContDiff
Formal statement
namespace IActThereforeIAm

theorem entropy_le_zero_on_unit_cube {d : ℕ} (μ : Measure (Fin d → ℝ)) [IsProbabilityMeasure μ]
    (hμ : μ (unitCube d)ᶜ = 0) :
    diffEntropy μ ≤ 0 ∧ (diffEntropy μ = 0 ↔ μ = volume.restrict (unitCube d)) := by sorry

end IActThereforeIAm
Source
Liu, Huang and Shi, I Act Therefore I Am: When Is JEPA's Action-Conditioning Enough to Learn Causal Mechanisms?, arXiv:2609.31161v1 (2026), Appendix C (proof of Theorem 2.1), Eq. (19) and the closing remark of the proof, p. 18
Read-back

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

Let d≥0d \ge 0d≥0 be a natural number, and let μ\muμ be any probability measure on Rd\mathbb{R}^dRd (Borel). Let λ\lambdaλ denote Lebesgue measure on Rd\mathbb{R}^dRd. Let CdC_dCd​ denote the open unit cube

Cd=(0,1)d={ z∈Rd:0<zi<1 for every i=1,…,d }.C_d = (0,1)^d = \{\, z \in \mathbb{R}^d : 0 < z_i < 1 \text{ for every } i = 1,\dots,d \,\}.Cd​=(0,1)d={z∈Rd:0<zi​<1 for every i=1,…,d}.

Hypothesis. The only hypothesis is that μ\muμ gives zero mass outside the cube:

μ(Rd∖Cd)=0.\mu\big(\mathbb{R}^d \setminus C_d\big) = 0.μ(Rd∖Cd​)=0.

Entropy functional. The quantity H(μ)\mathrm{H}(\mu)H(μ) is an extended real number in [−∞,+∞][-\infty, +\infty][−∞,+∞], defined as follows:

  • Case 1. Suppose μ\muμ is absolutely continuous with respect to λ\lambdaλ. Let f(z)f(z)f(z) be the Radon–Nikodym derivative dμdλ(z)\tfrac{d\mu}{d\lambda}(z)dλdμ​(z), taken as a real number, with the value +∞+\infty+∞ read as 000. Suppose also that the function z↦−f(z)log⁡f(z)z \mapsto -f(z)\log f(z)z↦−f(z)logf(z) is Lebesgue-integrable on Rd\mathbb{R}^dRd, using the convention 0log⁡0=00 \log 0 = 00log0=0. Then
H(μ)=∫Rd−f(z)log⁡f(z) dλ(z)∈R.\mathrm{H}(\mu) = \int_{\mathbb{R}^d} -f(z)\log f(z)\, d\lambda(z) \in \mathbb{R}.H(μ)=∫Rd​−f(z)logf(z)dλ(z)∈R.
  • Case 2. In every other case, H(μ)=−∞\mathrm{H}(\mu) = -\inftyH(μ)=−∞. This covers μ\muμ not being absolutely continuous, and −flog⁡f-f\log f−flogf not being integrable.

Conclusion. The statement asserts both of the following:

  1. H(μ)≤0\mathrm{H}(\mu) \le 0H(μ)≤0, as an inequality in the extended reals. In particular, H(μ)=−∞\mathrm{H}(\mu) = -\inftyH(μ)=−∞ is allowed.
  2. H(μ)=0\mathrm{H}(\mu) = 0H(μ)=0 if and only if μ\muμ equals Lebesgue measure restricted to the cube, that is,
μ(B)=λ(B∩Cd)for every Borel set B⊆Rd.\mu(B) = \lambda(B \cap C_d) \quad \text{for every Borel set } B \subseteq \mathbb{R}^d.μ(B)=λ(B∩Cd​)for every Borel set B⊆Rd.

Since λ(Cd)=1\lambda(C_d) = 1λ(Cd​)=1, this is the uniform distribution on (0,1)d(0,1)^d(0,1)d.

Edge cases.

  • The case d=0d = 0d=0 is included. Here R0\mathbb{R}^0R0 is a single point. The cube C0C_0C0​ is the empty product, so it is the whole one-point space. The hypothesis then holds automatically, and μ\muμ is forced to be the unit point mass. Lebesgue measure on R0\mathbb{R}^0R0 is also the unit point mass.
  • Integrability is a condition, not an assumption. No hypothesis requires μ\muμ to have a density or finite entropy. Measures for which the definition yields −∞-\infty−∞ are covered by the statement.
Human review
  • Endorsed by Shuze Chen · Nov 23, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Xeroth · Nov 23, 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