Second-order upper bound on the Bernoulli relative entropy: when and
ProvedBanditAlgorithm.bernoulli_relative_entropy_le_sq_div_of_add_le_oneFor reals with ,
Why this shape. The exact second-order behaviour is for some between and , so the sharp denominator as is ; the denominator above interpolates to exactly that, so the bound is asymptotically exact. It is strictly sharper than the bound and than , both of which lose the factor that a Pinsker-type argument needs. The hypothesis is the natural one: it says the perturbation stays in the region where is at least , and it is exactly what fails for the reversed pair.
Consequence used downstream. Since gives , one gets the convenient form .
Proof. Bound the two terms separately by the two sharp logarithm estimates, each applied at an argument : for the first, by the Pade lower bound; for the second, by the sinh upper bound. Both estimates are second-order accurate, so their combination is too, and the resulting difference is the exact identity
whose right-hand side is nonnegative because .
import Mathlib.Analysis.SpecialFunctions.Log.Basic import Definitions.Def_bernoulliRelativeEntropy
theorem BanditAlgorithm.bernoulli_relative_entropy_le_sq_div_of_add_le_one
{p q : ℝ} (hp : 0 < p) (hpq : p < q) (hsum : p + q ≤ 1) :
BanditAlgorithm.bernoulliRelativeEntropy p q ≤ (q - p) ^ 2 / (p * (2 - p - q)) := by
sorry