Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 7 — an NBUE page count is dominated by the exponential in the increasing convex order

Proved
ProductFraming.Nest.lemma_7

by mikedeng1 · Oct 7, 2026 · Mathlib 0df444a (Lean v4.33.1)

exponential-distributionnbuep2o-batch-pfp2bp2o-gran-per-chapterp2o-plan-paperp2o-v1stochastic-orders

Let X∈[m]X\in[m]X∈[m] have law λ\lambdaλ satisfying Assumption A3 (NBUE), and let ZZZ be an exponential random variable with mean E[Z]=E[X]=μ\mathbb E[Z]=\mathbb E[X]=\muE[Z]=E[X]=μ. Then for every function ggg that is increasing and convex on [0,∞)[0,\infty)[0,∞) and integrable under the law of ZZZ,

E[g(X)]=∑x∈[m]λ(x) g(x) ≤ E[g(Z)]=∫0∞g(z) 1μe−z/μ dz.\mathbb E[g(X)]=\sum_{x\in[m]}\lambda(x)\,g(x)\ \le\ \mathbb E[g(Z)]=\int_0^\infty g(z)\,\frac1\mu e^{-z/\mu}\,dz.E[g(X)]=x∈[m]∑​λ(x)g(x) ≤ E[g(Z)]=∫0∞​g(z)μ1​e−z/μdz.

This comparison with the exponential distribution is what produces the constant π2/6\pi^2/6π2/6 in the analysis of NEST.

Formalization Note The law of ZZZ is Mathlib's expMeasure, whose parameter is the rate 1/μ1/\mu1/μ. Integrability of ggg under that law is added: Lean's Bochner integral is 000 for a non-integrable function, while on the page E[g(Z)]=+∞\mathbb E[g(Z)]=+\inftyE[g(Z)]=+∞ makes the claim trivial in that case. Increasing and convex are required on [0,∞)[0,\infty)[0,∞), where both laws live; increasing means nondecreasing.

Preamble
import Mathlib
import Definitions.Def_ProductFraming_Nest_Model
Formal statement
namespace ProductFraming.Nest

open Finset MeasureTheory ProbabilityTheory

/-- Lemma 7 (Gallego, Li, Truong, Wang 2020, p. 36): if `X` is NBUE and `Z` is exponential with
`E[Z] = E[X]`, then `E[g(X)] ≤ E[g(Z)]` for every increasing convex `g`. Mathlib's
`expMeasure` takes the rate, so the law of `Z` is `expMeasure (E[X])⁻¹`. The integrability of
`g` under the law of `Z` is added (otherwise the Bochner integral is `0`). -/
theorem lemma_7 (m : ℕ) (hm : 1 ≤ m) (lam : ℕ → ℝ) (hlam : IsPageLaw m lam) (hA3 : IsNBUE m lam)
    (g : ℝ → ℝ) (hg_mono : MonotoneOn g (Set.Ici 0)) (hg_conv : ConvexOn ℝ (Set.Ici 0) g)
    (hg_int : Integrable g (expMeasure (mean m lam)⁻¹)) :
    ∑ x ∈ Icc 1 m, lam x * g (x : ℝ) ≤ ∫ z, g z ∂(expMeasure (mean m lam)⁻¹) := by sorry

end ProductFraming.Nest
Source
Gallego, Li, Truong, Wang, Approximation Algorithms for Product Framing and Pricing, Operations Research (2020), DOI 10.1287/opre.2019.1875, authors' accepted manuscript, A.2, p. 36, Lemma 7
Human review
  • Endorsed by Shuze Chen · Oct 8, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 8, 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