Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Definitions for fff-divergence Inequalities

Definition
QAlgorithms_Papers_Independent_Intakenext100_P28

by Gohan · Oct 31, 2026 · Mathlib 0df444a (Lean v4.33.1)

prove2quantum

The objects the formalized statements of fff-divergence Inequalities (arXiv:1508.00335) are stated in. Each was checked against the paper by a blind read-back and a moderator.

  • LogBase: Common logarithm base, footnote 5, PDF p.7.
  • logB: Source logarithm, PDF p.7.
  • logBaseE: The scalar log e, PDF pp.7,9.
  • expB: Source exponential, PDF p.7.
  • elogB: Extended logarithm, with log 0 = -infinity, PDF p.7.
  • eIntegral: Signed extended expectation, used only with integrable negative part.
  • generatorAtZero: Right endpoint limit of a convex generator, (33), PDF p.8.
  • generatorConjugate: Conjugate generator, (34), PDF p.8.
  • generatorValue: Continuous extension at zero, (33), PDF p.8.
  • fDiv: Full singular-mass extension (30),(33)--(37), PDF p.8.
  • Generator: Normalized convex generator on the open positive half-line, PDF p.8.
  • StrictAtOne: Strict convexity at 1, rather than global strict convexity, Proposition 1, p.9.
  • PositiveGenerator: Positivity away from 1, Theorem 1, PDF p.13.
  • nDiv: Nonnegative value of a normalized convex-generator divergence.
  • kl: KL in the chosen base, (28),(43), PDF pp.7,9.
  • rnDensityReal: Real rnDensityReal, finite almost everywhere under a finite reference measure.
  • fullVariation: Full L1 total variation, including singular mass, (55)--(58), PDF p.10.
  • chiSquareDiv: Chi-square divergence, with infinite value when P is not AC, (47), p.9.
  • triangularGenerator: Triangular generator, (60), PDF p.10.
  • triangular: Triangular discrimination, (59), PDF p.10.
  • marton: Marton's squared divergence through its exact f-generator (73)--(74), p.11.
  • martonSum: Symmetric Marton sum, PDF p.20.
  • probabilityMixture: Probability probabilityMixture, used at (63),(457).
  • js: Jensen--Shannon without the factor 1/2, (63), PDF p.10.
  • hellingerOrderGenerator: Hellinger generator, (53), PDF p.10.
  • hellinger: Hellinger divergence, with H_1 = KL in nats, (52)--(54), PDF p.10.
  • hockey: Hockey-stick divergence with singular extension, (66)--(67), PDF p.11.
  • renyiDiv: Renyi divergence for orders other than 0,1 via its extended moment, (75), p.12.
  • upperDensity: Upper essential rnDensityReal, with infinity in the non-AC case, (79),(149).
  • inverseUpperDensity: Beta_1(P,Q); beta_2(P,Q) is inverseUpperDensity Q P, (149)--(152), PDF pp.22--23.
  • relativeInfo: Relative information with the source's infinite endpoints, (26), PDF p.7.
  • informationSpectrum: CDF under P, (27), PDF p.7.
  • r: Normalized shannonEntropyBase generator r, (43), PDF p.9.
  • jsBaseGenerator: Jensen--Shannon generator, (65), PDF p.11.
  • functionalConstant: Functional supremum; ENNReal retains an infinite optimal coefficient, (86).
  • densityInterval: The restricted open rnDensityReal interval in (163), including unbounded endpoints.
  • ClassicalDivergenceFamily: Polymorphic divergence, so sharp constants quantify over every alphabet.
  • PairCondition: Polymorphic admissibility predicate.
  • acPairs: AC domain for sharp comparisons.
  • mutualPairs: Mutual-AC domain for sharp comparisons.
  • exactPairs: Exact essential bounds, not unrelated free parameters.
  • UniversalBound: All-alphabet upper comparison. Probability normalization is mandatory.
  • Sharp: Best universal multiplicative coefficient, including infinite constants.
  • entropyKernel: The ratio in (172), continuously extended at 1.
  • samsonKernel: Kernel (134), PDF p.20. Used away from 1.
  • entropyHellingerKernel: Continuous kernel (176) with all four endpoint cases, PDF pp.26--27.
  • jsTriangularKernel: Kernel (187), including t=0,1,infinity, PDF p.28.
  • triangularTVKernel: Kernel (188), including infinity, PDF p.28.
  • jsHellingerKernel: Kernel (195); the maximum for alpha<1 ranges over the entire interval.
  • reversePinskerPhi: Phi of (333), PDF p.47.
  • scalarLogSecant: Smooth continuous extension in (539), PDF p.76.
  • phiAlpha: Phi_alpha of (536),(537), PDF pp.75--76; its value at 1 is alpha/(alpha-1).
  • triangularC1: Exact coefficients in Theorem 3, (117),(119)--(120), PDF p.18.
  • triangularC2: Least scalar correction in (119), avoiding rounded decimal constants.
  • KLLinearBound: KL/TV/chiSquareDiv-square bound with both scalar coefficients, (97), PDF p.15.
  • symmetricKL: Symmetric KL and chiSquareDiv-square divergences in (98).
  • symmetricChi: Symmetric chiSquareDiv-square sum in (98), PDF p.15.
  • binary: Binary law with mass p at false; valid for p in [0,1].
  • binaryKL: Two-sided binary relative shannonEntropyBase on its finite domain, (310), PDF p.43.
  • spectrumEnvelope: Lower informationSpectrum envelope (277), PDF p.39.
  • absInfo: Absolute and negative information moments; extended, not default-zero.
  • negativeInfo: Negative information moment in (288), PDF p.41.
  • momentKLBound: Continuous limiting RHS of (292), PDF p.41; explicit infinite/zero cases.
  • kernelMean: The conditional mean from one common Markov kernel, Lemma 1, PDF p.33.
  • jensenGap: Jensen gap from that kernel, with extended outer expectation, (228).
  • tGamma: Secondary-branch Lambert root, equivalently gamma ln t = t-1, (435), p.61. Theorem 33 asserts existence and uniqueness on the stated gamma>1 domain.
  • hockeyKLConstant: Exact optimal coefficient (434), before the probability pair is chosen.
  • spectrumCoefficient: Open-interval objective minimum (461); attainment is stated in Theorem 34.
  • cGammaApprox: Approximation (453)--(454) with the exact printed decimal 1.1791, p.63.
  • tailMoment: Tail moment zeta (470) expressed through its nonnegative rnDensityReal.
  • cdfMoment: The nonnegative CDF rnDensityReal inverseUpperDensity^(alpha-2) F(log inverseUpperDensity), (471)--(472). This is pointwise inverseUpperDensity^(alpha-2)-zeta, not a difference of infinite integrals.
  • truncatedSecond: Nonnegative truncated rnDensityReal moment in Remark 28, PDF p.48.
  • FiniteProbabilityLaw: Nonnegative normalized probability vector on a finite alphabet.
  • finiteTV: Full L1 distance and unweighted squared l2 distance for finite laws.
  • finiteL2: Unweighted squared Euclidean distance in (373), PDF p.51.
  • finiteKL: Finite KL on the strictly-positive-reference domain used below.
  • finiteChi: Finite chiSquareDiv-square on the strictly-positive-reference domain.
  • minReferenceMass: Minimum and maximum symbol mass; n>1 in every theorem using them.
  • qMax: Largest finite-alphabet mass, PDF p.56.
  • finiteBeta2: Reverse essential rnDensityReal bound when Q is strictly positive.
  • shannonEntropyBase: Shannon shannonEntropyBase with continuous zero-mass convention, PDF p.52.
  • uniformLaw: Equiprobable vector.
  • binaryEntropyBase: Binary shannonEntropyBase, PDF p.52.
  • entropyMaxLaw: The two-level attaining law (378), indexed from zero.
  • uniformEntropyThreshold: Threshold sequence (379), PDF p.53.
  • entropyMinLaw: The attaining law (381), indexed from zero, PDF p.53.
  • balance: Balance coefficient (390), for the finite setting of Theorem 30.
  • balancePhi: Phi in (391), distinct from the rnDensityReal function (333).
  • RelativeCoordinateTypical: Strong typicality closed relative-coordinate ball, (389), PDF p.54.
  • typicalExponent: Exponent (388) as an extended infimum over the open complement. The proof (396) takes limits, so a minimum is not substituted for an infimum.
  • ratioEndpoint: Extended scalar endpoint of f/g; no quotient of infinite limits.
  • scalarInterval: Open scalar interval (163) at fixed betas, including zero betas.
  • LowerSharp: Sharp lower-coefficient counterpart of Sharp.
  • uAlpha: Signed u_alpha in (511); the printed nonnegative codomain is a typo for alpha<1.
  • renyiKLTransform: Logarithmic KL transform (512)--(515); toENNReal is the positive part.
  • renyiLower: Complete lower expression in parts (a),(b) of Theorem 38.
  • renyiUpper: Complete upper expression in parts (a),(b) of Theorem 38.
  • expNeg: exp_b(-D), with its zero endpoint at infinite D.
  • deltaBar: Delta-bar of (517), with the square root covering the whole minimum.
  • renyiDeltaBound: Scalar endpoint-safe TV transform (516).
Definition code
import Mathlib

/-!
Statements from Sason and Verdu, arXiv:1508.00335v7.
All definitions are local to this paper. KL uses Mathlib's extended nats primitive;
TV is the full L1 distance. Signed extended expectations use positive and negative
parts, never a nonintegrable Bochner integral. Theorems are statement targets only.
-/

noncomputable section

open MeasureTheory Set Filter
open scoped ENNReal NNReal Topology BigOperators ProbabilityTheory

namespace QAlgorithms.Papers.Independent.Intakenext100.P28

universe u

attribute [local instance] Classical.propDecidable

/-- Common logarithm base, footnote 5, PDF p.7. -/
structure LogBase where
  val : ℝ
  one_lt : 1 < val

/-- Source logarithm, PDF p.7. -/
def logB (b : LogBase) (t : ℝ) : ℝ := Real.log t / Real.log b.val

/-- The scalar `log e`, PDF pp.7,9. -/
def logBaseE (b : LogBase) : ℝ := 1 / Real.log b.val

/-- Source exponential, PDF p.7. -/
def expB (b : LogBase) (t : ℝ) : ℝ := Real.exp (t * Real.log b.val)

/-- Extended logarithm, with log 0 = -infinity, PDF p.7. -/
def elogB (b : LogBase) (t : ℝ≥0∞) : EReal := ENNReal.log t * (logBaseE b : EReal)

/-- Signed extended expectation, used only with integrable negative part. -/
def eIntegral {A : Type*} [MeasurableSpace A] (P : Measure A) (h : A → EReal) : EReal :=
  ((∫⁻ x, (h x).toENNReal ∂P) : EReal) - ((∫⁻ x, (-h x).toENNReal ∂P) : EReal)

/-- Right endpoint limit of a convex generator, (33), PDF p.8. -/
def generatorAtZero (f : ℝ → ℝ) : EReal :=
  Filter.liminf (fun t : ℝ => (f t : EReal)) (nhdsWithin 0 (Ioi 0))

/-- Conjugate generator, (34), PDF p.8. -/
def generatorConjugate (f : ℝ → ℝ) (t : ℝ) : ℝ := t * f t⁻¹

/-- Continuous extension at zero, (33), PDF p.8. -/
def generatorValue (f : ℝ → ℝ) (t : ℝ) : EReal :=
  if t = 0 then generatorAtZero f else (f t : EReal)

/-- Full singular-mass extension (30),(33)--(37), PDF p.8. -/
def fDiv {A : Type*} [MeasurableSpace A] (f : ℝ → ℝ) (P Q : Measure A) : EReal :=
  eIntegral Q (fun x => generatorValue f (P.rnDeriv Q x).toReal) +
    generatorAtZero (generatorConjugate f) * ((P.singularPart Q) univ : EReal)

/-- Normalized convex generator on the open positive half-line, PDF p.8. -/
def Generator (f : ℝ → ℝ) : Prop := ConvexOn ℝ (Ioi 0) f ∧ f 1 = 0

/-- Strict convexity at 1, rather than global strict convexity, Proposition 1, p.9. -/
def StrictAtOne (f : ℝ → ℝ) : Prop :=
  ∀ x y a : ℝ, 0 < x → x < 1 → 1 < y → 0 < a → a < 1 →
    a * x + (1 - a) * y = 1 → f 1 < a * f x + (1 - a) * f y

/-- Positivity away from 1, Theorem 1, PDF p.13. -/
def PositiveGenerator (f : ℝ → ℝ) : Prop :=
  Generator f ∧ ∀ t : ℝ, 0 < t → t ≠ 1 → 0 < f t

/-- Nonnegative value of a normalized convex-generator divergence. -/
def nDiv {A : Type*} [MeasurableSpace A] (f : ℝ → ℝ) (P Q : Measure A) : ℝ≥0∞ :=
  (fDiv f P Q).toENNReal

/-- KL in the chosen base, (28),(43), PDF pp.7,9. -/
def kl {A : Type*} [MeasurableSpace A] (b : LogBase) (P Q : Measure A) : ℝ≥0∞ :=
  ENNReal.ofReal (logBaseE b) * InformationTheory.klDiv P Q

/-- Real rnDensityReal, finite almost everywhere under a finite reference measure. -/
def rnDensityReal {A : Type*} [MeasurableSpace A] (P Q : Measure A) (x : A) : ℝ :=
  (P.rnDeriv Q x).toReal

/-- Full L1 total variation, including singular mass, (55)--(58), PDF p.10. -/
def fullVariation {A : Type*} [MeasurableSpace A] (P Q : Measure A) : ℝ≥0∞ :=
  ∫⁻ x, ENNReal.ofReal |rnDensityReal P (P + Q) x - rnDensityReal Q (P + Q) x| ∂(P + Q)

/-- Chi-square divergence, with infinite value when P is not AC, (47), p.9. -/
def chiSquareDiv {A : Type*} [MeasurableSpace A] (P Q : Measure A) : ℝ≥0∞ :=
  if P ≪ Q then ∫⁻ x, ENNReal.ofReal ((rnDensityReal P Q x - 1) ^ 2) ∂Q else ∞

/-- Triangular generator, (60), PDF p.10. -/
def triangularGenerator (t : ℝ) : ℝ := (t - 1) ^ 2 / (t + 1)

/-- Triangular discrimination, (59), PDF p.10. -/
def triangular {A : Type*} [MeasurableSpace A] (P Q : Measure A) : ℝ≥0∞ :=
  nDiv triangularGenerator P Q

/-- Marton's squared divergence through its exact f-generator (73)--(74), p.11. -/
def marton {A : Type*} [MeasurableSpace A] (P Q : Measure A) : ℝ≥0∞ :=
  nDiv (fun t => if t < 1 then (t - 1) ^ 2 else 0) P Q

/-- Symmetric Marton sum, PDF p.20. -/
def martonSum {A : Type*} [MeasurableSpace A] (P Q : Measure A) : ℝ≥0∞ :=
  marton P Q + marton Q P

/-- Probability probabilityMixture, used at (63),(457). -/
def probabilityMixture {A : Type*} [MeasurableSpace A] (P Q : Measure A) (t : ℝ) : Measure A :=
  ENNReal.ofReal (1 - t) • P + ENNReal.ofReal t • Q

/-- Jensen--Shannon without the factor 1/2, (63), PDF p.10. -/
def js {A : Type*} [MeasurableSpace A] (b : LogBase) (P Q : Measure A) : ℝ≥0∞ :=
  kl b P (probabilityMixture P Q (1 / 2)) + kl b Q (probabilityMixture P Q (1 / 2))

/-- Hellinger generator, (53), PDF p.10. -/
def hellingerOrderGenerator (a t : ℝ) : ℝ := (Real.rpow t a - 1) / (a - 1)

/-- Hellinger divergence, with H_1 = KL in nats, (52)--(54), PDF p.10. -/
def hellinger {A : Type*} [MeasurableSpace A] (a : ℝ) (P Q : Measure A) : ℝ≥0∞ :=
  if a = 1 then InformationTheory.klDiv P Q else nDiv (hellingerOrderGenerator a) P Q

/-- Hockey-stick divergence with singular extension, (66)--(67), PDF p.11. -/
def hockey {A : Type*} [MeasurableSpace A] (g : ℝ) (P Q : Measure A) : ℝ≥0∞ :=
  (∫⁻ x, ENNReal.ofReal (max (rnDensityReal P Q x - g) 0) ∂Q) + (P.singularPart Q) univ

/-- Renyi divergence for orders other than 0,1 via its extended moment, (75), p.12. -/
def renyiDiv {A : Type*} [MeasurableSpace A] (b : LogBase) (a : ℝ)
    (P Q : Measure A) : EReal :=
  if a = 0 then -elogB b (Q {x | 0 < P.rnDeriv Q x})
  else if a = 1 then (kl b P Q : EReal)
  else ((1 / (a - 1) : ℝ) : EReal) * elogB b (∫⁻ x, (P.rnDeriv Q x) ^ a ∂Q)

/-- Upper essential rnDensityReal, with infinity in the non-AC case, (79),(149). -/
def upperDensity {A : Type*} [MeasurableSpace A] (P Q : Measure A) : ℝ≥0∞ :=
  if P ≪ Q then essSup (P.rnDeriv Q) Q else ∞

/-- Beta_1(P,Q); beta_2(P,Q) is inverseUpperDensity Q P, (149)--(152), PDF pp.22--23. -/
def inverseUpperDensity {A : Type*} [MeasurableSpace A] (P Q : Measure A) : ℝ :=
  ((upperDensity P Q)⁻¹).toReal

/-- Relative information with the source's infinite endpoints, (26), PDF p.7. -/
def relativeInfo {A : Type*} [MeasurableSpace A] (b : LogBase) (P Q : Measure A) (x : A) : EReal :=
  elogB b (P.rnDeriv Q x)

/-- CDF under P, (27), PDF p.7. -/
def informationSpectrum {A : Type*} [MeasurableSpace A] (b : LogBase) (P Q : Measure A)
    (a : EReal) : ℝ≥0∞ := P {x | relativeInfo b P Q x ≤ a}

/-- Normalized shannonEntropyBase generator r, (43), PDF p.9. -/
def r (b : LogBase) (t : ℝ) : ℝ := t * logB b t + (1 - t) * logBaseE b

/-- Jensen--Shannon generator, (65), PDF p.11. -/
def jsBaseGenerator (b : LogBase) (t : ℝ) : ℝ :=
  t * logB b t - (t + 1) * logB b ((t + 1) / 2)

/-- Functional supremum; ENNReal retains an infinite optimal coefficient, (86). -/
def functionalConstant (f g : ℝ → ℝ) (S : Set ℝ := Ioi 0 \ {1}) : ℝ≥0∞ :=
  ⨆ t : S, ENNReal.ofReal (f t / g t)

/-- The restricted open rnDensityReal interval in (163), including unbounded endpoints. -/
def densityInterval {A : Type*} [MeasurableSpace A] (P Q : Measure A) : Set ℝ :=
  {t | inverseUpperDensity Q P < t ∧ (ENNReal.ofReal t) < upperDensity P Q ∧ t ≠ 1}

/-- Polymorphic divergence, so sharp constants quantify over every alphabet. -/
abbrev ClassicalDivergenceFamily := ∀ {A : Type u} [MeasurableSpace A], Measure A → Measure A → ℝ≥0∞

/-- Polymorphic admissibility predicate. -/
abbrev PairCondition := ∀ {A : Type u} [MeasurableSpace A], Measure A → Measure A → Prop

/-- AC domain for sharp comparisons. -/
def acPairs : PairCondition := fun P Q => P ≪ Q

/-- Mutual-AC domain for sharp comparisons. -/
def mutualPairs : PairCondition := fun P Q => P ≪ Q ∧ Q ≪ P

/-- Exact essential bounds, not unrelated free parameters. -/
def exactPairs (b1 b2 : ℝ) : PairCondition :=
  fun P Q => inverseUpperDensity P Q = b1 ∧ inverseUpperDensity Q P = b2

/-- All-alphabet upper comparison. Probability normalization is mandatory. -/
def UniversalBound (F G : ClassicalDivergenceFamily.{u}) (D : PairCondition.{u}) (c : ℝ≥0∞) : Prop :=
  ∀ (A : Type u) [MeasurableSpace A] (P Q : Measure A)
    [IsProbabilityMeasure P] [IsProbabilityMeasure Q], D P Q → F P Q ≤ c * G P Q

/-- Best universal multiplicative coefficient, including infinite constants. -/
def Sharp (F G : ClassicalDivergenceFamily.{u}) (D : PairCondition.{u}) (c : ℝ≥0∞) : Prop :=
  IsLeast {k | UniversalBound F G D k} c

/-- The ratio in (172), continuously extended at 1. -/
def entropyKernel (b : LogBase) (t : ℝ) : ℝ :=
  if t = 1 then 1 else r b t / ((t - 1) * logBaseE b - logB b t)

/-- Kernel (134), PDF p.20. Used away from 1. -/
def samsonKernel (b : LogBase) (t : ℝ) : ℝ :=
  (t - 1) ^ 2 / (r b t * max 1 t)

/-- Continuous kernel (176) with all four endpoint cases, PDF pp.26--27. -/
def entropyHellingerKernel (b : LogBase) (a : ℝ) (t : ℝ≥0∞) : ℝ≥0∞ :=
  if t = 0 then ENNReal.ofReal (logBaseE b)
  else if t = 1 then ENNReal.ofReal (logBaseE b / a)
  else if t = ∞ then if a < 1 then ∞ else 0
  else ENNReal.ofReal ((1 - a) * r b t.toReal /
    (1 - Real.rpow t.toReal a + a * t.toReal - a))

/-- Kernel (187), including t=0,1,infinity, PDF p.28. -/
def jsTriangularKernel (b : LogBase) (t : ℝ≥0∞) : ℝ≥0∞ :=
  if t = 0 ∨ t = ∞ then ENNReal.ofReal (logB b 2)
  else if t = 1 then ENNReal.ofReal (logBaseE b / 2)
  else ENNReal.ofReal ((t.toReal + 1) / (t.toReal - 1) ^ 2 * jsBaseGenerator b t.toReal)

/-- Kernel (188), including infinity, PDF p.28. -/
def triangularTVKernel (t : ℝ≥0∞) : ℝ≥0∞ :=
  if t = ∞ then 1 else ENNReal.ofReal (|t.toReal - 1| / (t.toReal + 1))

/-- Kernel (195); the maximum for alpha<1 ranges over the entire interval. -/
def jsHellingerKernel (b : LogBase) (a : ℝ) (t : ℝ≥0∞) : ℝ≥0∞ :=
  if t = 0 then ENNReal.ofReal (logB b 2)
  else if t = 1 then ENNReal.ofReal (logBaseE b / (2 * a))
  else if t = ∞ then ENNReal.ofReal (max (1 / a - 1) 0 * logB b 2)
  else ENNReal.ofReal ((a - 1) * jsBaseGenerator b t.toReal /
    (Real.rpow t.toReal a + a - 1 - a * t.toReal))

/-- Phi of (333), PDF p.47. -/
def reversePinskerPhi (b : LogBase) (t : ℝ) : ℝ :=
  if t = 0 then 0 else if t = 1 then logBaseE b else t * logB b t / (t - 1)

/-- Smooth continuous extension in (539), PDF p.76. -/
def scalarLogSecant (t : ℝ) : ℝ := if t = 1 then 1 else Real.log t / (t - 1)

/-- Phi_alpha of (536),(537), PDF pp.75--76; its value at 1 is alpha/(alpha-1). -/
def phiAlpha (a t : ℝ) : ℝ :=
  if t = 1 then a / (a - 1)
  else (1 - Real.rpow t a) * Real.log t /
    ((t - 1) * (1 - Real.rpow t (a - 1)))

example (b : LogBase) : logB b 1 = 0 := by simp [logB]

example (b : LogBase) : r b 1 = 0 := by simp [r, logB]

example : triangularGenerator 1 = 0 := by norm_num [triangularGenerator]

example : scalarLogSecant 1 = 1 := by simp [scalarLogSecant]

example (b : LogBase) : reversePinskerPhi b 0 = 0 ∧ reversePinskerPhi b 1 = logBaseE b := by simp [reversePinskerPhi]

example (b : LogBase) (a : ℝ) : entropyHellingerKernel b a 0 = ENNReal.ofReal (logBaseE b) := by
  simp [entropyHellingerKernel]

example {A : Type*} [MeasurableSpace A] (P Q : Measure A) (h : ¬ P ≪ Q) : chiSquareDiv P Q = ∞ := by
  simp [chiSquareDiv, h]

example {A : Type*} [MeasurableSpace A] (P Q : Measure A) : probabilityMixture P Q 0 = P := by
  simp [probabilityMixture]

/-- Exact coefficients in Theorem 3, (117),(119)--(120), PDF p.18. -/
def triangularC1 (b : LogBase) : ℝ≥0∞ :=
  functionalConstant (fun t => triangularGenerator t * logBaseE b) (r b)

/-- Least scalar correction in (119), avoiding rounded decimal constants. -/
def triangularC2 (b : LogBase) : ℝ≥0∞ :=
  sInf {c | ∀ t : ℝ, 0 < t → t < 1 →
    ENNReal.ofReal (triangularGenerator t * logBaseE b) ≤
      ENNReal.ofReal (r b t) + ENNReal.ofReal (2 * (1 - t) * logBaseE b) * c}

/-- KL/TV/chiSquareDiv-square bound with both scalar coefficients, (97), PDF p.15. -/
def KLLinearBound (b : LogBase) (c1 c2 : ℝ≥0∞) : Prop :=
  ∀ (A : Type u) [MeasurableSpace A] (P Q : Measure A)
    [IsProbabilityMeasure P] [IsProbabilityMeasure Q], P ≪ Q →
      kl b P Q ≤ (c1 * fullVariation P Q + c2 * chiSquareDiv P Q) * ENNReal.ofReal (logBaseE b)

/-- Symmetric KL and chiSquareDiv-square divergences in (98). -/
def symmetricKL (b : LogBase) : ClassicalDivergenceFamily := fun P Q => kl b P Q + kl b Q P

/-- Symmetric chiSquareDiv-square sum in (98), PDF p.15. -/
def symmetricChi : ClassicalDivergenceFamily := fun P Q => chiSquareDiv P Q + chiSquareDiv Q P

/-- Binary law with mass p at false; valid for p in [0,1]. -/
def binary (p : ℝ) : Measure Bool :=
  ENNReal.ofReal p • Measure.dirac false + ENNReal.ofReal (1 - p) • Measure.dirac true

/-- Two-sided binary relative shannonEntropyBase on its finite domain, (310), PDF p.43. -/
def binaryKL (b : LogBase) (x y : ℝ) : ℝ :=
  x * logB b (x / y) + (1 - x) * logB b ((1 - x) / (1 - y))

/-- Lower informationSpectrum envelope (277), PDF p.39. -/
def spectrumEnvelope (v t : ℝ) : ℝ :=
  if t ≤ 2 / (2 - v) then 0 else 1 - t * v / (2 * (t - 1))

/-- Absolute and negative information moments; extended, not default-zero. -/
def absInfo {A : Type*} [MeasurableSpace A] (b : LogBase) (P Q : Measure A) : ℝ≥0∞ :=
  ∫⁻ x, (max (relativeInfo b P Q x) (-relativeInfo b P Q x)).toENNReal ∂P

/-- Negative information moment in (288), PDF p.41. -/
def negativeInfo {A : Type*} [MeasurableSpace A] (b : LogBase) (P Q : Measure A) : ℝ≥0∞ :=
  ∫⁻ x, (-relativeInfo b P Q x).toENNReal ∂P

/-- Continuous limiting RHS of (292), PDF p.41; explicit infinite/zero cases. -/
def momentKLBound (b : LogBase) (c d : ℝ≥0∞) : EReal :=
  if c = ∞ then ⊤
  else if c = 0 ∧ d = 0 then 0
  else if d = ∞ then (logB b (1 + c.toReal) : EReal)
  else (logB b (1 + c.toReal) - (3 / 2 : ℝ) * c.toReal ^ 2 * logBaseE b /
    ((1 + d.toReal) * (1 + c.toReal) ^ 2 - 1) : ℝ)

example (b : LogBase) : momentKLBound b 0 0 = 0 := by simp [momentKLBound]

example (b : LogBase) (d : ℝ≥0∞) : momentKLBound b ∞ d = ⊤ := by simp [momentKLBound]

example : binary 0 = Measure.dirac true := by simp [binary]

/-- The conditional mean from one common Markov kernel, Lemma 1, PDF p.33. -/
def kernelMean {A : Type*} [MeasurableSpace A] (K : ProbabilityTheory.Kernel A ℝ) (x : A) : ℝ :=
  ∫ z, z ∂K x

/-- Jensen gap from that kernel, with extended outer expectation, (228). -/
def jensenGap {A : Type*} [MeasurableSpace A] (f : ℝ → ℝ)
    (P : Measure A) (K : ProbabilityTheory.Kernel A ℝ) : EReal :=
  eIntegral P (fun x => (f (kernelMean K x) : EReal)) - (f (∫ x, kernelMean K x ∂P) : EReal)

/-- Secondary-branch Lambert root, equivalently gamma ln t = t-1, (435), p.61.
Theorem 33 asserts existence and uniqueness on the stated gamma>1 domain. -/
def tGamma (g : ℝ) : ℝ := sInf {t : ℝ | g < t ∧ g * Real.log t = t - 1}

/-- Exact optimal coefficient (434), before the probability pair is chosen. -/
def hockeyKLConstant (b : LogBase) (g : ℝ) : ℝ := (tGamma g - g) / r b (tGamma g)

/-- Open-interval objective minimum (461); attainment is stated in Theorem 34. -/
def spectrumCoefficient (b : LogBase) (t : ℝ) : ℝ :=
  sInf ((fun g : ℝ => t * hockeyKLConstant b g / (t - g)) '' Ioo 1 t)

/-- Approximation (453)--(454) with the exact printed decimal 1.1791, p.63. -/
def cGammaApprox (b : LogBase) (g : ℝ) : ℝ :=
  let d := (11791 / 10000 : ℝ) * g * Real.log g
  d / ((d + g) * logB b ((d + g) / Real.exp 1) + logBaseE b)

/-- Tail moment zeta (470) expressed through its nonnegative rnDensityReal. -/
def tailMoment {A : Type*} [MeasurableSpace A] (b : LogBase) (a : ℝ) (P Q : Measure A)
    (lo hi : ℝ≥0∞) : ℝ≥0∞ :=
  ∫⁻ t in {t : ℝ | lo < ENNReal.ofReal t ∧ ENNReal.ofReal t < hi},
    (ENNReal.ofReal t) ^ (a - 2) * (1 - informationSpectrum b P Q (elogB b (ENNReal.ofReal t)))

/-- The nonnegative CDF rnDensityReal inverseUpperDensity^(alpha-2) F(log inverseUpperDensity), (471)--(472).
This is pointwise inverseUpperDensity^(alpha-2)-zeta, not a difference of infinite integrals. -/
def cdfMoment {A : Type*} [MeasurableSpace A] (b : LogBase) (a : ℝ) (P Q : Measure A)
    (lo hi : ℝ≥0∞) : ℝ≥0∞ :=
  ∫⁻ t in {t : ℝ | lo < ENNReal.ofReal t ∧ ENNReal.ofReal t < hi},
    (ENNReal.ofReal t) ^ (a - 2) * informationSpectrum b P Q (elogB b (ENNReal.ofReal t))

/-- Nonnegative truncated rnDensityReal moment in Remark 28, PDF p.48. -/
def truncatedSecond {A : Type*} [MeasurableSpace A] (P Q : Measure A) : ℝ≥0∞ :=
  ∫⁻ x, ENNReal.ofReal (if 1 < rnDensityReal P Q x then rnDensityReal P Q x * (rnDensityReal P Q x - 1) else 0) ∂Q

example (b : LogBase) : cGammaApprox b 1 = 0 := by
  simp [cGammaApprox]

example {A : Type*} [MeasurableSpace A] (b : LogBase) (a : ℝ) (P Q : Measure A) (lo : ℝ≥0∞) :
    tailMoment b a P Q lo lo = 0 := by
  have he : {t : ℝ | lo < ENNReal.ofReal t ∧ ENNReal.ofReal t < lo} = ∅ := by
    ext t
    simp only [Set.mem_setOf_eq, Set.mem_empty_iff_false, iff_false]
    exact fun h => (lt_trans h.1 h.2).false
  simp [tailMoment, he]

/-- Nonnegative normalized probability vector on a finite alphabet. -/
def FiniteProbabilityLaw {n : ℕ} (p : Fin n → ℝ) : Prop := (∀ i, 0 ≤ p i) ∧ ∑ i, p i = 1

/-- Full L1 distance and unweighted squared l2 distance for finite laws. -/
def finiteTV {n : ℕ} (p q : Fin n → ℝ) : ℝ := ∑ i, |p i - q i|

/-- Unweighted squared Euclidean distance in (373), PDF p.51. -/
def finiteL2 {n : ℕ} (p q : Fin n → ℝ) : ℝ := ∑ i, (p i - q i) ^ 2

/-- Finite KL on the strictly-positive-reference domain used below. -/
def finiteKL {n : ℕ} (b : LogBase) (p q : Fin n → ℝ) : ℝ :=
  ∑ i, p i * logB b (p i / q i)

/-- Finite chiSquareDiv-square on the strictly-positive-reference domain. -/
def finiteChi {n : ℕ} (p q : Fin n → ℝ) : ℝ := ∑ i, (p i - q i) ^ 2 / q i

/-- Minimum and maximum symbol mass; n>1 in every theorem using them. -/
def minReferenceMass {n : ℕ} (q : Fin n → ℝ) : ℝ := sInf (Set.range q)

/-- Largest finite-alphabet mass, PDF p.56. -/
def qMax {n : ℕ} (q : Fin n → ℝ) : ℝ := sSup (Set.range q)

/-- Reverse essential rnDensityReal bound when Q is strictly positive. -/
def finiteBeta2 {n : ℕ} (p q : Fin n → ℝ) : ℝ := sInf (Set.range (fun i => p i / q i))

/-- Shannon shannonEntropyBase with continuous zero-mass convention, PDF p.52. -/
def shannonEntropyBase {n : ℕ} (b : LogBase) (p : Fin n → ℝ) : ℝ := -∑ i, p i * logB b (p i)

/-- Equiprobable vector. -/
def uniformLaw (n : ℕ) : Fin n → ℝ := fun _ => 1 / (n : ℝ)

/-- Binary shannonEntropyBase, PDF p.52. -/
def binaryEntropyBase (b : LogBase) (p : ℝ) : ℝ := -p * logB b p - (1 - p) * logB b (1 - p)

/-- The two-level attaining law (378), indexed from zero. -/
def entropyMaxLaw (n m : ℕ) (d : ℝ) : Fin n → ℝ := fun i =>
  if i.val < m then 1 / (n : ℝ) + d / (2 * m)
  else 1 / (n : ℝ) - d / (2 * ((n : ℝ) - m))

/-- Threshold sequence (379), PDF p.53. -/
def uniformEntropyThreshold (b : LogBase) (n k : ℕ) : ℝ :=
  if k = 0 then 0 else if k = n - 1 then logB b n
  else binaryEntropyBase b ((k : ℝ) / n) + (k : ℝ) / n * logB b k

/-- The attaining law (381), indexed from zero, PDF p.53. -/
def entropyMinLaw (n k : ℕ) (t : ℝ) : Fin n → ℝ := fun i =>
  if i.val = 0 then 1 - ((k : ℝ) - 1 + t) / n
  else if i.val < k then 1 / (n : ℝ)
  else if i.val = k then t / (n : ℝ) else 0

/-- Balance coefficient (390), for the finite setting of Theorem 30. -/
def balance {n : ℕ} (q : Fin n → ℝ) : ℝ :=
  sInf {z : ℝ | ∃ S : Finset (Fin n), (1 / 2 : ℝ) ≤ ∑ i ∈ S, q i ∧ z = ∑ i ∈ S, q i}

/-- Phi in (391), distinct from the rnDensityReal function (333). -/
def balancePhi (b : LogBase) (p : ℝ) : ℝ :=
  if p = 1 / 2 then logBaseE b / 2 else logB b ((1 - p) / p) / (4 * (1 - 2 * p))

/-- Strong typicality closed relative-coordinate ball, (389), PDF p.54. -/
def RelativeCoordinateTypical {n : ℕ} (q p : Fin n → ℝ) (d : ℝ) : Prop :=
  ∀ i, |p i - q i| ≤ d * q i

/-- Exponent (388) as an extended infimum over the open complement.
The proof (396) takes limits, so a minimum is not substituted for an infimum. -/
def typicalExponent {n : ℕ} (b : LogBase) (q : Fin n → ℝ) (d : ℝ) : ℝ≥0∞ :=
  sInf {z : ℝ≥0∞ | ∃ p : Fin n → ℝ, FiniteProbabilityLaw p ∧ ¬ RelativeCoordinateTypical q p d ∧
    z = ENNReal.ofReal (finiteKL b p q)}

/-- Extended scalar endpoint of f/g; no quotient of infinite limits. -/
def ratioEndpoint (f g : ℝ → ℝ) (t : ℝ≥0∞) : ℝ≥0∞ :=
  if t = 0 then Filter.liminf (fun x : ℝ => ENNReal.ofReal (f x / g x)) (nhdsWithin 0 (Ioi 0))
  else if t = ∞ then Filter.liminf (fun x : ℝ => ENNReal.ofReal (f x / g x)) atTop
  else ENNReal.ofReal (f t.toReal / g t.toReal)

/-- Open scalar interval (163) at fixed betas, including zero betas. -/
def scalarInterval (b1 b2 : ℝ) : Set ℝ :=
  {t | 0 < t ∧ b2 < t ∧ (b1 = 0 ∨ t < b1⁻¹) ∧ t ≠ 1}

/-- Sharp lower-coefficient counterpart of Sharp. -/
def LowerSharp (F G : ClassicalDivergenceFamily.{u}) (D : PairCondition.{u}) (c : ℝ≥0∞) : Prop :=
  IsGreatest {k | ∀ (A : Type u) [MeasurableSpace A] (P Q : Measure A)
    [IsProbabilityMeasure P] [IsProbabilityMeasure Q], D P Q → k * G P Q ≤ F P Q} c

/-- Signed u_alpha in (511); the printed nonnegative codomain is a typo for alpha<1. -/
def uAlpha (b : LogBase) (a : ℝ) (t : ℝ≥0∞) : EReal :=
  ((a - 1 : ℝ) : EReal) * ((entropyHellingerKernel b a t)⁻¹ : EReal)

/-- Logarithmic KL transform (512)--(515); toENNReal is the positive part. -/
def renyiKLTransform (b : LogBase) (a : ℝ) (t D : ℝ≥0∞) : EReal :=
  ((1 / (a - 1) : ℝ) : EReal) * elogB b ((1 + uAlpha b a t * (D : EReal)).toENNReal)

/-- Complete lower expression in parts (a),(b) of Theorem 38. -/
def renyiLower {A : Type*} [MeasurableSpace A] (b : LogBase) (a : ℝ) (P Q : Measure A) : EReal :=
  if a < 1 then renyiKLTransform b a (upperDensity P Q) (kl b P Q)
  else max (kl b P Q : EReal) (renyiKLTransform b a (ENNReal.ofReal (inverseUpperDensity Q P)) (kl b P Q))

/-- Complete upper expression in parts (a),(b) of Theorem 38. -/
def renyiUpper {A : Type*} [MeasurableSpace A] (b : LogBase) (a : ℝ) (P Q : Measure A) : EReal :=
  if a < 1 then min (kl b P Q : EReal) (renyiKLTransform b a (ENNReal.ofReal (inverseUpperDensity Q P)) (kl b P Q))
  else min (elogB b (upperDensity P Q)) (renyiKLTransform b a (upperDensity P Q) (kl b P Q))

/-- exp_b(-D), with its zero endpoint at infinite D. -/
def expNeg (b : LogBase) (D : ℝ≥0∞) : ℝ≥0∞ :=
  if D = ∞ then 0 else ENNReal.ofReal (expB b (-D.toReal))

/-- Delta-bar of (517), with the square root covering the whole minimum. -/
def deltaBar (b : LogBase) (D : ℝ≥0∞) : ℝ≥0∞ :=
  (min (D / ENNReal.ofReal (2 * logBaseE b)) (1 - expNeg b D)) ^ (1 / 2 : ℝ)

/-- Scalar endpoint-safe TV transform (516). -/
def renyiDeltaBound (b : LogBase) (a : ℝ) (b1 : ℝ) (d : ℝ≥0∞) : EReal :=
  ((1 / (a - 1) : ℝ) : EReal) * elogB b ((1 + (d : EReal) *
    ((((ENNReal.ofReal b1) ^ (1 - a) : ℝ≥0∞) : EReal) - 1) /
      ((1 - b1 : ℝ) : EReal)).toENNReal)

example (n : ℕ) : finiteTV (uniformLaw n) (uniformLaw n) = 0 := by
  simp [finiteTV]

example (b : LogBase) : binaryEntropyBase b 0 = 0 := by simp [binaryEntropyBase, logB]

example (b : LogBase) (n : ℕ) : uniformEntropyThreshold b n 0 = 0 := by simp [uniformEntropyThreshold]

example {n : ℕ} (b : LogBase) (q : Fin n → ℝ) (d : ℝ)
    (h : ∀ p : Fin n → ℝ, FiniteProbabilityLaw p → RelativeCoordinateTypical q p d) : typicalExponent b q d = ∞ := by
  have he : {z : ℝ≥0∞ | ∃ p : Fin n → ℝ, FiniteProbabilityLaw p ∧ ¬ RelativeCoordinateTypical q p d ∧
      z = ENNReal.ofReal (finiteKL b p q)} = ∅ := by
    ext z
    simp only [Set.mem_setOf_eq, Set.mem_empty_iff_false, iff_false]
    rintro ⟨p, hp, hn, _⟩
    exact hn (h p hp)
  simp [typicalExponent, he]

/-- Definition-family sanity checks: normalized and endpoint values, not target proofs. -/
example (f : ℝ → ℝ) : generatorConjugate f 1 = f 1 := by simp [generatorConjugate]

example (f : ℝ → ℝ) : generatorValue f 1 = (f 1 : EReal) := by simp [generatorValue]

example (b : LogBase) : elogB b 1 = 0 := by simp [elogB]

example {A : Type*} [MeasurableSpace A] (P : Measure A) : fullVariation P P = 0 := by simp [fullVariation]

example {A : Type*} [MeasurableSpace A] (P : Measure A) [IsProbabilityMeasure P] (b : LogBase) :
    kl b P P = 0 := by simp [kl]

example {A : Type*} [MeasurableSpace A] (P Q : Measure A) :
    hellinger 1 P Q = InformationTheory.klDiv P Q := by simp [hellinger]

example {A : Type*} [MeasurableSpace A] (P Q : Measure A) (b : LogBase) :
    renyiDiv b 1 P Q = (kl b P Q : EReal) := by simp [renyiDiv]

example {A : Type*} [MeasurableSpace A] (P Q : Measure A) : martonSum P Q = martonSum Q P := by
  simp [martonSum, add_comm]

example {A : Type*} [MeasurableSpace A] (P Q : Measure A) (h : ¬ P ≪ Q) : upperDensity P Q = ∞ := by
  simp [upperDensity, h]

example {A : Type*} [MeasurableSpace A] (P Q : Measure A) (h : ¬ P ≪ Q) : inverseUpperDensity P Q = 0 := by
  simp [inverseUpperDensity, upperDensity, h]

example (b : LogBase) : entropyKernel b 1 = 1 := by simp [entropyKernel]

example (b : LogBase) : jsTriangularKernel b 0 = ENNReal.ofReal (logB b 2) := by
  simp [jsTriangularKernel]

example : triangularTVKernel ∞ = 1 := by simp [triangularTVKernel]

example (b : LogBase) (a : ℝ) : jsHellingerKernel b a 0 = ENNReal.ofReal (logB b 2) := by
  simp [jsHellingerKernel]

example (a : ℝ) : phiAlpha a 1 = a / (a - 1) := by simp [phiAlpha]

example (b : LogBase) : balancePhi b (1 / 2) = logBaseE b / 2 := by simp [balancePhi]

example (b : LogBase) : expNeg b ∞ = 0 := by simp [expNeg]

example (n : ℕ) (p : Fin n → ℝ) : finiteTV p p = 0 ∧ finiteL2 p p = 0 := by
  simp [finiteTV, finiteL2]

example (b : LogBase) : shannonEntropyBase b (fun _ : Fin 1 => (1 : ℝ)) = 0 := by
  simp [shannonEntropyBase, logB]

end QAlgorithms.Papers.Independent.Intakenext100.P28
Source
fff-divergence Inequalities, arXiv:1508.00335v7, https://arxiv.org/abs/1508.00335v7
Read-back

What the Lean code literally says, in plain math · gpt-6.1-sol

QAlgorithms.Papers.Independent.Intakenext100.P28.ClassicalDivergenceFamily

A classical divergence family is a function that, for every type AAA in the universe uuu and every measurable-space structure on AAA, assigns a value in [0,∞][0,\infty][0,∞] to each ordered pair of measures P,QP,QP,Q on AAA. There are no requirements on this function or on the measures: zero measures, measures of infinite mass, and measures on an empty space are included.

QAlgorithms.Papers.Independent.Intakenext100.P28.FiniteProbabilityLaw

For any natural number nnn, including 000, and any real-valued vector p=(pi)i=0n−1p=(p_i)_{i=0}^{n-1}p=(pi​)i=0n−1​, the predicate FiniteProbabilityLaw(p)\mathrm{FiniteProbabilityLaw}(p)FiniteProbabilityLaw(p) means precisely that pi≥0p_i\ge0pi​≥0 for every index iii and ∑i=0n−1pi=1\sum_{i=0}^{n-1}p_i=1∑i=0n−1​pi​=1. When n=0n=0n=0, the coordinate condition is vacuous but the empty sum is 000, so the predicate is false.

QAlgorithms.Papers.Independent.Intakenext100.P28.Generator

For any function f:R→Rf:\mathbb R\to\mathbb Rf:R→R, this predicate means that fff is convex on (0,∞)(0,\infty)(0,∞) and f(1)=0f(1)=0f(1)=0. Explicitly, for all x,y>0x,y>0x,y>0 and all nonnegative real weights a,ca,ca,c with a+c=1a+c=1a+c=1,

f(ax+cy)≤af(x)+cf(y),f(ax+cy)\le a f(x)+c f(y),f(ax+cy)≤af(x)+cf(y),

and f(1)=0f(1)=0f(1)=0. The predicate places no restrictions on fff at zero or at negative arguments.

QAlgorithms.Papers.Independent.Intakenext100.P28.KLLinearBound

For a real base b>1b>1b>1 and constants c1,c2∈[0,∞]c_1,c_2\in[0,\infty]c1​,c2​∈[0,∞], this defines the following proposition: for every type AAA in universe uuu, every measurable-space structure on AAA, and every pair of probability measures P,QP,QP,Q on AAA such that PPP is absolutely continuous with respect to QQQ,

1ln⁡bDKL(P∥Q)≤1ln⁡b(c1V(P,Q)+c2X(P,Q)).\frac1{\ln b}D_{\mathrm{KL}}(P\|Q) \le \frac1{\ln b}\left(c_1V(P,Q)+c_2X(P,Q)\right).lnb1​DKL​(P∥Q)≤lnb1​(c1​V(P,Q)+c2​X(P,Q)).

Here DKLD_{\mathrm{KL}}DKL​ is the natural-logarithm Kullback–Leibler divergence. For measures R,SR,SR,S, put ρR,S(x)=(dR/dS)(x)\rho_{R,S}(x)=(dR/dS)(x)ρR,S​(x)=(dR/dS)(x) converted to a real number, with an infinite derivative converted to zero. The quantities in the inequality are defined by

V(P,Q)=∫[ ∣ρP,P+Q(x)−ρQ,P+Q(x)∣ ]+ d(P+Q)(x),X(P,Q)={∫[(ρP,Q(x)−1)2]+ dQ(x),P≪Q,∞,P≪̸Q,V(P,Q)=\int \left[\,|\rho_{P,P+Q}(x)-\rho_{Q,P+Q}(x)|\,\right]_+\,d(P+Q)(x), \qquad X(P,Q)= \begin{cases} \displaystyle\int[(\rho_{P,Q}(x)-1)^2]_+\,dQ(x),&P\ll Q,\\ \infty,&P\not\ll Q, \end{cases}V(P,Q)=∫[∣ρP,P+Q​(x)−ρQ,P+Q​(x)∣]+​d(P+Q)(x),X(P,Q)=⎩⎨⎧​∫[(ρP,Q​(x)−1)2]+​dQ(x),∞,​P≪Q,P≪Q,​

where these are nonnegative extended integrals and [z]+=max⁡(z,0)[z]_+=\max(z,0)[z]+​=max(z,0). All arithmetic in the bound is in [0,∞][0,\infty][0,∞], so the constants and divergences may be infinite, and 0⋅∞=00\cdot\infty=00⋅∞=0.

QAlgorithms.Papers.Independent.Intakenext100.P28.LogBase

A logarithm base consists of a real number bbb together with a proof that 1<b1<b1<b. No further data or conditions are required.

QAlgorithms.Papers.Independent.Intakenext100.P28.LowerSharp

Let FFF and GGG each assign a value in [0,∞][0,\infty][0,∞] to every ordered pair of measures on every measurable space whose underlying type lies in universe uuu, let DDD assign a proposition to each such pair, and let c∈[0,∞]c\in[0,\infty]c∈[0,∞]. This is the proposition that ccc is the greatest element of the set of all k∈[0,∞]k\in[0,\infty]k∈[0,∞] such that, for every such underlying type AAA, every measurable-space structure on AAA, and every pair of probability measures P,QP,QP,Q on AAA,

D(P,Q) ⟹ k G(P,Q)≤F(P,Q).D(P,Q)\ \Longrightarrow\ k\,G(P,Q)\le F(P,Q).D(P,Q) ⟹ kG(P,Q)≤F(P,Q).

Explicitly, ccc itself must satisfy this universal inequality, and every kkk satisfying it must obey k≤ck\le ck≤c. The products and inequalities are in the extended nonnegative reals, including 0⋅∞=00\cdot\infty=00⋅∞=0, and c=+∞c=+\inftyc=+∞ is allowed. If no probability-measure pair satisfies DDD, every kkk satisfies the universal condition, so this proposition holds exactly when c=+∞c=+\inftyc=+∞.

QAlgorithms.Papers.Independent.Intakenext100.P28.PairCondition

A pair condition is a predicate that, for every type AAA in the universe uuu and every measurable-space structure on AAA, assigns a proposition to each ordered pair of measures P,QP,QP,Q on AAA. No restrictions are imposed on the predicate or on the measures, which may have zero or infinite mass and may be defined on an empty space.

QAlgorithms.Papers.Independent.Intakenext100.P28.PositiveGenerator

For any function f:R→Rf:\mathbb R\to\mathbb Rf:R→R, the property PositiveGenerator(f)\mathrm{PositiveGenerator}(f)PositiveGenerator(f) means that fff is convex on (0,∞)(0,\infty)(0,∞), that f(1)=0f(1)=0f(1)=0, and that f(t)>0f(t)>0f(t)>0 for every real t>0t>0t>0 with t≠1t\ne1t=1. It imposes no condition on the values of fff at nonpositive arguments.

QAlgorithms.Papers.Independent.Intakenext100.P28.RelativeCoordinateTypical

For any natural number nnn, any two real-valued vectors q=(qi)i=0n−1q=(q_i)_{i=0}^{n-1}q=(qi​)i=0n−1​ and p=(pi)i=0n−1p=(p_i)_{i=0}^{n-1}p=(pi​)i=0n−1​, and any real ddd, this is the proposition

∀i∈{0,…,n−1},∣pi−qi∣≤dqi.\forall i\in\{0,\ldots,n-1\},\qquad |p_i-q_i|\le d q_i.∀i∈{0,…,n−1},∣pi​−qi​∣≤dqi​.

Neither vector is assumed to be nonnegative or to sum to one, and ddd need not be nonnegative. At a coordinate where qi=0q_i=0qi​=0, the condition requires pi=0p_i=0pi​=0; if dqi<0d q_i<0dqi​<0 at any coordinate, the proposition cannot hold. When n=0n=0n=0, it holds vacuously.

QAlgorithms.Papers.Independent.Intakenext100.P28.Sharp

Let F,GF,GF,G each assign a value in [0,∞][0,\infty][0,∞] to every ordered pair of measures on every measurable type in the universe uuu, let DDD assign a proposition to every such pair, and let c∈[0,∞]c\in[0,\infty]c∈[0,∞]. The sharpness property means that ccc is the least element of the set of constants k∈[0,∞]k\in[0,\infty]k∈[0,∞] such that, for every type AAA in that universe, every measurable-space structure on AAA, and every pair of probability measures P,QP,QP,Q satisfying D(P,Q)D(P,Q)D(P,Q), one has F(P,Q)≤kG(P,Q)F(P,Q)\le kG(P,Q)F(P,Q)≤kG(P,Q). Thus ccc itself satisfies all these inequalities and c≤kc\le kc≤k for every other constant satisfying them. Multiplication is extended nonnegative multiplication, with 0⋅∞=∞⋅0=00\cdot\infty=\infty\cdot0=00⋅∞=∞⋅0=0; ∞\infty∞ is an allowed constant. If no probability pair satisfies DDD, every constant qualifies and the least one is 000.

QAlgorithms.Papers.Independent.Intakenext100.P28.StrictAtOne

For any function f:R→Rf:\mathbb R\to\mathbb Rf:R→R, this predicate means that for every three real numbers x,y,ax,y,ax,y,a satisfying

0<x<1<y,0<a<1,ax+(1−a)y=1,0<x<1<y,\qquad 0<a<1,\qquad ax+(1-a)y=1,0<x<1<y,0<a<1,ax+(1−a)y=1,

one has

f(1)<af(x)+(1−a)f(y).f(1)<a f(x)+(1-a)f(y).f(1)<af(x)+(1−a)f(y).

There is no separate assumption of convexity or of f(1)=0f(1)=0f(1)=0; the predicate requires this strict inequality only for the triples satisfying all the displayed conditions.

QAlgorithms.Papers.Independent.Intakenext100.P28.UniversalBound

Let F,GF,GF,G each assign a value in [0,∞][0,\infty][0,∞] to every ordered pair of measures on every measurable type in the universe uuu, let DDD assign a proposition to every such pair, and let c∈[0,∞]c\in[0,\infty]c∈[0,∞]. The universal-bound property means that for every type AAA in that universe, every measurable-space structure on AAA, and every pair of probability measures P,QP,QP,Q on AAA satisfying D(P,Q)D(P,Q)D(P,Q),

F(P,Q)≤c G(P,Q).F(P,Q)\le c\,G(P,Q).F(P,Q)≤cG(P,Q).

The inequality uses extended nonnegative multiplication, including 0⋅∞=∞⋅0=00\cdot\infty=\infty\cdot0=00⋅∞=∞⋅0=0, and permits c=∞c=\inftyc=∞. If no probability pair satisfies DDD, the property holds vacuously for every ccc.

QAlgorithms.Papers.Independent.Intakenext100.P28.absInfo

For any measurable space AAA, any real base b>1b>1b>1, and any measures P,QP,QP,Q on AAA, let ρ(x)=dPdQ(x)∈[0,∞]\rho(x)=\frac{dP}{dQ}(x)\in[0,\infty]ρ(x)=dQdP​(x)∈[0,∞] denote the Radon–Nikodym derivative supplied by the measure theory, and put I(x)=log⁡(ρ(x))/ln⁡bI(x)=\log(\rho(x))/\ln bI(x)=log(ρ(x))/lnb, using the extended logarithm with log⁡0=−∞\log 0=-\inftylog0=−∞ and log⁡∞=+∞\log\infty=+\inftylog∞=+∞. Define

absInfo⁡b(P,Q)=∫A[max⁡{I(x),−I(x)}]+ dP(x)∈[0,∞],\operatorname{absInfo}_b(P,Q) =\int_A \bigl[\max\{I(x),-I(x)\}\bigr]_+\,dP(x)\in[0,\infty],absInfob​(P,Q)=∫A​[max{I(x),−I(x)}]+​dP(x)∈[0,∞],

where [z]+[z]_+[z]+​ converts an extended real to a nonnegative extended real by replacing negative values, including −∞-\infty−∞, by zero and retaining nonnegative values, including +∞+\infty+∞. No probability, finiteness, or absolute-continuity assumptions are imposed on P,QP,QP,Q; the integral may be infinite.

QAlgorithms.Papers.Independent.Intakenext100.P28.acPairs

For every type AAA in the universe uuu, every measurable-space structure on AAA, and all measures P,QP,QP,Q on AAA, this pair condition holds exactly when PPP is absolutely continuous with respect to QQQ: every measurable set of QQQ-measure zero has PPP-measure zero. No probability or finiteness assumption is imposed.

QAlgorithms.Papers.Independent.Intakenext100.P28.balance

For every natural number nnn and arbitrary real vector q=(qi)i=0n−1q=(q_i)_{i=0}^{n-1}q=(qi​)i=0n−1​, this defines

inf⁡{∑i∈Sqi:S⊆{0,…,n−1},12≤∑i∈Sqi}.\inf\left\{\sum_{i\in S}q_i: S\subseteq\{0,\ldots,n-1\},\quad \frac12\le\sum_{i\in S}q_i\right\}.inf{i∈S∑​qi​:S⊆{0,…,n−1},21​≤i∈S∑​qi​}.

Each SSS is a finite subset, so each selected coordinate is counted once. No positivity or normalization is assumed for qqq. If any subset has sum at least 1/21/21/2, the value is the smallest such subset sum. If no subset satisfies that condition, the set is empty and the real infimum operation returns 000; this occurs in particular when n=0n=0n=0, since the only subset then has sum 000.

QAlgorithms.Papers.Independent.Intakenext100.P28.balancePhi

For a real base β>1\beta>1β>1 and any real ppp, this defines the real number

{12ln⁡β,p=12,ln⁡((1−p)/p)4(1−2p)ln⁡β,p≠12.\begin{cases} \dfrac{1}{2\ln\beta},&p=\tfrac12,\\[4pt] \dfrac{\ln((1-p)/p)}{4(1-2p)\ln\beta},&p\ne\tfrac12. \end{cases}⎩⎨⎧​2lnβ1​,4(1−2p)lnβln((1−p)/p)​,​p=21​,p=21​.​

There is no restriction that ppp lie between 000 and 111. Division and logarithms use their total real-valued conventions: division by zero is zero, ln⁡0=0\ln 0=0ln0=0, and the real logarithm of a negative argument is the logarithm of its absolute value. In particular, the defined value is zero at both p=0p=0p=0 and p=1p=1p=1.

QAlgorithms.Papers.Independent.Intakenext100.P28.binary

For every real number ppp, this defines a measure on the two-point set {false,true}\{\mathrm{false},\mathrm{true}\}{false,true} by

Bp=max⁡(p,0) δfalse+max⁡(1−p,0) δtrue,B_p=\max(p,0)\,\delta_{\mathrm{false}} +\max(1-p,0)\,\delta_{\mathrm{true}},Bp​=max(p,0)δfalse​+max(1−p,0)δtrue​,

where the coefficients are viewed as nonnegative extended reals and δx\delta_xδx​ is the Dirac measure at xxx. Thus the masses at false\mathrm{false}false and true\mathrm{true}true are respectively max⁡(p,0)\max(p,0)max(p,0) and max⁡(1−p,0)\max(1-p,0)max(1−p,0). The parameter is unrestricted: this is a probability measure when 0≤p≤10\le p\le10≤p≤1, with B0=δtrueB_0=\delta_{\mathrm{true}}B0​=δtrue​ and B1=δfalseB_1=\delta_{\mathrm{false}}B1​=δfalse​; outside that interval the negative coefficient is truncated to zero and the total mass exceeds 111.

QAlgorithms.Papers.Independent.Intakenext100.P28.binaryEntropyBase

For every real logarithm base b>1b>1b>1 and every real number ppp, this defines

−p ln⁡pln⁡b−(1−p) ln⁡(1−p)ln⁡b.-p\,\frac{\ln p}{\ln b}-(1-p)\,\frac{\ln(1-p)}{\ln b}.−plnblnp​−(1−p)lnbln(1−p)​.

There is no restriction that ppp lie in [0,1][0,1][0,1]. The real logarithm satisfies ln⁡0=0\ln 0=0ln0=0 and ln⁡x=ln⁡∣x∣\ln x=\ln|x|lnx=ln∣x∣ for negative xxx, so the expression is defined for every real ppp; in particular, its value is 000 at both p=0p=0p=0 and p=1p=1p=1.

QAlgorithms.Papers.Independent.Intakenext100.P28.binaryKL

For every real logarithm base b>1b>1b>1 and all real numbers x,yx,yx,y, this defines the real number

x ln⁡(x/y)ln⁡b+(1−x) ln⁡((1−x)/(1−y))ln⁡b.x\,\frac{\ln(x/y)}{\ln b} +(1-x)\,\frac{\ln\bigl((1-x)/(1-y)\bigr)}{\ln b}.xlnbln(x/y)​+(1−x)lnbln((1−x)/(1−y))​.

Neither xxx nor yyy is restricted to [0,1][0,1][0,1]. The formula uses total real division, so division by zero has value 000, and the total real logarithm, for which ln⁡0=0\ln0=0ln0=0 and ln⁡t=ln⁡∣t∣\ln t=\ln|t|lnt=ln∣t∣ when t<0t<0t<0. Consequently the definition also assigns real values when y=0y=0y=0 or y=1y=1y=1, or when a logarithm argument is zero or negative.

QAlgorithms.Papers.Independent.Intakenext100.P28.cGammaApprox

For any logarithm base β=b.val>1\beta=b.\mathrm{val}>1β=b.val>1 and any real ggg, put

d=1179110000 gln⁡g.d=\frac{11791}{10000}\,g\ln g.d=1000011791​glng.

This defines the real number

cGammaApprox⁡(b,g)=d(d+g) ln⁡ ⁣((d+g)/exp⁡(1))ln⁡β+1ln⁡β.\operatorname{cGammaApprox}(b,g)= \frac{d} {(d+g)\,\dfrac{\ln\!\bigl((d+g)/\exp(1)\bigr)}{\ln\beta} +\dfrac1{\ln\beta}}.cGammaApprox(b,g)=(d+g)lnβln((d+g)/exp(1))​+lnβ1​d​.

There is no positivity assumption on ggg or d+gd+gd+g, and no nonzero-denominator assumption. The real logarithm satisfies ln⁡0=0\ln0=0ln0=0 and ln⁡x=ln⁡∣x∣\ln x=\ln|x|lnx=ln∣x∣ for negative xxx, and real division by zero gives 000.

QAlgorithms.Papers.Independent.Intakenext100.P28.cdfMoment

For any measurable space AAA, any logarithm base b>1b>1b>1, any real aaa, any measures P,QP,QP,Q on AAA, and any ℓ,h∈[0,∞]\ell,h\in[0,\infty]ℓ,h∈[0,∞], let [t]+=max⁡(t,0)[t]_+=\max(t,0)[t]+​=max(t,0), regarded as an extended nonnegative real, let ρ(x)=(dP/dQ)(x)∈[0,∞]\rho(x)=(dP/dQ)(x)\in[0,\infty]ρ(x)=(dP/dQ)(x)∈[0,∞], and put Lb(s)=log⁡(s)/log⁡bL_b(s)=\log(s)/\log bLb​(s)=log(s)/logb using the extended nonnegative logarithm, with Lb(0)=−∞L_b(0)=-\inftyLb​(0)=−∞ and Lb(∞)=+∞L_b(\infty)=+\inftyLb​(∞)=+∞. The defined quantity is

∫{t∈R: ℓ<[t]+<h} ⁣−[t]+ a−2 P{x:Lb(ρ(x))≤Lb([t]+)} dt,\int_{\{t\in\mathbb R:\,\ell<[t]_+<h\}}^{\! -} [t]_+^{\,a-2}\, P\{x:L_b(\rho(x))\le L_b([t]_+)\}\,dt,∫{t∈R:ℓ<[t]+​<h}−​[t]+a−2​P{x:Lb​(ρ(x))≤Lb​([t]+​)}dt,

where the integral is the extended nonnegative lower integral with respect to real Lebesgue measure. No probability, absolute continuity, measurability of the integrand, or finiteness assumptions are imposed, and the result may be infinite. Every integration point in the domain is a finite positive real; if h≤ℓh\le\ellh≤ℓ, including h=0h=0h=0 or ℓ=∞\ell=\inftyℓ=∞, the domain is empty and the value is 000.

QAlgorithms.Papers.Independent.Intakenext100.P28.chiSquareDiv

For any type AAA equipped with a measurable space and any measures P,QP,QP,Q on AAA, the definition is

chiSquareDiv(P,Q)={∫A−(ρ(x)−1)2 dQ(x),P≪Q,+∞,P≪̸Q,\mathrm{chiSquareDiv}(P,Q)= \begin{cases} \displaystyle\int_A^- (\rho(x)-1)^2\,dQ(x),&P\ll Q,\\ +\infty,&P\not\ll Q, \end{cases}chiSquareDiv(P,Q)=⎩⎨⎧​∫A−​(ρ(x)−1)2dQ(x),+∞,​P≪Q,P≪Q,​

where ρ(x)\rho(x)ρ(x) is the real conversion of (dP/dQ)(x)(dP/dQ)(x)(dP/dQ)(x), with an infinite derivative converted to 000, and the squared integrand is converted to a nonnegative extended real. The measures need not be finite or probability measures, and the integral may be infinite even in the absolutely continuous case.

QAlgorithms.Papers.Independent.Intakenext100.P28.deltaBar

For any real base β>1\beta>1β>1 and any D∈[0,∞]D\in[0,\infty]D∈[0,∞], this defines the nonnegative extended real number

{1,D=+∞,min⁡ ⁣{dln⁡β2, 1−exp⁡(−dln⁡β)},D<+∞,d∈[0,∞) the real value of D.\begin{cases} 1,&D=+\infty,\\[3pt] \displaystyle \sqrt{\min\!\left\{\frac{d\ln\beta}{2},\, 1-\exp(-d\ln\beta)\right\}}, &D<+\infty,\quad d\in[0,\infty)\text{ the real value of }D. \end{cases}⎩⎨⎧​1,min{2dlnβ​,1−exp(−dlnβ)}​,​D=+∞,D<+∞,d∈[0,∞) the real value of D.​

Equivalently, the original expression takes the minimum of D/(2/ln⁡β)D/(2/\ln\beta)D/(2/lnβ) and 1−E1-E1−E, where E=0E=0E=0 for infinite DDD and E=exp⁡(−dln⁡β)E=\exp(-d\ln\beta)E=exp(−dlnβ) for finite DDD, and then raises that minimum to the real power 1/21/21/2 in [0,∞][0,\infty][0,∞]. Subtraction in [0,∞][0,\infty][0,∞] is truncated at zero. The case D=0D=0D=0 is included and gives zero.

QAlgorithms.Papers.Independent.Intakenext100.P28.densityInterval

For any type AAA equipped with a measurable space and any measures P,QP,QP,Q on AAA, define U(P,Q)=ess sup⁡Q(dP/dQ)U(P,Q)=\operatorname*{ess\,sup}_{Q}(dP/dQ)U(P,Q)=esssupQ​(dP/dQ) when P≪QP\ll QP≪Q, and U(P,Q)=∞U(P,Q)=\inftyU(P,Q)=∞ otherwise; define L(Q,P)=1/U(Q,P)L(Q,P)=1/U(Q,P)L(Q,P)=1/U(Q,P) when 0<U(Q,P)<∞0<U(Q,P)<\infty0<U(Q,P)<∞, and L(Q,P)=0L(Q,P)=0L(Q,P)=0 when U(Q,P)U(Q,P)U(Q,P) is either 000 or ∞\infty∞. This defines the set of real numbers

{t∈R:L(Q,P)<t,max⁡{t,0}<U(P,Q),t≠1},\left\{t\in\mathbb R: L(Q,P)<t,\quad \max\{t,0\}<U(P,Q),\quad t\ne1 \right\},{t∈R:L(Q,P)<t,max{t,0}<U(P,Q),t=1},

where max⁡{t,0}\max\{t,0\}max{t,0} is regarded as an element of [0,∞][0,\infty][0,∞]. Both bounds are strict, and 111 is excluded separately. Since the lower bound is nonnegative, every member is positive. No probability, finiteness, or absolute-continuity assumptions are required, and the resulting set may be empty.

QAlgorithms.Papers.Independent.Intakenext100.P28.eIntegral

For any type AAA equipped with a measurable space, any measure PPP on AAA, and any function h:A→[−∞,+∞]h:A\to[-\infty,+\infty]h:A→[−∞,+∞], this defines

∫A−h+(x) dP(x)−∫A−h−(x) dP(x)\int_A^- h^+(x)\,dP(x)-\int_A^- h^-(x)\,dP(x)∫A−​h+(x)dP(x)−∫A−​h−(x)dP(x)

as an extended real number, where h+(x)h^+(x)h+(x) is the nonnegative part of h(x)h(x)h(x), h−(x)h^-(x)h−(x) is the nonnegative part of −h(x)-h(x)−h(x), and both integrals are nonnegative extended integrals, embedded into the extended reals before subtraction. No measurability or integrability hypothesis is imposed on hhh, and neither integral is required to be finite; the subtraction uses the total extended-real arithmetic even when both integrals are infinite.

QAlgorithms.Papers.Independent.Intakenext100.P28.elogB

For a logarithm base with real value b>1b>1b>1 and any extended nonnegative real number t∈[0,+∞]t\in[0,+\infty]t∈[0,+∞], this defines the extended real number

log⁡tlog⁡b,\frac{\log t}{\log b},logblogt​,

using the extended logarithm, whose values at 000 and +∞+\infty+∞ are −∞-\infty−∞ and +∞+\infty+∞, respectively. Consequently, these are also the values of this definition at those two endpoints.

QAlgorithms.Papers.Independent.Intakenext100.P28.entropyHellingerKernel

For a logarithm base with real value b>1b>1b>1, an arbitrary real parameter aaa, and t∈[0,∞]t\in[0,\infty]t∈[0,∞], this function takes values in [0,∞][0,\infty][0,∞] and is defined by

{max⁡ ⁣{1ln⁡b,0},t=0,max⁡ ⁣{1aln⁡b,0},t=1,∞,t=∞ and a<1,0,t=∞ and a≥1,max⁡ ⁣{(1−a)sln⁡s+1−sln⁡b1−sa+as−a, 0},0<t<∞, t≠1,\begin{cases} \displaystyle \max\!\left\{\frac1{\ln b},0\right\},&t=0,\\[2mm] \displaystyle \max\!\left\{\frac1{a\ln b},0\right\},&t=1,\\[2mm] \infty,&t=\infty\ \text{and }a<1,\\ 0,&t=\infty\ \text{and }a\ge1,\\[1mm] \displaystyle \max\!\left\{ \frac{(1-a)\dfrac{s\ln s+1-s}{\ln b}} {1-s^a+as-a},\,0 \right\},&0<t<\infty,\ t\ne1, \end{cases}⎩⎨⎧​max{lnb1​,0},max{alnb1​,0},∞,0,max⎩⎨⎧​1−sa+as−a(1−a)lnbslns+1−s​​,0⎭⎬⎫​,​t=0,t=1,t=∞ and a<1,t=∞ and a≥1,0<t<∞, t=1,​

where sss is the finite real value of ttt in the last case and sas^asa is the real power. Each displayed maximum represents conversion of a real number to an extended nonnegative real by truncating negative values to zero. Real division by zero is defined to be 000, and no restriction excludes a=0a=0a=0 or a=1a=1a=1; for either of those parameters the last branch is 000.

QAlgorithms.Papers.Independent.Intakenext100.P28.entropyKernel

For a logarithm base with real value b>1b>1b>1 and every real number ttt, this real-valued function is

{1,t=1,tln⁡t+1−tln⁡bt−1ln⁡b−ln⁡tln⁡b,t≠1.\begin{cases} 1,&t=1,\\[2mm] \displaystyle \frac{\dfrac{t\ln t+1-t}{\ln b}} {\dfrac{t-1}{\ln b}-\dfrac{\ln t}{\ln b}}, &t\ne1. \end{cases}⎩⎨⎧​1,lnbt−1​−lnblnt​lnbtlnt+1−t​​,​t=1,t=1.​

Here the real logarithm is total: ln⁡0=0\ln0=0ln0=0, and for negative arguments ln⁡t=ln⁡∣t∣\ln t=\ln|t|lnt=ln∣t∣; real division by zero is defined to be 000. Thus zero and negative inputs are included, and the value at t=0t=0t=0 is −1-1−1.

QAlgorithms.Papers.Independent.Intakenext100.P28.entropyMaxLaw

For every pair of natural numbers n,mn,mn,m and every real number ddd, this defines a real-valued function on the indices 0,…,n−10,\ldots,n-10,…,n−1 by

pi={1n+d2m,i<m,1n−d2(n−m),i≥m.p_i= \begin{cases} \displaystyle \frac1n+\frac{d}{2m},&i<m,\\[4pt] \displaystyle \frac1n-\frac{d}{2(n-m)},&i\ge m. \end{cases}pi​=⎩⎨⎧​n1​+2md​,n1​−2(n−m)d​,​i<m,i≥m.​

Here n−mn-mn−m in the denominator is subtraction in R\mathbb RR, after converting nnn and mmm to real numbers. No restriction on mmm relative to nnn, or on ddd, is imposed, and the definition does not assert nonnegativity or normalization. Real division by zero equals 000. If n=0n=0n=0, the domain is empty; if m=0m=0m=0, every existing index uses the second branch; if m≥nm\ge nm≥n, every existing index uses the first branch.

QAlgorithms.Papers.Independent.Intakenext100.P28.entropyMinLaw

For every pair of natural numbers n,kn,kn,k and every real number ttt, this defines a real-valued function on the indices 0,…,n−10,\ldots,n-10,…,n−1 by

pi={1−k−1+tn,i=0,1n,i≠0 and i<k,tn,i≠0 and i=k,0,otherwise.p_i= \begin{cases} \displaystyle 1-\frac{k-1+t}{n},&i=0,\\[5pt] \displaystyle \frac1n,&i\ne0\ \text{and}\ i<k,\\[5pt] \displaystyle \frac{t}{n},&i\ne0\ \text{and}\ i=k,\\[5pt] 0,&\text{otherwise}. \end{cases}pi​=⎩⎨⎧​1−nk−1+t​,n1​,nt​,0,​i=0,i=0 and i<k,i=0 and i=k,otherwise.​

The subtraction k−1k-1k−1 in the numerator is real subtraction after converting kkk to a real number, so it equals −1-1−1 when k=0k=0k=0. No restriction on kkk relative to nnn, or on ttt, is imposed, and no nonnegativity or normalization is asserted. Real division by zero equals 000. If n=0n=0n=0, the domain is empty. If k=0k=0k=0 and n>0n>0n>0, the coordinate at 000 uses the first branch and every other coordinate is 000; if k≥nk\ge nk≥n, there is no coordinate with index kkk.

QAlgorithms.Papers.Independent.Intakenext100.P28.exactPairs

For arbitrary real numbers b1,b2b_1,b_2b1​,b2​, every type AAA in the universe uuu, every measurable-space structure on AAA, and all measures P,QP,QP,Q on AAA, define U(P,Q)U(P,Q)U(P,Q) to be the QQQ-essential supremum of the Radon–Nikodym derivative dP/dQdP/dQdP/dQ when PPP is absolutely continuous with respect to QQQ, and to be ∞\infty∞ otherwise. This pair condition holds exactly when

toReal⁡ ⁣(U(P,Q)−1)=b1andtoReal⁡ ⁣(U(Q,P)−1)=b2.\operatorname{toReal}\!\left(U(P,Q)^{-1}\right)=b_1 \quad\text{and}\quad \operatorname{toReal}\!\left(U(Q,P)^{-1}\right)=b_2.toReal(U(P,Q)−1)=b1​andtoReal(U(Q,P)−1)=b2​.

Here inversion is in [0,∞][0,\infty][0,∞], with 0−1=∞0^{-1}=\infty0−1=∞ and ∞−1=0\infty^{-1}=0∞−1=0, and conversion to a real number sends ∞\infty∞ to 000. Consequently, either U=0U=0U=0 or U=∞U=\inftyU=∞ gives inverse real value 000. There are no probability assumptions or restrictions on b1,b2b_1,b_2b1​,b2​; a negative prescribed value makes the condition impossible.

QAlgorithms.Papers.Independent.Intakenext100.P28.expB

For a logarithm base with real value b>1b>1b>1 and any real number ttt, this defines the real number

exp⁡(tlog⁡b).\exp(t\log b).exp(tlogb).

QAlgorithms.Papers.Independent.Intakenext100.P28.expNeg

For any real base β>1\beta>1β>1 and any D∈[0,∞]D\in[0,\infty]D∈[0,∞], this defines an element of [0,∞][0,\infty][0,∞] by

{0,D=+∞,exp⁡(−dln⁡β),D<+∞,d∈[0,∞) the real value of D.\begin{cases} 0,&D=+\infty,\\ \exp(-d\ln\beta),&D<+\infty,\quad d\in[0,\infty)\text{ the real value of }D. \end{cases}{0,exp(−dlnβ),​D=+∞,D<+∞,d∈[0,∞) the real value of D.​

The finite-branch exponential is embedded into [0,∞][0,\infty][0,∞] by taking its nonnegative part; it is already positive. In particular, the value at D=0D=0D=0 is 111.

QAlgorithms.Papers.Independent.Intakenext100.P28.fDiv

For any type AAA equipped with a measurable space, any function f:R→Rf:\mathbb R\to\mathbb Rf:R→R, and any measures P,QP,QP,Q on AAA, let ρ(x)\rho(x)ρ(x) be the real conversion of the extended nonnegative Radon–Nikodym derivative of PPP with respect to QQQ, where this conversion sends +∞+\infty+∞ to 000. Put L0=lim inf⁡t→0, t>0f(t)L_0=\liminf_{t\to0,\ t>0}f(t)L0​=liminft→0, t>0​f(t), and define H(x)=L0H(x)=L_0H(x)=L0​ when ρ(x)=0\rho(x)=0ρ(x)=0 and H(x)=f(ρ(x))H(x)=f(\rho(x))H(x)=f(ρ(x)) otherwise. This defines the extended real number

(∫A−H+(x) dQ(x)−∫A−H−(x) dQ(x))+(lim inf⁡t→0t>0t f(t−1))Ps(A),\left(\int_A^- H^+(x)\,dQ(x)-\int_A^- H^-(x)\,dQ(x)\right) + \left(\liminf_{\substack{t\to0\\t>0}}t\,f(t^{-1})\right)P_{\mathrm s}(A),(∫A−​H+(x)dQ(x)−∫A−​H−(x)dQ(x))+​t→0t>0​liminf​tf(t−1)​Ps​(A),

where H+H^+H+ and H−H^-H− are the nonnegative parts of HHH and −H-H−H, respectively, and PsP_{\mathrm s}Ps​ is the singular part of PPP relative to QQQ. Nonnegative integrals and the singular mass are embedded into the extended reals for this formula. No probability, finiteness, absolute-continuity, measurability-of-fff, or convexity assumptions are imposed; all arithmetic uses the total extended-real operations, including cases involving infinities.

QAlgorithms.Papers.Independent.Intakenext100.P28.finiteBeta2

For every natural number nnn and arbitrary real vectors p=(pi)i=0n−1p=(p_i)_{i=0}^{n-1}p=(pi​)i=0n−1​ and q=(qi)i=0n−1q=(q_i)_{i=0}^{n-1}q=(qi​)i=0n−1​, this defines

inf⁡{piqi:0≤i<n}.\inf\left\{\frac{p_i}{q_i}:0\le i<n\right\}.inf{qi​pi​​:0≤i<n}.

For n>0n>0n>0, this is the smallest coordinate ratio, where a ratio with qi=0q_i=0qi​=0 equals 000 by the convention for real division. No positivity or normalization is assumed. For n=0n=0n=0, the set is empty and the real infimum operation returns 000.

QAlgorithms.Papers.Independent.Intakenext100.P28.finiteChi

For every natural number nnn and arbitrary real vectors p=(pi)i=0n−1p=(p_i)_{i=0}^{n-1}p=(pi​)i=0n−1​ and q=(qi)i=0n−1q=(q_i)_{i=0}^{n-1}q=(qi​)i=0n−1​, this defines

∑i=0n−1(pi−qi)2qi.\sum_{i=0}^{n-1}\frac{(p_i-q_i)^2}{q_i}.i=0∑n−1​qi​(pi​−qi​)2​.

No positivity or normalization is required. A coordinate with qi=0q_i=0qi​=0 contributes 000, because real division by zero equals 000; negative values of qiq_iqi​ are also allowed. For n=0n=0n=0, the value is the empty sum 000.

QAlgorithms.Papers.Independent.Intakenext100.P28.finiteKL

For every natural number nnn, every real logarithm base b>1b>1b>1, and arbitrary real vectors p=(pi)i=0n−1p=(p_i)_{i=0}^{n-1}p=(pi​)i=0n−1​ and q=(qi)i=0n−1q=(q_i)_{i=0}^{n-1}q=(qi​)i=0n−1​, this defines the real number

∑i=0n−1pi ln⁡(pi/qi)ln⁡b.\sum_{i=0}^{n-1}p_i\,\frac{\ln(p_i/q_i)}{\ln b}.i=0∑n−1​pi​lnbln(pi​/qi​)​.

There are no nonnegativity, normalization, or nonzero-denominator assumptions on ppp or qqq. Real division by zero equals 000; the real logarithm used here satisfies ln⁡0=0\ln 0=0ln0=0 and ln⁡x=ln⁡∣x∣\ln x=\ln|x|lnx=ln∣x∣ for negative xxx. For n=0n=0n=0, the sum is empty and the value is 000.

QAlgorithms.Papers.Independent.Intakenext100.P28.finiteL2

For any natural number nnn, including 000, and any two real-valued vectors p=(pi)i=0n−1p=(p_i)_{i=0}^{n-1}p=(pi​)i=0n−1​ and q=(qi)i=0n−1q=(q_i)_{i=0}^{n-1}q=(qi​)i=0n−1​, define finiteL2(p,q)=∑i=0n−1(pi−qi)2\mathrm{finiteL2}(p,q)=\sum_{i=0}^{n-1}(p_i-q_i)^2finiteL2(p,q)=∑i=0n−1​(pi​−qi​)2. No nonnegativity or normalization conditions are imposed on either vector, no square root is taken, and the value is 000 when n=0n=0n=0.

QAlgorithms.Papers.Independent.Intakenext100.P28.finiteTV

For any natural number nnn, including 000, and any two real-valued vectors p=(pi)i=0n−1p=(p_i)_{i=0}^{n-1}p=(pi​)i=0n−1​ and q=(qi)i=0n−1q=(q_i)_{i=0}^{n-1}q=(qi​)i=0n−1​, define finiteTV(p,q)=∑i=0n−1∣pi−qi∣\mathrm{finiteTV}(p,q)=\sum_{i=0}^{n-1}|p_i-q_i|finiteTV(p,q)=∑i=0n−1​∣pi​−qi​∣. No nonnegativity or normalization conditions are imposed on either vector, there is no factor of 1/21/21/2, and the value is 000 when n=0n=0n=0.

QAlgorithms.Papers.Independent.Intakenext100.P28.fullVariation

For any type AAA equipped with a measurable space and any measures P,QP,QP,Q on AAA, let ρP(x)\rho_P(x)ρP​(x) and ρQ(x)\rho_Q(x)ρQ​(x) be the real conversions of (dP/d(P+Q))(x)(dP/d(P+Q))(x)(dP/d(P+Q))(x) and (dQ/d(P+Q))(x)(dQ/d(P+Q))(x)(dQ/d(P+Q))(x), respectively, with an infinite derivative converted to 000. The definition is

fullVariation(P,Q)=∫A−∣ρP(x)−ρQ(x)∣ d(P+Q)(x)∈[0,∞],\mathrm{fullVariation}(P,Q) =\int_A^- |\rho_P(x)-\rho_Q(x)|\,d(P+Q)(x)\in[0,\infty],fullVariation(P,Q)=∫A−​∣ρP​(x)−ρQ​(x)∣d(P+Q)(x)∈[0,∞],

where the nonnegative real integrand is converted to a nonnegative extended real. There is no factor of 1/21/21/2, and no probability or finiteness assumption is imposed.

QAlgorithms.Papers.Independent.Intakenext100.P28.functionalConstant

For arbitrary functions f,g:R→Rf,g:\mathbb R\to\mathbb Rf,g:R→R and an arbitrary set S⊆RS\subseteq\mathbb RS⊆R, this defines

sup⁡t∈Smax⁡ ⁣{f(t)g(t),0}∈[0,∞].\sup_{t\in S}\max\!\left\{\frac{f(t)}{g(t)},0\right\}\in[0,\infty].t∈Ssup​max{g(t)f(t)​,0}∈[0,∞].

When SSS is omitted, it is (0,∞)∖{1}(0,\infty)\setminus\{1\}(0,∞)∖{1}. Division is total real division, so a point with g(t)=0g(t)=0g(t)=0 contributes 000, regardless of f(t)f(t)f(t). Negative ratios also contribute 000. No regularity, sign, or nonvanishing assumptions are imposed on the functions, and no nonemptiness or boundedness assumption is imposed on SSS: the value is 000 for S=∅S=\varnothingS=∅, and it may be ∞\infty∞ when the nonnegative ratios are unbounded.

QAlgorithms.Papers.Independent.Intakenext100.P28.generatorAtZero

For any function f:R→Rf:\mathbb R\to\mathbb Rf:R→R, this defines the extended real number

lim inf⁡t→0t>0f(t),\liminf_{\substack{t\to0\\t>0}} f(t),t→0t>0​liminf​f(t),

with the values of fff viewed as extended real numbers. No continuity, convexity, or boundedness is assumed, and the result may be either infinity.

QAlgorithms.Papers.Independent.Intakenext100.P28.generatorConjugate

For any function f:R→Rf:\mathbb R\to\mathbb Rf:R→R and any real number ttt, this defines

t f(t−1).t\,f(t^{-1}).tf(t−1).

The reciprocal is total, with 0−1=00^{-1}=00−1=0, so the value at t=0t=0t=0 is 000. Negative values of ttt are included, and no condition is imposed on fff.

QAlgorithms.Papers.Independent.Intakenext100.P28.generatorValue

For any function f:R→Rf:\mathbb R\to\mathbb Rf:R→R and any real number ttt, this defines the extended real number

{lim inf⁡s→0s>0f(s),t=0,f(t),t≠0.\begin{cases} \displaystyle\liminf_{\substack{s\to0\\s>0}}f(s),&t=0,\\ f(t),&t\ne0. \end{cases}⎩⎨⎧​s→0s>0​liminf​f(s),f(t),​t=0,t=0.​

The second branch includes negative arguments, and the value at zero uses the right-hand lower limit rather than f(0)f(0)f(0). No regularity condition is imposed on fff.

QAlgorithms.Papers.Independent.Intakenext100.P28.hellinger

For any type AAA equipped with a measurable space, any real aaa, and any measures P,QP,QP,Q on AAA, this defines a value in [0,∞][0,\infty][0,∞]. When a=1a=1a=1, its value is the library’s Kullback–Leibler divergence KL⁡(P∥Q)\operatorname{KL}(P\|Q)KL(P∥Q). Otherwise, put f(t)=(ta−1)/(a−1)f(t)=(t^a-1)/(a-1)f(t)=(ta−1)/(a−1), let ρ(x)=(dP/dQ)(x)∈[0,∞]\rho(x)=(dP/dQ)(x)\in[0,\infty]ρ(x)=(dP/dQ)(x)∈[0,∞], and let s(x)s(x)s(x) be its real conversion, which equals ρ(x)\rho(x)ρ(x) when finite and equals 000 when ρ(x)=∞\rho(x)=\inftyρ(x)=∞. Define

L0=lim inf⁡t→0+f(t),L∗=lim inf⁡t→0+tf(t−1),h(x)={L0,s(x)=0,f(s(x)),s(x)≠0,L_0=\liminf_{t\to0^+}f(t),\qquad L_*=\liminf_{t\to0^+}t f(t^{-1}),\qquad h(x)= \begin{cases} L_0,&s(x)=0,\\ f(s(x)),&s(x)\ne0, \end{cases}L0​=t→0+liminf​f(t),L∗​=t→0+liminf​tf(t−1),h(x)={L0​,f(s(x)),​s(x)=0,s(x)=0,​

with the lower limits and hhh valued in the extended reals. The defined value is

(∫h(x)+ dQ(x)−∫(−h(x))+ dQ(x)+L∗ P⊥Q(A))+,\left( \int h(x)^+\,dQ(x)-\int (-h(x))^+\,dQ(x) +L_*\,P_{\perp Q}(A) \right)^+,(∫h(x)+dQ(x)−∫(−h(x))+dQ(x)+L∗​P⊥Q​(A))+,

where P⊥QP_{\perp Q}P⊥Q​ is the singular part of PPP relative to QQQ, and z+z^+z+ here means conversion from the extended reals to [0,∞][0,\infty][0,∞], sending negative values and −∞-\infty−∞ to 000, and +∞+\infty+∞ to ∞\infty∞. The integrals are nonnegative extended integrals, and the subtraction and other arithmetic are the library’s total extended-real operations. No probability, finiteness, absolute-continuity, or restriction on aaa is assumed.

QAlgorithms.Papers.Independent.Intakenext100.P28.hellingerOrderGenerator

For arbitrary real numbers aaa and ttt, this defines the real number

ta−1a−1,\frac{t^a-1}{a-1},a−1ta−1​,

where tat^ata is the library’s total real-power operation. There are no restrictions on aaa or ttt, so zero and negative ttt are included. Division uses total real division; in particular, when a=1a=1a=1, the value is 000 for every ttt.

QAlgorithms.Papers.Independent.Intakenext100.P28.hockey

For any type AAA equipped with a measurable space, any real ggg, and any measures P,QP,QP,Q on AAA, this defines

∫Amax⁡{s(x)−g,0} dQ(x)+P⊥Q(A)∈[0,∞],\int_A \max\{s(x)-g,0\}\,dQ(x)+P_{\perp Q}(A)\in[0,\infty],∫A​max{s(x)−g,0}dQ(x)+P⊥Q​(A)∈[0,∞],

where s(x)s(x)s(x) is the real conversion of the [0,∞][0,\infty][0,∞]-valued Radon–Nikodym derivative (dP/dQ)(x)(dP/dQ)(x)(dP/dQ)(x), taking value 000 when that derivative is infinite, and P⊥QP_{\perp Q}P⊥Q​ is the singular part of PPP relative to QQQ. The integral is a nonnegative extended integral. The parameter ggg may be any real number, and neither probability, finiteness, nor absolute continuity is required of the measures.

QAlgorithms.Papers.Independent.Intakenext100.P28.hockeyKLConstant

For any logarithm base β=b.val>1\beta=b.\mathrm{val}>1β=b.val>1 and any real ggg, set

T(g)=inf⁡{t∈R:g<t and gln⁡t=t−1}.T(g)=\inf\{t\in\mathbb R:g<t\ \text{and}\ g\ln t=t-1\}.T(g)=inf{t∈R:g<t and glnt=t−1}.

This defines the real number

hockeyKLConstant⁡(b,g)=T(g)−gT(g) ln⁡T(g)ln⁡β+1−T(g)ln⁡β.\operatorname{hockeyKLConstant}(b,g)= \frac{T(g)-g} {T(g)\,\dfrac{\ln T(g)}{\ln\beta}+\dfrac{1-T(g)}{\ln\beta}}.hockeyKLConstant(b,g)=T(g)lnβlnT(g)​+lnβ1−T(g)​T(g)−g​.

The logarithm is total, with ln⁡0=0\ln0=0ln0=0 and ln⁡t=ln⁡∣t∣\ln t=\ln|t|lnt=ln∣t∣ for negative ttt, and an empty set in the definition of T(g)T(g)T(g) has real infimum 000. No restriction on ggg, existence of a point in that set, or nonzero denominator is assumed; real division by zero is defined to be 000.

QAlgorithms.Papers.Independent.Intakenext100.P28.informationSpectrum

For any type AAA equipped with a measurable space, any logarithm base b>1b>1b>1, any measures P,QP,QP,Q on AAA, and any extended-real threshold a∈[−∞,∞]a\in[-\infty,\infty]a∈[−∞,∞], this defines

P ⁣{x∈A:log⁡ext ⁣((dP/dQ)(x))ln⁡b≤a}∈[0,∞].P\!\left\{x\in A: \frac{\log_{\mathrm{ext}}\!\left((dP/dQ)(x)\right)}{\ln b}\le a \right\}\in[0,\infty].P{x∈A:lnblogext​((dP/dQ)(x))​≤a}∈[0,∞].

The extended logarithm takes values −∞-\infty−∞ at zero and +∞+\infty+∞ at infinity. The inequality is non-strict: at a=−∞a=-\inftya=−∞, the set consists exactly of points where the derivative is zero; at a=+∞a=+\inftya=+∞, it is all of AAA. No probability, finiteness, or absolute-continuity assumptions are imposed, so the value need not lie in [0,1][0,1][0,1].

QAlgorithms.Papers.Independent.Intakenext100.P28.inverseUpperDensity

For any type AAA equipped with a measurable space and any measures P,QP,QP,Q on AAA, first set U=ess sup⁡Q(dP/dQ)U=\operatorname*{ess\,sup}_{Q}(dP/dQ)U=esssupQ​(dP/dQ) if P≪QP\ll QP≪Q, and set U=∞U=\inftyU=∞ otherwise. This defines the real conversion of the reciprocal U−1U^{-1}U−1, namely

{1/U,0<U<∞,0,U=0 or U=∞.\begin{cases} 1/U,&0<U<\infty,\\ 0,&U=0\text{ or }U=\infty. \end{cases}{1/U,0,​0<U<∞,U=0 or U=∞.​

In particular, the value is 000 when P≪̸QP\not\ll QP≪Q; it is also 000 when the essential supremum is zero, because the reciprocal of 000 in [0,∞][0,\infty][0,∞] is ∞\infty∞, whose real conversion is 000. No probability or finiteness assumptions are imposed.

QAlgorithms.Papers.Independent.Intakenext100.P28.jensenGap

For any measurable space AAA, any function f:R→Rf:\mathbb R\to\mathbb Rf:R→R, any measure PPP on AAA, and any measure kernel KKK from AAA to R\mathbb RR, put

m(x)=∫Rz dK(x)(z).m(x)=\int_{\mathbb R}z\,dK(x)(z).m(x)=∫R​zdK(x)(z).

This defines the extended-real number

jensenGap⁡(f,P,K)=(∫A ⁣−max⁡{f(m(x)),0} dP(x))−(∫A ⁣−max⁡{−f(m(x)),0} dP(x))−f ⁣(∫Am(x) dP(x)),\operatorname{jensenGap}(f,P,K)= \left(\int_A^{\!-}\max\{f(m(x)),0\}\,dP(x)\right) - \left(\int_A^{\!-}\max\{-f(m(x)),0\}\,dP(x)\right) - f\!\left(\int_A m(x)\,dP(x)\right),jensenGap(f,P,K)=(∫A−​max{f(m(x)),0}dP(x))−(∫A−​max{−f(m(x)),0}dP(x))−f(∫A​m(x)dP(x)),

where the two nonnegative lower integrals take values in [0,∞][0,\infty][0,∞] and are then embedded into the extended reals before subtraction. No convexity, measurability, integrability, or probability assumption is imposed on f,P,Kf,P,Kf,P,K beyond KKK being a measure kernel. The real-valued integrals defining m(x)m(x)m(x) and its integral against PPP are 000 when their integrands are not integrable; the displayed extended-real arithmetic is total even when the nonnegative integrals are infinite.

QAlgorithms.Papers.Independent.Intakenext100.P28.js

For any type AAA equipped with a measurable space, any real logarithm base b>1b>1b>1, and any measures P,QP,QP,Q on AAA, set M=12P+12QM=\tfrac12P+\tfrac12QM=21​P+21​Q. The definition is

jsb(P,Q)=1ln⁡bKL⁡(P,M)+1ln⁡bKL⁡(Q,M)∈[0,∞],\mathrm{js}_b(P,Q) =\frac{1}{\ln b}\operatorname{KL}(P,M) +\frac{1}{\ln b}\operatorname{KL}(Q,M)\in[0,\infty],jsb​(P,Q)=lnb1​KL(P,M)+lnb1​KL(Q,M)∈[0,∞],

where KL⁡\operatorname{KL}KL is the library’s Kullback–Leibler divergence and the positive factor 1/ln⁡b1/\ln b1/lnb is converted to a nonnegative extended real. The two divergence terms are added without an additional factor of 1/21/21/2. No probability or finiteness assumptions are imposed on P,QP,QP,Q.

QAlgorithms.Papers.Independent.Intakenext100.P28.jsBaseGenerator

For any logarithm base b>1b>1b>1 and any real ttt, this defines

t ln⁡tln⁡b−(t+1) ln⁡((t+1)/2)ln⁡b.t\,\frac{\ln t}{\ln b} -(t+1)\,\frac{\ln((t+1)/2)}{\ln b}.tlnblnt​−(t+1)lnbln((t+1)/2)​.

The logarithms are the library’s total real logarithms, with ln⁡0=0\ln0=0ln0=0 and ln⁡u=ln⁡∣u∣\ln u=\ln|u|lnu=ln∣u∣ for negative uuu. There is no positivity restriction on ttt or on (t+1)/2(t+1)/2(t+1)/2, so the expression is defined for every real ttt, including t=0t=0t=0 and t=−1t=-1t=−1.

QAlgorithms.Papers.Independent.Intakenext100.P28.jsHellingerKernel

For a real base b>1b>1b>1, any real parameter aaa, and any t∈[0,∞]t\in[0,\infty]t∈[0,∞], this defines a value in [0,∞][0,\infty][0,∞] by

{[ln⁡2ln⁡b]+,t=0,[12aln⁡b]+,t=1,[max⁡ ⁣(1a−1,0)ln⁡2ln⁡b]+,t=∞,[(a−1)(tln⁡tln⁡b−(t+1)ln⁡((t+1)/2)ln⁡b)ta+a−1−at]+,0<t<∞, t≠1.\begin{cases} \left[\dfrac{\ln 2}{\ln b}\right]_+, & t=0,\\[6pt] \left[\dfrac{1}{2a\ln b}\right]_+, & t=1,\\[6pt] \left[\max\!\left(\dfrac1a-1,0\right)\dfrac{\ln 2}{\ln b}\right]_+, & t=\infty,\\[8pt] \left[ \dfrac{(a-1)\left( t\dfrac{\ln t}{\ln b} -(t+1)\dfrac{\ln((t+1)/2)}{\ln b} \right)} {t^a+a-1-at} \right]_+, & 0<t<\infty,\ t\ne1. \end{cases}⎩⎨⎧​[lnbln2​]+​,[2alnb1​]+​,[max(a1​−1,0)lnbln2​]+​,​ta+a−1−at(a−1)(tlnblnt​−(t+1)lnbln((t+1)/2)​)​​+​,​t=0,t=1,t=∞,0<t<∞, t=1.​

Here [x]+=max⁡(x,0)[x]_+=\max(x,0)[x]+​=max(x,0), regarded as a nonnegative extended real number. No restriction is imposed on aaa; in particular, a=0a=0a=0 and a=1a=1a=1 are included, and every real division by zero in these formulas has value zero.

QAlgorithms.Papers.Independent.Intakenext100.P28.jsTriangularKernel

For a logarithm base with real value b>1b>1b>1 and t∈[0,∞]t\in[0,\infty]t∈[0,∞], this function takes values in [0,∞][0,\infty][0,∞] and is

{max⁡ ⁣{ln⁡2ln⁡b,0},t=0 or t=∞,max⁡ ⁣{12ln⁡b,0},t=1,max⁡ ⁣{s+1(s−1)2(sln⁡sln⁡b−(s+1)ln⁡((s+1)/2)ln⁡b), 0},0<t<∞, t≠1,\begin{cases} \displaystyle \max\!\left\{\frac{\ln2}{\ln b},0\right\}, &t=0\ \text{or }t=\infty,\\[2mm] \displaystyle \max\!\left\{\frac1{2\ln b},0\right\}, &t=1,\\[2mm] \displaystyle \max\!\left\{ \frac{s+1}{(s-1)^2} \left( \frac{s\ln s}{\ln b} -\frac{(s+1)\ln((s+1)/2)}{\ln b} \right),\,0 \right\}, &0<t<\infty,\ t\ne1, \end{cases}⎩⎨⎧​max{lnbln2​,0},max{2lnb1​,0},max{(s−1)2s+1​(lnbslns​−lnb(s+1)ln((s+1)/2)​),0},​t=0 or t=∞,t=1,0<t<∞, t=1,​

where sss is the finite real value of ttt in the last case. Each maximum expresses conversion from a real number to an extended nonnegative real by truncating negative values to zero; the three branches explicitly include both endpoints and t=1t=1t=1.

QAlgorithms.Papers.Independent.Intakenext100.P28.kernelMean

For any measurable space AAA, any measure kernel KKK from AAA to R\mathbb RR, and any x∈Ax\in Ax∈A, this defines the real number

kernelMean⁡(K,x)=∫Rz dK(x)(z).\operatorname{kernelMean}(K,x)=\int_{\mathbb R}z\,dK(x)(z).kernelMean(K,x)=∫R​zdK(x)(z).

No assumption says that the measures K(x)K(x)K(x) are probability measures or that the identity function is integrable. The integral is the total real-valued Bochner integral, which is defined to be 000 when the integrand is not integrable.

QAlgorithms.Papers.Independent.Intakenext100.P28.kl

For any type AAA equipped with a measurable space, any real logarithm base b>1b>1b>1, and any measures P,QP,QP,Q on AAA, this definition gives the value in [0,∞][0,\infty][0,∞]

klb(P,Q)=1ln⁡b KL⁡(P,Q),\mathrm{kl}_b(P,Q)=\frac{1}{\ln b}\,\operatorname{KL}(P,Q),klb​(P,Q)=lnb1​KL(P,Q),

where KL⁡\operatorname{KL}KL is the library’s Kullback–Leibler divergence. The factor 1/ln⁡b1/\ln b1/lnb is converted to a nonnegative extended real before multiplication; it is positive because b>1b>1b>1. Neither measure is required to be a probability measure, finite, or absolutely continuous with respect to the other.

QAlgorithms.Papers.Independent.Intakenext100.P28.logB

For a logarithm base with real value b>1b>1b>1 and any real number ttt, this defines

log⁡b(t):=log⁡tlog⁡b.\log_b(t):=\frac{\log t}{\log b}.logb​(t):=logblogt​.

Here the real logarithm is total: at t=0t=0t=0 its value is 000, and at negative ttt it equals log⁡∣t∣\log|t|log∣t∣. Thus the definition includes zero and negative arguments.

QAlgorithms.Papers.Independent.Intakenext100.P28.logBaseE

For a logarithm base with real value b>1b>1b>1, this defines the real number

1log⁡b,\frac{1}{\log b},logb1​,

where log⁡\loglog is the natural logarithm.

QAlgorithms.Papers.Independent.Intakenext100.P28.marton

For any type AAA equipped with a measurable space and any measures P,QP,QP,Q on AAA, let ρ(x)\rho(x)ρ(x) be the real conversion of (dP/dQ)(x)(dP/dQ)(x)(dP/dQ)(x), with an infinite derivative converted to 000. The definition applies the extended-integral construction to the function f(t)=(t−1)2f(t)=(t-1)^2f(t)=(t−1)2 for t<1t<1t<1 and f(t)=0f(t)=0f(t)=0 for t≥1t\ge1t≥1, and converts the result to [0,∞][0,\infty][0,∞]; explicitly,

marton(P,Q)=∫A−{(ρ(x)−1)2,ρ(x)<1,0,ρ(x)≥1 dQ(x).\mathrm{marton}(P,Q) =\int_A^- \begin{cases} (\rho(x)-1)^2,&\rho(x)<1,\\ 0,&\rho(x)\ge1 \end{cases} \,dQ(x).marton(P,Q)=∫A−​{(ρ(x)−1)2,0,​ρ(x)<1,ρ(x)≥1​dQ(x).

The function’s right lower limit at zero is 111, and that of tf(1/t)t f(1/t)tf(1/t) is 000, so a zero converted derivative contributes 111 and the singular part contributes zero under total extended-real multiplication. No absolute continuity, finiteness, or probability assumptions are imposed.

QAlgorithms.Papers.Independent.Intakenext100.P28.martonSum

For any type AAA equipped with a measurable space and any measures P,QP,QP,Q on AAA, let ρP,Q(x)\rho_{P,Q}(x)ρP,Q​(x) and ρQ,P(x)\rho_{Q,P}(x)ρQ,P​(x) be the real conversions of (dP/dQ)(x)(dP/dQ)(x)(dP/dQ)(x) and (dQ/dP)(x)(dQ/dP)(x)(dQ/dP)(x), respectively, with an infinite derivative converted to 000. Define h(s)=(s−1)2h(s)=(s-1)^2h(s)=(s−1)2 when s<1s<1s<1 and h(s)=0h(s)=0h(s)=0 when s≥1s\ge1s≥1. Then

martonSum(P,Q)=∫A−h(ρP,Q(x)) dQ(x)+∫A−h(ρQ,P(x)) dP(x),\mathrm{martonSum}(P,Q) =\int_A^- h(\rho_{P,Q}(x))\,dQ(x) +\int_A^- h(\rho_{Q,P}(x))\,dP(x),martonSum(P,Q)=∫A−​h(ρP,Q​(x))dQ(x)+∫A−​h(ρQ,P​(x))dP(x),

where each nonnegative real integrand is converted to a nonnegative extended real. Thus converted derivative values 000 and 111 contribute 111 and 000, respectively; the singular-part coefficients in both terms are zero. No absolute continuity, finiteness, or probability assumptions are imposed, and the sum may be infinite.

QAlgorithms.Papers.Independent.Intakenext100.P28.minReferenceMass

For every natural number nnn and arbitrary real vector q=(qi)i=0n−1q=(q_i)_{i=0}^{n-1}q=(qi​)i=0n−1​, this defines the real infimum of the set of coordinate values,

inf⁡{qi:0≤i<n}.\inf\{q_i:0\le i<n\}.inf{qi​:0≤i<n}.

For n>0n>0n>0, this is the smallest coordinate of qqq, with no positivity or normalization assumption. For n=0n=0n=0, the set is empty and the real infimum operation used here returns 000.

QAlgorithms.Papers.Independent.Intakenext100.P28.momentKLBound

For every real base b>1b>1b>1 and c,d∈[0,∞]c,d\in[0,\infty]c,d∈[0,∞], define the following extended real, with the cases taken in the displayed order:

Mb(c,d)={+∞,c=∞,0,c=0 and d=0,ln⁡(1+c)ln⁡b,c<∞ and d=∞,ln⁡(1+c)ln⁡b−3c22ln⁡b ((1+d)(1+c)2−1),c,d<∞ and (c,d)≠(0,0).M_b(c,d)= \begin{cases} +\infty,&c=\infty,\\ 0,&c=0\text{ and }d=0,\\[2pt] \dfrac{\ln(1+c)}{\ln b},&c<\infty\text{ and }d=\infty,\\[7pt] \dfrac{\ln(1+c)}{\ln b} -\dfrac{3c^2} {2\ln b\,\bigl((1+d)(1+c)^2-1\bigr)}, &c,d<\infty\text{ and }(c,d)\ne(0,0). \end{cases}Mb​(c,d)=⎩⎨⎧​+∞,0,lnbln(1+c)​,lnbln(1+c)​−2lnb((1+d)(1+c)2−1)3c2​,​c=∞,c=0 and d=0,c<∞ and d=∞,c,d<∞ and (c,d)=(0,0).​

In the finite branches, c,dc,dc,d denote their ordinary real values. In particular, c=∞c=\inftyc=∞ gives +∞+\infty+∞ regardless of ddd, including when d=∞d=\inftyd=∞; the potentially zero denominator at c=d=0c=d=0c=d=0 is handled by the second branch.

QAlgorithms.Papers.Independent.Intakenext100.P28.mutualPairs

For every type AAA in the universe uuu, every measurable-space structure on AAA, and all measures P,QP,QP,Q on AAA, this pair condition holds exactly when both PPP is absolutely continuous with respect to QQQ and QQQ is absolutely continuous with respect to PPP. Thus the measures have the same measurable null sets; no probability or finiteness assumption is imposed.

QAlgorithms.Papers.Independent.Intakenext100.P28.nDiv

For any type AAA equipped with a measurable space, any function f:R→Rf:\mathbb R\to\mathbb Rf:R→R, and any measures P,QP,QP,Q on AAA, define a=lim inf⁡t→0, t>0f(t)a=\liminf_{t\to0,\ t>0}f(t)a=liminft→0, t>0​f(t) and c=lim inf⁡t→0, t>0tf(1/t)c=\liminf_{t\to0,\ t>0}t f(1/t)c=liminft→0, t>0​tf(1/t), with both lower limits taken in the extended reals. For x∈Ax\in Ax∈A, let ρ(x)\rho(x)ρ(x) be the real conversion of the Radon–Nikodym derivative (dP/dQ)(x)(dP/dQ)(x)(dP/dQ)(x), where an infinite derivative converts to 000, and set h(x)=ah(x)=ah(x)=a if ρ(x)=0\rho(x)=0ρ(x)=0 and h(x)=f(ρ(x))h(x)=f(\rho(x))h(x)=f(ρ(x)) otherwise. Then

nDiv(f,P,Q)=[(∫A−[h(x)]+ dQ(x))−(∫A−[−h(x)]+ dQ(x))+c P⊥Q(A)]+,\mathrm{nDiv}(f,P,Q)= \left[ \left(\int_A^- [h(x)]_+\,dQ(x)\right) - \left(\int_A^- [-h(x)]_+\,dQ(x)\right) +c\,P_{\perp Q}(A) \right]_+,nDiv(f,P,Q)=[(∫A−​[h(x)]+​dQ(x))−(∫A−​[−h(x)]+​dQ(x))+cP⊥Q​(A)]+​,

where P⊥QP_{\perp Q}P⊥Q​ is the singular part of PPP relative to QQQ, the integrals are nonnegative extended integrals embedded into the extended reals before subtraction, and [z]+[z]_+[z]+​ denotes conversion from the extended reals to [0,∞][0,\infty][0,∞], sending nonpositive values to 000 and +∞+\infty+∞ to +∞+\infty+∞. The expression uses total extended-real arithmetic. No convexity, measurability, integrability, absolute continuity, finiteness, or probability assumptions are imposed on f,P,Qf,P,Qf,P,Q.

QAlgorithms.Papers.Independent.Intakenext100.P28.negativeInfo

For any measurable space AAA, any real base b>1b>1b>1, and any measures P,QP,QP,Q on AAA, write ρ(x)=dPdQ(x)∈[0,∞]\rho(x)=\frac{dP}{dQ}(x)\in[0,\infty]ρ(x)=dQdP​(x)∈[0,∞] for the supplied Radon–Nikodym derivative and I(x)=log⁡(ρ(x))/ln⁡bI(x)=\log(\rho(x))/\ln bI(x)=log(ρ(x))/lnb, where the logarithm is extended by log⁡0=−∞\log 0=-\inftylog0=−∞ and log⁡∞=+∞\log\infty=+\inftylog∞=+∞. Define

negativeInfo⁡b(P,Q)=∫A[−I(x)]+ dP(x)∈[0,∞],\operatorname{negativeInfo}_b(P,Q) =\int_A [-I(x)]_+\,dP(x)\in[0,\infty],negativeInfob​(P,Q)=∫A​[−I(x)]+​dP(x)∈[0,∞],

where conversion [z]+[z]_+[z]+​ replaces negative extended reals by zero and retains nonnegative extended reals. Thus the integrand is +∞+\infty+∞ where I=−∞I=-\inftyI=−∞, and zero where I=+∞I=+\inftyI=+∞. No probability, finiteness, or absolute-continuity assumptions are required.

QAlgorithms.Papers.Independent.Intakenext100.P28.phiAlpha

For all real parameters a,ta,ta,t, this defines the real number

ϕa(t)={aa−1,t=1,(1−ta)ln⁡t(t−1)(1−ta−1),t≠1.\phi_a(t)= \begin{cases} \dfrac{a}{a-1},&t=1,\\[7pt] \dfrac{(1-t^a)\ln t} {(t-1)(1-t^{a-1})},&t\ne1. \end{cases}ϕa​(t)=⎩⎨⎧​a−1a​,(t−1)(1−ta−1)(1−ta)lnt​,​t=1,t=1.​

There are no positivity assumptions on either parameter. Powers use the total real-power function, including its values at zero and negative bases; the real logarithm satisfies ln⁡0=0\ln0=0ln0=0 and ln⁡t=ln⁡∣t∣\ln t=\ln|t|lnt=ln∣t∣ for negative ttt. Every division by zero returns zero. Thus the definition includes t=0t=0t=0, where its value is zero, and a=1a=1a=1, for which the function is identically zero.

QAlgorithms.Papers.Independent.Intakenext100.P28.probabilityMixture

For any type AAA equipped with a measurable space, any measures P,QP,QP,Q on AAA, and any real number ttt, the definition is the measure

probabilityMixture(P,Q,t)=max⁡(1−t,0) P+max⁡(t,0) Q,\mathrm{probabilityMixture}(P,Q,t) =\max(1-t,0)\,P+\max(t,0)\,Q,probabilityMixture(P,Q,t)=max(1−t,0)P+max(t,0)Q,

where the coefficients are regarded as nonnegative extended reals and multiplication means scaling a measure. There is no assumption that t∈[0,1]t\in[0,1]t∈[0,1] or that P,QP,QP,Q are probability measures. At t=0t=0t=0 the result is PPP, at t=1t=1t=1 it is QQQ, for t<0t<0t<0 it is (1−t)P(1-t)P(1−t)P, and for t>1t>1t>1 it is tQtQtQ.

QAlgorithms.Papers.Independent.Intakenext100.P28.qMax

For every natural number nnn and arbitrary real vector q=(qi)i=0n−1q=(q_i)_{i=0}^{n-1}q=(qi​)i=0n−1​, this defines the real supremum of the set of coordinate values,

sup⁡{qi:0≤i<n}.\sup\{q_i:0\le i<n\}.sup{qi​:0≤i<n}.

For n>0n>0n>0, this is the largest coordinate of qqq, with no positivity or normalization assumption. For n=0n=0n=0, the set is empty and the real supremum operation used here returns 000.

QAlgorithms.Papers.Independent.Intakenext100.P28.r

For any logarithm base b>1b>1b>1 and any real ttt, this defines

t ln⁡tln⁡b+1−tln⁡b.t\,\frac{\ln t}{\ln b}+\frac{1-t}{\ln b}.tlnblnt​+lnb1−t​.

Here ln⁡\lnln is the library’s total real logarithm, with ln⁡0=0\ln0=0ln0=0 and ln⁡t=ln⁡∣t∣\ln t=\ln|t|lnt=ln∣t∣ for negative ttt. Thus the definition includes zero and negative inputs; in particular, its value at t=0t=0t=0 is 1/ln⁡b1/\ln b1/lnb, and its value at t=1t=1t=1 is 000.

QAlgorithms.Papers.Independent.Intakenext100.P28.ratioEndpoint

For arbitrary functions f,g:R→Rf,g:\mathbb R\to\mathbb Rf,g:R→R and any t∈[0,∞]t\in[0,\infty]t∈[0,∞], this defines

{lim inf⁡x→0x>0max⁡ ⁣{f(x)g(x),0},t=0,lim inf⁡x→+∞max⁡ ⁣{f(x)g(x),0},t=+∞,max⁡ ⁣{f(t)g(t),0},0<t<+∞.\begin{cases} \displaystyle\liminf_{\substack{x\to0\\x>0}} \max\!\left\{\dfrac{f(x)}{g(x)},0\right\},&t=0,\\[6pt] \displaystyle\liminf_{x\to+\infty} \max\!\left\{\dfrac{f(x)}{g(x)},0\right\},&t=+\infty,\\[6pt] \displaystyle\max\!\left\{\dfrac{f(t)}{g(t)},0\right\},&0<t<+\infty. \end{cases}⎩⎨⎧​x→0x>0​liminf​max{g(x)f(x)​,0},x→+∞liminf​max{g(x)f(x)​,0},max{g(t)f(t)​,0},​t=0,t=+∞,0<t<+∞.​

Both lower limits are taken in [0,∞][0,\infty][0,∞], so they may equal +∞+\infty+∞. No continuity, measurability, positivity, or nonvanishing assumption is imposed on either function. Every quotient is a total real quotient, with value zero when its denominator is zero.

QAlgorithms.Papers.Independent.Intakenext100.P28.relativeInfo

For any type AAA equipped with a measurable space, any logarithm base b>1b>1b>1, any measures P,QP,QP,Q on AAA, and any point x∈Ax\in Ax∈A, this defines the extended-real number

log⁡ext ⁣((dP/dQ)(x))ln⁡b,\frac{\log_{\mathrm{ext}}\!\left((dP/dQ)(x)\right)}{\ln b},lnblogext​((dP/dQ)(x))​,

where the derivative is [0,∞][0,\infty][0,∞]-valued and the extended logarithm is −∞-\infty−∞ at 000 and +∞+\infty+∞ at ∞\infty∞. Consequently, the defined value is −∞-\infty−∞ when the derivative is zero and +∞+\infty+∞ when it is infinite. This is a pointwise definition using the library’s chosen Radon–Nikodym derivative; no probability, finiteness, or absolute-continuity assumptions are required.

QAlgorithms.Papers.Independent.Intakenext100.P28.renyiDeltaBound

For a real base value b>1b>1b>1, any real numbers a,b1a,b_1a,b1​, and any d∈[0,∞]d\in[0,\infty]d∈[0,∞], put cb=1/ln⁡bc_b=1/\ln bcb​=1/lnb. Write [x]+=max⁡(x,0)[x]_+=\max(x,0)[x]+​=max(x,0), regarded as an element of [0,∞][0,\infty][0,∞], for real xxx; write Π\PiΠ for the conversion from extended reals to [0,∞][0,\infty][0,∞], which sends nonpositive values to 000, preserves positive finite values, and sends +∞+\infty+∞ to +∞+\infty+∞. Define Lb(t)=cblog⁡t\mathcal L_b(t)=c_b\log tLb​(t)=cb​logt on [0,∞][0,\infty][0,∞], with log⁡0=−∞\log 0=-\inftylog0=−∞ and log⁡(+∞)=+∞\log(+\infty)=+\inftylog(+∞)=+∞. The declaration defines the extended-real value

renyiDeltaBound⁡(b,a,b1,d)=1a−1 Lb ⁣(Π ⁣(1+d([b1]+ 1−a−1)1−b1)).\operatorname{renyiDeltaBound}(b,a,b_1,d) = \frac{1}{a-1}\, \mathcal L_b\!\left( \Pi\!\left( 1+\frac{d\bigl([b_1]_+^{\,1-a}-1\bigr)}{1-b_1} \right)\right).renyiDeltaBound(b,a,b1​,d)=a−11​Lb​(Π(1+1−b1​d([b1​]+1−a​−1)​)).

The prefactor 1/(a−1)1/(a-1)1/(a−1) is computed in the real numbers and then embedded into the extended reals; the arithmetic inside Π\PiΠ is extended-real arithmetic, and the power [b1]+ 1−a[b_1]_+^{\,1-a}[b1​]+1−a​ is computed in [0,∞][0,\infty][0,∞]. There are no restrictions excluding a=1a=1a=1, b1≤0b_1\leq0b1​≤0, b1=1b_1=1b1​=1, or d=+∞d=+\inftyd=+∞: all operations retain their total definitions at those inputs, including the real convention 1/0=01/0=01/0=0.

QAlgorithms.Papers.Independent.Intakenext100.P28.renyiDiv

For any type AAA equipped with a measurable space, any logarithm base b>1b>1b>1, any real order aaa, and any measures P,QP,QP,Q on AAA, let ρ(x)=(dP/dQ)(x)∈[0,∞]\rho(x)=(dP/dQ)(x)\in[0,\infty]ρ(x)=(dP/dQ)(x)∈[0,∞], and write ℓ(u)=log⁡ext(u)/ln⁡b\ell(u)=\log_{\mathrm{ext}}(u)/\ln bℓ(u)=logext​(u)/lnb, where log⁡ext\log_{\mathrm{ext}}logext​ is the extended logarithm on [0,∞][0,\infty][0,∞], with values −∞-\infty−∞ at 000 and +∞+\infty+∞ at ∞\infty∞. This defines the extended-real value

{−ℓ ⁣(Q{x∈A:0<ρ(x)}),a=0,1ln⁡bKL⁡(P∥Q),a=1,1a−1 ℓ ⁣(∫Aρ(x)a dQ(x)),a≠0, a≠1.\begin{cases} -\ell\!\left(Q\{x\in A:0<\rho(x)\}\right),&a=0,\\[2pt] \displaystyle \frac{1}{\ln b}\operatorname{KL}(P\|Q),&a=1,\\[6pt] \displaystyle \frac{1}{a-1}\, \ell\!\left(\int_A \rho(x)^a\,dQ(x)\right),&a\ne0,\ a\ne1. \end{cases}⎩⎨⎧​−ℓ(Q{x∈A:0<ρ(x)}),lnb1​KL(P∥Q),a−11​ℓ(∫A​ρ(x)adQ(x)),​a=0,a=1,a=0, a=1.​

Here KL⁡\operatorname{KL}KL is the library’s Kullback–Leibler divergence, the middle branch is embedded from [0,∞][0,\infty][0,∞] into the extended reals, and the integral in the last branch is a nonnegative extended integral using real powers of extended nonnegative numbers. All real orders, including negative orders, are allowed; no probability, finiteness, or absolute-continuity assumptions are imposed, and extended-real arithmetic is total.

QAlgorithms.Papers.Independent.Intakenext100.P28.renyiKLTransform

For a real base β>1\beta>1β>1, any real aaa, and any t,D∈[0,∞]t,D\in[0,\infty]t,D∈[0,∞], put L=ln⁡βL=\ln\betaL=lnβ, and let

H={1/L,t=0,max⁡{1/(La),0},t=1,+∞,t=+∞, a<1,0,t=+∞, a≥1,max⁡ ⁣{(1−a)(sln⁡s+1−s)L(1−sa+as−a),0},0<t<+∞, t≠1,s=t.H= \begin{cases} 1/L,&t=0,\\ \max\{1/(La),0\},&t=1,\\ +\infty,&t=+\infty,\ a<1,\\ 0,&t=+\infty,\ a\ge1,\\ \displaystyle \max\!\left\{ \frac{(1-a)(s\ln s+1-s)} {L(1-s^a+as-a)},0 \right\},&0<t<+\infty,\ t\ne1,\quad s=t. \end{cases}H=⎩⎨⎧​1/L,max{1/(La),0},+∞,0,max{L(1−sa+as−a)(1−a)(slns+1−s)​,0},​t=0,t=1,t=+∞, a<1,t=+∞, a≥1,0<t<+∞, t=1,s=t.​

Form X=1+(a−1)H−1DX=1+(a-1)H^{-1}DX=1+(a−1)H−1D in the extended reals, taking H−1H^{-1}H−1 in [0,∞][0,\infty][0,∞], and let X+∈[0,∞]X_+\in[0,\infty]X+​∈[0,∞] be its nonnegative truncation, which sends negative values and −∞-\infty−∞ to zero and preserves +∞+\infty+∞. The declaration defines

1a−1 log⁡X+L\frac{1}{a-1}\,\frac{\log X_+}{L}a−11​LlogX+​​

in the extended reals, with log⁡0=−∞\log0=-\inftylog0=−∞ and log⁡(+∞)=+∞\log(+\infty)=+\inftylog(+∞)=+∞. All real divisions are total, including 1/0=01/0=01/0=0; the reciprocal of H=0H=0H=0 is +∞+\infty+∞, the reciprocal of H=+∞H=+\inftyH=+∞ is zero, and extended-real multiplication has 0⋅(±∞)=00\cdot(\pm\infty)=00⋅(±∞)=0. No restriction on aaa or finiteness of t,Dt,Dt,D is imposed; in particular, the defined value at a=1a=1a=1 is zero for every t,Dt,Dt,D.

QAlgorithms.Papers.Independent.Intakenext100.P28.renyiLower

For any type AAA equipped with a measurable-space structure, any real base β>1\beta>1β>1, any real aaa, and arbitrary measures P,QP,QP,Q on AAA, put L=ln⁡βL=\ln\betaL=lnβ and K=L−1KL⁡(P∥Q)∈[0,∞]K=L^{-1}\operatorname{KL}(P\|Q)\in[0,\infty]K=L−1KL(P∥Q)∈[0,∞], where KL⁡\operatorname{KL}KL is the library’s Kullback–Leibler divergence. For measures R,SR,SR,S, define U(R,S)U(R,S)U(R,S) to be the SSS-essential supremum of the Radon–Nikodym derivative dR/dSdR/dSdR/dS when R≪SR\ll SR≪S, and +∞+\infty+∞ otherwise, and set v=ofReal⁡((U(Q,P)−1)real)v=\operatorname{ofReal}((U(Q,P)^{-1})_{\mathrm{real}})v=ofReal((U(Q,P)−1)real​), where the real conversion sends +∞+\infty+∞ to zero; thus v=1/U(Q,P)v=1/U(Q,P)v=1/U(Q,P) when 0<U(Q,P)<+∞0<U(Q,P)<+\infty0<U(Q,P)<+∞, and v=0v=0v=0 when U(Q,P)U(Q,P)U(Q,P) is zero or infinite. To specify the formula, for t∈[0,∞]t\in[0,\infty]t∈[0,∞] put

Ha(t)={1/L,t=0,max⁡{1/(La),0},t=1,+∞,t=+∞, a<1,0,t=+∞, a≥1,max⁡ ⁣{(1−a)(sln⁡s+1−s)L(1−sa+as−a),0},0<t<+∞, t≠1,s=t,Ta(t)=1a−1 log⁡ ⁣([1+(a−1)Ha(t)−1K]+)L.H_a(t)= \begin{cases} 1/L,&t=0,\\ \max\{1/(La),0\},&t=1,\\ +\infty,&t=+\infty,\ a<1,\\ 0,&t=+\infty,\ a\ge1,\\ \displaystyle\max\!\left\{ \frac{(1-a)(s\ln s+1-s)}{L(1-s^a+as-a)},0 \right\},&0<t<+\infty,\ t\ne1,\quad s=t, \end{cases} \qquad T_a(t)=\frac{1}{a-1}\, \frac{\log\!\left([1+(a-1)H_a(t)^{-1}K]_+\right)}{L}.Ha​(t)=⎩⎨⎧​1/L,max{1/(La),0},+∞,0,max{L(1−sa+as−a)(1−a)(slns+1−s)​,0},​t=0,t=1,t=+∞, a<1,t=+∞, a≥1,0<t<+∞, t=1,s=t,​Ta​(t)=a−11​Llog([1+(a−1)Ha​(t)−1K]+​)​.

Here Ha(t)−1H_a(t)^{-1}Ha​(t)−1 is the reciprocal in [0,∞][0,\infty][0,∞], and the brackets denote nonnegative truncation from the extended reals to [0,∞][0,\infty][0,∞]. The declaration defines Ta(U(P,Q))T_a(U(P,Q))Ta​(U(P,Q)) if a<1a<1a<1, and max⁡{K,Ta(v)}\max\{K,T_a(v)\}max{K,Ta​(v)} if a≥1a\ge1a≥1, with KKK embedded in the extended reals. No probability, finiteness, or absolute-continuity hypotheses are imposed. Real division by zero equals zero, the extended logarithm has values −∞-\infty−∞ at zero and +∞+\infty+∞ at infinity, and 0⋅(±∞)=00\cdot(\pm\infty)=00⋅(±∞)=0; in particular, a=1a=1a=1 is included and gives the value KKK.

QAlgorithms.Papers.Independent.Intakenext100.P28.renyiUpper

For any type AAA equipped with a measurable-space structure, any real base β>1\beta>1β>1, any real aaa, and arbitrary measures P,QP,QP,Q on AAA, put L=ln⁡βL=\ln\betaL=lnβ and K=L−1KL⁡(P∥Q)∈[0,∞]K=L^{-1}\operatorname{KL}(P\|Q)\in[0,\infty]K=L−1KL(P∥Q)∈[0,∞], where KL⁡\operatorname{KL}KL is the library’s Kullback–Leibler divergence. For measures R,SR,SR,S, let U(R,S)U(R,S)U(R,S) be the SSS-essential supremum of dR/dSdR/dSdR/dS when R≪SR\ll SR≪S, and +∞+\infty+∞ otherwise. Set U=U(P,Q)U=U(P,Q)U=U(P,Q), and let vvv equal 1/U(Q,P)1/U(Q,P)1/U(Q,P) when 0<U(Q,P)<+∞0<U(Q,P)<+\infty0<U(Q,P)<+∞, and zero when U(Q,P)U(Q,P)U(Q,P) is zero or infinite. For t∈[0,∞]t\in[0,\infty]t∈[0,∞], define the quantities used in the formula by

Ha(t)={1/L,t=0,max⁡{1/(La),0},t=1,+∞,t=+∞, a<1,0,t=+∞, a≥1,max⁡ ⁣{(1−a)(sln⁡s+1−s)L(1−sa+as−a),0},0<t<+∞, t≠1,s=t,Ta(t)=1a−1 log⁡ ⁣([1+(a−1)Ha(t)−1K]+)L.H_a(t)= \begin{cases} 1/L,&t=0,\\ \max\{1/(La),0\},&t=1,\\ +\infty,&t=+\infty,\ a<1,\\ 0,&t=+\infty,\ a\ge1,\\ \displaystyle\max\!\left\{ \frac{(1-a)(s\ln s+1-s)}{L(1-s^a+as-a)},0 \right\},&0<t<+\infty,\ t\ne1,\quad s=t, \end{cases} \qquad T_a(t)=\frac{1}{a-1}\, \frac{\log\!\left([1+(a-1)H_a(t)^{-1}K]_+\right)}{L}.Ha​(t)=⎩⎨⎧​1/L,max{1/(La),0},+∞,0,max{L(1−sa+as−a)(1−a)(slns+1−s)​,0},​t=0,t=1,t=+∞, a<1,t=+∞, a≥1,0<t<+∞, t=1,s=t,​Ta​(t)=a−11​Llog([1+(a−1)Ha​(t)−1K]+​)​.

Here the reciprocal of Ha(t)H_a(t)Ha​(t) is taken in [0,∞][0,\infty][0,∞], and the brackets denote nonnegative truncation from the extended reals to [0,∞][0,\infty][0,∞]. The declaration defines

{min⁡{K,Ta(v)},a<1,min⁡{(log⁡U)/L,Ta(U)},a≥1,\begin{cases} \min\{K,T_a(v)\},&a<1,\\ \min\{(\log U)/L,T_a(U)\},&a\ge1, \end{cases}{min{K,Ta​(v)},min{(logU)/L,Ta​(U)},​a<1,a≥1,​

as an extended real number. No probability, finiteness, or absolute-continuity hypotheses are imposed. Real division by zero equals zero; the extended logarithm sends zero to −∞-\infty−∞ and infinity to +∞+\infty+∞; and 0⋅(±∞)=00\cdot(\pm\infty)=00⋅(±∞)=0. In particular, a=1a=1a=1 is included and gives min⁡{(log⁡U)/L,0}\min\{(\log U)/L,0\}min{(logU)/L,0}.

QAlgorithms.Papers.Independent.Intakenext100.P28.reversePinskerPhi

For every real base b>1b>1b>1 and every real ttt, this defines the real-valued function

Φb(t)={0,t=0,1ln⁡b,t=1,tln⁡t(t−1)ln⁡b,t≠0, t≠1.\Phi_b(t)= \begin{cases} 0,&t=0,\\[2pt] \dfrac1{\ln b},&t=1,\\[6pt] \dfrac{t\ln t}{(t-1)\ln b},&t\ne0,\ t\ne1. \end{cases}Φb​(t)=⎩⎨⎧​0,lnb1​,(t−1)lnbtlnt​,​t=0,t=1,t=0, t=1.​

Negative values of ttt are included: the real logarithm used here satisfies ln⁡t=ln⁡∣t∣\ln t=\ln|t|lnt=ln∣t∣ for t<0t<0t<0.

QAlgorithms.Papers.Independent.Intakenext100.P28.rnDensityReal

For any type AAA equipped with a measurable space, any measures P,QP,QP,Q on AAA, and any point x∈Ax\in Ax∈A, rnDensityReal(P,Q,x)\mathrm{rnDensityReal}(P,Q,x)rnDensityReal(P,Q,x) is the real conversion of the nonnegative extended Radon–Nikodym derivative (dP/dQ)(x)(dP/dQ)(x)(dP/dQ)(x). A finite derivative retains its real value, while the value +∞+\infty+∞ converts to 000. This defines a value at every point, with no absolute continuity or finiteness assumption on the measures.

QAlgorithms.Papers.Independent.Intakenext100.P28.samsonKernel

For a logarithm base with real value b>1b>1b>1 and every real number ttt, this real-valued function is

(t−1)2(tln⁡t+1−tln⁡b)max⁡{1,t}.\frac{(t-1)^2} {\left(\dfrac{t\ln t+1-t}{\ln b}\right)\max\{1,t\}}.(lnbtlnt+1−t​)max{1,t}(t−1)2​.

The real logarithm satisfies ln⁡0=0\ln0=0ln0=0 and ln⁡t=ln⁡∣t∣\ln t=\ln|t|lnt=ln∣t∣ for negative ttt, and division by zero is defined to be 000. All real inputs are allowed; in particular, the value at t=1t=1t=1 is 000 and the value at t=0t=0t=0 is ln⁡b\ln blnb.

QAlgorithms.Papers.Independent.Intakenext100.P28.scalarInterval

For arbitrary real numbers b1,b2b_1,b_2b1​,b2​, this defines the set

{t∈R:0<t,b2<t,(b1=0 or t<1/b1),t≠1}.\left\{t\in\mathbb R: 0<t,\quad b_2<t,\quad \bigl(b_1=0\ \text{or}\ t<1/b_1\bigr),\quad t\ne1 \right\}.{t∈R:0<t,b2​<t,(b1​=0 or t<1/b1​),t=1}.

Thus b1=0b_1=0b1​=0 removes the upper restriction, b1>0b_1>0b1​>0 imposes the strict upper bound 1/b11/b_11/b1​, and b1<0b_1<0b1​<0 makes the set empty because that upper bound is negative. The point 111 is excluded in every case.

QAlgorithms.Papers.Independent.Intakenext100.P28.scalarLogSecant

For every real ttt, this defines

S(t)={1,t=1,ln⁡tt−1,t≠1.S(t)= \begin{cases} 1,&t=1,\\[2pt] \dfrac{\ln t}{t-1},&t\ne1. \end{cases}S(t)=⎩⎨⎧​1,t−1lnt​,​t=1,t=1.​

The domain includes zero and negative numbers. The real logarithm has ln⁡0=0\ln0=0ln0=0 and ln⁡t=ln⁡∣t∣\ln t=\ln|t|lnt=ln∣t∣ for t<0t<0t<0; consequently S(0)=0S(0)=0S(0)=0.

QAlgorithms.Papers.Independent.Intakenext100.P28.shannonEntropyBase

For every natural number nnn, every real logarithm base b>1b>1b>1, and arbitrary real vector p=(pi)i=0n−1p=(p_i)_{i=0}^{n-1}p=(pi​)i=0n−1​, this defines

−∑i=0n−1pi ln⁡piln⁡b.-\sum_{i=0}^{n-1}p_i\,\frac{\ln p_i}{\ln b}.−i=0∑n−1​pi​lnblnpi​​.

There is no requirement that the coordinates be nonnegative or sum to 111. The real logarithm satisfies ln⁡0=0\ln 0=0ln0=0 and ln⁡x=ln⁡∣x∣\ln x=\ln|x|lnx=ln∣x∣ for negative xxx, so zero and negative coordinates are included in this definition. For n=0n=0n=0, the value is 000.

QAlgorithms.Papers.Independent.Intakenext100.P28.spectrumCoefficient

For any logarithm base β=b.val>1\beta=b.\mathrm{val}>1β=b.val>1 and any real ttt, define

T(g)=inf⁡{s∈R:g<s and gln⁡s=s−1},Hβ(g)=T(g)−gT(g) ln⁡T(g)ln⁡β+1−T(g)ln⁡β.T(g)=\inf\{s\in\mathbb R:g<s\ \text{and}\ g\ln s=s-1\}, \qquad H_\beta(g)= \frac{T(g)-g} {T(g)\,\dfrac{\ln T(g)}{\ln\beta}+\dfrac{1-T(g)}{\ln\beta}}.T(g)=inf{s∈R:g<s and glns=s−1},Hβ​(g)=T(g)lnβlnT(g)​+lnβ1−T(g)​T(g)−g​.

This defines the real number

spectrumCoefficient⁡(b,t)=inf⁡{tHβ(g)t−g:g∈R, 1<g<t}.\operatorname{spectrumCoefficient}(b,t) =\inf\left\{\frac{tH_\beta(g)}{t-g}:g\in\mathbb R,\ 1<g<t\right\}.spectrumCoefficient(b,t)=inf{t−gtHβ​(g)​:g∈R, 1<g<t}.

All logarithms and divisions are total real operations: ln⁡0=0\ln0=0ln0=0, ln⁡s=ln⁡∣s∣\ln s=\ln|s|lns=ln∣s∣ for negative sss, and division by zero gives 000. Real infima of empty sets, or of sets unbounded below, have value 000. In particular, the defining set for the outer infimum is empty when t≤1t\le1t≤1, so the coefficient is then 000.

QAlgorithms.Papers.Independent.Intakenext100.P28.spectrumEnvelope

For any real numbers v,tv,tv,t, define

E(v,t)={0,t≤22−v,1−tv2(t−1),t>22−v.E(v,t)= \begin{cases} 0,&t\le \dfrac{2}{2-v},\\[4pt] 1-\dfrac{tv}{2(t-1)},&t>\dfrac{2}{2-v}. \end{cases}E(v,t)=⎩⎨⎧​0,1−2(t−1)tv​,​t≤2−v2​,t>2−v2​.​

There are no restrictions on vvv or ttt. All divisions are total real divisions, with division by zero equal to zero; in particular, the cutoff is zero when v=2v=2v=2, and the second branch has value 111 whenever it is used at t=1t=1t=1.

QAlgorithms.Papers.Independent.Intakenext100.P28.symmetricChi

This defines a family of functions which, for every type AAA in universe uuu, every measurable-space structure on AAA, and every pair of measures P,QP,QP,Q on AAA, returns X(P,Q)+X(Q,P)∈[0,∞]X(P,Q)+X(Q,P)\in[0,\infty]X(P,Q)+X(Q,P)∈[0,∞], where

X(R,S)={∫[(ρR,S(x)−1)2]+ dS(x),R≪S,∞,R≪̸S.X(R,S)= \begin{cases} \displaystyle\int[(\rho_{R,S}(x)-1)^2]_+\,dS(x),&R\ll S,\\ \infty,&R\not\ll S. \end{cases}X(R,S)=⎩⎨⎧​∫[(ρR,S​(x)−1)2]+​dS(x),∞,​R≪S,R≪S.​

Here ρR,S\rho_{R,S}ρR,S​ is the Radon–Nikodym derivative converted from a nonnegative extended real to a real, with ∞\infty∞ converted to zero, [z]+=max⁡(z,0)[z]_+=\max(z,0)[z]+​=max(z,0), and the integral is a nonnegative extended integral. No probability or finiteness assumptions are imposed. In particular, failure of absolute continuity in either direction makes the sum infinite; mutual absolute continuity does not require the integrals to be finite.

QAlgorithms.Papers.Independent.Intakenext100.P28.symmetricKL

For every real base b>1b>1b>1, this defines a family of functions which, for every type AAA in universe uuu, every measurable-space structure on AAA, and every pair of measures P,QP,QP,Q on AAA, returns

1ln⁡bDKL(P∥Q)+1ln⁡bDKL(Q∥P)∈[0,∞],\frac1{\ln b}D_{\mathrm{KL}}(P\|Q) + \frac1{\ln b}D_{\mathrm{KL}}(Q\|P) \in[0,\infty],lnb1​DKL​(P∥Q)+lnb1​DKL​(Q∥P)∈[0,∞],

where DKLD_{\mathrm{KL}}DKL​ is the library’s natural-logarithm Kullback–Leibler divergence. The definition imposes no probability, finiteness, or absolute-continuity assumptions on the measures, and infinite values are included.

QAlgorithms.Papers.Independent.Intakenext100.P28.tGamma

For every real number ggg, this defines

T(g)=inf⁡{t∈R:g<t and gln⁡t=t−1}.T(g)=\inf\{t\in\mathbb R:g<t\ \text{and}\ g\ln t=t-1\}.T(g)=inf{t∈R:g<t and glnt=t−1}.

There is no assumption on ggg and no assertion that the displayed set contains a point or has a unique point. The logarithm is the total real logarithm, with ln⁡0=0\ln0=0ln0=0 and ln⁡t=ln⁡∣t∣\ln t=\ln|t|lnt=ln∣t∣ for t<0t<0t<0, so positivity of ttt is not separately required. The infimum is the real-valued infimum, whose value for an empty set is 000.

QAlgorithms.Papers.Independent.Intakenext100.P28.tailMoment

For any measurable space AAA, any logarithm base b>1b>1b>1, any real aaa, any measures P,QP,QP,Q on AAA, and any ℓ,h∈[0,∞]\ell,h\in[0,\infty]ℓ,h∈[0,∞], let [t]+=max⁡(t,0)[t]_+=\max(t,0)[t]+​=max(t,0), regarded as an extended nonnegative real, let ρ(x)=(dP/dQ)(x)∈[0,∞]\rho(x)=(dP/dQ)(x)\in[0,\infty]ρ(x)=(dP/dQ)(x)∈[0,∞], and define Lb(s)=log⁡(s)/log⁡bL_b(s)=\log(s)/\log bLb​(s)=log(s)/logb using the extended nonnegative logarithm, so Lb(0)=−∞L_b(0)=-\inftyLb​(0)=−∞ and Lb(∞)=+∞L_b(\infty)=+\inftyLb​(∞)=+∞. The defined quantity is the extended nonnegative lower Lebesgue integral

∫{t∈R: ℓ<[t]+<h} ⁣−[t]+ a−2(1−P{x:Lb(ρ(x))≤Lb([t]+)}) dt.\int_{\{t\in\mathbb R:\,\ell<[t]_+<h\}}^{\! -} [t]_+^{\,a-2} \left(1-P\{x:L_b(\rho(x))\le L_b([t]_+)\}\right)\,dt.∫{t∈R:ℓ<[t]+​<h}−​[t]+a−2​(1−P{x:Lb​(ρ(x))≤Lb​([t]+​)})dt.

The subtraction inside the integrand is truncated subtraction in [0,∞][0,\infty][0,∞], including when the measured set has mass greater than 111 or infinite mass. No probability, absolute continuity, measurability of the integrand, or finiteness assumptions are imposed. The integration variable is always a finite positive real on the integration domain; if h≤ℓh\le\ellh≤ℓ, including h=0h=0h=0 or ℓ=∞\ell=\inftyℓ=∞, that domain is empty and the value is 000.

QAlgorithms.Papers.Independent.Intakenext100.P28.triangular

For any type AAA equipped with a measurable space and any measures P,QP,QP,Q on AAA, let ρ(x)\rho(x)ρ(x) be the real conversion of (dP/dQ)(x)(dP/dQ)(x)(dP/dQ)(x), with an infinite derivative converted to 000, and let P⊥QP_{\perp Q}P⊥Q​ be the singular part of PPP relative to QQQ. The definition applies the extended-integral construction to the generator f(t)=(t−1)2/(t+1)f(t)=(t-1)^2/(t+1)f(t)=(t−1)2/(t+1) and converts the result to [0,∞][0,\infty][0,∞]; explicitly, this gives

triangular(P,Q)=∫A−(ρ(x)−1)2ρ(x)+1 dQ(x)+P⊥Q(A),\mathrm{triangular}(P,Q) =\int_A^- \frac{(\rho(x)-1)^2}{\rho(x)+1}\,dQ(x)+P_{\perp Q}(A),triangular(P,Q)=∫A−​ρ(x)+1(ρ(x)−1)2​dQ(x)+P⊥Q​(A),

with the nonnegative real integrand converted to a nonnegative extended real. Here the generator’s right lower limit at zero and that of tf(1/t)t f(1/t)tf(1/t) are both 111, so a zero converted derivative contributes integrand value 111 and the singular mass has coefficient 111. No absolute continuity, finiteness, or probability assumptions are imposed.

QAlgorithms.Papers.Independent.Intakenext100.P28.triangularC1

For every real base b>1b>1b>1, this defines a nonnegative extended real constant by

C1(b)=sup⁡t>0t≠1[(t−1)2t+11ln⁡btln⁡tln⁡b+1−tln⁡b]+,C_1(b)= \sup_{\substack{t>0\\t\ne1}} \left[ \frac{\displaystyle \frac{(t-1)^2}{t+1}\frac1{\ln b}} {\displaystyle t\frac{\ln t}{\ln b}+\frac{1-t}{\ln b}} \right]_+,C1​(b)=t>0t=1​sup​​tlnblnt​+lnb1−t​t+1(t−1)2​lnb1​​​+​,

where [x]+=max⁡(x,0)[x]_+=\max(x,0)[x]+​=max(x,0) is regarded as an element of [0,∞][0,\infty][0,∞]. The supremum ranges over every positive real ttt other than 111, and its value is allowed to be infinite; real division by zero, if encountered, has value zero.

QAlgorithms.Papers.Independent.Intakenext100.P28.triangularC2

For every real base b>1b>1b>1, this defines C2(b)∈[0,∞]C_2(b)\in[0,\infty]C2​(b)∈[0,∞] as

inf⁡{c∈[0,∞] | for every real 0<t<1,[(t−1)2(t+1)ln⁡b]+≤[tln⁡tln⁡b+1−tln⁡b]++[2(1−t)ln⁡b]+c},\inf\left\{ c\in[0,\infty]\ \middle|\ \text{for every real }0<t<1,\quad \left[\frac{(t-1)^2}{(t+1)\ln b}\right]_+ \le \left[t\frac{\ln t}{\ln b}+\frac{1-t}{\ln b}\right]_+ + \left[\frac{2(1-t)}{\ln b}\right]_+c \right\},inf{c∈[0,∞] ​ for every real 0<t<1,[(t+1)lnb(t−1)2​]+​≤[tlnblnt​+lnb1−t​]+​+[lnb2(1−t)​]+​c},

where [x]+=max⁡(x,0)[x]_+=\max(x,0)[x]+​=max(x,0), embedded in the nonnegative extended reals. Both the candidate constants and the infimum may be infinite, and the inequality uses nonnegative extended-real arithmetic. The endpoints t=0t=0t=0 and t=1t=1t=1 are excluded. This definition takes an infimum and does not itself assert that it is attained; an empty candidate set would have infimum ∞\infty∞.

QAlgorithms.Papers.Independent.Intakenext100.P28.triangularGenerator

For every real number ttt, the definition is

triangularGenerator(t)=(t−1)2t+1.\mathrm{triangularGenerator}(t)=\frac{(t-1)^2}{t+1}.triangularGenerator(t)=t+1(t−1)2​.

Its domain includes all real numbers. In particular, at t=−1t=-1t=−1 the denominator is zero and total real division assigns the value 000.

QAlgorithms.Papers.Independent.Intakenext100.P28.triangularTVKernel

For every t∈[0,∞]t\in[0,\infty]t∈[0,∞], this function takes values in [0,∞][0,\infty][0,∞] and equals 111 if t=∞t=\inftyt=∞; otherwise, writing s≥0s\ge0s≥0 for the finite real value of ttt, it equals

max⁡ ⁣{∣s−1∣s+1,0}.\max\!\left\{\frac{|s-1|}{s+1},0\right\}.max{s+1∣s−1∣​,0}.

The maximum expresses conversion of the real quotient to an extended nonnegative real by truncating negative values to zero. In particular, the value at t=0t=0t=0 is 111 and the value at t=1t=1t=1 is 000.

QAlgorithms.Papers.Independent.Intakenext100.P28.truncatedSecond

For any measurable space AAA and any measures P,QP,QP,Q on AAA, let d(x)d(x)d(x) be the real conversion of the extended nonnegative Radon–Nikodym derivative (dP/dQ)(x)(dP/dQ)(x)(dP/dQ)(x); this conversion sends an infinite derivative to 000. The defined extended nonnegative quantity is

∫A ⁣−{d(x)(d(x)−1),d(x)>1,0,d(x)≤1 dQ(x),\int_A^{\! -} \begin{cases} d(x)\bigl(d(x)-1\bigr),&d(x)>1,\\ 0,&d(x)\le1 \end{cases} \,dQ(x),∫A−​{d(x)(d(x)−1),0,​d(x)>1,d(x)≤1​dQ(x),

where the displayed real integrand is embedded into [0,∞][0,\infty][0,∞] by taking its nonnegative part. Thus a derivative equal to 111, or an infinite derivative after its real conversion, contributes 000. No probability, absolute continuity, or integrability assumptions are required, and the lower integral may be infinite.

QAlgorithms.Papers.Independent.Intakenext100.P28.typicalExponent

For any natural number nnn, any real base β>1\beta>1β>1, any real-valued vector q=(qi)i=0n−1q=(q_i)_{i=0}^{n-1}q=(qi​)i=0n−1​, and any real ddd, this defines the following infimum in [0,∞][0,\infty][0,∞]:

inf⁡{max⁡{∑i=0n−1piln⁡(pi/qi)ln⁡β, 0} | p∈Rn,(∀i, pi≥0),∑ipi=1,∃i, ∣pi−qi∣>dqi}.\inf\left\{ \max\left\{\sum_{i=0}^{n-1}p_i\frac{\ln(p_i/q_i)}{\ln\beta},\,0\right\} \ \middle|\ p\in\mathbb R^n,\quad (\forall i,\ p_i\ge0),\quad \sum_i p_i=1,\quad \exists i,\ |p_i-q_i|>d q_i \right\}.inf{max{i=0∑n−1​pi​lnβln(pi​/qi​)​,0} ​ p∈Rn,(∀i, pi​≥0),i∑​pi​=1,∃i, ∣pi​−qi​∣>dqi​}.

There is no probability or positivity assumption on qqq, and no sign assumption on ddd. The summands use total real division and logarithms: division by zero is zero, ln⁡0=0\ln0=0ln0=0, and logarithms of negative arguments mean logarithms of their absolute values. The infimum of an empty set here is +∞+\infty+∞. In particular, when n=0n=0n=0, no vector can have coordinate sum one, so the value is +∞+\infty+∞.

QAlgorithms.Papers.Independent.Intakenext100.P28.uAlpha

For a real base β>1\beta>1β>1, any real aaa, and any t∈[0,∞]t\in[0,\infty]t∈[0,∞], put L=ln⁡βL=\ln\betaL=lnβ and define H∈[0,∞]H\in[0,\infty]H∈[0,∞] by

H={1/L,t=0,max⁡{1/(La),0},t=1,+∞,t=+∞ and a<1,0,t=+∞ and a≥1,max⁡ ⁣{(1−a)(sln⁡s+1−s)L(1−sa+as−a),0},0<t<+∞, t≠1,s=t.H= \begin{cases} 1/L,&t=0,\\ \max\{1/(La),0\},&t=1,\\ +\infty,&t=+\infty\text{ and }a<1,\\ 0,&t=+\infty\text{ and }a\ge1,\\ \displaystyle \max\!\left\{ \frac{(1-a)(s\ln s+1-s)} {L(1-s^a+as-a)},0 \right\},&0<t<+\infty,\ t\ne1,\quad s=t. \end{cases}H=⎩⎨⎧​1/L,max{1/(La),0},+∞,0,max{L(1−sa+as−a)(1−a)(slns+1−s)​,0},​t=0,t=1,t=+∞ and a<1,t=+∞ and a≥1,0<t<+∞, t=1,s=t.​

The declaration defines the extended real number (a−1)H−1(a-1)H^{-1}(a−1)H−1, where the reciprocal is first taken in [0,∞][0,\infty][0,∞] and then embedded in the extended reals. In particular, 0−1=+∞0^{-1}=+\infty0−1=+∞ and (+∞)−1=0(+\infty)^{-1}=0(+∞)−1=0. No restriction excludes a=0a=0a=0 or a=1a=1a=1; real divisions by zero in the formula for HHH equal zero, and multiplication uses the total extended-real convention 0⋅(±∞)=00\cdot(\pm\infty)=00⋅(±∞)=0. Consequently, at a=1a=1a=1 the defined value is zero for every ttt.

QAlgorithms.Papers.Independent.Intakenext100.P28.uniformEntropyThreshold

For every real logarithm base b>1b>1b>1 and natural numbers n,kn,kn,k, this defines

{0,k=0,ln⁡nln⁡b,k≠0 and k=n−1,−knln⁡(k/n)ln⁡b−(1−kn)ln⁡(1−k/n)ln⁡b+knln⁡kln⁡b,k≠0 and k≠n−1.\begin{cases} 0,&k=0,\\[2pt] \displaystyle\frac{\ln n}{\ln b},&k\ne0\ \text{and}\ k=n-1,\\[6pt] \displaystyle -\frac{k}{n}\frac{\ln(k/n)}{\ln b} -\left(1-\frac{k}{n}\right)\frac{\ln(1-k/n)}{\ln b} +\frac{k}{n}\frac{\ln k}{\ln b}, &k\ne0\ \text{and}\ k\ne n-1. \end{cases}⎩⎨⎧​0,lnblnn​,−nk​lnbln(k/n)​−(1−nk​)lnbln(1−k/n)​+nk​lnblnk​,​k=0,k=0 and k=n−1,k=0 and k=n−1.​

In the branch condition, n−1n-1n−1 is natural-number subtraction, so it equals 000 when n=0n=0n=0; all quotients and subtractions inside the displayed real expressions are real operations. There is no assumption that k<nk<nk<n or that n>0n>0n>0. Real division by zero equals 000, and the real logarithm satisfies ln⁡0=0\ln0=0ln0=0 and ln⁡x=ln⁡∣x∣\ln x=\ln|x|lnx=ln∣x∣ for negative xxx. In particular, the value is 000 whenever n=0n=0n=0, and the first branch takes precedence whenever k=0k=0k=0.

QAlgorithms.Papers.Independent.Intakenext100.P28.uniformLaw

For every natural number nnn, this defines a real-valued function on the indices 0,…,n−10,\ldots,n-10,…,n−1 whose value at every index is

1n.\frac{1}{n}.n1​.

For n>0n>0n>0, all nnn coordinates equal 1/n1/n1/n. For n=0n=0n=0, the domain is empty, so this is the unique function from the empty index set to R\mathbb RR; the total real expression 1/01/01/0 is 000, although there is no index at which to evaluate the function.

QAlgorithms.Papers.Independent.Intakenext100.P28.upperDensity

For any type AAA equipped with a measurable space and any measures P,QP,QP,Q on AAA, this defines a value in [0,∞][0,\infty][0,∞] by

{ess sup⁡x with respect to QdPdQ(x),P≪Q,∞,P≪̸Q.\begin{cases} \displaystyle \operatorname*{ess\,sup}_{x\text{ with respect to }Q} \frac{dP}{dQ}(x),&P\ll Q,\\ \infty,&P\not\ll Q. \end{cases}⎩⎨⎧​x with respect to Qesssup​dQdP​(x),∞,​P≪Q,P≪Q.​

Thus failure of absolute continuity gives ∞\infty∞ directly; even under absolute continuity, the essential supremum may be infinite. No probability or finiteness assumptions are required. When P=Q=0P=Q=0P=Q=0, the essential supremum with respect to the zero measure is 000.

Human review
  • Endorsed by Shuze Chen · Oct 31, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Gohan · Oct 31, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me