Definitions for -divergence Inequalities
DefinitionQAlgorithms_Papers_Independent_Intakenext100_P28The objects the formalized statements of -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 scalarlog 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).
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
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 in the universe and every measurable-space structure on , assigns a value in to each ordered pair of measures on . 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 , including , and any real-valued vector , the predicate means precisely that for every index and . When , the coordinate condition is vacuous but the empty sum is , so the predicate is false.
QAlgorithms.Papers.Independent.Intakenext100.P28.Generator
For any function , this predicate means that is convex on and . Explicitly, for all and all nonnegative real weights with ,
and . The predicate places no restrictions on at zero or at negative arguments.
QAlgorithms.Papers.Independent.Intakenext100.P28.KLLinearBound
For a real base and constants , this defines the following proposition: for every type in universe , every measurable-space structure on , and every pair of probability measures on such that is absolutely continuous with respect to ,
Here is the natural-logarithm Kullback–Leibler divergence. For measures , put converted to a real number, with an infinite derivative converted to zero. The quantities in the inequality are defined by
where these are nonnegative extended integrals and . All arithmetic in the bound is in , so the constants and divergences may be infinite, and .
QAlgorithms.Papers.Independent.Intakenext100.P28.LogBase
A logarithm base consists of a real number together with a proof that . No further data or conditions are required.
QAlgorithms.Papers.Independent.Intakenext100.P28.LowerSharp
Let and each assign a value in to every ordered pair of measures on every measurable space whose underlying type lies in universe , let assign a proposition to each such pair, and let . This is the proposition that is the greatest element of the set of all such that, for every such underlying type , every measurable-space structure on , and every pair of probability measures on ,
Explicitly, itself must satisfy this universal inequality, and every satisfying it must obey . The products and inequalities are in the extended nonnegative reals, including , and is allowed. If no probability-measure pair satisfies , every satisfies the universal condition, so this proposition holds exactly when .
QAlgorithms.Papers.Independent.Intakenext100.P28.PairCondition
A pair condition is a predicate that, for every type in the universe and every measurable-space structure on , assigns a proposition to each ordered pair of measures on . 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 , the property means that is convex on , that , and that for every real with . It imposes no condition on the values of at nonpositive arguments.
QAlgorithms.Papers.Independent.Intakenext100.P28.RelativeCoordinateTypical
For any natural number , any two real-valued vectors and , and any real , this is the proposition
Neither vector is assumed to be nonnegative or to sum to one, and need not be nonnegative. At a coordinate where , the condition requires ; if at any coordinate, the proposition cannot hold. When , it holds vacuously.
QAlgorithms.Papers.Independent.Intakenext100.P28.Sharp
Let each assign a value in to every ordered pair of measures on every measurable type in the universe , let assign a proposition to every such pair, and let . The sharpness property means that is the least element of the set of constants such that, for every type in that universe, every measurable-space structure on , and every pair of probability measures satisfying , one has . Thus itself satisfies all these inequalities and for every other constant satisfying them. Multiplication is extended nonnegative multiplication, with ; is an allowed constant. If no probability pair satisfies , every constant qualifies and the least one is .
QAlgorithms.Papers.Independent.Intakenext100.P28.StrictAtOne
For any function , this predicate means that for every three real numbers satisfying
one has
There is no separate assumption of convexity or of ; the predicate requires this strict inequality only for the triples satisfying all the displayed conditions.
QAlgorithms.Papers.Independent.Intakenext100.P28.UniversalBound
Let each assign a value in to every ordered pair of measures on every measurable type in the universe , let assign a proposition to every such pair, and let . The universal-bound property means that for every type in that universe, every measurable-space structure on , and every pair of probability measures on satisfying ,
The inequality uses extended nonnegative multiplication, including , and permits . If no probability pair satisfies , the property holds vacuously for every .
QAlgorithms.Papers.Independent.Intakenext100.P28.absInfo
For any measurable space , any real base , and any measures on , let denote the Radon–Nikodym derivative supplied by the measure theory, and put , using the extended logarithm with and . Define
where converts an extended real to a nonnegative extended real by replacing negative values, including , by zero and retaining nonnegative values, including . No probability, finiteness, or absolute-continuity assumptions are imposed on ; the integral may be infinite.
QAlgorithms.Papers.Independent.Intakenext100.P28.acPairs
For every type in the universe , every measurable-space structure on , and all measures on , this pair condition holds exactly when is absolutely continuous with respect to : every measurable set of -measure zero has -measure zero. No probability or finiteness assumption is imposed.
QAlgorithms.Papers.Independent.Intakenext100.P28.balance
For every natural number and arbitrary real vector , this defines
Each is a finite subset, so each selected coordinate is counted once. No positivity or normalization is assumed for . If any subset has sum at least , the value is the smallest such subset sum. If no subset satisfies that condition, the set is empty and the real infimum operation returns ; this occurs in particular when , since the only subset then has sum .
QAlgorithms.Papers.Independent.Intakenext100.P28.balancePhi
For a real base and any real , this defines the real number
There is no restriction that lie between and . Division and logarithms use their total real-valued conventions: division by zero is zero, , and the real logarithm of a negative argument is the logarithm of its absolute value. In particular, the defined value is zero at both and .
QAlgorithms.Papers.Independent.Intakenext100.P28.binary
For every real number , this defines a measure on the two-point set by
where the coefficients are viewed as nonnegative extended reals and is the Dirac measure at . Thus the masses at and are respectively and . The parameter is unrestricted: this is a probability measure when , with and ; outside that interval the negative coefficient is truncated to zero and the total mass exceeds .
QAlgorithms.Papers.Independent.Intakenext100.P28.binaryEntropyBase
For every real logarithm base and every real number , this defines
There is no restriction that lie in . The real logarithm satisfies and for negative , so the expression is defined for every real ; in particular, its value is at both and .
QAlgorithms.Papers.Independent.Intakenext100.P28.binaryKL
For every real logarithm base and all real numbers , this defines the real number
Neither nor is restricted to . The formula uses total real division, so division by zero has value , and the total real logarithm, for which and when . Consequently the definition also assigns real values when or , or when a logarithm argument is zero or negative.
QAlgorithms.Papers.Independent.Intakenext100.P28.cGammaApprox
For any logarithm base and any real , put
This defines the real number
There is no positivity assumption on or , and no nonzero-denominator assumption. The real logarithm satisfies and for negative , and real division by zero gives .
QAlgorithms.Papers.Independent.Intakenext100.P28.cdfMoment
For any measurable space , any logarithm base , any real , any measures on , and any , let , regarded as an extended nonnegative real, let , and put using the extended nonnegative logarithm, with and . The defined quantity is
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 , including or , the domain is empty and the value is .
QAlgorithms.Papers.Independent.Intakenext100.P28.chiSquareDiv
For any type equipped with a measurable space and any measures on , the definition is
where is the real conversion of , with an infinite derivative converted to , 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 and any , this defines the nonnegative extended real number
Equivalently, the original expression takes the minimum of and , where for infinite and for finite , and then raises that minimum to the real power in . Subtraction in is truncated at zero. The case is included and gives zero.
QAlgorithms.Papers.Independent.Intakenext100.P28.densityInterval
For any type equipped with a measurable space and any measures on , define when , and otherwise; define when , and when is either or . This defines the set of real numbers
where is regarded as an element of . Both bounds are strict, and 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 equipped with a measurable space, any measure on , and any function , this defines
as an extended real number, where is the nonnegative part of , is the nonnegative part of , and both integrals are nonnegative extended integrals, embedded into the extended reals before subtraction. No measurability or integrability hypothesis is imposed on , 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 and any extended nonnegative real number , this defines the extended real number
using the extended logarithm, whose values at and are and , 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 , an arbitrary real parameter , and , this function takes values in and is defined by
where is the finite real value of in the last case and 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 , and no restriction excludes or ; for either of those parameters the last branch is .
QAlgorithms.Papers.Independent.Intakenext100.P28.entropyKernel
For a logarithm base with real value and every real number , this real-valued function is
Here the real logarithm is total: , and for negative arguments ; real division by zero is defined to be . Thus zero and negative inputs are included, and the value at is .
QAlgorithms.Papers.Independent.Intakenext100.P28.entropyMaxLaw
For every pair of natural numbers and every real number , this defines a real-valued function on the indices by
Here in the denominator is subtraction in , after converting and to real numbers. No restriction on relative to , or on , is imposed, and the definition does not assert nonnegativity or normalization. Real division by zero equals . If , the domain is empty; if , every existing index uses the second branch; if , every existing index uses the first branch.
QAlgorithms.Papers.Independent.Intakenext100.P28.entropyMinLaw
For every pair of natural numbers and every real number , this defines a real-valued function on the indices by
The subtraction in the numerator is real subtraction after converting to a real number, so it equals when . No restriction on relative to , or on , is imposed, and no nonnegativity or normalization is asserted. Real division by zero equals . If , the domain is empty. If and , the coordinate at uses the first branch and every other coordinate is ; if , there is no coordinate with index .
QAlgorithms.Papers.Independent.Intakenext100.P28.exactPairs
For arbitrary real numbers , every type in the universe , every measurable-space structure on , and all measures on , define to be the -essential supremum of the Radon–Nikodym derivative when is absolutely continuous with respect to , and to be otherwise. This pair condition holds exactly when
Here inversion is in , with and , and conversion to a real number sends to . Consequently, either or gives inverse real value . There are no probability assumptions or restrictions on ; a negative prescribed value makes the condition impossible.
QAlgorithms.Papers.Independent.Intakenext100.P28.expB
For a logarithm base with real value and any real number , this defines the real number
QAlgorithms.Papers.Independent.Intakenext100.P28.expNeg
For any real base and any , this defines an element of by
The finite-branch exponential is embedded into by taking its nonnegative part; it is already positive. In particular, the value at is .
QAlgorithms.Papers.Independent.Intakenext100.P28.fDiv
For any type equipped with a measurable space, any function , and any measures on , let be the real conversion of the extended nonnegative Radon–Nikodym derivative of with respect to , where this conversion sends to . Put , and define when and otherwise. This defines the extended real number
where and are the nonnegative parts of and , respectively, and is the singular part of relative to . Nonnegative integrals and the singular mass are embedded into the extended reals for this formula. No probability, finiteness, absolute-continuity, measurability-of-, 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 and arbitrary real vectors and , this defines
For , this is the smallest coordinate ratio, where a ratio with equals by the convention for real division. No positivity or normalization is assumed. For , the set is empty and the real infimum operation returns .
QAlgorithms.Papers.Independent.Intakenext100.P28.finiteChi
For every natural number and arbitrary real vectors and , this defines
No positivity or normalization is required. A coordinate with contributes , because real division by zero equals ; negative values of are also allowed. For , the value is the empty sum .
QAlgorithms.Papers.Independent.Intakenext100.P28.finiteKL
For every natural number , every real logarithm base , and arbitrary real vectors and , this defines the real number
There are no nonnegativity, normalization, or nonzero-denominator assumptions on or . Real division by zero equals ; the real logarithm used here satisfies and for negative . For , the sum is empty and the value is .
QAlgorithms.Papers.Independent.Intakenext100.P28.finiteL2
For any natural number , including , and any two real-valued vectors and , define . No nonnegativity or normalization conditions are imposed on either vector, no square root is taken, and the value is when .
QAlgorithms.Papers.Independent.Intakenext100.P28.finiteTV
For any natural number , including , and any two real-valued vectors and , define . No nonnegativity or normalization conditions are imposed on either vector, there is no factor of , and the value is when .
QAlgorithms.Papers.Independent.Intakenext100.P28.fullVariation
For any type equipped with a measurable space and any measures on , let and be the real conversions of and , respectively, with an infinite derivative converted to . The definition is
where the nonnegative real integrand is converted to a nonnegative extended real. There is no factor of , and no probability or finiteness assumption is imposed.
QAlgorithms.Papers.Independent.Intakenext100.P28.functionalConstant
For arbitrary functions and an arbitrary set , this defines
When is omitted, it is . Division is total real division, so a point with contributes , regardless of . Negative ratios also contribute . No regularity, sign, or nonvanishing assumptions are imposed on the functions, and no nonemptiness or boundedness assumption is imposed on : the value is for , and it may be when the nonnegative ratios are unbounded.
QAlgorithms.Papers.Independent.Intakenext100.P28.generatorAtZero
For any function , this defines the extended real number
with the values of 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 and any real number , this defines
The reciprocal is total, with , so the value at is . Negative values of are included, and no condition is imposed on .
QAlgorithms.Papers.Independent.Intakenext100.P28.generatorValue
For any function and any real number , this defines the extended real number
The second branch includes negative arguments, and the value at zero uses the right-hand lower limit rather than . No regularity condition is imposed on .
QAlgorithms.Papers.Independent.Intakenext100.P28.hellinger
For any type equipped with a measurable space, any real , and any measures on , this defines a value in . When , its value is the library’s Kullback–Leibler divergence . Otherwise, put , let , and let be its real conversion, which equals when finite and equals when . Define
with the lower limits and valued in the extended reals. The defined value is
where is the singular part of relative to , and here means conversion from the extended reals to , sending negative values and to , and to . 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 is assumed.
QAlgorithms.Papers.Independent.Intakenext100.P28.hellingerOrderGenerator
For arbitrary real numbers and , this defines the real number
where is the library’s total real-power operation. There are no restrictions on or , so zero and negative are included. Division uses total real division; in particular, when , the value is for every .
QAlgorithms.Papers.Independent.Intakenext100.P28.hockey
For any type equipped with a measurable space, any real , and any measures on , this defines
where is the real conversion of the -valued Radon–Nikodym derivative , taking value when that derivative is infinite, and is the singular part of relative to . The integral is a nonnegative extended integral. The parameter 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 and any real , set
This defines the real number
The logarithm is total, with and for negative , and an empty set in the definition of has real infimum . No restriction on , existence of a point in that set, or nonzero denominator is assumed; real division by zero is defined to be .
QAlgorithms.Papers.Independent.Intakenext100.P28.informationSpectrum
For any type equipped with a measurable space, any logarithm base , any measures on , and any extended-real threshold , this defines
The extended logarithm takes values at zero and at infinity. The inequality is non-strict: at , the set consists exactly of points where the derivative is zero; at , it is all of . No probability, finiteness, or absolute-continuity assumptions are imposed, so the value need not lie in .
QAlgorithms.Papers.Independent.Intakenext100.P28.inverseUpperDensity
For any type equipped with a measurable space and any measures on , first set if , and set otherwise. This defines the real conversion of the reciprocal , namely
In particular, the value is when ; it is also when the essential supremum is zero, because the reciprocal of in is , whose real conversion is . No probability or finiteness assumptions are imposed.
QAlgorithms.Papers.Independent.Intakenext100.P28.jensenGap
For any measurable space , any function , any measure on , and any measure kernel from to , put
This defines the extended-real number
where the two nonnegative lower integrals take values in and are then embedded into the extended reals before subtraction. No convexity, measurability, integrability, or probability assumption is imposed on beyond being a measure kernel. The real-valued integrals defining and its integral against are 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 equipped with a measurable space, any real logarithm base , and any measures on , set . The definition is
where is the library’s Kullback–Leibler divergence and the positive factor is converted to a nonnegative extended real. The two divergence terms are added without an additional factor of . No probability or finiteness assumptions are imposed on .
QAlgorithms.Papers.Independent.Intakenext100.P28.jsBaseGenerator
For any logarithm base and any real , this defines
The logarithms are the library’s total real logarithms, with and for negative . There is no positivity restriction on or on , so the expression is defined for every real , including and .
QAlgorithms.Papers.Independent.Intakenext100.P28.jsHellingerKernel
For a real base , any real parameter , and any , this defines a value in by
Here , regarded as a nonnegative extended real number. No restriction is imposed on ; in particular, and 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 and , this function takes values in and is
where is the finite real value of 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 .
QAlgorithms.Papers.Independent.Intakenext100.P28.kernelMean
For any measurable space , any measure kernel from to , and any , this defines the real number
No assumption says that the measures are probability measures or that the identity function is integrable. The integral is the total real-valued Bochner integral, which is defined to be when the integrand is not integrable.
QAlgorithms.Papers.Independent.Intakenext100.P28.kl
For any type equipped with a measurable space, any real logarithm base , and any measures on , this definition gives the value in
where is the library’s Kullback–Leibler divergence. The factor is converted to a nonnegative extended real before multiplication; it is positive because . 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 and any real number , this defines
Here the real logarithm is total: at its value is , and at negative it equals . Thus the definition includes zero and negative arguments.
QAlgorithms.Papers.Independent.Intakenext100.P28.logBaseE
For a logarithm base with real value , this defines the real number
where is the natural logarithm.
QAlgorithms.Papers.Independent.Intakenext100.P28.marton
For any type equipped with a measurable space and any measures on , let be the real conversion of , with an infinite derivative converted to . The definition applies the extended-integral construction to the function for and for , and converts the result to ; explicitly,
The function’s right lower limit at zero is , and that of is , so a zero converted derivative contributes 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 equipped with a measurable space and any measures on , let and be the real conversions of and , respectively, with an infinite derivative converted to . Define when and when . Then
where each nonnegative real integrand is converted to a nonnegative extended real. Thus converted derivative values and contribute and , 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 and arbitrary real vector , this defines the real infimum of the set of coordinate values,
For , this is the smallest coordinate of , with no positivity or normalization assumption. For , the set is empty and the real infimum operation used here returns .
QAlgorithms.Papers.Independent.Intakenext100.P28.momentKLBound
For every real base and , define the following extended real, with the cases taken in the displayed order:
In the finite branches, denote their ordinary real values. In particular, gives regardless of , including when ; the potentially zero denominator at is handled by the second branch.
QAlgorithms.Papers.Independent.Intakenext100.P28.mutualPairs
For every type in the universe , every measurable-space structure on , and all measures on , this pair condition holds exactly when both is absolutely continuous with respect to and is absolutely continuous with respect to . 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 equipped with a measurable space, any function , and any measures on , define and , with both lower limits taken in the extended reals. For , let be the real conversion of the Radon–Nikodym derivative , where an infinite derivative converts to , and set if and otherwise. Then
where is the singular part of relative to , the integrals are nonnegative extended integrals embedded into the extended reals before subtraction, and denotes conversion from the extended reals to , sending nonpositive values to and to . The expression uses total extended-real arithmetic. No convexity, measurability, integrability, absolute continuity, finiteness, or probability assumptions are imposed on .
QAlgorithms.Papers.Independent.Intakenext100.P28.negativeInfo
For any measurable space , any real base , and any measures on , write for the supplied Radon–Nikodym derivative and , where the logarithm is extended by and . Define
where conversion replaces negative extended reals by zero and retains nonnegative extended reals. Thus the integrand is where , and zero where . No probability, finiteness, or absolute-continuity assumptions are required.
QAlgorithms.Papers.Independent.Intakenext100.P28.phiAlpha
For all real parameters , this defines the real number
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 and for negative . Every division by zero returns zero. Thus the definition includes , where its value is zero, and , for which the function is identically zero.
QAlgorithms.Papers.Independent.Intakenext100.P28.probabilityMixture
For any type equipped with a measurable space, any measures on , and any real number , the definition is the measure
where the coefficients are regarded as nonnegative extended reals and multiplication means scaling a measure. There is no assumption that or that are probability measures. At the result is , at it is , for it is , and for it is .
QAlgorithms.Papers.Independent.Intakenext100.P28.qMax
For every natural number and arbitrary real vector , this defines the real supremum of the set of coordinate values,
For , this is the largest coordinate of , with no positivity or normalization assumption. For , the set is empty and the real supremum operation used here returns .
QAlgorithms.Papers.Independent.Intakenext100.P28.r
For any logarithm base and any real , this defines
Here is the library’s total real logarithm, with and for negative . Thus the definition includes zero and negative inputs; in particular, its value at is , and its value at is .
QAlgorithms.Papers.Independent.Intakenext100.P28.ratioEndpoint
For arbitrary functions and any , this defines
Both lower limits are taken in , so they may equal . 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 equipped with a measurable space, any logarithm base , any measures on , and any point , this defines the extended-real number
where the derivative is -valued and the extended logarithm is at and at . Consequently, the defined value is when the derivative is zero and 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 , any real numbers , and any , put . Write , regarded as an element of , for real ; write for the conversion from extended reals to , which sends nonpositive values to , preserves positive finite values, and sends to . Define on , with and . The declaration defines the extended-real value
The prefactor is computed in the real numbers and then embedded into the extended reals; the arithmetic inside is extended-real arithmetic, and the power is computed in . There are no restrictions excluding , , , or : all operations retain their total definitions at those inputs, including the real convention .
QAlgorithms.Papers.Independent.Intakenext100.P28.renyiDiv
For any type equipped with a measurable space, any logarithm base , any real order , and any measures on , let , and write , where is the extended logarithm on , with values at and at . This defines the extended-real value
Here is the library’s Kullback–Leibler divergence, the middle branch is embedded from 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 , any real , and any , put , and let
Form in the extended reals, taking in , and let be its nonnegative truncation, which sends negative values and to zero and preserves . The declaration defines
in the extended reals, with and . All real divisions are total, including ; the reciprocal of is , the reciprocal of is zero, and extended-real multiplication has . No restriction on or finiteness of is imposed; in particular, the defined value at is zero for every .
QAlgorithms.Papers.Independent.Intakenext100.P28.renyiLower
For any type equipped with a measurable-space structure, any real base , any real , and arbitrary measures on , put and , where is the library’s Kullback–Leibler divergence. For measures , define to be the -essential supremum of the Radon–Nikodym derivative when , and otherwise, and set , where the real conversion sends to zero; thus when , and when is zero or infinite. To specify the formula, for put
Here is the reciprocal in , and the brackets denote nonnegative truncation from the extended reals to . The declaration defines if , and if , with 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 at zero and at infinity, and ; in particular, is included and gives the value .
QAlgorithms.Papers.Independent.Intakenext100.P28.renyiUpper
For any type equipped with a measurable-space structure, any real base , any real , and arbitrary measures on , put and , where is the library’s Kullback–Leibler divergence. For measures , let be the -essential supremum of when , and otherwise. Set , and let equal when , and zero when is zero or infinite. For , define the quantities used in the formula by
Here the reciprocal of is taken in , and the brackets denote nonnegative truncation from the extended reals to . The declaration defines
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 and infinity to ; and . In particular, is included and gives .
QAlgorithms.Papers.Independent.Intakenext100.P28.reversePinskerPhi
For every real base and every real , this defines the real-valued function
Negative values of are included: the real logarithm used here satisfies for .
QAlgorithms.Papers.Independent.Intakenext100.P28.rnDensityReal
For any type equipped with a measurable space, any measures on , and any point , is the real conversion of the nonnegative extended Radon–Nikodym derivative . A finite derivative retains its real value, while the value converts to . 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 and every real number , this real-valued function is
The real logarithm satisfies and for negative , and division by zero is defined to be . All real inputs are allowed; in particular, the value at is and the value at is .
QAlgorithms.Papers.Independent.Intakenext100.P28.scalarInterval
For arbitrary real numbers , this defines the set
Thus removes the upper restriction, imposes the strict upper bound , and makes the set empty because that upper bound is negative. The point is excluded in every case.
QAlgorithms.Papers.Independent.Intakenext100.P28.scalarLogSecant
For every real , this defines
The domain includes zero and negative numbers. The real logarithm has and for ; consequently .
QAlgorithms.Papers.Independent.Intakenext100.P28.shannonEntropyBase
For every natural number , every real logarithm base , and arbitrary real vector , this defines
There is no requirement that the coordinates be nonnegative or sum to . The real logarithm satisfies and for negative , so zero and negative coordinates are included in this definition. For , the value is .
QAlgorithms.Papers.Independent.Intakenext100.P28.spectrumCoefficient
For any logarithm base and any real , define
This defines the real number
All logarithms and divisions are total real operations: , for negative , and division by zero gives . Real infima of empty sets, or of sets unbounded below, have value . In particular, the defining set for the outer infimum is empty when , so the coefficient is then .
QAlgorithms.Papers.Independent.Intakenext100.P28.spectrumEnvelope
For any real numbers , define
There are no restrictions on or . All divisions are total real divisions, with division by zero equal to zero; in particular, the cutoff is zero when , and the second branch has value whenever it is used at .
QAlgorithms.Papers.Independent.Intakenext100.P28.symmetricChi
This defines a family of functions which, for every type in universe , every measurable-space structure on , and every pair of measures on , returns , where
Here is the Radon–Nikodym derivative converted from a nonnegative extended real to a real, with converted to zero, , 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 , this defines a family of functions which, for every type in universe , every measurable-space structure on , and every pair of measures on , returns
where 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 , this defines
There is no assumption on and no assertion that the displayed set contains a point or has a unique point. The logarithm is the total real logarithm, with and for , so positivity of is not separately required. The infimum is the real-valued infimum, whose value for an empty set is .
QAlgorithms.Papers.Independent.Intakenext100.P28.tailMoment
For any measurable space , any logarithm base , any real , any measures on , and any , let , regarded as an extended nonnegative real, let , and define using the extended nonnegative logarithm, so and . The defined quantity is the extended nonnegative lower Lebesgue integral
The subtraction inside the integrand is truncated subtraction in , including when the measured set has mass greater than 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 , including or , that domain is empty and the value is .
QAlgorithms.Papers.Independent.Intakenext100.P28.triangular
For any type equipped with a measurable space and any measures on , let be the real conversion of , with an infinite derivative converted to , and let be the singular part of relative to . The definition applies the extended-integral construction to the generator and converts the result to ; explicitly, this gives
with the nonnegative real integrand converted to a nonnegative extended real. Here the generator’s right lower limit at zero and that of are both , so a zero converted derivative contributes integrand value and the singular mass has coefficient . No absolute continuity, finiteness, or probability assumptions are imposed.
QAlgorithms.Papers.Independent.Intakenext100.P28.triangularC1
For every real base , this defines a nonnegative extended real constant by
where is regarded as an element of . The supremum ranges over every positive real other than , 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 , this defines as
where , 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 and are excluded. This definition takes an infimum and does not itself assert that it is attained; an empty candidate set would have infimum .
QAlgorithms.Papers.Independent.Intakenext100.P28.triangularGenerator
For every real number , the definition is
Its domain includes all real numbers. In particular, at the denominator is zero and total real division assigns the value .
QAlgorithms.Papers.Independent.Intakenext100.P28.triangularTVKernel
For every , this function takes values in and equals if ; otherwise, writing for the finite real value of , it equals
The maximum expresses conversion of the real quotient to an extended nonnegative real by truncating negative values to zero. In particular, the value at is and the value at is .
QAlgorithms.Papers.Independent.Intakenext100.P28.truncatedSecond
For any measurable space and any measures on , let be the real conversion of the extended nonnegative Radon–Nikodym derivative ; this conversion sends an infinite derivative to . The defined extended nonnegative quantity is
where the displayed real integrand is embedded into by taking its nonnegative part. Thus a derivative equal to , or an infinite derivative after its real conversion, contributes . 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 , any real base , any real-valued vector , and any real , this defines the following infimum in :
There is no probability or positivity assumption on , and no sign assumption on . The summands use total real division and logarithms: division by zero is zero, , and logarithms of negative arguments mean logarithms of their absolute values. The infimum of an empty set here is . In particular, when , no vector can have coordinate sum one, so the value is .
QAlgorithms.Papers.Independent.Intakenext100.P28.uAlpha
For a real base , any real , and any , put and define by
The declaration defines the extended real number , where the reciprocal is first taken in and then embedded in the extended reals. In particular, and . No restriction excludes or ; real divisions by zero in the formula for equal zero, and multiplication uses the total extended-real convention . Consequently, at the defined value is zero for every .
QAlgorithms.Papers.Independent.Intakenext100.P28.uniformEntropyThreshold
For every real logarithm base and natural numbers , this defines
In the branch condition, is natural-number subtraction, so it equals when ; all quotients and subtractions inside the displayed real expressions are real operations. There is no assumption that or that . Real division by zero equals , and the real logarithm satisfies and for negative . In particular, the value is whenever , and the first branch takes precedence whenever .
QAlgorithms.Papers.Independent.Intakenext100.P28.uniformLaw
For every natural number , this defines a real-valued function on the indices whose value at every index is
For , all coordinates equal . For , the domain is empty, so this is the unique function from the empty index set to ; the total real expression is , although there is no index at which to evaluate the function.
QAlgorithms.Papers.Independent.Intakenext100.P28.upperDensity
For any type equipped with a measurable space and any measures on , this defines a value in by
Thus failure of absolute continuity gives directly; even under absolute continuity, the essential supremum may be infinite. No probability or finiteness assumptions are required. When , the essential supremum with respect to the zero measure is .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.