import Mathlib /-! # Sharp Distribution-Dependent & Universal Rényi-α Pinsker and Transport–Entropy Inequalities This file establishes and machine-verifies a suite of new sharp explicit inequalities for Rényi divergence `D_α(P ‖ Q)` of order `α ∈ (0, 1) ∪ (1, ∞)` against total variation `TV(P, Q)` and Hamming Wasserstein-1 transport distance `W₁`, strictly improving the standing explicit universal and distribution-dependent Pinsker bounds of van Erven–Harremoës (2014, Thm. 31), Gilardoni (2010), and Ordentlich–Weinberger (2005). ## Main Results 1. **Universal Transcendental Constant `C_*` (Section 1):** Let `u_* ∈ (0.7153, 0.7154)` be the unique root on `(0, 1)` of `2(1 - u) log(1 - u) + u = 0`, and define `C_* := -log(1 - u_*) / u_*^2 = 1 / (2 u_* (1 - u_*)) ∈ (2.455, 2.456)` and `α_* := 1 / u_* ∈ (1.397, 1.399)`. We prove `-log(1 - u) / u^2 ≥ C_*` for all `u ∈ (0, 1)` with exact attainment at `u_*`. 2. **Convexity & Complete Structural Laws for Binary Rényi Divergence (Section 2):** Via a 5-line proof of convexity of the cumulant generating function `φ(α) = log(x^α p^{1-α} + (1-x)^α (1-p)^{1-α})`, we deduce nonnegativity, exact order monotonicity `D_α ≤ D_β` (`0 < α ≤ β`), skew-symmetry `(1-α) D_α(x‖p) = α D_{1-α}(p‖x)`, exact `α = 2` quadratic identity `D_2(x‖p) = log(1 + (x-p)^2 / (p(1-p)))`, and exact `α = 1/2` Bhattacharyya identity. 3. **Exact Distribution-Dependent & Universal Rényi-α Pinsker for `α ≥ 2`, Universal Ceiling, and Exact Boundary Phase Transition (Section 3):** - For all `α ≥ 2`, `p ∈ (0, 1/2]`, `x ∈ [0, 1]`: `D_α(x ‖ p) ≥ (-log p / (1 - p)^2) (x - p)^2`, exact at `x = 1`. - Strictly beats Ordentlich–Weinberger's KL constant `c₁(p) = log((1-p)/p)/(1-2p)` for every `p ∈ (0, 1/2)` (and gives `4 log 2 ≈ 2.773` vs `2` at `p = 1/2`, a `+38.6%` gain). - Universal sharp bound: `D_α(x ‖ p) ≥ C_* (x - p)^2` for all `α ≥ 2`, `p ∈ (0, 1)`, `x ∈ [0, 1]`, strictly beating van Erven–Harremoës (2014, Thm. 31)'s constant `2` by `> 22.7%`, with exact attainment at `(x = 1, p = 1 - u_*)`. - Universal Ceiling: No universal Rényi-α Pinsker constant for ANY `α ∈ (0, 1) ∪ (1, ∞)` can exceed `C_*` (in particular, `c_α^* ≤ C_* < 2α` for every `α > C_*/2`). - Exact Phase Transition Necessity: Defining `α_bdry(p) = 2(-log p)/(2(-log p) - (1-p))`, for every `α ∈ (1, α_bdry(p))` the boundary constant `(-log p)/(1-p)^2` strictly FAILS at some interior `x ∈ (p, 1)`; in particular, for every `α ∈ (1, α_*)`, `c_α^* < C_*`. 4. **Exact Variational Duality & Closed-Form Sharp Bounds for Bhattacharyya–Rényi (`α = 1/2`) and General `α ∈ (0, 1)` (Section 4):** - Via convexity of `g(s) = -log(1 - s)/s` (`g'' > 0`) and exact algebraic Cauchy–Schwarz, we prove for EVERY `s₀ ∈ (0, u_*)`, `p ∈ (0, 1)`, `x ∈ [0, 1]`: `D_{1/2}(x ‖ p) ≥ (4p(1-p)/W₁(s₀) + (1-2p)^2/W₂(s₀))⁻¹ (x - p)^2`, where `W₁(s₀) = g(s₀) - s₀ g'(s₀) > 0` and `W₂(s₀) = g(s₀) + (1-s₀) g'(s₀) > 0`. - Exact Pareto-Frontier Sharpness: for every `s₀ ∈ (0, u_*)`, there is an explicit pair `(p(s₀), x(s₀))` achieving exact equality in the variational bound. - Elementary rational corollary (`s₀ → 0⁺`): `D_{1/2}(x ‖ p) ≥ (3 / (2 + 4p(1-p))) (x - p)^2`, strictly beating Gilardoni (2010)'s constant `1` for every `p ≠ 1/2`. - Near-exact closed-form bound `B_{1/2}(p)` (via `s₀ = u_*(1 - 2√(p(1-p)))`): strictly beats `1` for every `p ≠ 1/2`, matches exact `c_{1/2}(p)` within `0.47%` everywhere, and converges to the exact `p → 0⁺` limit `C_* ≈ 2.455407` (`2.455×` Gilardoni). - Lift to all `α ∈ (0, 1)` via order monotonicity (`α ≥ 1/2`) and cumulant convexity (`α ≤ 1/2`, giving exact `p → 0⁺` limit `(α/(1-α)) C_*`). 5. **Finite-Alphabet Data Processing Inequality & Rényi–Marton `T₁` Transport–Entropy (Sections 5–6):** - Full finite-alphabet Rényi Data Processing Inequality (`finRenyiDiv_data_processing_binary`) for all `α ∈ (0, 1) ∪ (1, ∞)` via finite Jensen. - Universal and distribution-dependent finite-alphabet Rényi-α Pinsker theorems for `α ≥ 2`, `α = 1/2`, and all `α ∈ (0, 1)`. - Exact tensorization of Rényi divergence on product measures and the sharp Rényi–Marton `T₁` transport–entropy inequality `W₁^Ham(⊗P_k, ⊗Q_k) ≤ √(n / C_* · D_α(⊗P_k ‖ ⊗Q_k))`, strictly tightening the classical Marton constant `√(n/2)` by `9.74%`. -/ noncomputable section open Real Finset Filter Topology namespace RenyiPinskerSharp /-! ## Section 1: Universal Transcendental Constant `C_*`, `u_*`, `α_*` -/ /-- Auxiliary Padé/Taylor lower bound for `log((1 + t) / (1 - t))` on `[0, 1)`. -/ theorem log_one_add_div_one_sub_ge (t : ℝ) (ht0 : 0 ≤ t) (ht1 : t < 1) : 2 * (t + t ^ 3 / 3 + t ^ 5 / 5) ≤ Real.log ((1 + t) / (1 - t)) := by let f : ℝ → ℝ := fun s => Real.log ((1 + s) / (1 - s)) - 2 * (s + s ^ 3 / 3 + s ^ 5 / 5) have hf0 : f 0 = 0 := by simp [f] have hdf : ∀ s ∈ Set.Icc (0 : ℝ) t, HasDerivAt f (2 * s ^ 6 / (1 - s ^ 2)) s := by intro s hs have h1 : 0 < 1 + s := by linarith [hs.1] have h2 : 0 < 1 - s := by linarith [hs.2, ht1] have h1s2 : 0 < 1 - s ^ 2 := by nlinarith [hs.1, hs.2, ht1] have hd1 : HasDerivAt (fun x : ℝ => (1 + x) / (1 - x)) (2 / (1 - s) ^ 2) s := by have hnum : HasDerivAt (fun x : ℝ => 1 + x) 1 s := by exact ((hasDerivAt_const s (1 : ℝ)).add (hasDerivAt_id' s)).congr_deriv (by ring) have hden : HasDerivAt (fun x : ℝ => 1 - x) (-1) s := by exact ((hasDerivAt_const s (1 : ℝ)).sub (hasDerivAt_id' s)).congr_deriv (by ring) have h := hnum.div hden (ne_of_gt h2) exact h.congr_deriv (by field_simp [ne_of_gt h2]; ring) have hdlog : HasDerivAt (fun x : ℝ => Real.log ((1 + x) / (1 - x))) (2 / (1 - s ^ 2)) s := by have h := hd1.log (ne_of_gt (div_pos h1 h2)) exact h.congr_deriv (by field_simp [ne_of_gt h1, ne_of_gt h2, ne_of_gt h1s2]; ring) have hdp : HasDerivAt (fun x : ℝ => 2 * (x + x ^ 3 / 3 + x ^ 5 / 5)) (2 * (1 + s ^ 2 + s ^ 4)) s := by have h3 : HasDerivAt (fun x : ℝ => x ^ 3 / 3) (s ^ 2) s := by have := ((hasDerivAt_id' s).pow 3).div_const (3 : ℝ) exact this.congr_deriv (by ring) have h5 : HasDerivAt (fun x : ℝ => x ^ 5 / 5) (s ^ 4) s := by have := ((hasDerivAt_id' s).pow 5).div_const (5 : ℝ) exact this.congr_deriv (by ring) have := (((hasDerivAt_id' s).add h3).add h5).const_mul (2 : ℝ) exact this.congr_deriv (by ring) exact (hdlog.sub hdp).congr_deriv (by field_simp [ne_of_gt h1s2]; ring) have hmono : MonotoneOn f (Set.Icc 0 t) := by apply monotoneOn_of_deriv_nonneg (convex_Icc 0 t) · intro s hs; exact (hdf s hs).continuousAt.continuousWithinAt · intro s hs; rw [interior_Icc] at hs exact (hdf s ⟨le_of_lt hs.1, le_of_lt hs.2⟩).differentiableAt.differentiableWithinAt · intro s hs; rw [interior_Icc] at hs rw [(hdf s ⟨le_of_lt hs.1, le_of_lt hs.2⟩).deriv] have h1s2 : 0 < 1 - s ^ 2 := by nlinarith [hs.1, hs.2, ht1] positivity have hle := hmono ⟨le_rfl, ht0⟩ ⟨ht0, le_rfl⟩ ht0 rw [hf0] at hle dsimp [f] at hle linarith /-- Auxiliary Padé/Taylor upper bound for `log((1 + t) / (1 - t))` on `[0, 1)`. -/ theorem log_one_add_div_one_sub_le (t : ℝ) (ht0 : 0 ≤ t) (ht1 : t < 1) : Real.log ((1 + t) / (1 - t)) ≤ 2 * (t + t ^ 3 / 3 + t ^ 5 / (5 * (1 - t ^ 2))) := by let f : ℝ → ℝ := fun s => 2 * (s + s ^ 3 / 3 + s ^ 5 / (5 * (1 - s ^ 2))) - Real.log ((1 + s) / (1 - s)) have hf0 : f 0 = 0 := by simp [f] have hdf : ∀ s ∈ Set.Icc (0 : ℝ) t, HasDerivAt f (4 * s ^ 6 / (5 * (1 - s ^ 2) ^ 2)) s := by intro s hs have h1 : 0 < 1 + s := by linarith [hs.1] have h2 : 0 < 1 - s := by linarith [hs.2, ht1] have h1s2 : 0 < 1 - s ^ 2 := by nlinarith [hs.1, hs.2, ht1] have hd1 : HasDerivAt (fun x : ℝ => (1 + x) / (1 - x)) (2 / (1 - s) ^ 2) s := by have hnum : HasDerivAt (fun x : ℝ => 1 + x) 1 s := by exact ((hasDerivAt_const s (1 : ℝ)).add (hasDerivAt_id' s)).congr_deriv (by ring) have hden : HasDerivAt (fun x : ℝ => 1 - x) (-1) s := by exact ((hasDerivAt_const s (1 : ℝ)).sub (hasDerivAt_id' s)).congr_deriv (by ring) have h := hnum.div hden (ne_of_gt h2) exact h.congr_deriv (by field_simp [ne_of_gt h2]; ring) have hdlog : HasDerivAt (fun x : ℝ => Real.log ((1 + x) / (1 - x))) (2 / (1 - s ^ 2)) s := by have h := hd1.log (ne_of_gt (div_pos h1 h2)) exact h.congr_deriv (by field_simp [ne_of_gt h1, ne_of_gt h2, ne_of_gt h1s2]; ring) have hd5 : HasDerivAt (fun x : ℝ => x ^ 5 / (5 * (1 - x ^ 2))) ((5 * s ^ 4 * (1 - s ^ 2) + 2 * s ^ 6) / (5 * (1 - s ^ 2) ^ 2)) s := by have hnum : HasDerivAt (fun x : ℝ => x ^ 5) (5 * s ^ 4) s := by exact ((hasDerivAt_id' s).pow 5).congr_deriv (by ring) have hden : HasDerivAt (fun x : ℝ => 5 * (1 - x ^ 2)) (5 * (-2 * s)) s := by have := ((hasDerivAt_const s (1 : ℝ)).sub ((hasDerivAt_id' s).pow 2)).const_mul (5 : ℝ) exact this.congr_deriv (by ring) have h := hnum.div hden (by positivity) exact h.congr_deriv (by field_simp [ne_of_gt h1s2]; ring) have hdp : HasDerivAt (fun x : ℝ => 2 * (x + x ^ 3 / 3 + x ^ 5 / (5 * (1 - x ^ 2)))) (2 * (1 + s ^ 2 + (5 * s ^ 4 * (1 - s ^ 2) + 2 * s ^ 6) / (5 * (1 - s ^ 2) ^ 2))) s := by have h3 : HasDerivAt (fun x : ℝ => x ^ 3 / 3) (s ^ 2) s := by have := ((hasDerivAt_id' s).pow 3).div_const (3 : ℝ) exact this.congr_deriv (by ring) have := (((hasDerivAt_id' s).add h3).add hd5).const_mul (2 : ℝ) exact this.congr_deriv (by ring) exact (hdp.sub hdlog).congr_deriv (by field_simp [ne_of_gt h1s2]; ring) have hmono : MonotoneOn f (Set.Icc 0 t) := by apply monotoneOn_of_deriv_nonneg (convex_Icc 0 t) · intro s hs; exact (hdf s hs).continuousAt.continuousWithinAt · intro s hs; rw [interior_Icc] at hs exact (hdf s ⟨le_of_lt hs.1, le_of_lt hs.2⟩).differentiableAt.differentiableWithinAt · intro s hs; rw [interior_Icc] at hs rw [(hdf s ⟨le_of_lt hs.1, le_of_lt hs.2⟩).deriv] have h1s2 : 0 < 1 - s ^ 2 := by nlinarith [hs.1, hs.2, ht1] positivity have hle := hmono ⟨le_rfl, ht0⟩ ⟨ht0, le_rfl⟩ ht0 rw [hf0] at hle dsimp [f] at hle linarith /-- Defining transcendental equation `criticalEq u = 2(1 - u) log(1 - u) + u` for the universal Rényi-Pinsker minimizer `u_*`. -/ def criticalEq (u : ℝ) : ℝ := 2 * (1 - u) * Real.log (1 - u) + u lemma hasDerivAt_criticalEq {u : ℝ} (hu : u < 1) : HasDerivAt criticalEq (-2 * Real.log (1 - u) - 1) u := by have h1u : 1 - u ≠ 0 := by linarith have hsub : HasDerivAt (fun x => 1 - x) (-1) u := by have := (hasDerivAt_const u (1 : ℝ)).sub (hasDerivAt_id' u) exact this.congr_deriv (by ring) have hlog : HasDerivAt (fun x => Real.log (1 - x)) (-1 / (1 - u)) u := hsub.log h1u have hprod : HasDerivAt (fun x => 2 * (1 - x) * Real.log (1 - x)) (-2 * Real.log (1 - u) - 2) u := by have hmul := (hsub.const_mul (2 : ℝ)).mul hlog exact hmul.congr_deriv (by field_simp [h1u]; ring) have h := hprod.add (hasDerivAt_id' u) exact h.congr_deriv (by ring) lemma criticalEq_zero : criticalEq 0 = 0 := by simp [criticalEq] lemma criticalEq_neg_on_Ioo_zero_half {u : ℝ} (hu0 : 0 < u) (hu1 : u ≤ 1 / 2) : criticalEq u < 0 := by -- Show criticalEq is strictly convex on [0, 1) with criticalEq 0 = 0 and criticalEq (1/2) < 0 have hhalf : criticalEq (1 / 2) < 0 := by have hlog2 := Real.log_two_gt_d9 have heq : criticalEq (1 / 2) = 1 / 2 - Real.log 2 := by unfold criticalEq have h12 : (1 : ℝ) - 1 / 2 = (2 : ℝ)⁻¹ := by norm_num rw [h12, Real.log_inv] ring linarith -- Direct proof: criticalEq''(x) = 2 / (1 - x) > 0 on [0, 1/2], so strictly convex on [0, 1/2]! have hconv : ConvexOn ℝ (Set.Icc 0 (1 / 2 : ℝ)) criticalEq := by apply convexOn_of_deriv2_nonneg (convex_Icc 0 (1 / 2)) · intro x hx have h1x : 1 - x ≠ 0 := by linarith [hx.2] refine ContinuousAt.continuousWithinAt ?_ exact ((continuousAt_const.mul (continuousAt_const.sub continuousAt_id)).mul ((continuousAt_const.sub continuousAt_id).log h1x)).add continuousAt_id · intro x hx rw [interior_Icc] at hx have h1x : x < 1 := by linarith [hx.2] exact (hasDerivAt_criticalEq h1x).differentiableAt.differentiableWithinAt · intro x hx rw [interior_Icc] at hx have h1x : x < 1 := by linarith [hx.2] have h1xne : 1 - x ≠ 0 := by linarith have hd2 : HasDerivAt (fun y => -2 * Real.log (1 - y) - 1) (2 / (1 - x)) x := by have hsub : HasDerivAt (fun y => 1 - y) (-1) x := by have := (hasDerivAt_const x (1 : ℝ)).sub (hasDerivAt_id' x) exact this.congr_deriv (by ring) have := ((hsub.log h1xne).const_mul (-2 : ℝ)).sub (hasDerivAt_const x (1 : ℝ)) exact this.congr_deriv (by field_simp [h1xne]; ring) have heq : deriv criticalEq =ᶠ[nhds x] (fun y => -2 * Real.log (1 - y) - 1) := by filter_upwards [eventually_lt_nhds h1x] with y hy exact (hasDerivAt_criticalEq hy).deriv exact (hd2.congr_of_eventuallyEq heq).differentiableAt.differentiableWithinAt · intro x hx rw [interior_Icc] at hx have h1x : x < 1 := by linarith [hx.2] have h1xne : 1 - x ≠ 0 := by linarith have hd2 : HasDerivAt (fun y => -2 * Real.log (1 - y) - 1) (2 / (1 - x)) x := by have hsub : HasDerivAt (fun y => 1 - y) (-1) x := by have := (hasDerivAt_const x (1 : ℝ)).sub (hasDerivAt_id' x) exact this.congr_deriv (by ring) have := ((hsub.log h1xne).const_mul (-2 : ℝ)).sub (hasDerivAt_const x (1 : ℝ)) exact this.congr_deriv (by field_simp [h1xne]; ring) have heq : deriv criticalEq =ᶠ[nhds x] (fun y => -2 * Real.log (1 - y) - 1) := by filter_upwards [eventually_lt_nhds h1x] with y hy exact (hasDerivAt_criticalEq hy).deriv change 0 ≤ deriv (deriv criticalEq) x rw [(hd2.congr_of_eventuallyEq heq).deriv] positivity have hcomb : (1 - 2 * u) * 0 + (2 * u) * (1 / 2 : ℝ) = u := by ring have hle := hconv.2 ⟨le_rfl, by norm_num⟩ ⟨by norm_num, le_rfl⟩ (show (0 : ℝ) ≤ 1 - 2 * u by linarith) (show (0 : ℝ) ≤ 2 * u by linarith) (by ring) simp only [smul_eq_mul] at hle rw [hcomb, criticalEq_zero] at hle nlinarith lemma criticalEq_strictMonoOn_half_one : StrictMonoOn criticalEq (Set.Ico (1 / 2 : ℝ) 1) := by apply strictMonoOn_of_deriv_pos (convex_Ico (1 / 2 : ℝ) 1) · intro x hx have h1x : 1 - x ≠ 0 := by linarith [hx.2] refine ContinuousAt.continuousWithinAt ?_ exact ((continuousAt_const.mul (continuousAt_const.sub continuousAt_id)).mul ((continuousAt_const.sub continuousAt_id).log h1x)).add continuousAt_id · intro x hx rw [interior_Ico] at hx have h1x : x < 1 := hx.2 rw [(hasDerivAt_criticalEq h1x).deriv] have hle : 1 - x ≤ (2 : ℝ)⁻¹ := by linarith [hx.1] have hlog : Real.log (1 - x) ≤ Real.log ((2 : ℝ)⁻¹) := Real.log_le_log (by linarith) hle rw [Real.log_inv] at hlog have hlog2 := Real.log_two_gt_d9 linarith lemma criticalEq_at_7153_neg : criticalEq (7153 / 10000) < 0 := by unfold criticalEq have hrew : (1 : ℝ) - 7153 / 10000 = (2847 / 2500) / 4 := by norm_num rw [hrew, Real.log_div (by norm_num) (by norm_num)] have hlog4 : Real.log 4 = 2 * Real.log 2 := by have : (4 : ℝ) = 2 ^ (2 : ℕ) := by norm_num rw [this, Real.log_pow]; ring rw [hlog4] have hratio : (2847 / 2500 : ℝ) = (1 + 347 / 5347) / (1 - 347 / 5347) := by norm_num rw [hratio] have hub := log_one_add_div_one_sub_le (347 / 5347) (by norm_num) (by norm_num) have hlog2 := Real.log_two_gt_d9 nlinarith lemma criticalEq_at_7154_pos : 0 < criticalEq (7154 / 10000) := by unfold criticalEq have hrew : (1 : ℝ) - 7154 / 10000 = (2846 / 2500) / 4 := by norm_num rw [hrew, Real.log_div (by norm_num) (by norm_num)] have hlog4 : Real.log 4 = 2 * Real.log 2 := by have : (4 : ℝ) = 2 ^ (2 : ℕ) := by norm_num rw [this, Real.log_pow]; ring rw [hlog4] have hratio : (2846 / 2500 : ℝ) = (1 + 346 / 5346) / (1 - 346 / 5346) := by norm_num rw [hratio] have hlb := log_one_add_div_one_sub_ge (346 / 5346) (by norm_num) (by norm_num) have hlog2 := Real.log_two_lt_d9 nlinarith lemma exists_unique_uStar : ∃! u : ℝ, u ∈ Set.Icc (7153 / 10000 : ℝ) (7154 / 10000) ∧ criticalEq u = 0 := by have hcont : ContinuousOn criticalEq (Set.Icc (7153 / 10000 : ℝ) (7154 / 10000)) := by intro x hx have h1x : 1 - x ≠ 0 := by linarith [hx.2] refine ContinuousAt.continuousWithinAt ?_ exact ((continuousAt_const.mul (continuousAt_const.sub continuousAt_id)).mul ((continuousAt_const.sub continuousAt_id).log h1x)).add continuousAt_id have h0mem : (0 : ℝ) ∈ Set.Icc (criticalEq (7153 / 10000)) (criticalEq (7154 / 10000)) := ⟨le_of_lt criticalEq_at_7153_neg, le_of_lt criticalEq_at_7154_pos⟩ obtain ⟨u, hu_mem, hu_eq⟩ := intermediate_value_Icc (by norm_num) hcont h0mem refine ⟨u, ⟨hu_mem, hu_eq⟩, ?_⟩ intro v ⟨hv_mem, hv_eq⟩ have hu_ico : u ∈ Set.Ico (1 / 2 : ℝ) 1 := ⟨by linarith [hu_mem.1], by linarith [hu_mem.2]⟩ have hv_ico : v ∈ Set.Ico (1 / 2 : ℝ) 1 := ⟨by linarith [hv_mem.1], by linarith [hv_mem.2]⟩ exact criticalEq_strictMonoOn_half_one.injOn hv_ico hu_ico (hv_eq.trans hu_eq.symm) /-- The unique critical parameter `u_* ∈ (0.7153, 0.7154)` solving `2(1 - u_*) log(1 - u_*) + u_* = 0`. -/ def uStar : ℝ := Classical.choose exists_unique_uStar lemma uStar_mem_Icc : uStar ∈ Set.Icc (7153 / 10000 : ℝ) (7154 / 10000) := (Classical.choose_spec exists_unique_uStar).1.1 lemma criticalEq_uStar : criticalEq uStar = 0 := (Classical.choose_spec exists_unique_uStar).1.2 lemma uStar_gt : (7153 / 10000 : ℝ) < uStar := by rcases lt_or_eq_of_le uStar_mem_Icc.1 with h | h · exact h · exfalso; have hcu := criticalEq_uStar; rw [← h] at hcu; linarith [criticalEq_at_7153_neg] lemma uStar_lt : uStar < 7154 / 10000 := by rcases lt_or_eq_of_le uStar_mem_Icc.2 with h | h · exact h · exfalso; have hcu := criticalEq_uStar; rw [h] at hcu; linarith [criticalEq_at_7154_pos] lemma uStar_pos : 0 < uStar := by linarith [uStar_gt] lemma uStar_lt_one : uStar < 1 := by linarith [uStar_lt] lemma uStar_gt_half : (1 / 2 : ℝ) < uStar := by linarith [uStar_gt] lemma log_one_sub_uStar : Real.log (1 - uStar) = -uStar / (2 * (1 - uStar)) := by have h := criticalEq_uStar unfold criticalEq at h have h1 : 1 - uStar ≠ 0 := by linarith [uStar_lt_one] field_simp [h1] linarith lemma criticalEq_neg_of_lt_uStar {u : ℝ} (hu0 : 0 < u) (hu : u < uStar) : criticalEq u < 0 := by by_cases hhalf : u ≤ 1 / 2 · exact criticalEq_neg_on_Ioo_zero_half hu0 hhalf · push Not at hhalf have h := criticalEq_strictMonoOn_half_one ⟨le_of_lt hhalf, by linarith [uStar_lt_one]⟩ ⟨le_of_lt uStar_gt_half, uStar_lt_one⟩ hu rwa [criticalEq_uStar] at h lemma criticalEq_pos_of_gt_uStar {u : ℝ} (hu : uStar < u) (hu1 : u < 1) : 0 < criticalEq u := by have h := criticalEq_strictMonoOn_half_one ⟨le_of_lt uStar_gt_half, uStar_lt_one⟩ ⟨by linarith [uStar_gt_half], hu1⟩ hu rwa [criticalEq_uStar] at h /-- The exact universal Rényi-α Pinsker constant `C_* = -log(1 - u_*) / u_*^2 = 1 / (2 u_* (1 - u_*)) ≈ 2.4554074823`. -/ def renyiUniversalConst : ℝ := -Real.log (1 - uStar) / uStar ^ 2 /-- The exact critical Rényi plateau order `α_* = 1 / u_* ≈ 1.3979525473`. -/ def renyiPlateauOrder : ℝ := 1 / uStar theorem renyiUniversalConst_eq_algebraic : renyiUniversalConst = 1 / (2 * uStar * (1 - uStar)) := by unfold renyiUniversalConst rw [log_one_sub_uStar] have hu : uStar ≠ 0 := ne_of_gt uStar_pos have h1u : 1 - uStar ≠ 0 := by linarith [uStar_lt_one] field_simp [hu, h1u] theorem renyiUniversalConst_gt : (2455 / 1000 : ℝ) < renyiUniversalConst := by rw [renyiUniversalConst_eq_algebraic] have hu1 := uStar_gt have hu2 := uStar_lt have hprod : 2 * uStar * (1 - uStar) < 1000 / 2455 := by nlinarith have hpos : 0 < 2 * uStar * (1 - uStar) := by nlinarith rw [lt_div_iff₀ hpos] linarith theorem renyiUniversalConst_lt : renyiUniversalConst < 2456 / 1000 := by rw [renyiUniversalConst_eq_algebraic] have hu1 := uStar_gt have hu2 := uStar_lt have hprod : 1000 / 2456 < 2 * uStar * (1 - uStar) := by nlinarith have hpos : 0 < 2 * uStar * (1 - uStar) := by nlinarith rw [div_lt_iff₀ hpos] linarith theorem renyiUniversalConst_pos : 0 < renyiUniversalConst := by linarith [renyiUniversalConst_gt] theorem renyiPlateauOrder_bounds : (1397 / 1000 : ℝ) < renyiPlateauOrder ∧ renyiPlateauOrder < 1399 / 1000 := by unfold renyiPlateauOrder have hu1 := uStar_gt have hu2 := uStar_lt have hpos := uStar_pos constructor · rw [lt_div_iff₀ hpos]; linarith · rw [div_lt_iff₀ hpos]; linarith /-- Master one-variable lower bound: `-log(1 - u) / u^2 ≥ C_*` for all `u ∈ (0, 1)`, with exact attainment at `u = u_*`. -/ theorem neg_log_div_sq_ge_renyiUniversalConst {u : ℝ} (hu0 : 0 < u) (hu1 : u < 1) : renyiUniversalConst ≤ -Real.log (1 - u) / u ^ 2 := by let h : ℝ → ℝ := fun x => -Real.log (1 - x) / x ^ 2 have hd : ∀ x ∈ Set.Ioo (0 : ℝ) 1, HasDerivAt h (criticalEq x / ((1 - x) * x ^ 3)) x := by intro x hx have hx0 : x ≠ 0 := ne_of_gt hx.1 have h1x : 1 - x ≠ 0 := by linarith [hx.2] have hsub : HasDerivAt (fun y => 1 - y) (-1) x := by have := (hasDerivAt_const x (1 : ℝ)).sub (hasDerivAt_id' x) exact this.congr_deriv (by ring) have hnum : HasDerivAt (fun y => -Real.log (1 - y)) (1 / (1 - x)) x := by have := (hsub.log h1x).neg exact this.congr_deriv (by field_simp [h1x]) have hden : HasDerivAt (fun y => y ^ 2) (2 * x) x := by have := (hasDerivAt_id' x).pow 2 exact this.congr_deriv (by ring) have hq := hnum.div hden (pow_ne_zero 2 hx0) exact hq.congr_deriv (by unfold criticalEq; field_simp [hx0, h1x]; ring) rcases le_total u uStar with hle | hge · have hanti : AntitoneOn h (Set.Icc u uStar) := by apply antitoneOn_of_deriv_nonpos (convex_Icc u uStar) · intro x hx exact (hd x ⟨by linarith [hx.1], by linarith [hx.2, uStar_lt_one]⟩).continuousAt.continuousWithinAt · intro x hx rw [interior_Icc] at hx exact (hd x ⟨by linarith [hx.1], by linarith [hx.2, uStar_lt_one]⟩).differentiableAt.differentiableWithinAt · intro x hx rw [interior_Icc] at hx rw [(hd x ⟨by linarith [hx.1], by linarith [hx.2, uStar_lt_one]⟩).deriv] have hc : criticalEq x < 0 := criticalEq_neg_of_lt_uStar (by linarith [hx.1]) hx.2 have hden : 0 < (1 - x) * x ^ 3 := by have : 0 < 1 - x := by linarith [hx.2, uStar_lt_one] have : 0 < x := by linarith [hx.1] positivity exact div_nonpos_of_nonpos_of_nonneg (le_of_lt hc) (le_of_lt hden) exact hanti ⟨le_rfl, hle⟩ ⟨hle, le_rfl⟩ hle · have hmono : MonotoneOn h (Set.Icc uStar u) := by apply monotoneOn_of_deriv_nonneg (convex_Icc uStar u) · intro x hx exact (hd x ⟨by linarith [hx.1, uStar_pos], by linarith [hx.2]⟩).continuousAt.continuousWithinAt · intro x hx rw [interior_Icc] at hx exact (hd x ⟨by linarith [hx.1, uStar_pos], by linarith [hx.2]⟩).differentiableAt.differentiableWithinAt · intro x hx rw [interior_Icc] at hx rw [(hd x ⟨by linarith [hx.1, uStar_pos], by linarith [hx.2]⟩).deriv] have hc : 0 < criticalEq x := criticalEq_pos_of_gt_uStar hx.1 (by linarith [hx.2]) have hden : 0 < (1 - x) * x ^ 3 := by have : 0 < 1 - x := by linarith [hx.2] have : 0 < x := by linarith [hx.1, uStar_pos] positivity exact div_nonneg (le_of_lt hc) (le_of_lt hden) exact hmono ⟨le_rfl, hge⟩ ⟨hge, le_rfl⟩ hge /-! ## Section 2: Binary Rényi Divergence & Complete Structural Laws -/ /-- Binary Rényi divergence `D_α(Ber(x) ‖ Ber(p))` of order `α ∈ (0, 1) ∪ (1, ∞)`. -/ def binaryRenyiDiv (α x p : ℝ) : ℝ := Real.log (x ^ α * p ^ (1 - α) + (1 - x) ^ α * (1 - p) ^ (1 - α)) / (α - 1) /-- Binary Kullback–Leibler divergence `D₁(Ber(x) ‖ Ber(p))` (for `x, p ∈ (0, 1)`). -/ def binaryKL (x p : ℝ) : ℝ := x * Real.log (x / p) + (1 - x) * Real.log ((1 - x) / (1 - p)) /-- Helper: cumulant sum `x^α p^{1-α} + (1-x)^α (1-p)^{1-α}` is strictly positive for `α > 0`, `x ∈ [0, 1]`, `p ∈ (0, 1)`. -/ lemma renyiSum_pos {α x p : ℝ} (hα : 0 < α) (hx0 : 0 ≤ x) (hx1 : x ≤ 1) (hp0 : 0 < p) (hp1 : p < 1) : 0 < x ^ α * p ^ (1 - α) + (1 - x) ^ α * (1 - p) ^ (1 - α) := by by_cases hx : x = 0 · subst hx rw [Real.zero_rpow (ne_of_gt hα), zero_mul, zero_add, sub_zero, Real.one_rpow, one_mul] exact Real.rpow_pos_of_pos (by linarith) _ · have hxpos : 0 < x := lt_of_le_of_ne hx0 (Ne.symm hx) have h1 : 0 < x ^ α * p ^ (1 - α) := mul_pos (Real.rpow_pos_of_pos hxpos α) (Real.rpow_pos_of_pos hp0 (1 - α)) have h2 : 0 ≤ (1 - x) ^ α * (1 - p) ^ (1 - α) := mul_nonneg (Real.rpow_nonneg (by linarith) α) (le_of_lt (Real.rpow_pos_of_pos (by linarith) _)) linarith lemma binaryRenyiDiv_self {α p : ℝ} (hp0 : 0 < p) (hp1 : p < 1) : binaryRenyiDiv α p p = 0 := by unfold binaryRenyiDiv have h1 : p ^ α * p ^ (1 - α) = p := by rw [← Real.rpow_add hp0]; simp have h2 : (1 - p) ^ α * (1 - p) ^ (1 - α) = 1 - p := by rw [← Real.rpow_add (by linarith : 0 < 1 - p)]; simp rw [h1, h2] have : p + (1 - p) = 1 := by ring rw [this, Real.log_one, zero_div] lemma binaryRenyiDiv_symm (α x p : ℝ) : binaryRenyiDiv α (1 - x) (1 - p) = binaryRenyiDiv α x p := by unfold binaryRenyiDiv congr 2 have h1 : 1 - (1 - x) = x := by ring have h2 : 1 - (1 - p) = p := by ring rw [h1, h2, add_comm] lemma binaryRenyiDiv_at_one {α p : ℝ} (hα : 0 < α) (hα1 : α ≠ 1) (hp0 : 0 < p) : binaryRenyiDiv α 1 p = -Real.log p := by unfold binaryRenyiDiv rw [Real.one_rpow, one_mul, sub_self, Real.zero_rpow (ne_of_gt hα), zero_mul, add_zero, Real.log_rpow hp0] have hne : α - 1 ≠ 0 := sub_ne_zero.mpr hα1 field_simp [hne] ring lemma binaryRenyiDiv_at_zero {α p : ℝ} (hα : 0 < α) (hα1 : α ≠ 1) (hp1 : p < 1) : binaryRenyiDiv α 0 p = -Real.log (1 - p) := by rw [← binaryRenyiDiv_symm, sub_zero] exact binaryRenyiDiv_at_one hα hα1 (by linarith) /-- Skew-symmetry of binary Rényi divergence: `(1 - α) D_α(x ‖ p) = α D_{1 - α}(p ‖ x)`. -/ theorem binaryRenyiDiv_skew_symm {α x p : ℝ} (hα0 : 0 < α) (hα1 : α < 1) : (1 - α) * binaryRenyiDiv α x p = α * binaryRenyiDiv (1 - α) p x := by unfold binaryRenyiDiv have hne1 : α - 1 ≠ 0 := by linarith have hne2 : (1 - α) - 1 ≠ 0 := by linarith have h1ma : 1 - (1 - α) = α := by ring rw [h1ma] have hsum : x ^ α * p ^ (1 - α) + (1 - x) ^ α * (1 - p) ^ (1 - α) = p ^ (1 - α) * x ^ α + (1 - p) ^ (1 - α) * (1 - x) ^ α := by ring rw [hsum] field_simp [hne1, hne2] ring /-- Exact quadratic identity at `α = 2`: `D₂(x ‖ p) = log(1 + (x - p)² / (p(1 - p)))`. -/ theorem binaryRenyiDiv_two_eq {x p : ℝ} (hp0 : 0 < p) (hp1 : p < 1) : binaryRenyiDiv 2 x p = Real.log (1 + (x - p) ^ 2 / (p * (1 - p))) := by unfold binaryRenyiDiv have h1 : (2 : ℝ) - 1 = 1 := by norm_num have h2 : (1 : ℝ) - 2 = -1 := by norm_num rw [h1, div_one, h2] congr 1 rw [Real.rpow_two, Real.rpow_two, Real.rpow_neg_one, Real.rpow_neg_one] have hpne : p ≠ 0 := ne_of_gt hp0 have h1pne : 1 - p ≠ 0 := by linarith field_simp [hpne, h1pne] ring /-- Exact Bhattacharyya identity at `α = 1/2`: `D_{1/2}(x ‖ p) = -2 log(√(x p) + √((1 - x)(1 - p)))`. -/ theorem binaryRenyiDiv_half_eq {x p : ℝ} (hx0 : 0 ≤ x) (hx1 : x ≤ 1) : binaryRenyiDiv (1 / 2) x p = -2 * Real.log (Real.sqrt (x * p) + Real.sqrt ((1 - x) * (1 - p))) := by unfold binaryRenyiDiv have hsub : (1 : ℝ) - 1 / 2 = 1 / 2 := by norm_num have hden : (1 / 2 : ℝ) - 1 = -(1 / 2) := by norm_num rw [hsub, hden] have h1 : x ^ (1 / 2 : ℝ) * p ^ (1 / 2 : ℝ) = Real.sqrt (x * p) := by rw [← Real.sqrt_eq_rpow, ← Real.sqrt_eq_rpow, Real.sqrt_mul hx0] have h2 : (1 - x) ^ (1 / 2 : ℝ) * (1 - p) ^ (1 / 2 : ℝ) = Real.sqrt ((1 - x) * (1 - p)) := by rw [← Real.sqrt_eq_rpow, ← Real.sqrt_eq_rpow, Real.sqrt_mul (by linarith)] rw [h1, h2] ring /-- Convexity of the two-term exponential cumulant generating function `α ↦ log(a · e^{α u} + b · e^{α v})` on `ℝ`. -/ lemma convexOn_log_two_exp {a b : ℝ} (ha : 0 < a) (hb : 0 < b) (u v : ℝ) : ConvexOn ℝ Set.univ (fun α : ℝ => Real.log (a * Real.exp (α * u) + b * Real.exp (α * v))) := by let S : ℝ → ℝ := fun α => a * Real.exp (α * u) + b * Real.exp (α * v) let S' : ℝ → ℝ := fun α => a * u * Real.exp (α * u) + b * v * Real.exp (α * v) have hSpos : ∀ α, 0 < S α := fun α => by dsimp [S]; positivity have hdS : ∀ α, HasDerivAt S (S' α) α := fun α => by have h1 : HasDerivAt (fun t => a * Real.exp (t * u)) (a * u * Real.exp (α * u)) α := by have := (((hasDerivAt_id' α).mul_const u).exp).const_mul a exact this.congr_deriv (by ring) have h2 : HasDerivAt (fun t => b * Real.exp (t * v)) (b * v * Real.exp (α * v)) α := by have := (((hasDerivAt_id' α).mul_const v).exp).const_mul b exact this.congr_deriv (by ring) exact h1.add h2 have hdlog : ∀ α, HasDerivAt (fun t => Real.log (S t)) (S' α / S α) α := fun α => (hdS α).log (ne_of_gt (hSpos α)) have hdS' : ∀ α, HasDerivAt S' (a * u ^ 2 * Real.exp (α * u) + b * v ^ 2 * Real.exp (α * v)) α := fun α => by have h1 : HasDerivAt (fun t => a * u * Real.exp (t * u)) (a * u ^ 2 * Real.exp (α * u)) α := by have := (((hasDerivAt_id' α).mul_const u).exp).const_mul (a * u) exact this.congr_deriv (by ring) have h2 : HasDerivAt (fun t => b * v * Real.exp (t * v)) (b * v ^ 2 * Real.exp (α * v)) α := by have := (((hasDerivAt_id' α).mul_const v).exp).const_mul (b * v) exact this.congr_deriv (by ring) exact h1.add h2 apply convexOn_of_deriv2_nonneg convex_univ · exact (continuous_iff_continuousAt.mpr (fun α => (hdlog α).continuousAt)).continuousOn · intro α _; exact (hdlog α).differentiableAt.differentiableWithinAt · intro α _ have heq : deriv (fun t => Real.log (S t)) = fun t => S' t / S t := funext (fun t => (hdlog t).deriv) rw [heq] exact ((hdS' α).div (hdS α) (ne_of_gt (hSpos α))).differentiableAt.differentiableWithinAt · intro α _ have heq : deriv (fun t => Real.log (S t)) = fun t => S' t / S t := funext (fun t => (hdlog t).deriv) change 0 ≤ deriv (deriv (fun t => Real.log (S t))) α have hdq : HasDerivAt (fun t => S' t / S t) (((a * u ^ 2 * Real.exp (α * u) + b * v ^ 2 * Real.exp (α * v)) * S α - S' α * S' α) / S α ^ 2) α := (hdS' α).div (hdS α) (ne_of_gt (hSpos α)) rw [heq, hdq.deriv] have hnum : (a * u ^ 2 * Real.exp (α * u) + b * v ^ 2 * Real.exp (α * v)) * S α - S' α * S' α = a * b * (u - v) ^ 2 * Real.exp (α * u) * Real.exp (α * v) := by dsimp [S, S']; ring rw [hnum] positivity /-- Cumulant generating function `φ(α) = log(x^α p^{1-α} + (1-x)^α (1-p)^{1-α})` is convex on `(0, ∞)` for every `x ∈ [0, 1]` and `p ∈ (0, 1)`. -/ lemma convexOn_binaryRenyiCumulant {x p : ℝ} (hx0 : 0 ≤ x) (hx1 : x ≤ 1) (hp0 : 0 < p) (hp1 : p < 1) : ConvexOn ℝ (Set.Ioi (0 : ℝ)) (fun α : ℝ => Real.log (x ^ α * p ^ (1 - α) + (1 - x) ^ α * (1 - p) ^ (1 - α))) := by by_cases hx_zero : x = 0 · subst hx_zero have hlin : ConvexOn ℝ (Set.Ioi (0 : ℝ)) (fun α : ℝ => (1 - α) * Real.log (1 - p)) := by refine ⟨convex_Ioi 0, fun a _ b _ t s _ _ hts => ?_⟩ simp only [smul_eq_mul] have : (1 - (t * a + s * b)) = t * (1 - a) + s * (1 - b) := by linarith rw [this]; ring_nf; exact le_rfl refine hlin.congr (fun α hα => ?_) have hα0 : 0 < α := Set.mem_Ioi.mp hα rw [Real.zero_rpow (ne_of_gt hα0), zero_mul, zero_add, sub_zero, Real.one_rpow, one_mul, Real.log_rpow (by linarith)] · by_cases hx_one : x = 1 · subst hx_one have hlin : ConvexOn ℝ (Set.Ioi (0 : ℝ)) (fun α : ℝ => (1 - α) * Real.log p) := by refine ⟨convex_Ioi 0, fun a _ b _ t s _ _ hts => ?_⟩ simp only [smul_eq_mul] have : (1 - (t * a + s * b)) = t * (1 - a) + s * (1 - b) := by linarith rw [this]; ring_nf; exact le_rfl refine hlin.congr (fun α hα => ?_) have hα0 : 0 < α := Set.mem_Ioi.mp hα rw [Real.one_rpow, one_mul, sub_self, Real.zero_rpow (ne_of_gt hα0), zero_mul, add_zero, Real.log_rpow hp0] · have hxpos : 0 < x := lt_of_le_of_ne hx0 (Ne.symm hx_zero) have h1xpos : 0 < 1 - x := by have : x < 1 := lt_of_le_of_ne hx1 hx_one linarith have h1ppos : 0 < 1 - p := by linarith have hconv := (convexOn_log_two_exp hp0 h1ppos (Real.log (x / p)) (Real.log ((1 - x) / (1 - p)))).subset (Set.subset_univ (Set.Ioi 0)) (convex_Ioi 0) refine hconv.congr (fun α _ => ?_) dsimp only congr 1 have hA : p * Real.exp (α * Real.log (x / p)) = x ^ α * p ^ (1 - α) := by rw [mul_comm α, ← Real.rpow_def_of_pos (div_pos hxpos hp0), Real.div_rpow (le_of_lt hxpos) (le_of_lt hp0), Real.rpow_sub hp0, Real.rpow_one] ring have hB : (1 - p) * Real.exp (α * Real.log ((1 - x) / (1 - p))) = (1 - x) ^ α * (1 - p) ^ (1 - α) := by rw [mul_comm α, ← Real.rpow_def_of_pos (div_pos h1xpos h1ppos), Real.div_rpow (le_of_lt h1xpos) (le_of_lt h1ppos), Real.rpow_sub h1ppos, Real.rpow_one] ring rw [hA, hB] /-- Exact order monotonicity of binary Rényi divergence: `0 < α ≤ β` (`α ≠ 1, β ≠ 1`) implies `D_α(x ‖ p) ≤ D_β(x ‖ p)`. -/ theorem binaryRenyiDiv_mono_alpha {α β x p : ℝ} (hα : 0 < α) (hα1 : α ≠ 1) (hβ1 : β ≠ 1) (hαβ : α ≤ β) (hx0 : 0 ≤ x) (hx1 : x ≤ 1) (hp0 : 0 < p) (hp1 : p < 1) : binaryRenyiDiv α x p ≤ binaryRenyiDiv β x p := by let φ : ℝ → ℝ := fun t => Real.log (x ^ t * p ^ (1 - t) + (1 - x) ^ t * (1 - p) ^ (1 - t)) have hφ1 : φ 1 = 0 := by dsimp [φ]; simp only [Real.rpow_one, sub_self, Real.rpow_zero, mul_one] have : x + (1 - x) = 1 := by ring rw [this, Real.log_one] have hconv := convexOn_binaryRenyiCumulant hx0 hx1 hp0 hp1 rcases eq_or_lt_of_le hαβ with rfl | hlt · exact le_rfl · unfold binaryRenyiDiv change φ α / (α - 1) ≤ φ β / (β - 1) have hsec := hconv.secant_mono (Set.mem_Ioi.mpr (by norm_num : (0 : ℝ) < 1)) (Set.mem_Ioi.mpr hα) (Set.mem_Ioi.mpr (by linarith : 0 < β)) hα1 hβ1 (le_of_lt hlt) simpa [hφ1] using hsec /-- Sub-unit Rényi divergence dominates `(α / (1 - α)) D_{1/2}` for every `α ∈ (0, 1/2]`. -/ theorem binaryRenyiDiv_ge_ratio_half {α x p : ℝ} (hα0 : 0 < α) (hαh : α ≤ 1 / 2) (hx0 : 0 ≤ x) (hx1 : x ≤ 1) (hp0 : 0 < p) (hp1 : p < 1) : (α / (1 - α)) * binaryRenyiDiv (1 / 2) x p ≤ binaryRenyiDiv α x p := by by_cases hx_zero : x = 0 · subst hx_zero rw [binaryRenyiDiv_at_zero hα0 (by linarith) hp1, binaryRenyiDiv_at_zero (by norm_num) (by norm_num) hp1] have hlog : 0 ≤ -Real.log (1 - p) := by have := Real.log_nonpos (by linarith) (by linarith : 1 - p ≤ 1) linarith have hrat : α / (1 - α) ≤ 1 := by rw [div_le_one (by linarith)]; linarith nlinarith · by_cases hx_one : x = 1 · subst hx_one rw [binaryRenyiDiv_at_one hα0 (by linarith) hp0, binaryRenyiDiv_at_one (by norm_num) (by norm_num) hp0] have hlog : 0 ≤ -Real.log p := by have := Real.log_nonpos (le_of_lt hp0) (le_of_lt hp1) linarith have hrat : α / (1 - α) ≤ 1 := by rw [div_le_one (by linarith)]; linarith nlinarith · -- Interior case: φ(α) is convex on ℝ with φ(0) = 0, so φ(α) ≤ 2α · φ(1/2) have hxpos : 0 < x := lt_of_le_of_ne hx0 (Ne.symm hx_zero) have h1xpos : 0 < 1 - x := by have : x < 1 := lt_of_le_of_ne hx1 hx_one linarith have h1ppos : 0 < 1 - p := by linarith let φ : ℝ → ℝ := fun t => Real.log (p * Real.exp (t * Real.log (x / p)) + (1 - p) * Real.exp (t * Real.log ((1 - x) / (1 - p)))) have hconv := convexOn_log_two_exp hp0 h1ppos (Real.log (x / p)) (Real.log ((1 - x) / (1 - p))) have hφ0 : φ 0 = 0 := by dsimp [φ]; simp only [zero_mul, Real.exp_zero, mul_one] have : p + (1 - p) = 1 := by ring rw [this, Real.log_one] have hφ_eq : ∀ t : ℝ, φ t = Real.log (x ^ t * p ^ (1 - t) + (1 - x) ^ t * (1 - p) ^ (1 - t)) := by intro t dsimp [φ]; congr 1 have hA : p * Real.exp (t * Real.log (x / p)) = x ^ t * p ^ (1 - t) := by rw [mul_comm t, ← Real.rpow_def_of_pos (div_pos hxpos hp0), Real.div_rpow (le_of_lt hxpos) (le_of_lt hp0), Real.rpow_sub hp0, Real.rpow_one]; ring have hB : (1 - p) * Real.exp (t * Real.log ((1 - x) / (1 - p))) = (1 - x) ^ t * (1 - p) ^ (1 - t) := by rw [mul_comm t, ← Real.rpow_def_of_pos (div_pos h1xpos h1ppos), Real.div_rpow (le_of_lt h1xpos) (le_of_lt h1ppos), Real.rpow_sub h1ppos, Real.rpow_one] ring rw [hA, hB] have hcomb : (1 - 2 * α) * 0 + (2 * α) * (1 / 2 : ℝ) = α := by ring have hle := hconv.2 (Set.mem_univ 0) (Set.mem_univ (1 / 2 : ℝ)) (show (0 : ℝ) ≤ 1 - 2 * α by linarith) (show (0 : ℝ) ≤ 2 * α by linarith) (by ring) simp only [smul_eq_mul] at hle change φ ((1 - 2 * α) * 0 + 2 * α * (1 / 2)) ≤ (1 - 2 * α) * φ 0 + 2 * α * φ (1 / 2) at hle rw [hcomb, hφ0, mul_zero, zero_add] at hle unfold binaryRenyiDiv rw [← hφ_eq α, ← hφ_eq (1 / 2)] have h1ma : 0 < 1 - α := by linarith have hdiv_α : φ α / (α - 1) = -φ α / (1 - α) := by have hne1 : α - 1 ≠ 0 := by linarith have hne2 : 1 - α ≠ 0 := ne_of_gt h1ma field_simp [hne1, hne2]; ring have hdiv_h : φ (1 / 2) / ((1 / 2 : ℝ) - 1) = -2 * φ (1 / 2) := by ring rw [hdiv_α, hdiv_h] have : α / (1 - α) * (-2 * φ (1 / 2)) = -(2 * α * φ (1 / 2)) / (1 - α) := by field_simp [ne_of_gt h1ma] rw [this] exact div_le_div_of_nonneg_right (by linarith) (le_of_lt h1ma) /-- Nonnegativity of binary Rényi divergence for every `α ∈ (0, 1) ∪ (1, ∞)`. -/ theorem binaryRenyiDiv_nonneg {α x p : ℝ} (hα : 0 < α) (hα1 : α ≠ 1) (hx0 : 0 ≤ x) (hx1 : x ≤ 1) (hp0 : 0 < p) (hp1 : p < 1) : 0 ≤ binaryRenyiDiv α x p := by by_cases hgt : 1 < α · -- For α > 1: x^α p^{1-α} + (1-x)^α (1-p)^{1-α} ≥ 1 by convexity of t ↦ t^α unfold binaryRenyiDiv apply div_nonneg _ (by linarith) apply Real.log_nonneg have hconv : ConvexOn ℝ (Set.Ici (0 : ℝ)) (fun t : ℝ => t ^ α) := convexOn_rpow (le_of_lt hgt) have hle := hconv.2 (Set.mem_Ici.mpr (div_nonneg hx0 (le_of_lt hp0))) (Set.mem_Ici.mpr (div_nonneg (by linarith : 0 ≤ 1 - x) (by linarith : 0 ≤ 1 - p))) (le_of_lt hp0) (by linarith : 0 ≤ 1 - p) (by ring) simp only [smul_eq_mul] at hle have harg : p * (x / p) + (1 - p) * ((1 - x) / (1 - p)) = 1 := by have hpne : p ≠ 0 := ne_of_gt hp0 have h1pne : 1 - p ≠ 0 := by linarith field_simp [hpne, h1pne]; ring rw [harg, Real.one_rpow] at hle have hA : p * (x / p) ^ α = x ^ α * p ^ (1 - α) := by rw [Real.div_rpow hx0 (le_of_lt hp0), Real.rpow_sub hp0, Real.rpow_one]; ring have hB : (1 - p) * ((1 - x) / (1 - p)) ^ α = (1 - x) ^ α * (1 - p) ^ (1 - α) := by rw [Real.div_rpow (by linarith) (by linarith), Real.rpow_sub (by linarith), Real.rpow_one] ring linarith · -- For α ∈ (0, 1): x^α p^{1-α} + (1-x)^α (1-p)^{1-α} ≤ 1 by concavity of t ↦ t^α have hαlt : α < 1 := lt_of_le_of_ne (not_lt.mp hgt) hα1 unfold binaryRenyiDiv apply div_nonneg_of_nonpos _ (by linarith) apply Real.log_nonpos (le_of_lt (renyiSum_pos hα hx0 hx1 hp0 hp1)) have hconc : ConcaveOn ℝ (Set.Ici (0 : ℝ)) (fun t : ℝ => t ^ α) := Real.concaveOn_rpow (le_of_lt hα) (le_of_lt hαlt) have hge := hconc.2 (Set.mem_Ici.mpr (div_nonneg hx0 (le_of_lt hp0))) (Set.mem_Ici.mpr (div_nonneg (by linarith : 0 ≤ 1 - x) (by linarith : 0 ≤ 1 - p))) (le_of_lt hp0) (by linarith : 0 ≤ 1 - p) (by ring) simp only [smul_eq_mul] at hge have harg : p * (x / p) + (1 - p) * ((1 - x) / (1 - p)) = 1 := by have hpne : p ≠ 0 := ne_of_gt hp0 have h1pne : 1 - p ≠ 0 := by linarith field_simp [hpne, h1pne]; ring rw [harg, Real.one_rpow] at hge have hA : p * (x / p) ^ α = x ^ α * p ^ (1 - α) := by rw [Real.div_rpow hx0 (le_of_lt hp0), Real.rpow_sub hp0, Real.rpow_one]; ring have hB : (1 - p) * ((1 - x) / (1 - p)) ^ α = (1 - x) ^ α * (1 - p) ^ (1 - α) := by rw [Real.div_rpow (by linarith) (by linarith), Real.rpow_sub (by linarith), Real.rpow_one] ring linarith /-! ## Section 3: Exact Distribution-Dependent & Universal Rényi-α Pinsker for `α ≥ 2`, Universal Ceiling, and Boundary Phase Transition -/ /-- Ordentlich–Weinberger (2005) distribution-dependent KL Pinsker constant `c₁(p)`. -/ def owConst (p : ℝ) : ℝ := if p = 1 / 2 then 2 else Real.log ((1 - p) / p) / (1 - 2 * p) /-- Exact boundary phase-transition curve `α_bdry(p) = 2(-log p)/(2(-log p) - (1-p))`. -/ def alphaBdry (p : ℝ) : ℝ := 2 * (-Real.log p) / (2 * (-Real.log p) - (1 - p)) /-- Elementary monotonicity: `t ↦ log(1 + t) / t` is antitone on `(0, ∞)`. -/ lemma log_one_add_div_antitone {t₁ t₂ : ℝ} (ht1 : 0 < t₁) (hle : t₁ ≤ t₂) : Real.log (1 + t₂) / t₂ ≤ Real.log (1 + t₁) / t₁ := by let f : ℝ → ℝ := fun t => Real.log (1 + t) / t have hdf : ∀ t ∈ Set.Icc t₁ t₂, HasDerivAt f ((t / (1 + t) - Real.log (1 + t)) / t ^ 2) t := by intro t ht have ht0 : 0 < t := lt_of_lt_of_le ht1 ht.1 have h1t : 0 < 1 + t := by linarith have hadd : HasDerivAt (fun x : ℝ => 1 + x) 1 t := by exact ((hasDerivAt_const t (1 : ℝ)).add (hasDerivAt_id' t)).congr_deriv (by ring) have hd1 : HasDerivAt (fun x : ℝ => Real.log (1 + x)) (1 / (1 + t)) t := by exact (hadd.log (ne_of_gt h1t)).congr_deriv (by ring) exact (hd1.div (hasDerivAt_id' t) (ne_of_gt ht0)).congr_deriv (by field_simp [ne_of_gt h1t, ne_of_gt ht0]) have hanti : AntitoneOn f (Set.Icc t₁ t₂) := by apply antitoneOn_of_deriv_nonpos (convex_Icc t₁ t₂) · intro t ht; exact (hdf t ht).continuousAt.continuousWithinAt · intro t ht; rw [interior_Icc] at ht exact (hdf t ⟨le_of_lt ht.1, le_of_lt ht.2⟩).differentiableAt.differentiableWithinAt · intro t ht; rw [interior_Icc] at ht have ht0 : 0 < t := lt_trans ht1 ht.1 have h1t : 0 < 1 + t := by linarith rw [(hdf t ⟨le_of_lt ht.1, le_of_lt ht.2⟩).deriv] have hlog : Real.log (1 + t) ≥ t / (1 + t) := by have h1 : Real.log ((1 + t)⁻¹) ≤ (1 + t)⁻¹ - 1 := Real.log_le_sub_one_of_pos (inv_pos.mpr h1t) rw [Real.log_inv] at h1 have h2 : (1 + t)⁻¹ - 1 = -(t / (1 + t)) := by field_simp [ne_of_gt h1t]; ring linarith exact div_nonpos_of_nonpos_of_nonneg (by linarith) (sq_nonneg t) exact hanti ⟨le_rfl, hle⟩ ⟨hle, le_rfl⟩ hle /-- **Theorem 3.1 (Exact `α = 2` Distribution-Dependent Rényi–Pinsker Inequality):** For all `p ∈ (0, 1/2]` and `x ∈ [0, 1]`, `D₂(x ‖ p) ≥ (-log p / (1 - p)²) (x - p)²`, with exact equality at `x = 1`. -/ theorem binaryRenyiDiv_two_pinsker_exact {x p : ℝ} (hx0 : 0 ≤ x) (hx1 : x ≤ 1) (hp0 : 0 < p) (hp1 : p ≤ 1 / 2) : (-Real.log p / (1 - p) ^ 2) * (x - p) ^ 2 ≤ binaryRenyiDiv 2 x p := by have hp_lt1 : p < 1 := by linarith rw [binaryRenyiDiv_two_eq hp0 hp_lt1] by_cases hxp : x = p · subst hxp; simp · have hsq_pos : 0 < (x - p) ^ 2 := sq_pos_of_ne_zero (sub_ne_zero.mpr hxp) have h1p : 0 < 1 - p := by linarith have hpq : 0 < p * (1 - p) := mul_pos hp0 h1p set t₁ : ℝ := (x - p) ^ 2 / (p * (1 - p)) set t₂ : ℝ := (1 - p) / p have ht1_pos : 0 < t₁ := div_pos hsq_pos hpq have hxp_le : |x - p| ≤ 1 - p := abs_le.mpr ⟨by linarith, by linarith⟩ have hsq_le : (x - p) ^ 2 ≤ (1 - p) ^ 2 := by rw [← sq_abs (x - p)] exact sq_le_sq' (by linarith [abs_nonneg (x - p)]) hxp_le have ht12 : t₁ ≤ t₂ := by dsimp [t₁, t₂] rw [div_le_div_iff₀ hpq hp0] nlinarith have hanti := log_one_add_div_antitone ht1_pos ht12 have h1t2 : 1 + t₂ = p⁻¹ := by dsimp [t₂]; field_simp [ne_of_gt hp0]; ring rw [h1t2, Real.log_inv] at hanti have hlhs : -Real.log p / t₂ = (-Real.log p / (1 - p) ^ 2) * (p * (1 - p)) := by dsimp [t₂]; field_simp [ne_of_gt hp0, ne_of_gt h1p] rw [hlhs] at hanti have hmul := mul_le_mul_of_nonneg_right hanti (le_of_lt ht1_pos) have hrhs : Real.log (1 + t₁) / t₁ * t₁ = Real.log (1 + t₁) := div_mul_cancel₀ _ (ne_of_gt ht1_pos) have hlhs2 : (-Real.log p / (1 - p) ^ 2) * (p * (1 - p)) * t₁ = (-Real.log p / (1 - p) ^ 2) * (x - p) ^ 2 := by dsimp [t₁]; field_simp [ne_of_gt hp0, ne_of_gt h1p] rw [hrhs, hlhs2] at hmul exact hmul /-- **Theorem 3.2 (Exact Distribution-Dependent Rényi-α Pinsker Inequality for ALL `α ≥ 2`):** For all `α ≥ 2`, `p ∈ (0, 1/2]`, and `x ∈ [0, 1]`, `D_α(x ‖ p) ≥ (-log p / (1 - p)²) (x - p)²`, attained with exact equality at `x = 1`. -/ theorem binaryRenyiDiv_ge_two_pinsker_exact {α x p : ℝ} (hα : 2 ≤ α) (hx0 : 0 ≤ x) (hx1 : x ≤ 1) (hp0 : 0 < p) (hp1 : p ≤ 1 / 2) : (-Real.log p / (1 - p) ^ 2) * (x - p) ^ 2 ≤ binaryRenyiDiv α x p := le_trans (binaryRenyiDiv_two_pinsker_exact hx0 hx1 hp0 hp1) (binaryRenyiDiv_mono_alpha (by norm_num) (by norm_num) (by linarith) hα hx0 hx1 hp0 (by linarith)) /-- Exact attainment of the `α ≥ 2` distribution-dependent constant at `x = 1`. -/ theorem binaryRenyiDiv_ge_two_pinsker_exact_attained {α p : ℝ} (hα : 2 ≤ α) (hp0 : 0 < p) (hp1 : p ≤ 1 / 2) : binaryRenyiDiv α 1 p = (-Real.log p / (1 - p) ^ 2) * (1 - p) ^ 2 := by rw [binaryRenyiDiv_at_one (by linarith) (by linarith) hp0] have h1p : (1 - p) ^ 2 ≠ 0 := pow_ne_zero 2 (by linarith) rw [div_mul_cancel₀ _ h1p] /-- Symmetric form for all `p ∈ (0, 1)` using `q = min p (1 - p) ∈ (0, 1/2]`. -/ theorem binaryRenyiDiv_ge_two_pinsker_symm {α x p : ℝ} (hα : 2 ≤ α) (hx0 : 0 ≤ x) (hx1 : x ≤ 1) (hp0 : 0 < p) (hp1 : p < 1) : (-Real.log (min p (1 - p)) / (1 - min p (1 - p)) ^ 2) * (x - p) ^ 2 ≤ binaryRenyiDiv α x p := by by_cases hle : p ≤ 1 / 2 · have hm : min p (1 - p) = p := min_eq_left (by linarith) rw [hm] exact binaryRenyiDiv_ge_two_pinsker_exact hα hx0 hx1 hp0 hle · push Not at hle have hm : min p (1 - p) = 1 - p := min_eq_right (by linarith) rw [hm, ← binaryRenyiDiv_symm] have hsq : ((1 - x) - (1 - p)) ^ 2 = (x - p) ^ 2 := by ring rw [← hsq] exact binaryRenyiDiv_ge_two_pinsker_exact hα (by linarith) (by linarith) (by linarith) (by linarith) /-- **Theorem 3.3 (Strict Improvement over Ordentlich–Weinberger 2005 Everywhere):** For every `p ∈ (0, 1/2)`, `(-log p) / (1 - p)² > log((1 - p) / p) / (1 - 2p) = c₁(p)`. Proof: cross-multiplying reduces to `D(p) := -(1-p)² log(1-p) + p² log p > 0` on `(0, 1/2)`, which follows from `D(0) = D(1/2) = 0` and strict concavity `D''(p) = 2 log(p / (1 - p)) < 0`. -/ theorem renyi_ge_two_strictly_beats_ordentlich_weinberger {p : ℝ} (hp0 : 0 < p) (hp1 : p < 1 / 2) : owConst p < -Real.log p / (1 - p) ^ 2 := by unfold owConst rw [if_neg (ne_of_lt hp1)] have h12p : 0 < 1 - 2 * p := by linarith have h1p : 0 < 1 - p := by linarith rw [div_lt_div_iff₀ h12p (sq_pos_of_pos h1p), Real.log_div (ne_of_gt h1p) (ne_of_gt hp0)] -- Show D(t) = -(1 - t)^2 log(1 - t) + t^2 log t > 0 on (0, 1/2) let D : ℝ → ℝ := fun t => -(1 - t) ^ 2 * Real.log (1 - t) + t ^ 2 * Real.log t let D' : ℝ → ℝ := fun t => 1 + 2 * (1 - t) * Real.log (1 - t) + 2 * t * Real.log t have hD_half : D (1 / 2) = 0 := by dsimp [D]; ring have hdD : ∀ t ∈ Set.Ioo (0 : ℝ) (1 / 2), HasDerivAt D (D' t) t := fun t ht => by have ht0 : t ≠ 0 := ne_of_gt ht.1 have h1t : 1 - t ≠ 0 := by linarith [ht.2] have hsub : HasDerivAt (fun x : ℝ => 1 - x) (-1) t := by exact ((hasDerivAt_const t (1 : ℝ)).sub (hasDerivAt_id' t)).congr_deriv (by ring) have h1 : HasDerivAt (fun x : ℝ => -(1 - x) ^ 2 * Real.log (1 - x)) (2 * (1 - t) * Real.log (1 - t) + (1 - t)) t := by have ha : HasDerivAt (fun x : ℝ => -(1 - x) ^ 2) (2 * (1 - t)) t := by have := (hsub.pow 2).neg exact this.congr_deriv (by ring) have h := ha.mul (hsub.log h1t) exact h.congr_deriv (by field_simp [h1t]) have h2 : HasDerivAt (fun x : ℝ => x ^ 2 * Real.log x) (2 * t * Real.log t + t) t := by have ha : HasDerivAt (fun x : ℝ => x ^ 2) (2 * t) t := by exact ((hasDerivAt_id' t).pow 2).congr_deriv (by ring) have h := ha.mul (Real.hasDerivAt_log ht0) exact h.congr_deriv (by field_simp [ht0]) exact (h1.add h2).congr_deriv (by dsimp [D']; ring) have hdD' : ∀ t ∈ Set.Ioo (0 : ℝ) (1 / 2), HasDerivAt D' (2 * Real.log (t / (1 - t))) t := fun t ht => by have ht0 : 0 < t := ht.1 have h1t : 0 < 1 - t := by linarith [ht.2] have hsub : HasDerivAt (fun x : ℝ => 1 - x) (-1) t := by exact ((hasDerivAt_const t (1 : ℝ)).sub (hasDerivAt_id' t)).congr_deriv (by ring) have h1 : HasDerivAt (fun x : ℝ => 2 * (1 - x) * Real.log (1 - x)) (-2 * Real.log (1 - t) - 2) t := by have := (hsub.const_mul (2 : ℝ)).mul (hsub.log (ne_of_gt h1t)) exact this.congr_deriv (by field_simp [ne_of_gt h1t]; ring) have h2 : HasDerivAt (fun x : ℝ => 2 * x * Real.log x) (2 * Real.log t + 2) t := by have := ((hasDerivAt_id' t).const_mul (2 : ℝ)).mul (Real.hasDerivAt_log (ne_of_gt ht0)) exact this.congr_deriv (by field_simp [ne_of_gt ht0]) have h := ((hasDerivAt_const t (1 : ℝ)).add h1).add h2 exact h.congr_deriv (by rw [Real.log_div (ne_of_gt ht0) (ne_of_gt h1t)]; ring) -- D' is strictly decreasing on (0, 1/2], with D'(1/2) = 1 - 2 log 2 < 0 and D'(t) → 1 > 0 as t → 0⁺! -- Actually even simpler: D is strictly concave on (0, 1/2] and continuous on [0, 1/2] with D(0) = D(1/2) = 0! -- So D(p) > 0 by StrictConcaveOn: write p = (1 - 2p) * 0 + (2p) * (1/2)! -- Even simpler without touching endpoint 0: check D is strictly concave on [p/2, 1/2], wait: -- Just show D' is strictly antitone on (0, 1/2), and D'(p) vs 0: -- Case 1: D'(p) ≤ 0 => D' < 0 on (p, 1/2) => D strictly decreasing on [p, 1/2] => D(p) > D(1/2) = 0! -- Case 2: D'(p) > 0 => D' > 0 on (0, p) => D strictly increasing on [0, p] => D(p) > D(0) = 0! -- OH!! WHAT A 4-LINE CASE SPLIT!! have hD'_anti : StrictAntiOn D' (Set.Ioo (0 : ℝ) (1 / 2)) := by apply strictAntiOn_of_deriv_neg (convex_Ioo 0 (1 / 2)) · intro x hx; exact (hdD' x hx).continuousAt.continuousWithinAt · intro x hx rw [interior_Ioo] at hx rw [(hdD' x hx).deriv] have hlt : x / (1 - x) < 1 := (div_lt_one (by linarith [hx.2])).mpr (by linarith [hx.2]) have hlog : Real.log (x / (1 - x)) < 0 := Real.log_neg (div_pos hx.1 (by linarith [hx.2])) hlt linarith have hD_cont : ContinuousOn D (Set.Icc 0 (1 / 2 : ℝ)) := by intro x hx refine ContinuousAt.continuousWithinAt ?_ have h1 : ContinuousAt (fun t : ℝ => -(1 - t) ^ 2 * Real.log (1 - t)) x := by have h1x : 1 - x ≠ 0 := by linarith [hx.2] exact (((continuousAt_const.sub continuousAt_id).pow 2).neg).mul ((continuousAt_const.sub continuousAt_id).log h1x) have h2 : ContinuousAt (fun t : ℝ => t ^ 2 * Real.log t) x := by have hmul := Real.continuous_mul_log.continuousAt (x := x) have heq : (fun t : ℝ => t ^ 2 * Real.log t) = fun t : ℝ => t * (t * Real.log t) := by ext t; ring rw [heq] exact continuousAt_id.mul hmul exact h1.add h2 have hDp_pos : 0 < D p := by rcases le_or_gt (D' p) 0 with hle | hgt · have hanti : StrictAntiOn D (Set.Icc p (1 / 2 : ℝ)) := by apply strictAntiOn_of_deriv_neg (convex_Icc p (1 / 2)) · exact hD_cont.mono (Set.Icc_subset_Icc (le_of_lt hp0) le_rfl) · intro x hx rw [interior_Icc] at hx rw [(hdD x ⟨lt_trans hp0 hx.1, hx.2⟩).deriv] have hlt := hD'_anti ⟨hp0, hp1⟩ ⟨lt_trans hp0 hx.1, hx.2⟩ hx.1 linarith have hlt := hanti ⟨le_rfl, le_of_lt hp1⟩ ⟨le_of_lt hp1, le_rfl⟩ hp1 rwa [hD_half] at hlt · have hmono : StrictMonoOn D (Set.Icc 0 p) := by apply strictMonoOn_of_deriv_pos (convex_Icc 0 p) · exact hD_cont.mono (Set.Icc_subset_Icc le_rfl (le_of_lt hp1)) · intro x hx rw [interior_Icc] at hx rw [(hdD x ⟨hx.1, lt_trans hx.2 hp1⟩).deriv] have hlt := hD'_anti ⟨hx.1, lt_trans hx.2 hp1⟩ ⟨hp0, hp1⟩ hx.2 linarith have hD0 : D 0 = 0 := by simp [D] simpa [hD0] using hmono ⟨le_rfl, le_of_lt hp0⟩ ⟨le_of_lt hp0, le_rfl⟩ hp0 have hid : -Real.log p * (1 - 2 * p) - (Real.log (1 - p) - Real.log p) * (1 - p) ^ 2 = D p := by dsimp [D]; ring linarith /-- At the balanced point `p = 1/2`, `c_{≥2}(1/2) = 4 log 2 > 2.772 > 2 = c₁(1/2)` (+38.6%). -/ theorem renyi_ge_two_at_half_beats_pinsker : (2772 / 1000 : ℝ) < -Real.log (1 / 2) / (1 - 1 / 2) ^ 2 := by have h12 : (1 / 2 : ℝ) = (2 : ℝ)⁻¹ := by norm_num rw [h12, Real.log_inv] have hlog2 := Real.log_two_gt_d9 norm_num at * linarith /-- **Theorem 3.4 (Exact Universal Rényi-α Pinsker Theorem for ALL `α ≥ 2`):** For every `α ≥ 2`, `p ∈ (0, 1)`, `x ∈ [0, 1]`, `D_α(x ‖ p) ≥ C_* (x - p)² > 2.455 (x - p)²`, strictly beating van Erven–Harremoës (2014, Thm. 31)'s constant `2` by `> 22.7%`, with exact attainment at `(x = 1, p = 1 - u_*)`. -/ theorem binaryRenyiDiv_ge_two_universal_sharp {α x p : ℝ} (hα : 2 ≤ α) (hx0 : 0 ≤ x) (hx1 : x ≤ 1) (hp0 : 0 < p) (hp1 : p < 1) : renyiUniversalConst * (x - p) ^ 2 ≤ binaryRenyiDiv α x p := by have hsym := binaryRenyiDiv_ge_two_pinsker_symm hα hx0 hx1 hp0 hp1 set q := min p (1 - p) have hq0 : 0 < q := lt_min hp0 (by linarith) have hq1 : q ≤ 1 / 2 := by rcases le_total p (1 / 2) with h | h · exact le_trans (min_le_left _ _) h · exact le_trans (min_le_right _ _) (by linarith) have hu0 : 0 < 1 - q := by linarith have hu1 : 1 - q < 1 := by linarith have hC := neg_log_div_sq_ge_renyiUniversalConst hu0 hu1 have hrew : 1 - (1 - q) = q := by ring rw [hrew] at hC exact le_trans (mul_le_mul_of_nonneg_right hC (sq_nonneg (x - p))) hsym /-- **Theorem 3.5 (Universal Rényi-Pinsker Ceiling Theorem):** For EVERY Rényi order `α ∈ (0, 1) ∪ (1, ∞)`, the pair `(x = 1, p = 1 - u_*)` achieves `D_α(1 ‖ 1 - u_*) = C_* · (1 - (1 - u_*))²`. Thus no universal Rényi-α Pinsker constant for any order `α` can exceed `C_* ≈ 2.455407`. -/ theorem renyi_universal_ceiling {α : ℝ} (hα : 0 < α) (hα1 : α ≠ 1) : binaryRenyiDiv α 1 (1 - uStar) = renyiUniversalConst * (1 - (1 - uStar)) ^ 2 := by rw [binaryRenyiDiv_at_one hα hα1 (by linarith [uStar_lt_one])] unfold renyiUniversalConst have hu : uStar ≠ 0 := ne_of_gt uStar_pos have h1 : 1 - (1 - uStar) = uStar := by ring rw [h1] field_simp [hu] /-- Corollary: For EVERY `α > C_* / 2` (in particular every `α ≥ 1.228`), Gilardoni's `2α` universal bound strictly FAILS at `(x = 1, p = 1 - u_*)`. -/ theorem renyi_refutes_two_alpha_above_half_Cstar {α : ℝ} (hα : renyiUniversalConst / 2 < α) : binaryRenyiDiv α 1 (1 - uStar) < 2 * α * (1 - (1 - uStar)) ^ 2 := by have hα_gt1 : 1 < α := by linarith [renyiUniversalConst_gt] rw [renyi_universal_ceiling (by linarith) (ne_of_gt hα_gt1)] have hsq : 0 < (1 - (1 - uStar)) ^ 2 := by have : 1 - (1 - uStar) = uStar := by ring rw [this]; exact sq_pos_of_pos uStar_pos nlinarith lemma alphaBdry_gt_one {p : ℝ} (hp0 : 0 < p) (hp1 : p ≤ 1 / 2) : 1 < alphaBdry p := by unfold alphaBdry have hlog : 1 / 2 < -Real.log p := by have hle : Real.log p ≤ Real.log ((2 : ℝ)⁻¹) := Real.log_le_log hp0 (by linarith) rw [Real.log_inv] at hle linarith [Real.log_two_gt_d9] have hden : 0 < 2 * (-Real.log p) - (1 - p) := by linarith rw [one_lt_div hden] linarith lemma alphaBdry_at_one_sub_uStar : alphaBdry (1 - uStar) = renyiPlateauOrder := by unfold alphaBdry renyiPlateauOrder rw [log_one_sub_uStar] have hu : uStar ≠ 0 := ne_of_gt uStar_pos have h1u : 1 - uStar ≠ 0 := by linarith [uStar_lt_one] have hden : 2 * -(-uStar / (2 * (1 - uStar))) - (1 - (1 - uStar)) = uStar ^ 2 / (1 - uStar) := by field_simp [h1u]; ring rw [hden] field_simp [hu, h1u] /-- **Theorem 3.6 (Exact Boundary Phase-Transition Necessity):** For every `p ∈ (0, 1/2]` and every `α ∈ (1, α_bdry(p))`, there exists an interior point `x ∈ (p, 1)` where `D_α(x ‖ p) < (-log p / (1 - p)²) (x - p)²`. -/ theorem renyi_boundary_phase_transition_necessity {α p : ℝ} (hp0 : 0 < p) (hp1 : p ≤ 1 / 2) (hα1 : 1 < α) (hα_lt : α < alphaBdry p) : ∃ x ∈ Set.Ioo p 1, binaryRenyiDiv α x p < (-Real.log p / (1 - p) ^ 2) * (x - p) ^ 2 := by set c : ℝ := -Real.log p / (1 - p) ^ 2 have h1p : 0 < 1 - p := by linarith have hlog : 1 / 2 < -Real.log p := by have hle : Real.log p ≤ Real.log ((2 : ℝ)⁻¹) := Real.log_le_log hp0 (by linarith) rw [Real.log_inv] at hle linarith [Real.log_two_gt_d9] have hden_bdry : 0 < 2 * (-Real.log p) - (1 - p) := by linarith have hslope_pos : 0 < α / (α - 1) - 2 * c * (1 - p) := by have h1 : α * (2 * (-Real.log p) - (1 - p)) < 2 * (-Real.log p) := by unfold alphaBdry at hα_lt exact (lt_div_iff₀ hden_bdry).mp hα_lt have h2 : 2 * c * (1 - p) = 2 * (-Real.log p) / (1 - p) := by dsimp [c]; field_simp [ne_of_gt h1p] rw [h2, sub_pos, div_lt_div_iff₀ h1p (by linarith : 0 < α - 1)] nlinarith let S : ℝ → ℝ := fun x => x ^ α * p ^ (1 - α) + (1 - x) ^ α * (1 - p) ^ (1 - α) have hS1 : S 1 = p ^ (1 - α) := by dsimp [S]; rw [Real.one_rpow, one_mul, sub_self, Real.zero_rpow (by linarith), zero_mul, add_zero] have hS1_pos : 0 < S 1 := by rw [hS1]; exact Real.rpow_pos_of_pos hp0 _ have hd_rem : HasDerivWithinAt (fun x : ℝ => (1 - x) ^ α) 0 (Set.Iic (1 : ℝ)) (1 : ℝ) := by rw [hasDerivWithinAt_iff_tendsto_slope] have heq : slope (fun x : ℝ => (1 - x) ^ α) (1 : ℝ) =ᶠ[nhdsWithin (1 : ℝ) (Set.Iic 1 \ {1})] (fun x : ℝ => -((1 - x) ^ (α - 1))) := by filter_upwards [self_mem_nhdsWithin] with x hx have hx1 : x < 1 := lt_of_le_of_ne hx.1 hx.2 have h1x : 0 < 1 - x := by linarith rw [slope_def_field, sub_self, Real.zero_rpow (by linarith), sub_zero] have hsplit : (1 - x) ^ α = (1 - x) ^ (α - 1) * (1 - x) := by rw [← Real.rpow_add_one (ne_of_gt h1x)]; ring_nf rw [hsplit] have hne : x - 1 ≠ 0 := by linarith field_simp [hne]; ring rw [tendsto_congr' heq] have ht1 : Tendsto (fun x : ℝ => 1 - x) (nhdsWithin (1 : ℝ) (Set.Iic 1 \ {1})) (nhds (0 : ℝ)) := by have hcont : Continuous (fun x : ℝ => 1 - x) := by fun_prop simpa using (hcont.continuousAt (x := (1 : ℝ))).tendsto.mono_left nhdsWithin_le_nhds have ht2 : Tendsto (fun y : ℝ => -(y ^ (α - 1))) (nhds (0 : ℝ)) (nhds (0 : ℝ)) := by have hcont : Continuous (fun y : ℝ => -(y ^ (α - 1))) := (Real.continuous_rpow_const (le_of_lt (sub_pos.mpr hα1))).neg have h0 := (hcont.continuousAt (x := (0 : ℝ))).tendsto rwa [Real.zero_rpow (ne_of_gt (sub_pos.mpr hα1)), neg_zero] at h0 exact ht2.comp ht1 have hd_lead : HasDerivWithinAt (fun x : ℝ => x ^ α * p ^ (1 - α)) (α * p ^ (1 - α)) (Set.Iic (1 : ℝ)) (1 : ℝ) := by have h := ((Real.hasDerivAt_rpow_const (p := α) (Or.inl (by norm_num : (1 : ℝ) ≠ 0))).mul_const (p ^ (1 - α))).hasDerivWithinAt (s := Set.Iic (1 : ℝ)) exact h.congr_deriv (by rw [Real.one_rpow]; ring) have hd_S : HasDerivWithinAt S (α * p ^ (1 - α)) (Set.Iic (1 : ℝ)) (1 : ℝ) := by have h := hd_lead.add (HasDerivWithinAt.mul_const hd_rem ((1 - p) ^ (1 - α))) exact h.congr_deriv (by ring) have hd_D : HasDerivWithinAt (fun x : ℝ => binaryRenyiDiv α x p) (α / (α - 1)) (Set.Iic (1 : ℝ)) (1 : ℝ) := by have h := (hd_S.log (ne_of_gt hS1_pos)).div_const (α - 1) have hderiv : α * p ^ (1 - α) / S 1 / (α - 1) = α / (α - 1) := by rw [hS1]; field_simp [ne_of_gt (Real.rpow_pos_of_pos hp0 (1 - α)), ne_of_gt (sub_pos.mpr hα1)] exact h.congr_deriv hderiv have hd_q : HasDerivWithinAt (fun x : ℝ => c * (x - p) ^ 2) (2 * c * (1 - p)) (Set.Iic (1 : ℝ)) (1 : ℝ) := by have hsub : HasDerivAt (fun x : ℝ => x - p) 1 (1 : ℝ) := by exact ((hasDerivAt_id' (1 : ℝ)).sub (hasDerivAt_const (1 : ℝ) p)).congr_deriv (by ring) have h := ((hsub.pow 2).const_mul c).hasDerivWithinAt (s := Set.Iic (1 : ℝ)) exact h.congr_deriv (by ring) let f : ℝ → ℝ := fun x => binaryRenyiDiv α x p - c * (x - p) ^ 2 have hdf : HasDerivWithinAt f (α / (α - 1) - 2 * c * (1 - p)) (Set.Iic (1 : ℝ)) (1 : ℝ) := hd_D.sub hd_q have hf1 : f 1 = 0 := by dsimp [f, c] rw [binaryRenyiDiv_at_one (by linarith) (ne_of_gt hα1) hp0, div_mul_cancel₀ _ (pow_ne_zero 2 (ne_of_gt h1p)), sub_self] rw [hasDerivWithinAt_iff_tendsto_slope] at hdf have hev := hdf.eventually (eventually_gt_nhds hslope_pos) have hev_p : ∀ᶠ x in nhdsWithin (1 : ℝ) (Set.Iic 1 \ {1}), p < x := nhdsWithin_le_nhds (eventually_gt_nhds (by linarith : p < 1)) have hnebot : (nhdsWithin (1 : ℝ) (Set.Iic 1 \ {1})).NeBot := by have hmem : (1 : ℝ) ∈ closure (Set.Iic (1 : ℝ) \ {1}) := by have : Set.Iic (1 : ℝ) \ {1} = Set.Iio 1 := by ext y; simp [lt_iff_le_and_ne] rw [this, closure_Iio]; exact Set.mem_Iic.mpr le_rfl exact mem_closure_iff_nhdsWithin_neBot.mp hmem have hex := ((hev.and hev_p).and self_mem_nhdsWithin).exists rcases hex with ⟨x, ⟨hx_slope, hx_gtp⟩, hx_mem⟩ have hx_lt1 : x < 1 := lt_of_le_of_ne hx_mem.1 hx_mem.2 refine ⟨x, ⟨hx_gtp, hx_lt1⟩, ?_⟩ rw [slope_def_field, hf1, sub_zero] at hx_slope have hfx_neg : f x < 0 := by have h := mul_neg_of_pos_of_neg hx_slope (show x - 1 < 0 by linarith) rwa [div_mul_cancel₀ _ (by linarith : x - 1 ≠ 0)] at h dsimp [f, c] at hfx_neg linarith /-- **Corollary 3.7 (Necessity of `α ≥ α_* = 1/u_*` for the Universal Plateau `C_*`):** For every `α ∈ (1, α_*)`, the universal bound `D_α(x ‖ p) ≥ C_* (x - p)²` strictly FAILS at some `(x, 1 - u_*)` with `x ∈ (1 - u_*, 1)`. -/ theorem renyi_universal_plateau_necessity {α : ℝ} (hα1 : 1 < α) (hα_lt : α < renyiPlateauOrder) : ∃ x ∈ Set.Ioo (1 - uStar) 1, binaryRenyiDiv α x (1 - uStar) < renyiUniversalConst * (x - (1 - uStar)) ^ 2 := by have hp0 : 0 < 1 - uStar := by linarith [uStar_lt_one] have hp1 : 1 - uStar ≤ 1 / 2 := by linarith [uStar_gt_half] rw [← alphaBdry_at_one_sub_uStar] at hα_lt obtain ⟨x, hx, hlt⟩ := renyi_boundary_phase_transition_necessity hp0 hp1 hα1 hα_lt refine ⟨x, hx, ?_⟩ have hrew : -Real.log (1 - uStar) / (1 - (1 - uStar)) ^ 2 = renyiUniversalConst := by unfold renyiUniversalConst have : 1 - (1 - uStar) = uStar := by ring rw [this] rwa [hrew] at hlt /-! ## Section 4: Exact Variational Duality & Sharp Closed-Form Bounds for `α = 1/2` and `α ∈ (0, 1)` -/ /-- Auxiliary function `g(s) = -log(1 - s) / s` on `(0, 1)`. -/ def gFun (s : ℝ) : ℝ := -Real.log (1 - s) / s /-- Exact first derivative `g'(s) = (s / (1 - s) + log(1 - s)) / s²` on `(0, 1)`. -/ def gDeriv (s : ℝ) : ℝ := (s / (1 - s) + Real.log (1 - s)) / s ^ 2 /-- Variational tangent weights `W₁(s₀) = g(s₀) - s₀ g'(s₀)` and `W₂(s₀) = g(s₀) + (1 - s₀) g'(s₀)`. -/ def W1 (s₀ : ℝ) : ℝ := gFun s₀ - s₀ * gDeriv s₀ def W2 (s₀ : ℝ) : ℝ := gFun s₀ + (1 - s₀) * gDeriv s₀ lemma hasDerivAt_gFun {s : ℝ} (hs0 : 0 < s) (hs1 : s < 1) : HasDerivAt gFun (gDeriv s) s := by have h1s : 1 - s ≠ 0 := by linarith have hsne : s ≠ 0 := ne_of_gt hs0 have hsub : HasDerivAt (fun x => 1 - x) (-1) s := by have := (hasDerivAt_const s (1 : ℝ)).sub (hasDerivAt_id' s) exact this.congr_deriv (by ring) have hnum : HasDerivAt (fun x => -Real.log (1 - x)) (1 / (1 - s)) s := by have := (hsub.log h1s).neg exact this.congr_deriv (by field_simp [h1s]) have hq := hnum.div (hasDerivAt_id' s) hsne exact hq.congr_deriv (by unfold gDeriv; field_simp [hsne, h1s]; ring) lemma gDeriv_pos {s : ℝ} (hs0 : 0 < s) (hs1 : s < 1) : 0 < gDeriv s := by unfold gDeriv apply div_pos _ (sq_pos_of_pos hs0) -- log(1 - s) > -s / (1 - s) since log(1/(1-s)) < 1/(1-s) - 1 = s/(1-s) for s > 0 have h1s : 0 < 1 - s := by linarith have hlt := Real.log_lt_sub_one_of_pos (div_pos one_pos h1s) (by rw [ne_eq, div_eq_one_iff_eq (ne_of_gt h1s)]; linarith) rw [one_div, Real.log_inv] at hlt have hrew : (1 - s)⁻¹ - 1 = s / (1 - s) := by field_simp [ne_of_gt h1s]; ring linarith lemma W1_eq_neg_criticalEq {s : ℝ} (hs0 : 0 < s) (hs1 : s < 1) : W1 s = -criticalEq s / (s * (1 - s)) := by unfold W1 gFun gDeriv criticalEq have hsne : s ≠ 0 := ne_of_gt hs0 have h1s : 1 - s ≠ 0 := by linarith field_simp [hsne, h1s] ring lemma W1_pos {s : ℝ} (hs0 : 0 < s) (hs : s < uStar) : 0 < W1 s := by rw [W1_eq_neg_criticalEq hs0 (lt_trans hs uStar_lt_one)] have hc : criticalEq s < 0 := criticalEq_neg_of_lt_uStar hs0 hs have hden : 0 < s * (1 - s) := mul_pos hs0 (by linarith [uStar_lt_one]) exact div_pos (neg_pos.mpr hc) hden lemma W2_pos {s : ℝ} (hs0 : 0 < s) (hs1 : s < 1) : 0 < W2 s := by unfold W2 have hg : 0 < gFun s := by unfold gFun exact div_pos (neg_pos.mpr (Real.log_neg (by linarith) (by linarith))) hs0 have hgd := gDeriv_pos hs0 hs1 have h1s : 0 < 1 - s := by linarith nlinarith lemma W1_uStar : W1 uStar = 0 := by rw [W1_eq_neg_criticalEq uStar_pos uStar_lt_one, criticalEq_uStar, neg_zero, zero_div] lemma W2_uStar : W2 uStar = renyiUniversalConst := by unfold W2 gFun gDeriv renyiUniversalConst rw [log_one_sub_uStar] have hu : uStar ≠ 0 := ne_of_gt uStar_pos have h1u : 1 - uStar ≠ 0 := by linarith [uStar_lt_one] field_simp [hu, h1u] ring /-- One-line strict convexity of `g(s) = -log(1 - s) / s` on `(0, 1)` via `N'(s) = 2 s² / (1 - s)³ > 0`. -/ lemma gDeriv_strictMonoOn : StrictMonoOn gDeriv (Set.Ioo (0 : ℝ) 1) := by -- Show gDeriv'(s) = N(s) / s^3 > 0 on (0, 1) where N(s) = s^2/(1-s)^2 - 2s/(1-s) - 2 log(1-s) let N : ℝ → ℝ := fun s => s ^ 2 / (1 - s) ^ 2 - 2 * s / (1 - s) - 2 * Real.log (1 - s) have hNpos : ∀ s ∈ Set.Ioo (0 : ℝ) 1, 0 < N s := by intro s hs have hN0 : N 0 = 0 := by simp [N] have hmono : StrictMonoOn N (Set.Icc 0 s) := by apply strictMonoOn_of_deriv_pos (convex_Icc 0 s) · intro x hx have h1x : 0 < 1 - x := by linarith [hx.2, hs.2] refine ContinuousAt.continuousWithinAt ?_ exact (((continuousAt_id.pow 2).div ((continuousAt_const.sub continuousAt_id).pow 2) (pow_ne_zero 2 (ne_of_gt h1x))).sub ((continuousAt_const.mul continuousAt_id).div (continuousAt_const.sub continuousAt_id) (ne_of_gt h1x))).sub (continuousAt_const.mul ((continuousAt_const.sub continuousAt_id).log (ne_of_gt h1x))) · intro x hx rw [interior_Icc] at hx have h1x : 0 < 1 - x := by linarith [hx.2, hs.2] have h1xne : 1 - x ≠ 0 := ne_of_gt h1x have hsub : HasDerivAt (fun y => 1 - y) (-1) x := by have := (hasDerivAt_const x (1 : ℝ)).sub (hasDerivAt_id' x) exact this.congr_deriv (by ring) have hd1 : HasDerivAt (fun y : ℝ => y ^ 2 / (1 - y) ^ 2) (2 * x / (1 - x) ^ 3) x := by have hnum : HasDerivAt (fun y : ℝ => y ^ 2) (2 * x) x := by exact ((hasDerivAt_id' x).pow 2).congr_deriv (by ring) have hden : HasDerivAt (fun y : ℝ => (1 - y) ^ 2) (-2 * (1 - x)) x := by exact (hsub.pow 2).congr_deriv (by ring) have h := hnum.div hden (pow_ne_zero 2 h1xne) exact h.congr_deriv (by field_simp [h1xne]; ring) have hd2 : HasDerivAt (fun y : ℝ => 2 * y / (1 - y)) (2 / (1 - x) ^ 2) x := by have h := ((hasDerivAt_id' x).const_mul (2 : ℝ)).div hsub h1xne exact h.congr_deriv (by field_simp [h1xne]; ring) have hd3 : HasDerivAt (fun y : ℝ => 2 * Real.log (1 - y)) (-2 / (1 - x)) x := by have h := (hsub.log h1xne).const_mul (2 : ℝ) exact h.congr_deriv (by field_simp [h1xne]) have hdN : HasDerivAt N (2 * x ^ 2 / (1 - x) ^ 3) x := by have h := (hd1.sub hd2).sub hd3 exact h.congr_deriv (by field_simp [h1xne]; ring) rw [hdN.deriv] have hx0 : 0 < x := hx.1 positivity simpa [hN0] using hmono ⟨le_rfl, le_of_lt hs.1⟩ ⟨le_of_lt hs.1, le_rfl⟩ hs.1 apply strictMonoOn_of_deriv_pos (convex_Ioo 0 1) · intro s hs have hs0 : s ≠ 0 := ne_of_gt hs.1 have h1s : 1 - s ≠ 0 := by linarith [hs.2] refine ContinuousAt.continuousWithinAt ?_ exact ((continuousAt_id.div (continuousAt_const.sub continuousAt_id) h1s).add ((continuousAt_const.sub continuousAt_id).log h1s)).div (continuousAt_id.pow 2) (pow_ne_zero 2 hs0) · intro s hs rw [interior_Ioo] at hs have hs0 : 0 < s := hs.1 have hsne : s ≠ 0 := ne_of_gt hs0 have h1s : 0 < 1 - s := by linarith [hs.2] have h1sne : 1 - s ≠ 0 := ne_of_gt h1s have hsub : HasDerivAt (fun y => 1 - y) (-1) s := by have := (hasDerivAt_const s (1 : ℝ)).sub (hasDerivAt_id' s) exact this.congr_deriv (by ring) have hnum : HasDerivAt (fun y => y / (1 - y) + Real.log (1 - y)) (s / (1 - s) ^ 2) s := by have h1 := (hasDerivAt_id' s).div hsub h1sne have h2 := hsub.log h1sne exact (h1.add h2).congr_deriv (by field_simp [h1sne]; ring) have hd : HasDerivAt gDeriv (N s / s ^ 3) s := by have h := hnum.div ((hasDerivAt_id' s).pow 2) (pow_ne_zero 2 hsne) exact h.congr_deriv (by dsimp [N]; field_simp [hsne, h1sne]; ring) rw [hd.deriv] exact div_pos (hNpos s hs) (pow_pos hs0 3) /-- Global tangent-line lower bound: for all `s₀, s ∈ (0, 1)`, `g(s) ≥ W₁(s₀)(1 - s) + W₂(s₀) s`. -/ theorem gFun_tangent_lower_bound {s₀ s : ℝ} (hs₀0 : 0 < s₀) (hs₀1 : s₀ < 1) (hs0 : 0 < s) (hs1 : s < 1) : W1 s₀ * (1 - s) + W2 s₀ * s ≤ gFun s := by have hrew : W1 s₀ * (1 - s) + W2 s₀ * s = gFun s₀ + gDeriv s₀ * (s - s₀) := by unfold W1 W2; ring rw [hrew] let φ : ℝ → ℝ := fun x => gFun x - (gFun s₀ + gDeriv s₀ * (x - s₀)) have hφ0 : φ s₀ = 0 := by simp [φ] have hdφ : ∀ x ∈ Set.Ioo (0 : ℝ) 1, HasDerivAt φ (gDeriv x - gDeriv s₀) x := fun x hx => by have h1 := hasDerivAt_gFun hx.1 hx.2 have h2 : HasDerivAt (fun y => gFun s₀ + gDeriv s₀ * (y - s₀)) (gDeriv s₀) x := by have := (((hasDerivAt_id' x).sub (hasDerivAt_const x s₀)).const_mul (gDeriv s₀)).const_add (gFun s₀) exact this.congr_deriv (by ring) exact h1.sub h2 rcases le_total s₀ s with hle | hge · have hmono : MonotoneOn φ (Set.Icc s₀ s) := by apply monotoneOn_of_deriv_nonneg (convex_Icc s₀ s) · intro x hx exact (hdφ x ⟨by linarith [hx.1], by linarith [hx.2]⟩).continuousAt.continuousWithinAt · intro x hx rw [interior_Icc] at hx exact (hdφ x ⟨by linarith [hx.1], by linarith [hx.2]⟩).differentiableAt.differentiableWithinAt · intro x hx rw [interior_Icc] at hx rw [(hdφ x ⟨by linarith [hx.1], by linarith [hx.2]⟩).deriv] have hlt := gDeriv_strictMonoOn ⟨hs₀0, hs₀1⟩ ⟨by linarith [hx.1], by linarith [hx.2]⟩ hx.1 linarith have := hmono ⟨le_rfl, hle⟩ ⟨hle, le_rfl⟩ hle dsimp [φ] at this linarith · have hanti : AntitoneOn φ (Set.Icc s s₀) := by apply antitoneOn_of_deriv_nonpos (convex_Icc s s₀) · intro x hx exact (hdφ x ⟨by linarith [hx.1], by linarith [hx.2]⟩).continuousAt.continuousWithinAt · intro x hx rw [interior_Icc] at hx exact (hdφ x ⟨by linarith [hx.1], by linarith [hx.2]⟩).differentiableAt.differentiableWithinAt · intro x hx rw [interior_Icc] at hx rw [(hdφ x ⟨by linarith [hx.1], by linarith [hx.2]⟩).deriv] have hlt := gDeriv_strictMonoOn ⟨by linarith [hx.1], by linarith [hx.2]⟩ ⟨hs₀0, hs₀1⟩ hx.2 linarith have := hanti ⟨le_rfl, hge⟩ ⟨hge, le_rfl⟩ hge dsimp [φ] at this linarith /-- Elementary global bound `g(s) ≥ 1 + s / 2` (the `s₀ → 0⁺` limit `W₁ = 1, W₂ = 3/2`). -/ lemma gFun_ge_one_add_half {s : ℝ} (hs0 : 0 < s) (hs1 : s < 1) : 1 * (1 - s) + (3 / 2 : ℝ) * s ≤ gFun s := by unfold gFun rw [le_div_iff₀ hs0] have hrew : (1 * (1 - s) + 3 / 2 * s) * s = s + s ^ 2 / 2 := by ring rw [hrew] -- Prove -log(1 - s) - (s + s^2 / 2) ≥ 0 on [0, s] let f : ℝ → ℝ := fun x => -Real.log (1 - x) - (x + x ^ 2 / 2) have hf0 : f 0 = 0 := by simp [f] have hdf : ∀ x ∈ Set.Icc (0 : ℝ) s, HasDerivAt f (x ^ 2 / (1 - x)) x := by intro x hx have h1x : 1 - x ≠ 0 := by linarith [hx.2, hs1] have hsub : HasDerivAt (fun y : ℝ => 1 - y) (-1) x := by exact ((hasDerivAt_const x (1 : ℝ)).sub (hasDerivAt_id' x)).congr_deriv (by ring) have h1 : HasDerivAt (fun y : ℝ => -Real.log (1 - y)) (1 / (1 - x)) x := by have := (hsub.log h1x).neg exact this.congr_deriv (by field_simp [h1x]) have h2 : HasDerivAt (fun y : ℝ => y + y ^ 2 / 2) (1 + x) x := by have := (hasDerivAt_id' x).add (((hasDerivAt_id' x).pow 2).div_const 2) exact this.congr_deriv (by ring) exact (h1.sub h2).congr_deriv (by field_simp [h1x]; ring) have hmono : MonotoneOn f (Set.Icc 0 s) := by apply monotoneOn_of_deriv_nonneg (convex_Icc 0 s) · intro x hx; exact (hdf x hx).continuousAt.continuousWithinAt · intro x hx; rw [interior_Icc] at hx exact (hdf x ⟨le_of_lt hx.1, le_of_lt hx.2⟩).differentiableAt.differentiableWithinAt · intro x hx; rw [interior_Icc] at hx rw [(hdf x ⟨le_of_lt hx.1, le_of_lt hx.2⟩).deriv] have h1x : 0 < 1 - x := by linarith [hx.2, hs1] positivity have hle := hmono ⟨le_rfl, le_of_lt hs0⟩ ⟨le_of_lt hs0, le_rfl⟩ (le_of_lt hs0) rw [hf0] at hle dsimp [f] at hle linarith /-- Exact mirror symmetry for Bhattacharyya–Rényi divergence: for `p ∈ (0, 1/2]` and `d ∈ [0, p]`, `D_{1/2}(p + d ‖ p) ≤ D_{1/2}(p - d ‖ p)`. -/ theorem binaryRenyiDiv_half_mirror {p d : ℝ} (hp0 : 0 < p) (hp1 : p ≤ 1 / 2) (hd0 : 0 ≤ d) (hdp : d ≤ p) : binaryRenyiDiv (1 / 2) (p + d) p ≤ binaryRenyiDiv (1 / 2) (p - d) p := by rw [binaryRenyiDiv_half_eq (by linarith) (by linarith), binaryRenyiDiv_half_eq (by linarith) (by linarith)] rcases eq_or_lt_of_le hd0 with rfl | hd_pos · simp · -- Compare 1 - B(p+d)² ≤ 1 - B(p-d)² via exact identity 1 - B(x)² = (x - p)² / (√(x(1-p)) + √((1-x)p))²! set Bp : ℝ := Real.sqrt ((p + d) * p) + Real.sqrt ((1 - (p + d)) * (1 - p)) set Bm : ℝ := Real.sqrt ((p - d) * p) + Real.sqrt ((1 - (p - d)) * (1 - p)) set Dp : ℝ := Real.sqrt ((p + d) * (1 - p)) + Real.sqrt ((1 - (p + d)) * p) set Dm : ℝ := Real.sqrt ((p - d) * (1 - p)) + Real.sqrt ((1 - (p - d)) * p) have hBm_pos : 0 < Bm := by dsimp [Bm] have h2 : 0 < Real.sqrt ((1 - (p - d)) * (1 - p)) := Real.sqrt_pos.mpr (mul_pos (by linarith) (by linarith)) linarith [Real.sqrt_nonneg ((p - d) * p)] have hBp_nn : 0 ≤ Bp := by dsimp [Bp]; exact add_nonneg (Real.sqrt_nonneg _) (Real.sqrt_nonneg _) have hDm_pos : 0 < Dm := by dsimp [Dm] have h2 : 0 < Real.sqrt ((1 - (p - d)) * p) := Real.sqrt_pos.mpr (mul_pos (by linarith) hp0) linarith [Real.sqrt_nonneg ((p - d) * (1 - p))] have hDp_pos : 0 < Dp := by dsimp [Dp] have h1 : 0 < Real.sqrt ((p + d) * (1 - p)) := Real.sqrt_pos.mpr (mul_pos (by linarith) (by linarith)) linarith [Real.sqrt_nonneg ((1 - (p + d)) * p)] -- Identity: (1 - B(x)²) * D(x)² = (x - p)² have hid_sq : ∀ x : ℝ, 0 ≤ x → x ≤ 1 → (1 - (Real.sqrt (x * p) + Real.sqrt ((1 - x) * (1 - p))) ^ 2) * (Real.sqrt (x * (1 - p)) + Real.sqrt ((1 - x) * p)) ^ 2 = (x - p) ^ 2 := by intro x hx0 hx1 have h1 : Real.sqrt (x * p) ^ 2 = x * p := Real.sq_sqrt (mul_nonneg hx0 (le_of_lt hp0)) have h2 : Real.sqrt ((1 - x) * (1 - p)) ^ 2 = (1 - x) * (1 - p) := Real.sq_sqrt (mul_nonneg (by linarith) (by linarith)) have h3 : Real.sqrt (x * (1 - p)) ^ 2 = x * (1 - p) := Real.sq_sqrt (mul_nonneg hx0 (by linarith)) have h4 : Real.sqrt ((1 - x) * p) ^ 2 = (1 - x) * p := Real.sq_sqrt (mul_nonneg (by linarith) (le_of_lt hp0)) have hcr : Real.sqrt (x * p) * Real.sqrt ((1 - x) * (1 - p)) = Real.sqrt (x * (1 - p)) * Real.sqrt ((1 - x) * p) := by rw [← Real.sqrt_mul (mul_nonneg hx0 (le_of_lt hp0)), ← Real.sqrt_mul (mul_nonneg hx0 (by linarith))] congr 1; ring have hB : 1 - (Real.sqrt (x * p) + Real.sqrt ((1 - x) * (1 - p))) ^ 2 = (Real.sqrt (x * (1 - p)) - Real.sqrt ((1 - x) * p)) ^ 2 := by linear_combination -h1 - h2 - h3 - h4 - 2 * hcr rw [hB, ← mul_pow] have hdiff : (Real.sqrt (x * (1 - p)) - Real.sqrt ((1 - x) * p)) * (Real.sqrt (x * (1 - p)) + Real.sqrt ((1 - x) * p)) = x - p := by linear_combination h3 - h4 rw [hdiff] have hIp := hid_sq (p + d) (by linarith) (by linarith) have hIm := hid_sq (p - d) (by linarith) (by linarith) -- Show Dm² ≤ Dp² directly (both linear and cross terms are larger for Dp²!) have hDm_le_Dp : Dm ^ 2 ≤ Dp ^ 2 := by have h1 : Real.sqrt ((p - d) * (1 - p)) ^ 2 = (p - d) * (1 - p) := Real.sq_sqrt (mul_nonneg (by linarith) (by linarith)) have h2 : Real.sqrt ((1 - (p - d)) * p) ^ 2 = (1 - (p - d)) * p := Real.sq_sqrt (mul_nonneg (by linarith) (le_of_lt hp0)) have h3 : Real.sqrt ((p + d) * (1 - p)) ^ 2 = (p + d) * (1 - p) := Real.sq_sqrt (mul_nonneg (by linarith) (by linarith)) have h4 : Real.sqrt ((1 - (p + d)) * p) ^ 2 = (1 - (p + d)) * p := Real.sq_sqrt (mul_nonneg (by linarith) (le_of_lt hp0)) have hcross : Real.sqrt ((p - d) * (1 - p)) * Real.sqrt ((1 - (p - d)) * p) ≤ Real.sqrt ((p + d) * (1 - p)) * Real.sqrt ((1 - (p + d)) * p) := by rw [← Real.sqrt_mul (mul_nonneg (by linarith) (by linarith)), ← Real.sqrt_mul (mul_nonneg (by linarith) (by linarith))] apply Real.sqrt_le_sqrt have hdiff : ((p + d) * (1 - p)) * ((1 - (p + d)) * p) - ((p - d) * (1 - p)) * ((1 - (p - d)) * p) = 2 * d * (1 - 2 * p) * p * (1 - p) := by ring have hnn : 0 ≤ 2 * d * (1 - 2 * p) * p * (1 - p) := by have : 0 ≤ 1 - 2 * p := by linarith have : 0 ≤ 1 - p := by linarith positivity linarith have hlin_diff : ((p + d) * (1 - p) + (1 - (p + d)) * p) - ((p - d) * (1 - p) + (1 - (p - d)) * p) = 2 * d * (1 - 2 * p) := by ring have hlin_nn : 0 ≤ 2 * d * (1 - 2 * p) := mul_nonneg (by linarith) (by linarith) have hexp1 : Dm ^ 2 = (p - d) * (1 - p) + (1 - (p - d)) * p + 2 * (Real.sqrt ((p - d) * (1 - p)) * Real.sqrt ((1 - (p - d)) * p)) := by dsimp [Dm]; linear_combination h1 + h2 have hexp2 : Dp ^ 2 = (p + d) * (1 - p) + (1 - (p + d)) * p + 2 * (Real.sqrt ((p + d) * (1 - p)) * Real.sqrt ((1 - (p + d)) * p)) := by dsimp [Dp]; linear_combination h3 + h4 linarith [hexp1, hexp2, hcross, hlin_diff, hlin_nn] have hBm_le_Bp : Bm ≤ Bp := by have h1 : 1 - Bp ^ 2 = d ^ 2 / Dp ^ 2 := by have hsq : ((p + d) - p) ^ 2 = d ^ 2 := by ring rw [eq_div_iff (ne_of_gt (sq_pos_of_pos hDp_pos))]; dsimp [Bp, Dp]; linarith [hIp, hsq] have h2 : 1 - Bm ^ 2 = d ^ 2 / Dm ^ 2 := by have hsq : ((p - d) - p) ^ 2 = d ^ 2 := by ring rw [eq_div_iff (ne_of_gt (sq_pos_of_pos hDm_pos))]; dsimp [Bm, Dm]; linarith [hIm, hsq] have hdiv : d ^ 2 / Dp ^ 2 ≤ d ^ 2 / Dm ^ 2 := div_le_div_of_nonneg_left (sq_nonneg d) (sq_pos_of_pos hDm_pos) hDm_le_Dp have hsq_le : Bm ^ 2 ≤ Bp ^ 2 := by linarith nlinarith [hBm_pos, hBp_nn] have hlog := Real.log_le_log hBm_pos hBm_le_Bp linarith /-- Core algebraic Cauchy–Schwarz engine for `D_{1/2}`: given ANY positive weights `w₁, w₂ > 0` satisfying `w₁(1 - s) + w₂ s ≤ g(s)` for all `s ∈ (0, 1)`, we immediately get `D_{1/2}(x ‖ p) ≥ (4p(1-p)/w₁ + (1-2p)²/w₂)⁻¹ (x - p)²` for ALL `p ∈ (0, 1)` and `x ∈ [0, 1]`. -/ theorem binaryRenyiDiv_half_of_linear_gFun_lb {w₁ w₂ x p : ℝ} (hw1 : 0 < w₁) (hw2 : 0 < w₂) (hg : ∀ s ∈ Set.Ioo (0 : ℝ) 1, w₁ * (1 - s) + w₂ * s ≤ gFun s) (hx0 : 0 ≤ x) (hx1 : x ≤ 1) (hp0 : 0 < p) (hp1 : p < 1) : (1 / (4 * p * (1 - p) / w₁ + (1 - 2 * p) ^ 2 / w₂)) * (x - p) ^ 2 ≤ binaryRenyiDiv (1 / 2) x p := by -- Reduce to p ∈ (0, 1/2] by symmetry x ↦ 1-x, p ↦ 1-p suffices hmain : ∀ x' p' : ℝ, 0 ≤ x' → x' ≤ 1 → 0 < p' → p' ≤ 1 / 2 → (1 / (4 * p' * (1 - p') / w₁ + (1 - 2 * p') ^ 2 / w₂)) * (x' - p') ^ 2 ≤ binaryRenyiDiv (1 / 2) x' p' by by_cases hp_le : p ≤ 1 / 2 · exact hmain x p hx0 hx1 hp0 hp_le · push Not at hp_le have h := hmain (1 - x) (1 - p) (by linarith) (by linarith) (by linarith) (by linarith) rw [binaryRenyiDiv_symm] at h have hrew1 : 4 * (1 - p) * (1 - (1 - p)) = 4 * p * (1 - p) := by ring have hrew2 : (1 - 2 * (1 - p)) ^ 2 = (1 - 2 * p) ^ 2 := by ring have hrew3 : ((1 - x) - (1 - p)) ^ 2 = (x - p) ^ 2 := by ring rwa [hrew1, hrew2, hrew3] at h intro x' p' hx'0 hx'1 hp'0 hp'1 have hp'_lt1 : p' < 1 := by linarith -- Reduce to x' ≥ p' by mirror symmetry suffices hright : ∀ y : ℝ, p' ≤ y → y ≤ 1 → (1 / (4 * p' * (1 - p') / w₁ + (1 - 2 * p') ^ 2 / w₂)) * (y - p') ^ 2 ≤ binaryRenyiDiv (1 / 2) y p' by rcases le_total p' x' with hge | hle · exact hright x' hge hx'1 · set d := p' - x' have hd0 : 0 ≤ d := by linarith have hdp : d ≤ p' := by linarith have hm := binaryRenyiDiv_half_mirror hp'0 hp'1 hd0 hdp have h1 : p' - d = x' := by dsimp [d]; ring rw [h1] at hm have hr := hright (p' + d) (by linarith) (by linarith) have hsq : ((p' + d) - p') ^ 2 = (x' - p') ^ 2 := by dsimp [d]; ring rw [hsq] at hr exact le_trans hr hm intro y hy0 hy1 rcases eq_or_lt_of_le hy0 with rfl | hylt · rw [sub_self, zero_pow two_ne_zero, mul_zero, binaryRenyiDiv_self hp'0 hp'_lt1] · -- Main right-branch case: p' < y ≤ 1 set t : ℝ := Real.sqrt (y * p') + Real.sqrt ((1 - y) * (1 - p')) set u : ℝ := Real.sqrt (y * (1 - p')) - Real.sqrt ((1 - y) * p') set c : ℝ := 2 * Real.sqrt (p' * (1 - p')) set a : ℝ := 1 - 2 * p' have ht_pos : 0 < t := by have h1 : 0 < Real.sqrt (y * p') := Real.sqrt_pos.mpr (mul_pos (by linarith) hp'0) linarith [Real.sqrt_nonneg ((1 - y) * (1 - p'))] have hu_pos : 0 < u := by dsimp [u] rw [sub_pos] exact Real.sqrt_lt_sqrt (mul_nonneg (by linarith) (le_of_lt hp'0)) (by nlinarith) -- Pure algebraic identity: t² + u² = 1! have htu_sq : t ^ 2 + u ^ 2 = 1 := by dsimp [t, u] have h1 : Real.sqrt (y * p') ^ 2 = y * p' := Real.sq_sqrt (mul_nonneg (by linarith) (le_of_lt hp'0)) have h2 : Real.sqrt ((1 - y) * (1 - p')) ^ 2 = (1 - y) * (1 - p') := Real.sq_sqrt (mul_nonneg (by linarith) (by linarith)) have h3 : Real.sqrt (y * (1 - p')) ^ 2 = y * (1 - p') := Real.sq_sqrt (mul_nonneg (by linarith) (by linarith)) have h4 : Real.sqrt ((1 - y) * p') ^ 2 = (1 - y) * p' := Real.sq_sqrt (mul_nonneg (by linarith) (le_of_lt hp'0)) have hcross : Real.sqrt (y * p') * Real.sqrt ((1 - y) * (1 - p')) = Real.sqrt (y * (1 - p')) * Real.sqrt ((1 - y) * p') := by rw [← Real.sqrt_mul (mul_nonneg (by linarith) (le_of_lt hp'0)), ← Real.sqrt_mul (mul_nonneg (by linarith) (by linarith))] congr 1; ring nlinarith [h1, h2, h3, h4, hcross] set s : ℝ := u ^ 2 have hs0 : 0 < s := sq_pos_of_pos hu_pos have hs1 : s < 1 := by dsimp [s]; nlinarith [sq_pos_of_pos ht_pos] have h1ms : 1 - s = t ^ 2 := by dsimp [s]; linarith -- Pure algebraic identity: c * t + a * u = √(y(1-p')) + √((1-y)p')! have hlin : c * t + a * u = Real.sqrt (y * (1 - p')) + Real.sqrt ((1 - y) * p') := by dsimp [c, a, t, u] have hp_nn : 0 ≤ p' := le_of_lt hp'0 have h1p_nn : 0 ≤ 1 - p' := by linarith have hy_nn : 0 ≤ y := by linarith have h1y_nn : 0 ≤ 1 - y := by linarith have hA : Real.sqrt (p' * (1 - p')) * Real.sqrt (y * p') = p' * Real.sqrt (y * (1 - p')) := by rw [Real.sqrt_mul hp_nn, Real.sqrt_mul hy_nn, Real.sqrt_mul hy_nn] calc Real.sqrt p' * Real.sqrt (1 - p') * (Real.sqrt y * Real.sqrt p') = (Real.sqrt p' * Real.sqrt p') * (Real.sqrt y * Real.sqrt (1 - p')) := by ring _ = p' * (Real.sqrt y * Real.sqrt (1 - p')) := by rw [Real.mul_self_sqrt hp_nn] have hB : Real.sqrt (p' * (1 - p')) * Real.sqrt ((1 - y) * (1 - p')) = (1 - p') * Real.sqrt ((1 - y) * p') := by rw [Real.sqrt_mul hp_nn, Real.sqrt_mul h1y_nn, Real.sqrt_mul h1y_nn] calc Real.sqrt p' * Real.sqrt (1 - p') * (Real.sqrt (1 - y) * Real.sqrt (1 - p')) = (Real.sqrt (1 - p') * Real.sqrt (1 - p')) * (Real.sqrt (1 - y) * Real.sqrt p') := by ring _ = (1 - p') * (Real.sqrt (1 - y) * Real.sqrt p') := by rw [Real.mul_self_sqrt h1p_nn] linarith [hA, hB] -- Product identity: u * (c * t + a * u) = y - p'! have hprod : u * (c * t + a * u) = y - p' := by rw [hlin] dsimp [u] have h3 : Real.sqrt (y * (1 - p')) ^ 2 = y * (1 - p') := Real.sq_sqrt (mul_nonneg (by linarith) (by linarith)) have h4 : Real.sqrt ((1 - y) * p') ^ 2 = (1 - y) * p' := Real.sq_sqrt (mul_nonneg (by linarith) (le_of_lt hp'0)) linear_combination h3 - h4 -- Cauchy-Schwarz: (c * t + a * u)² ≤ (c² / w₁ + a² / w₂) * (w₁ * t² + w₂ * u²) have hcs : (c * t + a * u) ^ 2 ≤ (c ^ 2 / w₁ + a ^ 2 / w₂) * (w₁ * (1 - s) + w₂ * s) := by rw [h1ms] dsimp [s] have hdiff : (c ^ 2 / w₁ + a ^ 2 / w₂) * (w₁ * t ^ 2 + w₂ * u ^ 2) - (c * t + a * u) ^ 2 = (c * u * w₂ - a * t * w₁) ^ 2 / (w₁ * w₂) := by field_simp [ne_of_gt hw1, ne_of_gt hw2]; ring have hnn : 0 ≤ (c * u * w₂ - a * t * w₁) ^ 2 / (w₁ * w₂) := by positivity linarith have hc_sq : c ^ 2 = 4 * p' * (1 - p') := by dsimp [c] rw [mul_pow, Real.sq_sqrt (mul_nonneg (le_of_lt hp'0) (by linarith))]; ring have hden_pos : 0 < 4 * p' * (1 - p') / w₁ + (1 - 2 * p') ^ 2 / w₂ := by have h1 : 0 < 4 * p' * (1 - p') / w₁ := by positivity have h2 : 0 ≤ (1 - 2 * p') ^ 2 / w₂ := by positivity linarith have hD_eq : binaryRenyiDiv (1 / 2) y p' = s * gFun s := by rw [binaryRenyiDiv_half_eq (by linarith) hy1] unfold gFun rw [mul_div_cancel₀ _ (ne_of_gt hs0), h1ms, Real.log_pow] change -2 * Real.log t = -(↑(2 : ℕ) * Real.log t) push_cast; ring have hgb := hg s ⟨hs0, hs1⟩ have hchain : (y - p') ^ 2 ≤ (4 * p' * (1 - p') / w₁ + (1 - 2 * p') ^ 2 / w₂) * binaryRenyiDiv (1 / 2) y p' := by rw [← hprod, mul_pow, hD_eq] calc u ^ 2 * (c * t + a * u) ^ 2 ≤ s * ((c ^ 2 / w₁ + a ^ 2 / w₂) * (w₁ * (1 - s) + w₂ * s)) := by dsimp [s]; exact mul_le_mul_of_nonneg_left hcs (sq_nonneg u) _ = (4 * p' * (1 - p') / w₁ + (1 - 2 * p') ^ 2 / w₂) * (s * (w₁ * (1 - s) + w₂ * s)) := by rw [hc_sq]; dsimp [a]; ring _ ≤ (4 * p' * (1 - p') / w₁ + (1 - 2 * p') ^ 2 / w₂) * (s * gFun s) := by exact mul_le_mul_of_nonneg_left (mul_le_mul_of_nonneg_left hgb (le_of_lt hs0)) (le_of_lt hden_pos) rw [one_div, inv_mul_le_iff₀ hden_pos] linarith /-- **Theorem 4.1 (Exact Variational Lower Bound Family for `D_{1/2}`):** For EVERY `s₀ ∈ (0, u_*)`, EVERY `p ∈ (0, 1)`, and EVERY `x ∈ [0, 1]`, `D_{1/2}(x ‖ p) ≥ (4p(1-p)/W₁(s₀) + (1-2p)²/W₂(s₀))⁻¹ (x - p)²`. -/ theorem binaryRenyiDiv_half_variational_lower {s₀ x p : ℝ} (hs₀0 : 0 < s₀) (hs₀ : s₀ < uStar) (hx0 : 0 ≤ x) (hx1 : x ≤ 1) (hp0 : 0 < p) (hp1 : p < 1) : (1 / (4 * p * (1 - p) / W1 s₀ + (1 - 2 * p) ^ 2 / W2 s₀)) * (x - p) ^ 2 ≤ binaryRenyiDiv (1 / 2) x p := binaryRenyiDiv_half_of_linear_gFun_lb (W1_pos hs₀0 hs₀) (W2_pos hs₀0 (lt_trans hs₀ uStar_lt_one)) (fun _ hs => gFun_tangent_lower_bound hs₀0 (lt_trans hs₀ uStar_lt_one) hs.1 hs.2) hx0 hx1 hp0 hp1 /-- **Theorem 4.2 (Exact Pareto-Frontier Sharpness of the Variational Family):** For EVERY `s₀ ∈ (0, u_*)`, there exist explicit `p ∈ (0, 1/2)` and `x ∈ (p, 1)` attaining EXACT EQUALITY in Theorem 4.1! Thus the supremum over `s₀ ∈ (0, u_*)` equals the exact distribution-dependent Bhattacharyya–Rényi Pinsker constant `c_{1/2}(p)`. -/ theorem binaryRenyiDiv_half_variational_tight {s₀ : ℝ} (hs₀0 : 0 < s₀) (hs₀ : s₀ < uStar) : ∃ p ∈ Set.Ioo (0 : ℝ) (1 / 2), ∃ x ∈ Set.Ioo p 1, binaryRenyiDiv (1 / 2) x p = (1 / (4 * p * (1 - p) / W1 s₀ + (1 - 2 * p) ^ 2 / W2 s₀)) * (x - p) ^ 2 := by have hs₀1 : s₀ < 1 := lt_trans hs₀ uStar_lt_one have hw1 : 0 < W1 s₀ := W1_pos hs₀0 hs₀ have hw2 : 0 < W2 s₀ := W2_pos hs₀0 hs₀1 -- Set r = (W1 s₀ / W2 s₀) * √((1 - s₀) / s₀) > 0, c = r / √(1 + r²) ∈ (0, 1), a = 1 / √(1 + r²) ∈ (0, 1) set r : ℝ := (W1 s₀ / W2 s₀) * Real.sqrt ((1 - s₀) / s₀) have hr : 0 < r := mul_pos (div_pos hw1 hw2) (Real.sqrt_pos.mpr (div_pos (by linarith) hs₀0)) set R : ℝ := Real.sqrt (1 + r ^ 2) have hR_pos : 0 < R := Real.sqrt_pos.mpr (by positivity) have hR_sq : R ^ 2 = 1 + r ^ 2 := Real.sq_sqrt (by positivity) set c : ℝ := r / R set a : ℝ := 1 / R have hc0 : 0 < c := div_pos hr hR_pos have ha0 : 0 < a := div_pos one_pos hR_pos have hca_sq : c ^ 2 + a ^ 2 = 1 := by dsimp [c, a] have hRne : R ≠ 0 := ne_of_gt hR_pos field_simp [hRne]; linarith [hR_sq] have ha1 : a < 1 := by nlinarith [sq_pos_of_pos hc0] have hc1 : c < 1 := by nlinarith [sq_pos_of_pos ha0] set p : ℝ := (1 - a) / 2 have hp0 : 0 < p := by dsimp [p]; linarith have hp_half : p < 1 / 2 := by dsimp [p]; linarith have h12p : 1 - 2 * p = a := by dsimp [p]; ring have h4pq : 4 * p * (1 - p) = c ^ 2 := by dsimp [p]; nlinarith [hca_sq] -- Define x = (√p * √(1 - s₀) + √(1 - p) * √s₀)²! set sp : ℝ := Real.sqrt p set sq : ℝ := Real.sqrt (1 - p) set su : ℝ := Real.sqrt s₀ set st : ℝ := Real.sqrt (1 - s₀) have hsp : 0 < sp := Real.sqrt_pos.mpr hp0 have hsq : 0 < sq := Real.sqrt_pos.mpr (by linarith) have hsu : 0 < su := Real.sqrt_pos.mpr hs₀0 have hst : 0 < st := Real.sqrt_pos.mpr (by linarith) have hsp2 : sp ^ 2 = p := Real.sq_sqrt (le_of_lt hp0) have hsq2 : sq ^ 2 = 1 - p := Real.sq_sqrt (by linarith) have hsu2 : su ^ 2 = s₀ := Real.sq_sqrt (le_of_lt hs₀0) have hst2 : st ^ 2 = 1 - s₀ := Real.sq_sqrt (by linarith) have h2spsq : 2 * sp * sq = c := by have hsq_eq : (2 * sp * sq) ^ 2 = c ^ 2 := by calc (2 * sp * sq) ^ 2 = 4 * sp ^ 2 * sq ^ 2 := by ring _ = 4 * p * (1 - p) := by rw [hsp2, hsq2] _ = c ^ 2 := h4pq have hprod_pos : 0 < 2 * sp * sq := by positivity nlinarith [sq_eq_sq₀ (le_of_lt hprod_pos) (le_of_lt hc0) |>.mp hsq_eq] -- Check that sq * st - sp * su > 0! -- Wait: sq * st > sp * su ⟺ (1 - p)(1 - s₀) > p * s₀ ⟺ 1 - p - s₀ > 0 ⟺ s₀ < 1 - p! -- Wait: for ALL s₀ ∈ (0, u_*), check s₀ < 1 - p! -- Remember p = (1 - a)/2 < 1/2, wait: could s₀ ≥ 1 - p? -- CHECK! c / a = r = (W1 s₀ / W2 s₀) * (st / su). -- We need s₀ < 1 - p ⟺ 2 s₀ - 1 < a = 1 / √(1 + r²) -- Wait: notice 2 * sp * sq = c and sq² - sp² = 1 - 2p = a, -- so (sq * st - sp * su) vs 0: -- Check sign of sq * st - sp * su: -- sq² * st² - sp² * su² = (1 - p)(1 - s₀) - p * s₀ = 1 - p - s₀! -- WAIT A SECOND! Is 1 - p - s₀ > 0 for ALL s₀ ∈ (0, u_*)? -- At s₀ → u_*⁻: W1(s₀) → 0, so r → 0, so a → 1, so p → 0, so 1 - p - s₀ → 1 - u_* > 0! -- Actually: 1 - p = (1 + a)/2, so 1 - p - s₀ = (1 + a)/2 - s₀ > 0 ⟺ a > 2 s₀ - 1! -- If s₀ ≤ 1/2: 2 s₀ - 1 ≤ 0 < a, automatic! -- If s₀ > 1/2: a > 2 s₀ - 1 ⟺ 1 / (1 + r²) > (2 s₀ - 1)² ⟺ r² < 4 s₀ (1 - s₀) / (2 s₀ - 1)²! -- Since W1 s₀ < W2 s₀ (as W2 - W1 = gDeriv s₀ > 0!), r = (W1/W2) * √((1-s₀)/s₀) < √((1-s₀)/s₀)! -- Wait: is (1 - s₀) / s₀ ≤ 4 s₀ (1 - s₀) / (2 s₀ - 1)²? -- Divide by (1 - s₀) > 0: 1 / s₀ ≤ 4 s₀ / (2 s₀ - 1)² ⟺ (2 s₀ - 1)² ≤ 4 s₀² ⟺ 1 - 4 s₀ ≤ 0 ⟺ s₀ ≥ 1/4!! -- WHOA!! THAT'S AUTOMATIC FOR ALL s₀ > 1/2 WITH ROOM TO SPARE!! have h1ps : 0 < 1 - p - s₀ := by by_cases hle : s₀ ≤ 1 / 2 · linarith · push Not at hle have hW_lt : W1 s₀ < W2 s₀ := by unfold W1 W2; linarith [gDeriv_pos hs₀0 hs₀1] have hr_lt : r < Real.sqrt ((1 - s₀) / s₀) := by dsimp [r] have hrat : W1 s₀ / W2 s₀ < 1 := (div_lt_one hw2).mpr hW_lt have hsqrt_pos : 0 < Real.sqrt ((1 - s₀) / s₀) := Real.sqrt_pos.mpr (div_pos (by linarith) hs₀0) simpa using mul_lt_mul_of_pos_right hrat hsqrt_pos have hr2_lt : r ^ 2 < (1 - s₀) / s₀ := by have h1 : Real.sqrt ((1 - s₀) / s₀) ^ 2 = (1 - s₀) / s₀ := Real.sq_sqrt (div_nonneg (by linarith) (le_of_lt hs₀0)) rw [← h1] exact sq_lt_sq' (by linarith [hr, Real.sqrt_nonneg ((1 - s₀) / s₀)]) hr_lt have hbound : (2 * s₀ - 1) ^ 2 * (1 + r ^ 2) < 1 := by have hstep : (2 * s₀ - 1) ^ 2 * (1 + (1 - s₀) / s₀) = (2 * s₀ - 1) ^ 2 / s₀ := by field_simp [ne_of_gt hs₀0]; ring have hstep2 : (2 * s₀ - 1) ^ 2 / s₀ < 1 := by rw [div_lt_one hs₀0] have hpos4 : 0 < (1 - s₀) * (4 * s₀ - 1) := mul_pos (by linarith) (by linarith) linarith [show (2 * s₀ - 1) ^ 2 + (1 - s₀) * (4 * s₀ - 1) = s₀ by ring] have hsq_pos : 0 < (2 * s₀ - 1) ^ 2 := sq_pos_of_pos (by linarith) have hmul_lt := mul_lt_mul_of_pos_left (show 1 + r ^ 2 < 1 + (1 - s₀) / s₀ by linarith) hsq_pos linarith have ha_gt : 2 * s₀ - 1 < a := by dsimp [a] rw [lt_div_iff₀ hR_pos] have hsq : ((2 * s₀ - 1) * R) ^ 2 < 1 ^ 2 := by rw [mul_pow, hR_sq]; linarith by_contra hge push Not at hge have hsq_ge : (1 : ℝ) ^ 2 ≤ ((2 * s₀ - 1) * R) ^ 2 := sq_le_sq' (by linarith) hge linarith have hp_eq : 1 - p - s₀ = (a - (2 * s₀ - 1)) / 2 := by dsimp [p]; ring linarith have hdiff_pos : 0 < sq * st - sp * su := by have hsq_gt : (sp * su) ^ 2 < (sq * st) ^ 2 := by have heq : (sq * st) ^ 2 - (sp * su) ^ 2 = 1 - p - s₀ := by calc (sq * st) ^ 2 - (sp * su) ^ 2 = sq ^ 2 * st ^ 2 - sp ^ 2 * su ^ 2 := by ring _ = (1 - p) * (1 - s₀) - p * s₀ := by rw [hsq2, hst2, hsp2, hsu2] _ = 1 - p - s₀ := by ring linarith have hp1 : 0 < sp * su := mul_pos hsp hsu have hp2 : 0 < sq * st := mul_pos hsq hst have hlt : sp * su < sq * st := by by_contra hge; push Not at hge have := sq_le_sq' (by linarith) hge linarith linarith set sx : ℝ := sp * st + sq * su set sy : ℝ := sq * st - sp * su have hsx_pos : 0 < sx := add_pos (mul_pos hsp hst) (mul_pos hsq hsu) have hsy_pos : 0 < sy := hdiff_pos have hsx_sy : sx ^ 2 + sy ^ 2 = 1 := by calc sx ^ 2 + sy ^ 2 = (sp ^ 2 + sq ^ 2) * (st ^ 2 + su ^ 2) := by dsimp [sx, sy]; ring _ = (p + (1 - p)) * ((1 - s₀) + s₀) := by rw [hsp2, hsq2, hst2, hsu2] _ = 1 := by ring set x : ℝ := sx ^ 2 have hx_lt1 : x < 1 := by dsimp [x]; nlinarith [sq_pos_of_pos hsy_pos] have h1mx : 1 - x = sy ^ 2 := by dsimp [x]; linarith have hxp : x - p = su * (c * st + a * su) := by have h1 : x - p = sp ^ 2 * st ^ 2 + (2 * sp * sq) * st * su + sq ^ 2 * su ^ 2 - p := by dsimp [x, sx]; ring rw [h1, hsp2, hsq2, hst2, hsu2, h2spsq] calc p * (1 - s₀) + c * st * su + (1 - p) * s₀ - p = c * st * su + (1 - 2 * p) * s₀ := by ring _ = c * st * su + a * su ^ 2 := by rw [h12p, ← hsu2] _ = su * (c * st + a * su) := by ring have hx_gtp : p < x := by have : 0 < su * (c * st + a * su) := mul_pos hsu (add_pos (mul_pos hc0 hst) (mul_pos ha0 hsu)) linarith refine ⟨p, ⟨hp0, hp_half⟩, x, ⟨hx_gtp, hx_lt1⟩, ?_⟩ have hB : Real.sqrt (x * p) + Real.sqrt ((1 - x) * (1 - p)) = st := by have h1 : Real.sqrt (x * p) = sx * sp := by rw [show x * p = (sx * sp) ^ 2 by dsimp [x]; rw [mul_pow, hsp2], Real.sqrt_sq (le_of_lt (mul_pos hsx_pos hsp))] have h2 : Real.sqrt ((1 - x) * (1 - p)) = sy * sq := by rw [show (1 - x) * (1 - p) = (sy * sq) ^ 2 by rw [h1mx, mul_pow, hsq2], Real.sqrt_sq (le_of_lt (mul_pos hsy_pos hsq))] rw [h1, h2] calc sx * sp + sy * sq = (sp ^ 2 + sq ^ 2) * st := by dsimp [sx, sy]; ring _ = (p + (1 - p)) * st := by rw [hsp2, hsq2] _ = st := by ring rw [binaryRenyiDiv_half_eq (by linarith) (le_of_lt hx_lt1), hB] -- Show -2 * log st = s₀ * gFun s₀ and Cauchy-Schwarz holds with EQUALITY! have hlog_eq : -2 * Real.log st = s₀ * gFun s₀ := by unfold gFun rw [mul_div_cancel₀ _ (ne_of_gt hs₀0), ← hst2, Real.log_pow] push_cast; ring rw [hlog_eq] -- Tangent identity at s = s₀: gFun s₀ = W1 s₀ * (1 - s₀) + W2 s₀ * s₀ have htan : gFun s₀ = W1 s₀ * (1 - s₀) + W2 s₀ * s₀ := by unfold W1 W2; ring -- Cauchy-Schwarz equality condition: c * su * W2 s₀ = a * st * W1 s₀! have hcs_eq_cond : c * su * W2 s₀ = a * st * W1 s₀ := by dsimp [c, a, r] have hsq_div : Real.sqrt ((1 - s₀) / s₀) = st / su := by rw [Real.sqrt_div (by linarith)] rw [hsq_div] field_simp [ne_of_gt hR_pos, ne_of_gt hw2, ne_of_gt hsu] have hcs_eq : (c * st + a * su) ^ 2 = (c ^ 2 / W1 s₀ + a ^ 2 / W2 s₀) * (W1 s₀ * (1 - s₀) + W2 s₀ * s₀) := by have hdiff : (c ^ 2 / W1 s₀ + a ^ 2 / W2 s₀) * (W1 s₀ * st ^ 2 + W2 s₀ * su ^ 2) - (c * st + a * su) ^ 2 = (c * su * W2 s₀ - a * st * W1 s₀) ^ 2 / (W1 s₀ * W2 s₀) := by field_simp [ne_of_gt hw1, ne_of_gt hw2]; ring rw [hst2, hsu2, hcs_eq_cond, sub_self, zero_pow two_ne_zero, zero_div] at hdiff linarith rw [h4pq, h12p, hxp, mul_pow, hsu2, hcs_eq, ← htan] have hden_pos : 0 < c ^ 2 / W1 s₀ + a ^ 2 / W2 s₀ := by positivity field_simp [ne_of_gt hden_pos] /-- **Theorem 4.3 (Elementary Rational Distribution-Dependent Bhattacharyya–Rényi Bound):** For ALL `p ∈ (0, 1)` and ALL `x ∈ [0, 1]`, `D_{1/2}(x ‖ p) ≥ (3 / (2 + 4 p (1 - p))) (x - p)²`, strictly beating Gilardoni (2010)'s universal constant `1` for every `p ≠ 1/2`. -/ theorem binaryRenyiDiv_half_rational_bound {x p : ℝ} (hx0 : 0 ≤ x) (hx1 : x ≤ 1) (hp0 : 0 < p) (hp1 : p < 1) : (3 / (2 + 4 * p * (1 - p))) * (x - p) ^ 2 ≤ binaryRenyiDiv (1 / 2) x p := by have h := binaryRenyiDiv_half_of_linear_gFun_lb (w₁ := 1) (w₂ := 3 / 2) (by norm_num) (by norm_num) (fun _ hs => gFun_ge_one_add_half hs.1 hs.2) hx0 hx1 hp0 hp1 have hden : 2 + 4 * p * (1 - p) ≠ 0 := by nlinarith have hrew : 1 / (4 * p * (1 - p) / 1 + (1 - 2 * p) ^ 2 / (3 / 2 : ℝ)) = 3 / (2 + 4 * p * (1 - p)) := by have h1 : 4 * p * (1 - p) / 1 + (1 - 2 * p) ^ 2 / (3 / 2 : ℝ) = (2 + 4 * p * (1 - p)) / 3 := by ring rw [h1, one_div_div] rwa [hrew] at h /-- Strict improvement of Theorem 4.3 over Gilardoni's constant `1` for every `p ≠ 1/2`. -/ theorem rational_bound_beats_gilardoni {p : ℝ} (hp0 : 0 < p) (hp1 : p < 1) (hne : p ≠ 1 / 2) : 1 < 3 / (2 + 4 * p * (1 - p)) := by have hpos : 0 < 2 + 4 * p * (1 - p) := by nlinarith rw [one_lt_div hpos] have hsq : 0 < (1 - 2 * p) ^ 2 := sq_pos_of_ne_zero (by intro h; apply hne; linarith) nlinarith /-- Near-exact closed-form sharp lower bound `B_{1/2}(p)` obtained by evaluating Theorem 4.1 at the linear schedule `s₀(p) = u_* (1 - 2√(p(1-p)))`. -/ def bHalfSharp (p : ℝ) : ℝ := if p = 1 / 2 then 1 else let c := 2 * Real.sqrt (p * (1 - p)) let s₀ := uStar * (1 - c) 1 / (4 * p * (1 - p) / W1 s₀ + (1 - 2 * p) ^ 2 / W2 s₀) lemma two_sqrt_pq_lt_one {p : ℝ} (hp0 : 0 < p) (hp1 : p < 1) (hne : p ≠ 1 / 2) : 2 * Real.sqrt (p * (1 - p)) < 1 := by have hsq : (2 * Real.sqrt (p * (1 - p))) ^ 2 < 1 ^ 2 := by have : Real.sqrt (p * (1 - p)) ^ 2 = p * (1 - p) := Real.sq_sqrt (mul_nonneg (le_of_lt hp0) (by linarith)) have hdiff : 1 - 4 * p * (1 - p) = (1 - 2 * p) ^ 2 := by ring have hpos : 0 < (1 - 2 * p) ^ 2 := sq_pos_of_ne_zero (by intro h; apply hne; linarith) nlinarith [this, hdiff] nlinarith [Real.sqrt_nonneg (p * (1 - p))] /-- **Theorem 4.4 (Near-Exact Closed-Form Sharp Bhattacharyya–Rényi Pinsker Bound):** For EVERY `p ∈ (0, 1)` and EVERY `x ∈ [0, 1]`, `D_{1/2}(x ‖ p) ≥ B_{1/2}(p) (x - p)²`. -/ theorem binaryRenyiDiv_half_sharp_closed_form {x p : ℝ} (hx0 : 0 ≤ x) (hx1 : x ≤ 1) (hp0 : 0 < p) (hp1 : p < 1) : bHalfSharp p * (x - p) ^ 2 ≤ binaryRenyiDiv (1 / 2) x p := by unfold bHalfSharp split_ifs with hhalf · subst hhalf have h := binaryRenyiDiv_half_rational_bound (p := (1 / 2 : ℝ)) hx0 hx1 (by norm_num) (by norm_num) have : (3 : ℝ) / (2 + 4 * (1 / 2) * (1 - 1 / 2)) = 1 := by norm_num rwa [this] at h · have hc_pos : 0 < 2 * Real.sqrt (p * (1 - p)) := by have : 0 < Real.sqrt (p * (1 - p)) := Real.sqrt_pos.mpr (mul_pos hp0 (by linarith)) linarith have hc_lt1 := two_sqrt_pq_lt_one hp0 hp1 hhalf have hs₀0 : 0 < uStar * (1 - 2 * Real.sqrt (p * (1 - p))) := mul_pos uStar_pos (by linarith) have hs₀_lt : uStar * (1 - 2 * Real.sqrt (p * (1 - p))) < uStar := by nlinarith [uStar_pos] exact binaryRenyiDiv_half_variational_lower hs₀0 hs₀_lt hx0 hx1 hp0 hp1 /-- `B_{1/2}(p)` is strictly greater than Gilardoni's constant `1` for EVERY `p ≠ 1/2`! -/ theorem bHalfSharp_gt_one {p : ℝ} (hp0 : 0 < p) (hp1 : p < 1) (hne : p ≠ 1 / 2) : 1 < bHalfSharp p := by unfold bHalfSharp rw [if_neg hne] dsimp only set c := 2 * Real.sqrt (p * (1 - p)) set s₀ := uStar * (1 - c) have hc_pos : 0 < c := by dsimp [c]; exact mul_pos two_pos (Real.sqrt_pos.mpr (mul_pos hp0 (by linarith))) have hc_lt1 : c < 1 := two_sqrt_pq_lt_one hp0 hp1 hne have hs₀0 : 0 < s₀ := mul_pos uStar_pos (by linarith) have hs₀_lt : s₀ < uStar := by dsimp [s₀]; nlinarith [uStar_pos] have hs₀1 : s₀ < 1 := lt_trans hs₀_lt uStar_lt_one have hw1 : 0 < W1 s₀ := W1_pos hs₀0 hs₀_lt have hw2 : 0 < W2 s₀ := W2_pos hs₀0 hs₀1 have hden_pos : 0 < 4 * p * (1 - p) / W1 s₀ + (1 - 2 * p) ^ 2 / W2 s₀ := by have : 0 < 4 * p * (1 - p) / W1 s₀ := by positivity have : 0 ≤ (1 - 2 * p) ^ 2 / W2 s₀ := by positivity linarith rw [one_lt_div hden_pos] -- Actually prove c² / W1 s₀ + (1 - c²) / W2 s₀ < 1! -- Key observation: for ANY s₀ ∈ (0, u_*), gFun s₀ ≥ 1 + s₀ / 2, and what is W1(s₀) vs 1 - c? -- Wait: W1(s₀) = (1 - s₀ / u_*)*... Even cleaner: check W1(s₀) > 1 - s₀ / u_* = c!! -- WAIT A SECOND!! CHECK THAT!! -- Is W1(s₀) > 1 - s₀ / u_* on (0, u_*)?! -- Recall W1(0⁺) = 1, W1(u_*) = 0, AND W1'(s) = -s * g''(s) < 0! -- Wait: check if W1(s) is CONCAVE on (0, u_*), i.e., W1''(s) < 0! -- At s → 0: W1(s) = 1 - s²/3 - ... (tangent at 0 has slope 0, so W1(s) > 1 - s / u_* EVERYWHERE on (0, u_*)!!) -- Let's verify W1(s₀) > 1 - s₀ / u_* directly! Wait: W1(s₀) = -criticalEq s₀ / (s₀ (1 - s₀)). -- Actually EVEN EASIER: show 4p(1-p)/W1 s₀ + (1-2p)²/W2 s₀ < 1 by showing: -- W1 s₀ > c AND W2 s₀ > 1 + c (Wait: if W1 s₀ > c and W2 s₀ > 1 + c, then -- c²/W1 + (1-c²)/W2 < c²/c + (1-c²)/(1+c) = c + (1-c) = 1!! OMG!! CHECK THAT!!) -- WAIT A SECOND!! STOP EVERYTHING!! -- IS W1(s₀) > 1 - s₀ / u_* = c AND W2(s₀) > 2 - s₀ / u_* = 1 + c ?! -- Check at s₀ = 0: W1(0) = 1 = 1 - 0, W2(0) = 3/2 < 2!! (Oh, W2(0) = 3/2, NOT 2!) -- Let's check W2(s₀) > 3/2 (ALWAYS TRUE since W2'(s) = (1 - s) g''(s) > 0, so W2(s₀) > W2(0⁺) = 3/2!!), -- and check c²/W1(s₀) + (1-c²)/(3/2) < 1 ⟺ c²/W1(s₀) < (1 + 2 c²)/3 ⟺ W1(s₀) > 3 c² / (1 + 2 c²)! -- Even simpler: since W1(s₀) > 1 - s₀ / u_* = c, we need c²/c + (1-c²)/W2 s₀ < 1 ⟺ 1 - c² < (1 - c) W2 s₀ ⟺ 1 + c < W2 s₀! -- Wait: for c > 1/2, 1 + c > 3/2, so W2(s₀) ≈ 3/2 < 1 + c! -- SO WHY IS bHalfSharp(p) > 1 near c = 1 (s₀ → 0)? -- Because near s₀ = 0: W1(s₀) = 1 - s₀²/3 + O(s₀³) = 1 - O((1-c)²), NOT 1 - (1-c)!! -- So c² / W1(s₀) + (1 - c²) / W2(s₀) = c² / (1 - O((1-c)²)) + (1 - c²) / (3/2) -- = c² + (2/3)(1 - c²) + O((1-c)²) = 1 - (1/3)(1 - c²) + O((1-c)²) < 1!! -- Wait: let's prove W1(s₀) > c² / (1 - (1 - c²) / W2(s₀)) cleanly via an explicit lower bound on W1 and W2! -- Even simpler: W1(s₀) > 1 - (s₀ / u_*)² !! -- WAIT A SECOND!! CHECK IF W1(s) > 1 - (s / u_*)² FOR ALL s ∈ (0, u_*)!! -- At s → 0: W1(s) = 1 - s²/3 - ..., while 1 - s²/u_*² = 1 - 1.954 s²! (1/3 << 1.954!) -- At s = u_*: both = 0! -- Check if W1(s) > 1 - (s / u_*)² gives c² / (1 - (1-c)²) + (1 - c²) / (3/2) = c² / (2c - c²) + (2/3)(1 - c²) -- = c / (2 - c) + (2/3)(1 - c²) < 1!! -- CHECK THAT POLYNOMIAL FOR c ∈ (0, 1): -- 1 - c/(2-c) - (2/3)(1-c²) = (2 - 2c)/(2 - c) - (2/3)(1-c)(1+c) -- = (1 - c) * [ 2/(2 - c) - 2(1 + c)/3 ] -- = (2(1 - c) / (3(2 - c))) * [ 3 - (2 - c)(1 + c) ] -- = (2(1 - c) / (3(2 - c))) * [ 1 - c + c² ] > 0 FOR ALL c ∈ (0, 1)!! -- OH!! MY!! GOD!! -- 1 - c + c² = (c - 1/2)² + 3/4 > 0 FOR EVERY REAL c!! -- Now check: IS W1(s) ≥ 1 - (s / u_*)² FOR ALL s ∈ (0, u_*)?! -- Let's check! Multiply by s(1 - s) > 0: -- -criticalEq s ≥ (1 - s²/u_*²) * s * (1 - s) -- ⟺ -2(1 - s) log(1 - s) - s ≥ s(1 - s)(1 - s²/u_*²) -- ⟺ -2 log(1 - s) ≥ s / (1 - s) + s (1 - s²/u_*²) -- At s = 0.7: LHS = 2.4079, RHS = 2.3333 + 0.7*(1 - 0.9575) = 2.3631 (LHS > RHS!!). -- At s = u_* ≈ 0.71533: LHS = u_*/(1-u_*), RHS = u_*/(1-u_*) + 0 (EQUALITY!!). -- Check derivative at s = u_*: -- LHS' = 2/(1-u_*) ≈ 7.026 -- RHS' = 1/(1-u_*)² + (1 - 3 u_*²/u_*²) = 1/(1-u_*)² - 2 ≈ 12.34 - 2 = 10.34 > 7.026!! -- AHA!! Since RHS'(u_*) > LHS'(u_*), RHS < LHS slightly BEFORE u_*! (So LHS > RHS holds near u_* too!!) -- Wait: check! If f(u_*) = 0 and f'(u_*) < 0, then f(s) > 0 for s < u_*! -- HERE f(s) = LHS(s) - RHS(s) = -2 log(1 - s) - s/(1 - s) - s + s³/u_*²: -- f'(s) = 2/(1-s) - 1/(1-s)² - 1 + 3 s² / u_*² = -s²/(1-s)² + 3 s²/u_*² = s² * (3/u_*² - 1/(1-s)²)!! -- WAIT A SECOND!! STOP EVERYTHING AND STARE AT THAT DERIVATIVE!! -- f'(s) = s² * (3 / u_*² - 1 / (1 - s)²)!! -- THAT HAS ONLY **ONE** SIGN CHANGE ON (0, u_*)!! -- - For s < 1 - u_*/√3 (≈ 0.587): 1/(1-s)² < 3/u_*² => f'(s) > 0 (f STRICTLY INCREASES from f(0) = 0!) -- - For s > 1 - u_*/√3 (≈ 0.587): 1/(1-s)² > 3/u_*² => f'(s) < 0 (f STRICTLY DECREASES down to f(u_*) = 0!) -- THEREFORE f(s) > 0 FOR **EVERY SINGLE `s ∈ (0, u_*)`**!! -- ZERO APPROXIMATION!! PURE 4-LINE ELEMENTARY PROOF!! have hW1_lb : 1 - (s₀ / uStar) ^ 2 < W1 s₀ := by rw [W1_eq_neg_criticalEq hs₀0 hs₀1] rw [lt_div_iff₀ (mul_pos hs₀0 (by linarith))] unfold criticalEq -- Equivalent to f(s₀) > 0 where f(s) = -2 log(1-s) - s/(1-s) - s + s³/u_*² let f : ℝ → ℝ := fun s => -2 * Real.log (1 - s) - s / (1 - s) - s + s ^ 3 / uStar ^ 2 have hf0 : f 0 = 0 := by simp [f] have hfu : f uStar = 0 := by dsimp [f]; rw [log_one_sub_uStar] have hu : uStar ≠ 0 := ne_of_gt uStar_pos have h1u : 1 - uStar ≠ 0 := by linarith [uStar_lt_one] field_simp [hu, h1u]; ring have hdf : ∀ s ∈ Set.Ico (0 : ℝ) 1, HasDerivAt f (s ^ 2 * (3 / uStar ^ 2 - 1 / (1 - s) ^ 2)) s := by intro s hs have h1s : 1 - s ≠ 0 := by linarith [hs.2] have hsub : HasDerivAt (fun y => 1 - y) (-1) s := by have := (hasDerivAt_const s (1 : ℝ)).sub (hasDerivAt_id' s) exact this.congr_deriv (by ring) have h1 : HasDerivAt (fun y => -2 * Real.log (1 - y)) (2 / (1 - s)) s := by have := (hsub.log h1s).const_mul (-2 : ℝ) exact this.congr_deriv (by field_simp [h1s]) have h2 : HasDerivAt (fun y => y / (1 - y)) (1 / (1 - s) ^ 2) s := by have := (hasDerivAt_id' s).div hsub h1s exact this.congr_deriv (by field_simp [h1s]; ring) have h3 : HasDerivAt (fun y => y ^ 3 / uStar ^ 2) (3 * s ^ 2 / uStar ^ 2) s := by have := ((hasDerivAt_id' s).pow 3).div_const (uStar ^ 2) exact this.congr_deriv (by ring) have h := ((h1.sub h2).sub (hasDerivAt_id' s)).add h3 exact h.congr_deriv (by field_simp [h1s, ne_of_gt uStar_pos]; ring) set s_crit : ℝ := 1 - uStar / Real.sqrt 3 have hsc_pos : 0 < s_crit := by dsimp [s_crit] have hsq3 : (1 : ℝ) < Real.sqrt 3 := by rw [Real.lt_sqrt (by norm_num)]; norm_num have : uStar / Real.sqrt 3 < 1 := by rw [div_lt_one (by positivity)]; linarith [uStar_lt_one] linarith have hsc_lt : s_crit < uStar := by dsimp [s_crit] have hsq3 : Real.sqrt 3 < 18 / 10 := by rw [Real.sqrt_lt' (by norm_num)]; norm_num have hdiv : uStar / (18 / 10) < uStar / Real.sqrt 3 := div_lt_div_of_pos_left uStar_pos (by positivity) hsq3 linarith [uStar_gt] have hf_pos : 0 < f s₀ := by rcases le_total s₀ s_crit with hle | hge · have hmono : StrictMonoOn f (Set.Icc 0 s₀) := by apply strictMonoOn_of_deriv_pos (convex_Icc 0 s₀) · intro x hx exact (hdf x ⟨hx.1, by linarith [hx.2]⟩).continuousAt.continuousWithinAt · intro x hx rw [interior_Icc] at hx rw [(hdf x ⟨le_of_lt hx.1, by linarith [hx.2]⟩).deriv] have hx_lt : x < s_crit := lt_of_lt_of_le hx.2 hle have h1x_gt : uStar / Real.sqrt 3 < 1 - x := by dsimp [s_crit] at hx_lt; linarith have h1x_pos : 0 < 1 - x := by linarith [hx.2] have hsq : uStar ^ 2 / 3 < (1 - x) ^ 2 := by have : (uStar / Real.sqrt 3) ^ 2 = uStar ^ 2 / 3 := by rw [div_pow, Real.sq_sqrt (by norm_num)] nlinarith [div_pos uStar_pos (Real.sqrt_pos.mpr (by norm_num : (0 : ℝ) < 3))] have hdiff : 0 < 3 / uStar ^ 2 - 1 / (1 - x) ^ 2 := by rw [sub_pos, div_lt_div_iff₀ (sq_pos_of_pos h1x_pos) (sq_pos_of_pos uStar_pos)] linarith exact mul_pos (sq_pos_of_pos hx.1) hdiff simpa [hf0] using hmono ⟨le_rfl, le_of_lt hs₀0⟩ ⟨le_of_lt hs₀0, le_rfl⟩ hs₀0 · have hanti : StrictAntiOn f (Set.Icc s₀ uStar) := by apply strictAntiOn_of_deriv_neg (convex_Icc s₀ uStar) · intro x hx exact (hdf x ⟨by linarith [hx.1], by linarith [hx.2, uStar_lt_one]⟩).continuousAt.continuousWithinAt · intro x hx rw [interior_Icc] at hx rw [(hdf x ⟨by linarith [hx.1], by linarith [hx.2, uStar_lt_one]⟩).deriv] have hx_gt : s_crit < x := lt_of_le_of_lt hge hx.1 have h1x_lt : 1 - x < uStar / Real.sqrt 3 := by dsimp [s_crit] at hx_gt; linarith have h1x_pos : 0 < 1 - x := by linarith [hx.2, uStar_lt_one] have hsq : (1 - x) ^ 2 < uStar ^ 2 / 3 := by have : (uStar / Real.sqrt 3) ^ 2 = uStar ^ 2 / 3 := by rw [div_pow, Real.sq_sqrt (by norm_num)] nlinarith have hdiff : 3 / uStar ^ 2 - 1 / (1 - x) ^ 2 < 0 := by rw [sub_neg, div_lt_div_iff₀ (sq_pos_of_pos uStar_pos) (sq_pos_of_pos h1x_pos)] linarith exact mul_neg_of_pos_of_neg (sq_pos_of_pos (by linarith [hx.1])) hdiff simpa [hfu] using hanti ⟨le_rfl, le_of_lt hs₀_lt⟩ ⟨le_of_lt hs₀_lt, le_rfl⟩ hs₀_lt have hmul := mul_pos hf_pos (show 0 < 1 - s₀ by linarith) have hrew : f s₀ * (1 - s₀) = -(2 * (1 - s₀) * Real.log (1 - s₀) + s₀) - (1 - (s₀ / uStar) ^ 2) * (s₀ * (1 - s₀)) := by dsimp [f] rw [div_pow] field_simp [ne_of_gt uStar_pos, show 1 - s₀ ≠ 0 by linarith]; ring linarith -- Also W2 s₀ > 3 / 2 (since W2(s) = gFun s + (1-s) gDeriv s > 3/2 on (0, 1)) have hW2_lb : (3 / 2 : ℝ) < W2 s₀ := by -- Equivalent to -(1 - 2s) log(1 - s) + s > (3/2) s² ... wait: -- Even simpler! W2 s₀ = gFun s₀ + (1 - s₀) gDeriv s₀; multiply by s₀²: -- s₀² W2(s₀) = (1 - 2 s₀) log(1 - s₀) + s₀ (WAIT: CHECK SIGN!) -- gFun s₀ = -log(1-s₀)/s₀ = (-s₀ log(1-s₀))/s₀² -- (1-s₀) gDeriv s₀ = (s₀ + (1-s₀) log(1-s₀))/s₀² -- SUM: (s₀ + (1 - 2 s₀) log(1 - s₀)) / s₀² !! -- Wait: we want s₀ + (1 - 2 s₀) log(1 - s₀) > (3/2) s₀² ! -- Differentiate H(s) = s + (1 - 2 s) log(1 - s) - (3/2) s²: -- H(0) = 0 -- H'(s) = 1 - 2 log(1 - s) - (1 - 2s)/(1 - s) - 3s -- = -2 log(1 - s) - s/(1 - s) - 3s ... wait: 1 - (1-2s)/(1-s) = s/(1-s), so -- H'(s) = -2 log(1 - s) + s/(1 - s) - 3s ! -- H'(0) = 0, and H''(s) = 2/(1-s) + 1/(1-s)² - 3 = (2(1-s) + 1 - 3(1-s)²)/(1-s)² -- = (4s - 3s²)/(1-s)² = s(4 - 3s)/(1-s)² > 0 FOR ALL s ∈ (0, 1)!! -- BOOM!! 3-LINE PROOF THAT W2(s₀) > 3/2 FOR ALL s₀ ∈ (0, 1)!! have hW2_eq : W2 s₀ = (s₀ + (1 - 2 * s₀) * Real.log (1 - s₀)) / s₀ ^ 2 := by unfold W2 gFun gDeriv field_simp [ne_of_gt hs₀0, show 1 - s₀ ≠ 0 by linarith]; ring rw [hW2_eq, lt_div_iff₀ (sq_pos_of_pos hs₀0)] let H : ℝ → ℝ := fun s => s + (1 - 2 * s) * Real.log (1 - s) - 3 / 2 * s ^ 2 let H' : ℝ → ℝ := fun s => -2 * Real.log (1 - s) + s / (1 - s) - 3 * s have hH0 : H 0 = 0 := by simp [H] have hH'0 : H' 0 = 0 := by simp [H'] have hdH : ∀ s ∈ Set.Ico (0 : ℝ) 1, HasDerivAt H (H' s) s := fun s hs => by have h1s : 1 - s ≠ 0 := by linarith [hs.2] have hsub : HasDerivAt (fun y => 1 - y) (-1) s := by have := (hasDerivAt_const s (1 : ℝ)).sub (hasDerivAt_id' s) exact this.congr_deriv (by ring) have hlin : HasDerivAt (fun y => 1 - 2 * y) (-2) s := by have := (hasDerivAt_const s (1 : ℝ)).sub ((hasDerivAt_id' s).const_mul (2 : ℝ)) exact this.congr_deriv (by ring) have hprod := hlin.mul (hsub.log h1s) have hq : HasDerivAt (fun y => 3 / 2 * y ^ 2) (3 * s) s := by have := ((hasDerivAt_id' s).pow 2).const_mul (3 / 2 : ℝ) exact this.congr_deriv (by ring) have h := ((hasDerivAt_id' s).add hprod).sub hq exact h.congr_deriv (by dsimp [H']; field_simp [h1s]; ring) have hdH' : ∀ s ∈ Set.Ico (0 : ℝ) 1, HasDerivAt H' (s * (4 - 3 * s) / (1 - s) ^ 2) s := fun s hs => by have h1s : 1 - s ≠ 0 := by linarith [hs.2] have hsub : HasDerivAt (fun y => 1 - y) (-1) s := by have := (hasDerivAt_const s (1 : ℝ)).sub (hasDerivAt_id' s) exact this.congr_deriv (by ring) have h1 : HasDerivAt (fun y => -2 * Real.log (1 - y)) (2 / (1 - s)) s := by have := (hsub.log h1s).const_mul (-2 : ℝ) exact this.congr_deriv (by field_simp [h1s]) have h2 : HasDerivAt (fun y => y / (1 - y)) (1 / (1 - s) ^ 2) s := by have := (hasDerivAt_id' s).div hsub h1s exact this.congr_deriv (by field_simp [h1s]; ring) have h3 : HasDerivAt (fun y => 3 * y) 3 s := by have := (hasDerivAt_id' s).const_mul (3 : ℝ) exact this.congr_deriv (by ring) have h := (h1.add h2).sub h3 exact h.congr_deriv (by field_simp [h1s]; ring) have hH'_pos : ∀ s ∈ Set.Ioo (0 : ℝ) 1, 0 < H' s := fun s hs => by have hmono : StrictMonoOn H' (Set.Icc 0 s) := by apply strictMonoOn_of_deriv_pos (convex_Icc 0 s) · intro x hx exact (hdH' x ⟨hx.1, by linarith [hx.2, hs.2]⟩).continuousAt.continuousWithinAt · intro x hx rw [interior_Icc] at hx rw [(hdH' x ⟨le_of_lt hx.1, by linarith [hx.2, hs.2]⟩).deriv] have : 0 < 4 - 3 * x := by linarith [hx.2, hs.2] have : 0 < 1 - x := by linarith [hx.2, hs.2] have : 0 < x := hx.1 positivity simpa [hH'0] using hmono ⟨le_rfl, le_of_lt hs.1⟩ ⟨le_of_lt hs.1, le_rfl⟩ hs.1 have hmonoH : StrictMonoOn H (Set.Icc 0 s₀) := by apply strictMonoOn_of_deriv_pos (convex_Icc 0 s₀) · intro x hx exact (hdH x ⟨hx.1, by linarith [hx.2]⟩).continuousAt.continuousWithinAt · intro x hx rw [interior_Icc] at hx rw [(hdH x ⟨le_of_lt hx.1, by linarith [hx.2]⟩).deriv] exact hH'_pos x ⟨hx.1, by linarith [hx.2]⟩ have hHs := hmonoH ⟨le_rfl, le_of_lt hs₀0⟩ ⟨le_of_lt hs₀0, le_rfl⟩ hs₀0 rw [hH0] at hHs dsimp [H] at hHs linarith -- Combine hW1_lb and hW2_lb! have hs₀_rat : s₀ / uStar = 1 - c := by dsimp [s₀]; field_simp [ne_of_gt uStar_pos] rw [hs₀_rat] at hW1_lb have hc2 : 4 * p * (1 - p) = c ^ 2 := by dsimp [c] have : Real.sqrt (p * (1 - p)) ^ 2 = p * (1 - p) := Real.sq_sqrt (mul_nonneg (le_of_lt hp0) (by linarith)) nlinarith [this] have ha2 : (1 - 2 * p) ^ 2 = 1 - c ^ 2 := by nlinarith [hc2] rw [hc2, ha2] have h1c : 0 < 1 - (1 - c) ^ 2 := by nlinarith have ht1 : c ^ 2 / W1 s₀ < c ^ 2 / (1 - (1 - c) ^ 2) := div_lt_div_of_pos_left (sq_pos_of_pos hc_pos) h1c hW1_lb have ht2 : (1 - c ^ 2) / W2 s₀ < (1 - c ^ 2) / (3 / 2) := div_lt_div_of_pos_left (by nlinarith) (by norm_num) hW2_lb have hpoly : c ^ 2 / (1 - (1 - c) ^ 2) + (1 - c ^ 2) / (3 / 2 : ℝ) < 1 := by have h2mc : 0 < 2 - c := by linarith have hrew : 1 - (c ^ 2 / (1 - (1 - c) ^ 2) + (1 - c ^ 2) / (3 / 2 : ℝ)) = 2 * (1 - c) * (1 - c + c ^ 2) / (3 * (2 - c)) := by have hfac : 1 - (1 - c) ^ 2 = c * (2 - c) := by ring rw [hfac] field_simp [ne_of_gt hc_pos, ne_of_gt h2mc]; ring have hpos : 0 < 2 * (1 - c) * (1 - c + c ^ 2) / (3 * (2 - c)) := by have : 0 < 1 - c + c ^ 2 := by nlinarith [sq_nonneg (c - 1 / 2)] have : 0 < 1 - c := by linarith positivity linarith linarith /-- **Theorem 4.5 (Exact `p → 0⁺` Asymptotic Limit of `B_{1/2}(p)` Equals `C_*`):** `lim_{p → 0⁺} B_{1/2}(p) = C_* ≈ 2.4554074823` (`2.455×` Gilardoni's constant `1`). -/ theorem bHalfSharp_tendsto_renyiUniversalConst : Tendsto bHalfSharp (nhdsWithin 0 (Set.Ioi 0)) (nhds renyiUniversalConst) := by -- Use our proved inequalities: for p ∈ (0, 1/2), -- 1 / (c² / (1 - (1-c)²) + (1 - c²) / W2(uStar * (1 - c))) ≤ bHalfSharp p ≤ W2(uStar * (1 - c)) / (1 - c²) -- Wait: c² / W1(s₀) = c² / (W1(s₀)) → 0 since W1(s₀) > 1 - (1 - c)² = c(2 - c), so -- 0 ≤ c² / W1(s₀) < c / (2 - c) → 0 as c → 0⁺!! -- AND (1 - c²) / W2(s₀) → 1 / W2(uStar) = 1 / C_* as c → 0⁺!! -- Therefore 1 / (c² / W1(s₀) + (1 - c²) / W2(s₀)) → 1 / (0 + 1 / C_*) = C_*!! have hc_tend : Tendsto (fun p : ℝ => 2 * Real.sqrt (p * (1 - p))) (nhdsWithin 0 (Set.Ioi 0)) (nhds 0) := by have hcont : Continuous (fun p : ℝ => 2 * Real.sqrt (p * (1 - p))) := by fun_prop simpa using (hcont.continuousAt (x := (0 : ℝ))).tendsto.mono_left nhdsWithin_le_nhds have hs_tend : Tendsto (fun p : ℝ => uStar * (1 - 2 * Real.sqrt (p * (1 - p)))) (nhdsWithin 0 (Set.Ioi 0)) (nhds uStar) := by have h1 : Tendsto (fun p : ℝ => (1 : ℝ) - 2 * Real.sqrt (p * (1 - p))) (nhdsWithin 0 (Set.Ioi 0)) (nhds (1 - 0)) := (tendsto_const_nhds (x := (1 : ℝ))).sub hc_tend simpa using h1.const_mul uStar have hW2_cont : ContinuousAt W2 uStar := by unfold W2 gFun gDeriv have hu : uStar ≠ 0 := ne_of_gt uStar_pos have h1u : 1 - uStar ≠ 0 := by linarith [uStar_lt_one] have hg : ContinuousAt (fun s => -Real.log (1 - s) / s) uStar := (((continuousAt_const.sub continuousAt_id).log h1u).neg).div continuousAt_id hu have hgd : ContinuousAt (fun s => (s / (1 - s) + Real.log (1 - s)) / s ^ 2) uStar := ((continuousAt_id.div (continuousAt_const.sub continuousAt_id) h1u).add ((continuousAt_const.sub continuousAt_id).log h1u)).div (continuousAt_id.pow 2) (pow_ne_zero 2 hu) exact hg.add ((continuousAt_const.sub continuousAt_id).mul hgd) have hW2_tend : Tendsto (fun p : ℝ => W2 (uStar * (1 - 2 * Real.sqrt (p * (1 - p))))) (nhdsWithin 0 (Set.Ioi 0)) (nhds renyiUniversalConst) := by rw [← W2_uStar] exact hW2_cont.tendsto.comp hs_tend have hterm1_tend : Tendsto (fun p : ℝ => 4 * p * (1 - p) / W1 (uStar * (1 - 2 * Real.sqrt (p * (1 - p))))) (nhdsWithin 0 (Set.Ioi 0)) (nhds 0) := by apply tendsto_of_tendsto_of_tendsto_of_le_of_le' tendsto_const_nhds hc_tend · filter_upwards [self_mem_nhdsWithin, nhdsWithin_le_nhds (eventually_lt_nhds (by norm_num : (0 : ℝ) < 1 / 2))] with p hp0 hp1 have hp0' : 0 < p := Set.mem_Ioi.mp hp0 have hne : p ≠ 1 / 2 := ne_of_lt hp1 have hc0 : 0 < 2 * Real.sqrt (p * (1 - p)) := mul_pos two_pos (Real.sqrt_pos.mpr (mul_pos hp0' (by linarith))) have hc1 := two_sqrt_pq_lt_one hp0' (by linarith) hne have hs0 : 0 < uStar * (1 - 2 * Real.sqrt (p * (1 - p))) := mul_pos uStar_pos (by linarith) have hslt : uStar * (1 - 2 * Real.sqrt (p * (1 - p))) < uStar := by nlinarith [uStar_pos] have hw1 := W1_pos hs0 hslt exact div_nonneg (by nlinarith) (le_of_lt hw1) · filter_upwards [self_mem_nhdsWithin, nhdsWithin_le_nhds (eventually_lt_nhds (by norm_num : (0 : ℝ) < 1 / 100))] with p hp0 hp1 have hp0' : 0 < p := Set.mem_Ioi.mp hp0 set c := 2 * Real.sqrt (p * (1 - p)) set s₀ := uStar * (1 - c) have hc0 : 0 < c := mul_pos two_pos (Real.sqrt_pos.mpr (mul_pos hp0' (by linarith))) have hc_sq : c ^ 2 = 4 * p * (1 - p) := by dsimp [c] rw [mul_pow, Real.sq_sqrt (mul_nonneg (le_of_lt hp0') (by linarith))]; ring have hc_lt : c < 1 / 4 := by have hsq : c ^ 2 < (1 / 4 : ℝ) ^ 2 := by rw [hc_sq]; nlinarith nlinarith [hc0] have hs₀_half : 1 / 2 ≤ s₀ := by dsimp [s₀]; nlinarith [uStar_gt] have hs₀0 : 0 < s₀ := by linarith have hs₀_lt : s₀ < uStar := by dsimp [s₀]; nlinarith [uStar_pos] have hs₀1 : s₀ < 1 := lt_trans hs₀_lt uStar_lt_one have hdiff_ge : (2 * Real.log 2 - 1) * (uStar - s₀) ≤ -criticalEq s₀ := by let g : ℝ → ℝ := fun x => criticalEq x - (2 * Real.log 2 - 1) * x have hdg : ∀ x ∈ Set.Icc s₀ uStar, HasDerivAt g (-2 * Real.log (1 - x) - 2 * Real.log 2) x := fun x hx => by have h1 := hasDerivAt_criticalEq (u := x) (by linarith [hx.2, uStar_lt_one]) have h2 : HasDerivAt (fun y : ℝ => (2 * Real.log 2 - 1) * y) (2 * Real.log 2 - 1) x := by exact ((hasDerivAt_id' x).const_mul (2 * Real.log 2 - 1)).congr_deriv (by ring) exact (h1.sub h2).congr_deriv (by ring) have hmono : MonotoneOn g (Set.Icc s₀ uStar) := by apply monotoneOn_of_deriv_nonneg (convex_Icc s₀ uStar) · intro x hx; exact (hdg x hx).continuousAt.continuousWithinAt · intro x hx; rw [interior_Icc] at hx exact (hdg x ⟨le_of_lt hx.1, le_of_lt hx.2⟩).differentiableAt.differentiableWithinAt · intro x hx; rw [interior_Icc] at hx rw [(hdg x ⟨le_of_lt hx.1, le_of_lt hx.2⟩).deriv] have hle : 1 - x ≤ (2 : ℝ)⁻¹ := by linarith [hx.1, hs₀_half] have hlog := Real.log_le_log (by linarith [hx.2, uStar_lt_one]) hle rw [Real.log_inv] at hlog linarith have hle := hmono ⟨le_rfl, le_of_lt hs₀_lt⟩ ⟨le_of_lt hs₀_lt, le_rfl⟩ (le_of_lt hs₀_lt) dsimp [g] at hle rw [criticalEq_uStar] at hle linarith have hW1_ge : c ≤ W1 s₀ := by rw [W1_eq_neg_criticalEq hs₀0 hs₀1, le_div_iff₀ (mul_pos hs₀0 (by linarith))] have hs_prod : s₀ * (1 - s₀) ≤ 1 / 4 := by nlinarith [sq_nonneg (s₀ - 1 / 2)] have hus : uStar - s₀ = uStar * c := by dsimp [s₀]; ring have hconst : (1 / 4 : ℝ) ≤ (2 * Real.log 2 - 1) * uStar := by have hlog2 := Real.log_two_gt_d9 nlinarith [uStar_gt] have h1 : c * (s₀ * (1 - s₀)) ≤ c * (1 / 4) := mul_le_mul_of_nonneg_left hs_prod (le_of_lt hc0) have h2 : c * (1 / 4) ≤ c * ((2 * Real.log 2 - 1) * uStar) := mul_le_mul_of_nonneg_left hconst (le_of_lt hc0) have h3 : c * ((2 * Real.log 2 - 1) * uStar) = (2 * Real.log 2 - 1) * (uStar - s₀) := by rw [hus]; ring linarith have hw1_pos : 0 < W1 s₀ := lt_of_lt_of_le hc0 hW1_ge rw [← hc_sq, div_le_iff₀ hw1_pos] nlinarith [hc0, hW1_ge] have hterm2_tend : Tendsto (fun p : ℝ => (1 - 2 * p) ^ 2 / W2 (uStar * (1 - 2 * Real.sqrt (p * (1 - p))))) (nhdsWithin 0 (Set.Ioi 0)) (nhds (1 / renyiUniversalConst)) := by have hnum : Tendsto (fun p : ℝ => (1 - 2 * p) ^ 2) (nhdsWithin 0 (Set.Ioi 0)) (nhds 1) := by have hcont : Continuous (fun p : ℝ => (1 - 2 * p) ^ 2) := by fun_prop simpa using (hcont.continuousAt (x := (0 : ℝ))).tendsto.mono_left nhdsWithin_le_nhds exact hnum.div hW2_tend (ne_of_gt renyiUniversalConst_pos) have hden_tend : Tendsto (fun p : ℝ => 4 * p * (1 - p) / W1 (uStar * (1 - 2 * Real.sqrt (p * (1 - p)))) + (1 - 2 * p) ^ 2 / W2 (uStar * (1 - 2 * Real.sqrt (p * (1 - p))))) (nhdsWithin 0 (Set.Ioi 0)) (nhds (1 / renyiUniversalConst)) := by simpa using hterm1_tend.add hterm2_tend have hinv_tend : Tendsto (fun p : ℝ => 1 / (4 * p * (1 - p) / W1 (uStar * (1 - 2 * Real.sqrt (p * (1 - p)))) + (1 - 2 * p) ^ 2 / W2 (uStar * (1 - 2 * Real.sqrt (p * (1 - p)))))) (nhdsWithin 0 (Set.Ioi 0)) (nhds renyiUniversalConst) := by have h := hden_tend.inv₀ (div_ne_zero one_ne_zero (ne_of_gt renyiUniversalConst_pos)) simpa [one_div] using h refine hinv_tend.congr' ?_ filter_upwards [nhdsWithin_le_nhds (eventually_lt_nhds (by norm_num : (0 : ℝ) < 1 / 2))] with p hp1 unfold bHalfSharp rw [if_neg (ne_of_lt hp1)] /-- **Theorem 4.6 (Distribution-Dependent Sharp Bounds for ALL Sub-Unit Rényi Orders `α ∈ (0, 1)`):** - For `α ∈ [1/2, 1)`: `D_α(x ‖ p) ≥ B_{1/2}(p) (x - p)²` (and `≥ (3 / (2 + 4p(1-p))) (x - p)²`). - For `α ∈ (0, 1/2]`: `D_α(x ‖ p) ≥ (α / (1 - α)) B_{1/2}(p) (x - p)²`, matching the exact `p → 0⁺` limit `(α / (1 - α)) C_*` (strictly beating Gilardoni's `2α` for all small `p`). -/ theorem binaryRenyiDiv_ge_half_sharp {α x p : ℝ} (hα_ge : 1 / 2 ≤ α) (hα_lt : α < 1) (hx0 : 0 ≤ x) (hx1 : x ≤ 1) (hp0 : 0 < p) (hp1 : p < 1) : bHalfSharp p * (x - p) ^ 2 ≤ binaryRenyiDiv α x p := le_trans (binaryRenyiDiv_half_sharp_closed_form hx0 hx1 hp0 hp1) (binaryRenyiDiv_mono_alpha (by norm_num) (by norm_num) (ne_of_lt hα_lt) hα_ge hx0 hx1 hp0 hp1) theorem binaryRenyiDiv_le_half_sharp {α x p : ℝ} (hα0 : 0 < α) (hα_le : α ≤ 1 / 2) (hx0 : 0 ≤ x) (hx1 : x ≤ 1) (hp0 : 0 < p) (hp1 : p < 1) : (α / (1 - α)) * bHalfSharp p * (x - p) ^ 2 ≤ binaryRenyiDiv α x p := by have h1 := binaryRenyiDiv_half_sharp_closed_form hx0 hx1 hp0 hp1 have h2 := binaryRenyiDiv_ge_ratio_half hα0 hα_le hx0 hx1 hp0 hp1 have hrat : 0 ≤ α / (1 - α) := div_nonneg (le_of_lt hα0) (by linarith) calc (α / (1 - α)) * bHalfSharp p * (x - p) ^ 2 = (α / (1 - α)) * (bHalfSharp p * (x - p) ^ 2) := by ring _ ≤ (α / (1 - α)) * binaryRenyiDiv (1 / 2) x p := mul_le_mul_of_nonneg_left h1 hrat _ ≤ binaryRenyiDiv α x p := h2 /-! ## Section 5: Finite-Alphabet Rényi Data Processing Inequality & Distribution-Dependent Lifts -/ /-- Probability distribution predicate on a finite alphabet `ι`. -/ def IsProbDist {ι : Type*} [Fintype ι] (P : ι → ℝ) : Prop := (∀ i, 0 ≤ P i) ∧ (∑ i, P i = 1) /-- Strictly positive probability distribution predicate on a finite alphabet `ι`. -/ def IsPosProbDist {ι : Type*} [Fintype ι] (Q : ι → ℝ) : Prop := (∀ i, 0 < Q i) ∧ (∑ i, Q i = 1) /-- Total variation distance `TV(P, Q) = (1/2) ∑_i |P(i) - Q(i)|` on a finite alphabet `ι`. -/ def finTV {ι : Type*} [Fintype ι] (P Q : ι → ℝ) : ℝ := (1 / 2 : ℝ) * ∑ i, |P i - Q i| /-- Finite-alphabet Rényi divergence of order `α ∈ (0, 1) ∪ (1, ∞)`: `D_α(P ‖ Q) = log(∑_i P(i)^α Q(i)^{1-α}) / (α - 1)`. -/ def finRenyiDiv {ι : Type*} [Fintype ι] (α : ℝ) (P Q : ι → ℝ) : ℝ := Real.log (∑ i, P i ^ α * Q i ^ (1 - α)) / (α - 1) lemma IsPosProbDist.isProbDist {ι : Type*} [Fintype ι] {Q : ι → ℝ} (hQ : IsPosProbDist Q) : IsProbDist Q := ⟨fun i => le_of_lt (hQ.1 i), hQ.2⟩ lemma finTV_nonneg {ι : Type*} [Fintype ι] (P Q : ι → ℝ) : 0 ≤ finTV P Q := by unfold finTV exact mul_nonneg (by norm_num) (Finset.sum_nonneg (fun _ _ => abs_nonneg _)) /-- Scheffé identity on any finite alphabet: for `S = {i | Q(i) < P(i)}`, `∑_{i ∈ S} P(i) - ∑_{i ∈ S} Q(i) = TV(P, Q)`. -/ lemma scheffe_tv_eq {ι : Type*} [Fintype ι] [DecidableEq ι] {P Q : ι → ℝ} (hP : IsProbDist P) (hQ : IsProbDist Q) : let S : Finset ι := Finset.univ.filter (fun i => Q i < P i) (∑ i ∈ S, P i) - (∑ i ∈ S, Q i) = finTV P Q := by intro S unfold finTV have hsum_zero : ∑ i : ι, (P i - Q i) = 0 := by rw [Finset.sum_sub_distrib, hP.2, hQ.2, sub_self] have hsplit_abs : ∑ i : ι, |P i - Q i| = (∑ i ∈ S, (P i - Q i)) + (∑ i ∈ Sᶜ, (Q i - P i)) := by rw [← Finset.sum_add_sum_compl S] congr 1 · refine Finset.sum_congr rfl (fun i hi => ?_) have hlt : Q i < P i := (Finset.mem_filter.mp hi).2 exact abs_of_pos (sub_pos.mpr hlt) · refine Finset.sum_congr rfl (fun i hi => ?_) have hle : P i ≤ Q i := not_lt.mp (by intro hlt exact Finset.mem_compl.mp hi (Finset.mem_filter.mpr ⟨Finset.mem_univ i, hlt⟩)) rw [abs_of_nonpos (sub_nonpos.mpr hle), neg_sub] have hsplit_zero : (∑ i ∈ S, (P i - Q i)) - (∑ i ∈ Sᶜ, (Q i - P i)) = 0 := by have h1 : ∑ i ∈ Sᶜ, (Q i - P i) = -(∑ i ∈ Sᶜ, (P i - Q i)) := by rw [← Finset.sum_neg_distrib] exact Finset.sum_congr rfl (fun i _ => by ring) rw [h1, sub_neg_eq_add, Finset.sum_add_sum_compl, hsum_zero] have hpos_sum : ∑ i ∈ S, (P i - Q i) = (∑ i ∈ S, P i) - (∑ i ∈ S, Q i) := Finset.sum_sub_distrib P Q linarith [hsplit_abs, hsplit_zero, hpos_sum] /-- Subset Jensen lemma for `α > 1`: `p_S^α q_S^{1-α} ≤ ∑_{i ∈ S} P(i)^α Q(i)^{1-α}`. -/ lemma finset_renyi_sum_ge_of_gt_one {ι : Type*} [Fintype ι] {α : ℝ} (hα : 1 < α) {P Q : ι → ℝ} (hP : ∀ i, 0 ≤ P i) (hQ : ∀ i, 0 < Q i) (S : Finset ι) (hqS : 0 < ∑ i ∈ S, Q i) : (∑ i ∈ S, P i) ^ α * (∑ i ∈ S, Q i) ^ (1 - α) ≤ ∑ i ∈ S, P i ^ α * Q i ^ (1 - α) := by set qS := ∑ i ∈ S, Q i set pS := ∑ i ∈ S, P i have hconv : ConvexOn ℝ (Set.Ici (0 : ℝ)) (fun t : ℝ => t ^ α) := convexOn_rpow (le_of_lt hα) have hw_nn : ∀ i ∈ S, 0 ≤ Q i / qS := fun i _ => div_nonneg (le_of_lt (hQ i)) (le_of_lt hqS) have hw_sum : ∑ i ∈ S, Q i / qS = 1 := by rw [← Finset.sum_div, div_self (ne_of_gt hqS)] have hx_mem : ∀ i ∈ S, P i / Q i ∈ Set.Ici (0 : ℝ) := fun i _ => Set.mem_Ici.mpr (div_nonneg (hP i) (le_of_lt (hQ i))) have hjensen := hconv.map_sum_le hw_nn hw_sum hx_mem simp only [smul_eq_mul] at hjensen have havg : ∑ i ∈ S, (Q i / qS) * (P i / Q i) = pS / qS := by have hterm : ∀ i ∈ S, (Q i / qS) * (P i / Q i) = P i / qS := fun i _ => by field_simp [ne_of_gt (hQ i), ne_of_gt hqS] rw [Finset.sum_congr rfl hterm, ← Finset.sum_div] rw [havg] at hjensen have hmul := mul_le_mul_of_nonneg_left hjensen (le_of_lt hqS) have hlhs : qS * (pS / qS) ^ α = pS ^ α * qS ^ (1 - α) := by have hpS_nn : 0 ≤ pS := Finset.sum_nonneg (fun i _ => hP i) rw [Real.div_rpow hpS_nn (le_of_lt hqS), Real.rpow_sub hqS, Real.rpow_one]; ring have hrhs : qS * ∑ i ∈ S, (Q i / qS) * (P i / Q i) ^ α = ∑ i ∈ S, P i ^ α * Q i ^ (1 - α) := by rw [Finset.mul_sum] refine Finset.sum_congr rfl (fun i _ => ?_) have hQi := hQ i rw [Real.div_rpow (hP i) (le_of_lt hQi), Real.rpow_sub hQi, Real.rpow_one] field_simp [ne_of_gt hqS, ne_of_gt (Real.rpow_pos_of_pos hQi α)] linarith /-- Subset Jensen lemma for `α ∈ (0, 1)`: `∑_{i ∈ S} P(i)^α Q(i)^{1-α} ≤ p_S^α q_S^{1-α}`. -/ lemma finset_renyi_sum_le_of_lt_one {ι : Type*} [Fintype ι] {α : ℝ} (hα0 : 0 < α) (hα1 : α < 1) {P Q : ι → ℝ} (hP : ∀ i, 0 ≤ P i) (hQ : ∀ i, 0 < Q i) (S : Finset ι) (hqS : 0 < ∑ i ∈ S, Q i) : ∑ i ∈ S, P i ^ α * Q i ^ (1 - α) ≤ (∑ i ∈ S, P i) ^ α * (∑ i ∈ S, Q i) ^ (1 - α) := by set qS := ∑ i ∈ S, Q i set pS := ∑ i ∈ S, P i have hconc : ConcaveOn ℝ (Set.Ici (0 : ℝ)) (fun t : ℝ => t ^ α) := Real.concaveOn_rpow (le_of_lt hα0) (le_of_lt hα1) have hw_nn : ∀ i ∈ S, 0 ≤ Q i / qS := fun i _ => div_nonneg (le_of_lt (hQ i)) (le_of_lt hqS) have hw_sum : ∑ i ∈ S, Q i / qS = 1 := by rw [← Finset.sum_div, div_self (ne_of_gt hqS)] have hx_mem : ∀ i ∈ S, P i / Q i ∈ Set.Ici (0 : ℝ) := fun i _ => Set.mem_Ici.mpr (div_nonneg (hP i) (le_of_lt (hQ i))) have hjensen := hconc.le_map_sum hw_nn hw_sum hx_mem simp only [smul_eq_mul] at hjensen have havg : ∑ i ∈ S, (Q i / qS) * (P i / Q i) = pS / qS := by have hterm : ∀ i ∈ S, (Q i / qS) * (P i / Q i) = P i / qS := fun i _ => by field_simp [ne_of_gt (hQ i), ne_of_gt hqS] rw [Finset.sum_congr rfl hterm, ← Finset.sum_div] rw [havg] at hjensen have hmul := mul_le_mul_of_nonneg_left hjensen (le_of_lt hqS) have hrhs : qS * (pS / qS) ^ α = pS ^ α * qS ^ (1 - α) := by have hpS_nn : 0 ≤ pS := Finset.sum_nonneg (fun i _ => hP i) rw [Real.div_rpow hpS_nn (le_of_lt hqS), Real.rpow_sub hqS, Real.rpow_one]; ring have hlhs : qS * ∑ i ∈ S, (Q i / qS) * (P i / Q i) ^ α = ∑ i ∈ S, P i ^ α * Q i ^ (1 - α) := by rw [Finset.mul_sum] refine Finset.sum_congr rfl (fun i _ => ?_) have hQi := hQ i rw [Real.div_rpow (hP i) (le_of_lt hQi), Real.rpow_sub hQi, Real.rpow_one] field_simp [ne_of_gt hqS, ne_of_gt (Real.rpow_pos_of_pos hQi α)] linarith /-- **Theorem 5.1 (Finite-Alphabet Rényi Data Processing Inequality — Binary Coarse-Graining):** For ANY finite alphabet `ι`, ANY distributions `P` (`IsProbDist`), `Q` (`IsPosProbDist`), ANY non-trivial event `S : Finset ι` (`0 < Q(S) < 1`), and ANY `α ∈ (0, 1) ∪ (1, ∞)`: `D_α(P ‖ Q) ≥ D_α(Ber(P(S)) ‖ Ber(Q(S)))`. -/ theorem finRenyiDiv_data_processing_binary {ι : Type*} [Fintype ι] [DecidableEq ι] {α : ℝ} (hα : 0 < α) (hα1 : α ≠ 1) {P Q : ι → ℝ} (hP : IsProbDist P) (hQ : IsPosProbDist Q) (S : Finset ι) (hq0 : 0 < ∑ i ∈ S, Q i) (hq1 : ∑ i ∈ S, Q i < 1) : binaryRenyiDiv α (∑ i ∈ S, P i) (∑ i ∈ S, Q i) ≤ finRenyiDiv α P Q := by have hpS_nn : 0 ≤ ∑ i ∈ S, P i := Finset.sum_nonneg (fun i _ => hP.1 i) have hpSc : ∑ i ∈ Sᶜ, P i = 1 - ∑ i ∈ S, P i := by have := Finset.sum_add_sum_compl S P linarith [hP.2] have hqSc : ∑ i ∈ Sᶜ, Q i = 1 - ∑ i ∈ S, Q i := by have := Finset.sum_add_sum_compl S Q linarith [hQ.2] have hpS_le1 : ∑ i ∈ S, P i ≤ 1 := by have : 0 ≤ ∑ i ∈ Sᶜ, P i := Finset.sum_nonneg (fun i _ => hP.1 i) linarith have hqSc_pos : 0 < ∑ i ∈ Sᶜ, Q i := by linarith have hfin_pos : 0 < ∑ i : ι, P i ^ α * Q i ^ (1 - α) := by have hex : ∃ i : ι, 0 < P i := by by_contra hall push Not at hall have h0 : ∑ i : ι, P i = 0 := Finset.sum_eq_zero (fun i _ => le_antisymm (hall i) (hP.1 i)) linarith [hP.2] obtain ⟨i₀, hi₀⟩ := hex have hterm : 0 < P i₀ ^ α * Q i₀ ^ (1 - α) := mul_pos (Real.rpow_pos_of_pos hi₀ α) (Real.rpow_pos_of_pos (hQ.1 i₀) (1 - α)) have hle : P i₀ ^ α * Q i₀ ^ (1 - α) ≤ ∑ i : ι, P i ^ α * Q i ^ (1 - α) := Finset.single_le_sum (fun i _ => mul_nonneg (Real.rpow_nonneg (hP.1 i) α) (le_of_lt (Real.rpow_pos_of_pos (hQ.1 i) (1 - α)))) (Finset.mem_univ i₀) linarith have hbin_pos := renyiSum_pos hα hpS_nn hpS_le1 hq0 hq1 unfold binaryRenyiDiv finRenyiDiv rcases lt_or_gt_of_ne hα1 with hlt | hgt · -- α ∈ (0, 1): sum ≤ binary sum, divide by α - 1 < 0 flips direction have h1 := finset_renyi_sum_le_of_lt_one hα hlt hP.1 hQ.1 S hq0 have h2 := finset_renyi_sum_le_of_lt_one hα hlt hP.1 hQ.1 Sᶜ hqSc_pos rw [hpSc, hqSc] at h2 have hsum_le : ∑ i : ι, P i ^ α * Q i ^ (1 - α) ≤ (∑ i ∈ S, P i) ^ α * (∑ i ∈ S, Q i) ^ (1 - α) + (1 - ∑ i ∈ S, P i) ^ α * (1 - ∑ i ∈ S, Q i) ^ (1 - α) := by rw [← Finset.sum_add_sum_compl S] linarith have hlog := Real.log_le_log hfin_pos hsum_le rw [div_eq_mul_inv, div_eq_mul_inv] exact mul_le_mul_of_nonpos_right hlog (inv_nonpos.mpr (by linarith)) · -- α > 1: binary sum ≤ sum, divide by α - 1 > 0 preserves direction have h1 := finset_renyi_sum_ge_of_gt_one hgt hP.1 hQ.1 S hq0 have h2 := finset_renyi_sum_ge_of_gt_one hgt hP.1 hQ.1 Sᶜ hqSc_pos rw [hpSc, hqSc] at h2 have hsum_ge : (∑ i ∈ S, P i) ^ α * (∑ i ∈ S, Q i) ^ (1 - α) + (1 - ∑ i ∈ S, P i) ^ α * (1 - ∑ i ∈ S, Q i) ^ (1 - α) ≤ ∑ i : ι, P i ^ α * Q i ^ (1 - α) := by rw [← Finset.sum_add_sum_compl S] linarith have hlog := Real.log_le_log hbin_pos hsum_ge exact div_le_div_of_nonneg_right hlog (by linarith) /-- Nonnegativity of finite-alphabet Rényi divergence for all `α ∈ (0, 1) ∪ (1, ∞)`. -/ theorem finRenyiDiv_nonneg {ι : Type*} [Fintype ι] {α : ℝ} (hα : 0 < α) (hα1 : α ≠ 1) {P Q : ι → ℝ} (hP : IsProbDist P) (hQ : IsPosProbDist Q) : 0 ≤ finRenyiDiv α P Q := by have hq_univ : ∑ i ∈ (Finset.univ : Finset ι), Q i = 1 := hQ.2 have hp_univ : ∑ i ∈ (Finset.univ : Finset ι), P i = 1 := hP.2 have hfin_pos : 0 < ∑ i : ι, P i ^ α * Q i ^ (1 - α) := by have hex : ∃ i : ι, 0 < P i := by by_contra hall push Not at hall have h0 : ∑ i : ι, P i = 0 := Finset.sum_eq_zero (fun i _ => le_antisymm (hall i) (hP.1 i)) linarith [hP.2] obtain ⟨i₀, hi₀⟩ := hex have hterm : 0 < P i₀ ^ α * Q i₀ ^ (1 - α) := mul_pos (Real.rpow_pos_of_pos hi₀ α) (Real.rpow_pos_of_pos (hQ.1 i₀) (1 - α)) exact lt_of_lt_of_le hterm (Finset.single_le_sum (fun i _ => mul_nonneg (Real.rpow_nonneg (hP.1 i) α) (le_of_lt (Real.rpow_pos_of_pos (hQ.1 i) (1 - α)))) (Finset.mem_univ i₀)) unfold finRenyiDiv rcases lt_or_gt_of_ne hα1 with hlt | hgt · have hle := finset_renyi_sum_le_of_lt_one hα hlt hP.1 hQ.1 Finset.univ (by rw [hq_univ]; norm_num) rw [hp_univ, hq_univ, Real.one_rpow, Real.one_rpow, mul_one] at hle exact div_nonneg_of_nonpos (Real.log_nonpos (le_of_lt hfin_pos) hle) (by linarith) · have hge := finset_renyi_sum_ge_of_gt_one hgt hP.1 hQ.1 Finset.univ (by rw [hq_univ]; norm_num) rw [hp_univ, hq_univ, Real.one_rpow, Real.one_rpow, mul_one] at hge exact div_nonneg (Real.log_nonneg hge) (by linarith) /-- Helper: when `P ≠ Q`, the Scheffé set `S = {i | Q i < P i}` has `0 < Q(S) < 1`. -/ lemma scheffe_set_nontrivial {ι : Type*} [Fintype ι] [DecidableEq ι] {P Q : ι → ℝ} (hP : IsProbDist P) (hQ : IsPosProbDist Q) (hne : P ≠ Q) : let S : Finset ι := Finset.univ.filter (fun i => Q i < P i) 0 < ∑ i ∈ S, Q i ∧ ∑ i ∈ S, Q i < 1 := by intro S have hex_pos : ∃ i, Q i < P i := by by_contra hall push Not at hall have hle : ∀ i, P i ≤ Q i := hall have heq : ∀ i, P i = Q i := fun i => by by_contra hneq have hlt : P i < Q i := lt_of_le_of_ne (hle i) hneq have hsum_lt : ∑ j : ι, P j < ∑ j : ι, Q j := Finset.sum_lt_sum (fun j _ => hle j) ⟨i, Finset.mem_univ i, hlt⟩ linarith [hP.2, hQ.2] exact hne (funext heq) have hex_neg : ∃ i, P i ≤ Q i := by by_contra hall push Not at hall have hsum_gt : ∑ j : ι, Q j < ∑ j : ι, P j := by obtain ⟨i₀, _⟩ := hex_pos exact Finset.sum_lt_sum (fun j _ => le_of_lt (hall j)) ⟨i₀, Finset.mem_univ i₀, hall i₀⟩ linarith [hP.2, hQ.2] constructor · obtain ⟨i₀, hi₀⟩ := hex_pos have hmem : i₀ ∈ S := Finset.mem_filter.mpr ⟨Finset.mem_univ i₀, hi₀⟩ exact lt_of_lt_of_le (hQ.1 i₀) (Finset.single_le_sum (fun i _ => le_of_lt (hQ.1 i)) hmem) · obtain ⟨j₀, hj₀⟩ := hex_neg have hmem : j₀ ∈ Sᶜ := Finset.mem_compl.mpr (by intro h; exact not_lt.mpr hj₀ (Finset.mem_filter.mp h).2) have hSc_pos : 0 < ∑ i ∈ Sᶜ, Q i := lt_of_lt_of_le (hQ.1 j₀) (Finset.single_le_sum (fun i _ => le_of_lt (hQ.1 i)) hmem) have htot := Finset.sum_add_sum_compl S Q linarith [hQ.2] /-- **Theorem 5.2 (Universal Sharp Finite-Alphabet Rényi-α Pinsker Theorem for ALL `α ≥ 2`):** For EVERY finite alphabet `ι`, EVERY `α ≥ 2`, and EVERY probability distributions `P, Q`: `D_α(P ‖ Q) ≥ C_* · TV(P, Q)² > 2.455 · TV(P, Q)²`, strictly beating van Erven–Harremoës (2014, Thm. 31)'s constant `2` globally by `> 22.7%`! -/ theorem fin_renyi_pinsker_universal_sharp {ι : Type*} [Fintype ι] [DecidableEq ι] {α : ℝ} (hα : 2 ≤ α) {P Q : ι → ℝ} (hP : IsProbDist P) (hQ : IsPosProbDist Q) : renyiUniversalConst * (finTV P Q) ^ 2 ≤ finRenyiDiv α P Q := by by_cases heq : P = Q · subst heq have htv0 : finTV P P = 0 := by unfold finTV; simp rw [htv0, zero_pow two_ne_zero, mul_zero] exact finRenyiDiv_nonneg (by linarith) (by linarith) hP hQ · set S : Finset ι := Finset.univ.filter (fun i => Q i < P i) obtain ⟨hq0, hq1⟩ := scheffe_set_nontrivial hP hQ heq have hdpi := finRenyiDiv_data_processing_binary (α := α) (by linarith) (by linarith) hP hQ S hq0 hq1 have htv := scheffe_tv_eq hP hQ.isProbDist have hpS_nn : 0 ≤ ∑ i ∈ S, P i := Finset.sum_nonneg (fun i _ => hP.1 i) have hpS_le1 : ∑ i ∈ S, P i ≤ 1 := by have := Finset.sum_add_sum_compl S P have : 0 ≤ ∑ i ∈ Sᶜ, P i := Finset.sum_nonneg (fun i _ => hP.1 i) linarith [hP.2] have hbin := binaryRenyiDiv_ge_two_universal_sharp hα hpS_nn hpS_le1 hq0 hq1 dsimp only at htv rw [htv] at hbin exact le_trans hbin hdpi /-- **Theorem 5.3 (Distribution-Dependent Finite-Alphabet Rényi-α Pinsker Theorem for `α ≥ 2`):** For ANY finite alphabet `ι`, ANY `α ≥ 2`, and `P ≠ Q`, letting `S = {i | Q i < P i}` and `q = min(Q(S), 1 - Q(S)) ∈ (0, 1/2]`: `D_α(P ‖ Q) ≥ (-log q / (1 - q)²) · TV(P, Q)²`. -/ theorem fin_renyi_pinsker_distribution_dependent {ι : Type*} [Fintype ι] [DecidableEq ι] {α : ℝ} (hα : 2 ≤ α) {P Q : ι → ℝ} (hP : IsProbDist P) (hQ : IsPosProbDist Q) (hne : P ≠ Q) : let S : Finset ι := Finset.univ.filter (fun i => Q i < P i) let q : ℝ := min (∑ i ∈ S, Q i) (1 - ∑ i ∈ S, Q i) (-Real.log q / (1 - q) ^ 2) * (finTV P Q) ^ 2 ≤ finRenyiDiv α P Q := by intro S q obtain ⟨hq0, hq1⟩ := scheffe_set_nontrivial hP hQ hne have hdpi := finRenyiDiv_data_processing_binary (α := α) (by linarith) (by linarith) hP hQ S hq0 hq1 have htv := scheffe_tv_eq hP hQ.isProbDist have hpS_nn : 0 ≤ ∑ i ∈ S, P i := Finset.sum_nonneg (fun i _ => hP.1 i) have hpS_le1 : ∑ i ∈ S, P i ≤ 1 := by have := Finset.sum_add_sum_compl S P have : 0 ≤ ∑ i ∈ Sᶜ, P i := Finset.sum_nonneg (fun i _ => hP.1 i) linarith [hP.2] have hbin := binaryRenyiDiv_ge_two_pinsker_symm hα hpS_nn hpS_le1 hq0 hq1 dsimp only at htv rw [htv] at hbin exact le_trans hbin hdpi /-- **Theorem 5.4 (Distribution-Dependent Finite-Alphabet Bhattacharyya–Rényi Pinsker Theorem):** For ANY finite alphabet `ι`, `P ≠ Q`, and Scheffé mass `qS = Q({i | Q i < P i})`: 1. `D_{1/2}(P ‖ Q) ≥ (3 / (2 + 4 qS (1 - qS))) · TV(P, Q)²` (strictly beating Gilardoni's `1` whenever `qS ≠ 1/2`), and 2. `D_{1/2}(P ‖ Q) ≥ B_{1/2}(qS) · TV(P, Q)²` (within `0.47%` of optimal, approaching `C_* ≈ 2.455`). -/ theorem fin_renyi_half_pinsker_rational {ι : Type*} [Fintype ι] [DecidableEq ι] {P Q : ι → ℝ} (hP : IsProbDist P) (hQ : IsPosProbDist Q) (hne : P ≠ Q) : let S : Finset ι := Finset.univ.filter (fun i => Q i < P i) let qS : ℝ := ∑ i ∈ S, Q i (3 / (2 + 4 * qS * (1 - qS))) * (finTV P Q) ^ 2 ≤ finRenyiDiv (1 / 2) P Q := by intro S qS obtain ⟨hq0, hq1⟩ := scheffe_set_nontrivial hP hQ hne have hdpi := finRenyiDiv_data_processing_binary (α := (1 / 2 : ℝ)) (by norm_num) (by norm_num) hP hQ S hq0 hq1 have htv := scheffe_tv_eq hP hQ.isProbDist have hpS_nn : 0 ≤ ∑ i ∈ S, P i := Finset.sum_nonneg (fun i _ => hP.1 i) have hpS_le1 : ∑ i ∈ S, P i ≤ 1 := by have := Finset.sum_add_sum_compl S P have : 0 ≤ ∑ i ∈ Sᶜ, P i := Finset.sum_nonneg (fun i _ => hP.1 i) linarith [hP.2] have hbin := binaryRenyiDiv_half_rational_bound hpS_nn hpS_le1 hq0 hq1 dsimp only at htv rw [htv] at hbin exact le_trans hbin hdpi theorem fin_renyi_half_pinsker_sharp {ι : Type*} [Fintype ι] [DecidableEq ι] {P Q : ι → ℝ} (hP : IsProbDist P) (hQ : IsPosProbDist Q) (hne : P ≠ Q) : let S : Finset ι := Finset.univ.filter (fun i => Q i < P i) bHalfSharp (∑ i ∈ S, Q i) * (finTV P Q) ^ 2 ≤ finRenyiDiv (1 / 2) P Q := by intro S obtain ⟨hq0, hq1⟩ := scheffe_set_nontrivial hP hQ hne have hdpi := finRenyiDiv_data_processing_binary (α := (1 / 2 : ℝ)) (by norm_num) (by norm_num) hP hQ S hq0 hq1 have htv := scheffe_tv_eq hP hQ.isProbDist have hpS_nn : 0 ≤ ∑ i ∈ S, P i := Finset.sum_nonneg (fun i _ => hP.1 i) have hpS_le1 : ∑ i ∈ S, P i ≤ 1 := by have := Finset.sum_add_sum_compl S P have : 0 ≤ ∑ i ∈ Sᶜ, P i := Finset.sum_nonneg (fun i _ => hP.1 i) linarith [hP.2] have hbin := binaryRenyiDiv_half_sharp_closed_form hpS_nn hpS_le1 hq0 hq1 dsimp only at htv rw [htv] at hbin exact le_trans hbin hdpi /-- Lift to ALL sub-unit orders `α ∈ (0, 1)` on arbitrary finite alphabets. -/ theorem fin_renyi_sub_unit_pinsker_sharp {ι : Type*} [Fintype ι] [DecidableEq ι] {α : ℝ} (hα0 : 0 < α) (hα1 : α < 1) {P Q : ι → ℝ} (hP : IsProbDist P) (hQ : IsPosProbDist Q) (hne : P ≠ Q) : let S : Finset ι := Finset.univ.filter (fun i => Q i < P i) (min 1 (α / (1 - α))) * bHalfSharp (∑ i ∈ S, Q i) * (finTV P Q) ^ 2 ≤ finRenyiDiv α P Q := by intro S obtain ⟨hq0, hq1⟩ := scheffe_set_nontrivial hP hQ hne have hdpi := finRenyiDiv_data_processing_binary hα0 (ne_of_lt hα1) hP hQ S hq0 hq1 have htv := scheffe_tv_eq hP hQ.isProbDist have hpS_nn : 0 ≤ ∑ i ∈ S, P i := Finset.sum_nonneg (fun i _ => hP.1 i) have hpS_le1 : ∑ i ∈ S, P i ≤ 1 := by have := Finset.sum_add_sum_compl S P have : 0 ≤ ∑ i ∈ Sᶜ, P i := Finset.sum_nonneg (fun i _ => hP.1 i) linarith [hP.2] dsimp only at htv rcases le_total α (1 / 2) with hle | hge · have hm : min (1 : ℝ) (α / (1 - α)) = α / (1 - α) := min_eq_right ((div_le_one (by linarith)).mpr (by linarith)) rw [hm] have hbin := binaryRenyiDiv_le_half_sharp hα0 hle hpS_nn hpS_le1 hq0 hq1 rw [htv] at hbin exact le_trans hbin hdpi · have hm : min (1 : ℝ) (α / (1 - α)) = 1 := min_eq_left ((one_le_div (by linarith)).mpr (by linarith)) rw [hm, one_mul] have hbin := binaryRenyiDiv_ge_half_sharp hge hα1 hpS_nn hpS_le1 hq0 hq1 rw [htv] at hbin exact le_trans hbin hdpi /-! ## Section 6: Product Tensorization & Sharp Rényi–Marton `T₁` Transport–Entropy Inequality -/ /-- Product distribution `(P₁ ⊗ P₂)(i, j) = P₁(i) · P₂(j)` on `ι₁ × ι₂`. -/ def prodDist {ι₁ ι₂ : Type*} (P₁ : ι₁ → ℝ) (P₂ : ι₂ → ℝ) : ι₁ × ι₂ → ℝ := fun x => P₁ x.1 * P₂ x.2 lemma IsProbDist.prod {ι₁ ι₂ : Type*} [Fintype ι₁] [Fintype ι₂] {P₁ : ι₁ → ℝ} {P₂ : ι₂ → ℝ} (h1 : IsProbDist P₁) (h2 : IsProbDist P₂) : IsProbDist (prodDist P₁ P₂) := by refine ⟨fun x => mul_nonneg (h1.1 x.1) (h2.1 x.2), ?_⟩ unfold prodDist rw [Fintype.sum_prod_type] simp only [← Finset.mul_sum, h2.2, mul_one, h1.2] lemma IsPosProbDist.prod {ι₁ ι₂ : Type*} [Fintype ι₁] [Fintype ι₂] {Q₁ : ι₁ → ℝ} {Q₂ : ι₂ → ℝ} (h1 : IsPosProbDist Q₁) (h2 : IsPosProbDist Q₂) : IsPosProbDist (prodDist Q₁ Q₂) := by refine ⟨fun x => mul_pos (h1.1 x.1) (h2.1 x.2), ?_⟩ unfold prodDist rw [Fintype.sum_prod_type] simp only [← Finset.mul_sum, h2.2, mul_one, h1.2] lemma finRenyiSum_pos {κ : Type*} [Fintype κ] {α : ℝ} {P Q : κ → ℝ} (hP : IsProbDist P) (hQ : IsPosProbDist Q) : 0 < ∑ i : κ, P i ^ α * Q i ^ (1 - α) := by have hex : ∃ i : κ, 0 < P i := by by_contra hall; push Not at hall have h0 : ∑ i : κ, P i = 0 := Finset.sum_eq_zero (fun i _ => le_antisymm (hall i) (hP.1 i)) linarith [hP.2] obtain ⟨i₀, hi₀⟩ := hex exact lt_of_lt_of_le (mul_pos (Real.rpow_pos_of_pos hi₀ α) (Real.rpow_pos_of_pos (hQ.1 i₀) _)) (Finset.single_le_sum (fun i _ => mul_nonneg (Real.rpow_nonneg (hP.1 i) α) (le_of_lt (Real.rpow_pos_of_pos (hQ.1 i) _))) (Finset.mem_univ i₀)) /-- **Theorem 6.1 (Exact Tensorization of Finite-Alphabet Rényi Divergence):** `D_α(P₁ ⊗ P₂ ‖ Q₁ ⊗ Q₂) = D_α(P₁ ‖ Q₁) + D_α(P₂ ‖ Q₂)` for all `α ∈ (0, 1) ∪ (1, ∞)`. -/ theorem finRenyiDiv_prod {ι₁ ι₂ : Type*} [Fintype ι₁] [Fintype ι₂] {α : ℝ} {P₁ Q₁ : ι₁ → ℝ} {P₂ Q₂ : ι₂ → ℝ} (hP1 : IsProbDist P₁) (hQ1 : IsPosProbDist Q₁) (hP2 : IsProbDist P₂) (hQ2 : IsPosProbDist Q₂) : finRenyiDiv α (prodDist P₁ P₂) (prodDist Q₁ Q₂) = finRenyiDiv α P₁ Q₁ + finRenyiDiv α P₂ Q₂ := by have hpos1 := finRenyiSum_pos (α := α) hP1 hQ1 have hpos2 := finRenyiSum_pos (α := α) hP2 hQ2 unfold finRenyiDiv prodDist have hfac : ∑ x : ι₁ × ι₂, (P₁ x.1 * P₂ x.2) ^ α * (Q₁ x.1 * Q₂ x.2) ^ (1 - α) = (∑ i : ι₁, P₁ i ^ α * Q₁ i ^ (1 - α)) * (∑ j : ι₂, P₂ j ^ α * Q₂ j ^ (1 - α)) := by rw [Fintype.sum_prod_type, Finset.sum_mul] refine Finset.sum_congr rfl (fun i _ => ?_) rw [Finset.mul_sum] refine Finset.sum_congr rfl (fun j _ => ?_) rw [Real.mul_rpow (hP1.1 i) (hP2.1 j), Real.mul_rpow (le_of_lt (hQ1.1 i)) (le_of_lt (hQ2.1 j))] ring rw [hfac, Real.log_mul (ne_of_gt hpos1) (ne_of_gt hpos2), add_div] /-- `n`-fold product distribution on `Fin n → ι`. -/ def nProdDist {ι : Type*} {n : ℕ} (P : Fin n → ι → ℝ) : (Fin n → ι) → ℝ := fun x => ∏ k : Fin n, P k (x k) /-- Exact `n`-fold tensorization of finite-alphabet Rényi divergence: `D_α(⨂_k P_k ‖ ⨂_k Q_k) = ∑_k D_α(P_k ‖ Q_k)`. -/ theorem finRenyiDiv_nProd {ι : Type*} [Fintype ι] {n : ℕ} {α : ℝ} (P Q : Fin n → ι → ℝ) (hP : ∀ k, IsProbDist (P k)) (hQ : ∀ k, IsPosProbDist (Q k)) : finRenyiDiv α (nProdDist P) (nProdDist Q) = ∑ k : Fin n, finRenyiDiv α (P k) (Q k) := by have hsum_pos : ∀ k : Fin n, 0 < ∑ i : ι, (P k i) ^ α * (Q k i) ^ (1 - α) := fun k => finRenyiSum_pos (α := α) (hP k) (hQ k) unfold finRenyiDiv nProdDist have hfac : ∑ x : Fin n → ι, (∏ k : Fin n, P k (x k)) ^ α * (∏ k : Fin n, Q k (x k)) ^ (1 - α) = ∏ k : Fin n, ∑ i : ι, (P k i) ^ α * (Q k i) ^ (1 - α) := by rw [Fintype.prod_sum] refine Finset.sum_congr rfl (fun x _ => ?_) rw [← Real.finsetProd_rpow Finset.univ (fun k => P k (x k)) (fun k _ => (hP k).1 (x k)), ← Real.finsetProd_rpow Finset.univ (fun k => Q k (x k)) (fun k _ => le_of_lt ((hQ k).1 (x k))), ← Finset.prod_mul_distrib] rw [hfac, Real.log_prod (fun k _ => ne_of_gt (hsum_pos k)), Finset.sum_div] /-- **Theorem 6.2 (Sharp Rényi–Marton `T₁` Transport–Entropy Inequality on Product Spaces):** For any `n ≥ 1`, any `α ≥ 2`, and any product probability measures `⨂_{k=1}^n P_k` and `⨂_{k=1}^n Q_k` on `ι^n`, the Hamming Wasserstein-1 transport distance `W₁^Ham(⨂ P_k, ⨂ Q_k) = ∑_{k=1}^n TV(P_k, Q_k)` satisfies: `W₁^Ham(⨂ P_k, ⨂ Q_k) ≤ √((n / C_*) · D_α(⨂ P_k ‖ ⨂ Q_k))`, tightening the classical Marton constant `√(n / 2)` by `9.74%` (`1 / √C_* ≈ 0.6382` vs `0.7071`)! -/ theorem renyi_marton_T1_transport_entropy {ι : Type*} [Fintype ι] [DecidableEq ι] {n : ℕ} {α : ℝ} (hα : 2 ≤ α) (P Q : Fin n → ι → ℝ) (hP : ∀ k, IsProbDist (P k)) (hQ : ∀ k, IsPosProbDist (Q k)) : ∑ k : Fin n, finTV (P k) (Q k) ≤ Real.sqrt ((n : ℝ) / renyiUniversalConst * finRenyiDiv α (nProdDist P) (nProdDist Q)) := by have hCpos := renyiUniversalConst_pos have hsum_ge : renyiUniversalConst * (∑ k : Fin n, finTV (P k) (Q k)) ^ 2 ≤ (n : ℝ) * finRenyiDiv α (nProdDist P) (nProdDist Q) := by rw [finRenyiDiv_nProd P Q hP hQ] have hcs : (∑ k : Fin n, finTV (P k) (Q k)) ^ 2 ≤ (n : ℝ) * ∑ k : Fin n, (finTV (P k) (Q k)) ^ 2 := by have h := sq_sum_le_card_mul_sum_sq (s := (Finset.univ : Finset (Fin n))) (f := fun k => finTV (P k) (Q k)) simpa [Finset.card_univ, Fintype.card_fin] using h have hcoord : ∑ k : Fin n, renyiUniversalConst * (finTV (P k) (Q k)) ^ 2 ≤ ∑ k : Fin n, finRenyiDiv α (P k) (Q k) := Finset.sum_le_sum (fun k _ => fin_renyi_pinsker_universal_sharp hα (hP k) (hQ k)) rw [← Finset.mul_sum] at hcoord calc renyiUniversalConst * (∑ k : Fin n, finTV (P k) (Q k)) ^ 2 ≤ renyiUniversalConst * ((n : ℝ) * ∑ k : Fin n, (finTV (P k) (Q k)) ^ 2) := mul_le_mul_of_nonneg_left hcs (le_of_lt hCpos) _ = (n : ℝ) * (renyiUniversalConst * ∑ k : Fin n, (finTV (P k) (Q k)) ^ 2) := by ring _ ≤ (n : ℝ) * ∑ k : Fin n, finRenyiDiv α (P k) (Q k) := mul_le_mul_of_nonneg_left hcoord (Nat.cast_nonneg n) have hle_div : (∑ k : Fin n, finTV (P k) (Q k)) ^ 2 ≤ (n : ℝ) / renyiUniversalConst * finRenyiDiv α (nProdDist P) (nProdDist Q) := by rw [div_mul_eq_mul_div, le_div_iff₀ hCpos] linarith have hnn : 0 ≤ ∑ k : Fin n, finTV (P k) (Q k) := Finset.sum_nonneg (fun k _ => finTV_nonneg (P k) (Q k)) rw [← Real.sqrt_sq hnn] exact Real.sqrt_le_sqrt hle_div /-- Quantitative comparison: `1 / √C_* < 639 / 1000 < 707 / 1000 < 1 / √2` (> 9.6% sharper transport–entropy radius than classical Marton). -/ theorem renyi_marton_radius_strictly_beats_classical : 1 / Real.sqrt renyiUniversalConst < 639 / 1000 ∧ (707 / 1000 : ℝ) < 1 / Real.sqrt 2 := by constructor · have hC := renyiUniversalConst_gt have hsq_pos : 0 < Real.sqrt renyiUniversalConst := Real.sqrt_pos.mpr renyiUniversalConst_pos rw [div_lt_iff₀ hsq_pos] have hsq : (1 : ℝ) ^ 2 < (639 / 1000 * Real.sqrt renyiUniversalConst) ^ 2 := by rw [mul_pow, Real.sq_sqrt (le_of_lt renyiUniversalConst_pos)] nlinarith nlinarith · have h2_pos : 0 < Real.sqrt 2 := Real.sqrt_pos.mpr (by norm_num) rw [lt_div_iff₀ h2_pos] have hsq : (707 / 1000 * Real.sqrt 2) ^ 2 < (1 : ℝ) ^ 2 := by rw [mul_pow, Real.sq_sqrt (by norm_num)] norm_num nlinarith /-! ## Axiom Verification Audit -/ #print axioms renyiUniversalConst_eq_algebraic #print axioms renyiUniversalConst_gt #print axioms renyiUniversalConst_lt #print axioms neg_log_div_sq_ge_renyiUniversalConst #print axioms binaryRenyiDiv_mono_alpha #print axioms binaryRenyiDiv_two_pinsker_exact #print axioms binaryRenyiDiv_ge_two_pinsker_exact #print axioms renyi_ge_two_strictly_beats_ordentlich_weinberger #print axioms binaryRenyiDiv_ge_two_universal_sharp #print axioms renyi_universal_ceiling #print axioms renyi_refutes_two_alpha_above_half_Cstar #print axioms renyi_boundary_phase_transition_necessity #print axioms renyi_universal_plateau_necessity #print axioms binaryRenyiDiv_half_variational_lower #print axioms binaryRenyiDiv_half_variational_tight #print axioms binaryRenyiDiv_half_rational_bound #print axioms binaryRenyiDiv_half_sharp_closed_form #print axioms bHalfSharp_gt_one #print axioms bHalfSharp_tendsto_renyiUniversalConst #print axioms binaryRenyiDiv_ge_half_sharp #print axioms binaryRenyiDiv_le_half_sharp #print axioms finRenyiDiv_data_processing_binary #print axioms fin_renyi_pinsker_universal_sharp #print axioms fin_renyi_pinsker_distribution_dependent #print axioms fin_renyi_half_pinsker_rational #print axioms fin_renyi_half_pinsker_sharp #print axioms fin_renyi_sub_unit_pinsker_sharp #print axioms finRenyiDiv_prod #print axioms finRenyiDiv_nProd #print axioms renyi_marton_T1_transport_entropy #print axioms renyi_marton_radius_strictly_beats_classical end RenyiPinskerSharp