PinchingLogBounds.lean
1module23public import Mathlib.Analysis.SpecialFunctions.Log.NegMulLog4public import Mathlib.Tactic56/-! Pointwise bounds on the Gaussian relative-entropy integrand in Section 3.1. -/7@[expose] public section8namespace SubentropyCertificates.GaussianPinching910/-- The bounds include the common zero set, where Lean's integrand is zero. -/11theorem log_ratio_bounds {a b c : ℝ} (ha : 0 ≤ a) (hb : 0 ≤ b) (hc : a ≤ c * b) :12 -(b / Real.exp 1) ≤ a * Real.log (a / b) ∧13 a * Real.log (a / b) ≤ a * Real.log c := by14 by_cases haz : a = 015 · simp [haz, div_nonneg hb (Real.exp_pos 1).le]16 have hap := lt_of_le_of_ne ha (Ne.symm haz)17 have hbp : 0 < b := by18 apply lt_of_le_of_ne hb19 rintro rfl20 simp at hc21 linarith22 have ht := div_pos hap hbp23 have htc := (div_le_iff₀ hbp).2 hc24 refine ⟨?_, mul_le_mul_of_nonneg_left (Real.log_le_log ht htc) ha⟩25 have he := Real.exp_pos 126 have h := Real.self_sub_one_le_mul_log (mul_pos he ht).le27 rw [Real.log_mul he.ne' ht.ne', Real.log_exp] at h28 have hlow : -1 ≤ Real.exp 1 * (a / b) * Real.log (a / b) := by linarith29 have hscaled := mul_le_mul_of_nonneg_right hlow hbp.le30 rw [← neg_div, div_le_iff₀ he]31 convert hscaled using 1 <;> field_simp3233end SubentropyCertificates.GaussianPinching
Axioms used
Choose a statement to see which axioms its proof uses.