Eq. (19): differential entropy on is at most , with equality only for the uniform law
ProvedIActThereforeIAm.entropy_le_zero_on_unit_cubeLet be a probability measure on carried by the open unit cube . Then its differential entropy satisfies
and if and only if is the uniform distribution on .
This is the bound that makes the entropy term of the objective non-positive for encoders into , and it identifies the optimal representation law when .
Formalization Note takes the value when has no Lebesgue density or is not integrable.
import Mathlib import Definitions.Def_IActThereforeIAm_Basic open MeasureTheory Filter Topology open scoped ENNReal NNReal ContDiff
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 IActThereforeIAmRead-back
What the Lean code literally says, in plain math · claude-opus-5-5
Let be a natural number, and let be any probability measure on (Borel). Let denote Lebesgue measure on . Let denote the open unit cube
Hypothesis. The only hypothesis is that gives zero mass outside the cube:
Entropy functional. The quantity is an extended real number in , defined as follows:
- Case 1. Suppose is absolutely continuous with respect to . Let be the Radon–Nikodym derivative , taken as a real number, with the value read as . Suppose also that the function is Lebesgue-integrable on , using the convention . Then
- Case 2. In every other case, . This covers not being absolutely continuous, and not being integrable.
Conclusion. The statement asserts both of the following:
- , as an inequality in the extended reals. In particular, is allowed.
- if and only if equals Lebesgue measure restricted to the cube, that is,
Since , this is the uniform distribution on .
Edge cases.
- The case is included. Here is a single point. The cube is the empty product, so it is the whole one-point space. The hypothesis then holds automatically, and is forced to be the unit point mass. Lebesgue measure on is also the unit point mass.
- Integrability is a condition, not an assumption. No hypothesis requires to have a density or finite entropy. Measures for which the definition yields are covered by the statement.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.