The Donsker–Varadhan variational formula for relative entropy #
For finite measures μ and ν, Mathlib's relative entropy klDiv μ ν is the I-divergence
∫ klFun (dμ/dν) dν, where klFun x = x log x + 1 - x, and it carries the mass correction
ν univ - μ univ. The convex conjugate of klFun is y ↦ exp y - 1, and integrating the
Fenchel–Young inequality gives a variational formula with the mass correction built in:
klDiv μ ν = sup_f (∫ f dμ - ∫ (exp f - 1) dν), the supremum running over bounded measurable
functions. On a normal Borel space with weakly regular μ + ν, the bounded continuous
functions already give the supremum; finite measures on pseudometrizable Borel spaces satisfy
these hypotheses. For probability measures the formula takes the classical Donsker–Varadhan form
klDiv μ ν = sup_f (∫ f dμ - log ∫ exp f dν).
Each functional (μ, ν) ↦ ∫ f dμ - ∫ (exp f - 1) dν with f bounded and continuous is continuous
for the weak topology, so the continuous form of the formula makes klDiv jointly lower
semicontinuous on pairs of finite measures, and on pairs of probability measures. This is the
lower semicontinuity used by stability and limit theorems for entropic optimal transport, where
both the coupling and the reference measure move.
Main statements #
TauCeti.mul_sub_exp_sub_one_le_klFun: the Fenchel–Young inequalityx * y - (exp y - 1) ≤ klFun xforx ≥ 0.TauCeti.mul_sub_exp_sub_one_eq_klFun_iff: its equality case,x = exp y.TauCeti.ofReal_integral_sub_integral_exp_sub_one_le_klDivandTauCeti.ofReal_integral_sub_log_integral_exp_le_klDiv: the variational lower bounds, for every integrablefwith integrableexp ∘ f.TauCeti.integral_sub_integral_indicator_exp_sub_one_eqandTauCeti.ae_mul_sub_indicator_exp_sub_one_le_klFun: forμ ≪ ν, the truncated objective as a singleν-integral against the density, and the pointwise Fenchel–Young bound on its integrand.TauCeti.ofReal_integral_sub_integral_indicator_exp_sub_one_le_klDiv: the first bound withexp ∘ ftruncated to a set carryingμ, which readsfas-∞off that set.TauCeti.integral_sub_integral_indicator_exp_sub_one_eq_toReal_klDiv_iff: the truncated bound is an equality exactly when the truncatedexp ∘ fis the density ofμwith respect toν.TauCeti.klDiv_eq_iSup_integral_sub_integral_exp_sub_oneandTauCeti.klDiv_eq_iSup_integral_sub_log_integral_exp: the variational formulas over bounded measurable functions, on an arbitrary measurable space.TauCeti.klDiv_eq_iSup_boundedContinuousFunction_integral_sub_integral_exp_sub_oneandTauCeti.klDiv_eq_iSup_boundedContinuousFunction_integral_sub_log_integral_exp: the same formulas over bounded continuous functions, on a normal Borel space with weakly regular sum.TauCeti.lowerSemicontinuous_klDiv_finiteMeasureandTauCeti.lowerSemicontinuous_klDiv_probabilityMeasure: joint weak lower semicontinuity.TauCeti.ofReal_mul_measureReal_sub_le_klDiv: the entropy inequalityt μ(s) - (exp t - 1) ν(s) ≤ klDiv μ νfor arbitrary sets.TauCeti.isTightMeasureSet_setOf_klDiv_le: sublevel sets ofklDiv · νare tight whenνis.
References #
- M. D. Donsker and S. R. S. Varadhan, Asymptotic evaluation of certain Markov process expectations for large time. IV, Comm. Pure Appl. Math. 36 (1983), 183–212.
- Y. Polyanskiy and Y. Wu, Information Theory: From Coding to Learning, Cambridge University Press, 2025, Chapter 4 (variational characterizations and lower semicontinuity of divergence).
For μ ≪ ν, the variational objective with the truncated exponential s.indicator (exp ∘ f)
is a single ν-integral against the density.
Off s the density vanishes, so the integrand of the truncated variational objective is
1 = klFun 0 there; on s it is bounded by the Fenchel–Young inequality.
Variational lower bound with a truncated exponential. If μ is concentrated on s,
then ∫ f dμ - ∫ (s.indicator (exp ∘ f) - 1) dν ≤ klDiv μ ν. The truncation reads f as -∞
off s, where exp (-∞) = 0.
Variational lower bound for relative entropy between finite measures, with the mass
correction built in: ∫ f dμ - ∫ (exp f - 1) dν ≤ klDiv μ ν.
The equality case of the variational lower bound. For finite measures with
klDiv μ ν < ∞ and μ concentrated on s, the bound
∫ f dμ - ∫ (s.indicator (exp ∘ f) - 1) dν ≤ klDiv μ ν is an equality exactly when
s.indicator (exp ∘ f) is the density of μ with respect to ν. Taking s = Set.univ gives
the equality case of ofReal_integral_sub_integral_exp_sub_one_le_klDiv.
The Donsker–Varadhan lower bound (Gibbs variational inequality) for probability measures:
∫ f dμ - log ∫ exp f dν ≤ klDiv μ ν.
The entropy inequality for a set s: for finite measures and every real t,
t μ(s) - (exp t - 1) ν(s) ≤ klDiv μ ν. A set of small ν-measure therefore has small
μ-measure, uniformly over a sublevel set of klDiv · ν.
The variational formula for the relative entropy of finite measures, with the mass
correction built in: klDiv μ ν is the supremum of ∫ f dμ - ∫ (exp f - 1) dν over bounded
measurable functions f.
The Donsker–Varadhan variational formula: for probability measures, klDiv μ ν is the
supremum of ∫ f dμ - log ∫ exp f dν over bounded measurable functions f.
The variational formula for the relative entropy of finite measures on a normal Borel
space, when μ + ν is weakly regular: klDiv μ ν is the supremum of
∫ f dμ - ∫ (exp f - 1) dν over bounded continuous functions f.
The Donsker–Varadhan variational formula on a normal Borel space: for probability
measures with weakly regular sum, klDiv μ ν is the supremum of
∫ f dμ - log ∫ exp f dν over bounded continuous functions f.
Lower semicontinuity of relative entropy: (μ, ν) ↦ klDiv μ ν is jointly lower
semicontinuous for the weak topology on pairs of finite measures.
Lower semicontinuity of relative entropy: (μ, ν) ↦ klDiv μ ν is jointly lower
semicontinuous for the weak topology on pairs of probability measures.
Sublevel sets of relative entropy are tight. If a finite measure ν is tight, then so is
the set of finite measures μ with klDiv μ ν ≤ C, for every finite C.