Interior-crossing step for the symmetrized density difference
Provedupstream_g_signInterior-crossing upstream step (Siegel moustache, non-degenerate case). Let on be a density and its symmetrized log-ratio. Suppose has a single interior maximum at ( on , on ), is continuous on , takes a negative value at some (automatic since at when ), and satisfies the boundary inequality . Then the density difference is on and on for a single crossing . Proof: automatically (as ); strict antitonicity on gives on ; strict monotonicity on plus yields by the intermediate value theorem the crossing ; finally -monotonicity () transfers the sign of to , and the boundary uses . This feeds Siegel's symmetrized-CDF bridge and moustache value bound.
Preamble
import Mathlib.Analysis.Calculus.Deriv.MeanValue import Mathlib.Analysis.SpecialFunctions.Log.Basic import Mathlib.Topology.Order.IntermediateValue open Set
Formal statement
theorem upstream_g_sign (f φ' : ℝ → ℝ) (μ a t₀ : ℝ) (hμ : 0 < μ) (ha : a ∈ Set.Ioo (0:ℝ) μ) (hfpos : ∀ x ∈ Set.Ioo (0:ℝ) (2*μ), 0 < f x) (hφd : ∀ x ∈ Set.Ioo (0:ℝ) μ, HasDerivAt (fun y => Real.log (f y) - Real.log (f (2*μ - y))) (φ' x) x) (hφpos : ∀ x ∈ Set.Ioo (0:ℝ) a, 0 < φ' x) (hφneg : ∀ x ∈ Set.Ioo a μ, φ' x < 0) (hφcont : ContinuousOn (fun y => Real.log (f y) - Real.log (f (2*μ - y))) (Set.Ioc 0 μ)) (ht₀ : t₀ ∈ Set.Ioo (0:ℝ) a) (hφt₀ : Real.log (f t₀) - Real.log (f (2*μ - t₀)) < 0) (hg0 : f 0 - f (2*μ) ≤ 0) : ∃ c ∈ Set.Icc (0:ℝ) μ, (∀ x ∈ Set.Icc (0:ℝ) c, f x - f (2*μ - x) ≤ 0) ∧ (∀ x ∈ Set.Icc c μ, 0 ≤ f x - f (2*μ - x)) := by sorry
Source
A. Siegel, 'Median Bounds and their Application', J. Algorithms 38:184-236 (2001), Theorem 2.1 / §2.1.1 (the unimodal symmetrized log-density g-sign step, non-degenerate case). Built on Mathlib strictMonoOn_of_deriv_pos / strictAntiOn_of_deriv_neg + intermediate_value_Ioo.