Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 1, Part 4 — F(x)=ED,Yf(x−D,Y)∈C(a,b)F(x) = E_{D,Y} f(x - D, Y) \in C(a,b)F(x)=ED,Y​f(x−D,Y)∈C(a,b)

Proved
GallegoOzerADI.PositiveSetup.abConvex_expectation

by mikedeng1 · Sep 27, 2026 · Mathlib 0df444a (Lean v4.33.1)

expectationk-convexityp2o-batch-p100bp2o-gran-per-chapterp2o-plan-paperp2o-v1

Let a,b≥0a, b \ge 0a,b≥0 and let f:R×Rn→Rf : \mathbb{R} \times \mathbb{R}^n \to \mathbb{R}f:R×Rn→R be such that x↦f(x,y)x \mapsto f(x, y)x↦f(x,y) belongs to C(a,b)C(a,b)C(a,b) for every fixed vector y∈Rny \in \mathbb{R}^ny∈Rn. Let DDD be a real random variable and YYY a random vector in Rn\mathbb{R}^nRn, both defined on a probability space (Ω,F,P)(\Omega, \mathcal F, P)(Ω,F,P), and assume that f(x−D,Y)f(x - D, Y)f(x−D,Y) is integrable for every x∈Rx \in \mathbb{R}x∈R. Then

F(x)=ED,Y f(x−D,Y)∈C(a,b).F(x) = \mathbb{E}_{D,Y}\, f(x - D, Y) \in C(a,b).F(x)=ED,Y​f(x−D,Y)∈C(a,b).

Averaging over a random shift of the argument and a random parameter preserves (a,b)(a,b)(a,b)-convexity. This is the step that carries KKK-convexity of Jt+1(⋅,ot+1)J_{t+1}(\cdot, o_{t+1})Jt+1​(⋅,ot+1​) through the expectation in the functional equation (9), where the shift is the demand and the parameter is the updated observed-demand vector.

Formalization Note The paper's integrability hypothesis is written ED∣f(x−D,y)∣<∞E_D|f(x - D, y)| < \inftyED​∣f(x−D,y)∣<∞ for fixed yyy, while its conclusion integrates over (D,Y)(D, Y)(D,Y) jointly. It is formalized as joint integrability of ω↦f(x−D(ω),Y(ω))\omega \mapsto f(x - D(\omega), Y(\omega))ω↦f(x−D(ω),Y(ω)) for every xxx, which is what the conclusion requires. Part 3 of the lemma is the special case in which fff does not depend on yyy.

Preamble
import Mathlib
import Definitions.Def_GallegoOzerADI_PositiveSetup_ABConvex

open MeasureTheory
Formal statement
namespace GallegoOzerADI.PositiveSetup

theorem abConvex_expectation {Ω : Type*} [MeasurableSpace Ω] (P : Measure Ω)
    [IsProbabilityMeasure P] {n : ℕ} (a b : ℝ) (ha : 0 ≤ a) (hb : 0 ≤ b)
    (f : ℝ → (Fin n → ℝ) → ℝ) (hf : ∀ y, ABConvex a b (fun x => f x y))
    (D : Ω → ℝ) (Y : Ω → (Fin n → ℝ))
    (hint : ∀ x, Integrable (fun ω => f (x - D ω) (Y ω)) P) :
    ABConvex a b (fun x => ∫ ω, f (x - D ω) (Y ω) ∂P) := by sorry

end GallegoOzerADI.PositiveSetup
Source
Gallego, Özer, Integrating Replenishment Decisions with Advance Demand Information, Management Science 47(10):1344–1360 (2001), p. 1349, Lemma 1, Part 4 (proof p. 1358)
Read-back

What the Lean code literally says, in plain math · claude-opus-5-5

Here "(a,b)(a,b)(a,b)-convex" means: for all x1≤x2x_1\le x_2x1​≤x2​ and θ∈[0,1]\theta\in[0,1]θ∈[0,1], h(θx1+(1−θ)x2)≤θ(a+h(x1))+(1−θ)(b+h(x2))h(\theta x_1+(1-\theta)x_2)\le\theta(a+h(x_1))+(1-\theta)(b+h(x_2))h(θx1​+(1−θ)x2​)≤θ(a+h(x1​))+(1−θ)(b+h(x2​)).

Hypotheses.

  • (Ω,F)(\Omega,\mathcal{F})(Ω,F) is a measurable space and PPP is a probability measure on it.
  • n∈Nn\in\mathbb{N}n∈N, and a≥0a\ge 0a≥0, b≥0b\ge 0b≥0 are reals.
  • f:R×Rn→Rf:\mathbb{R}\times\mathbb{R}^n\to\mathbb{R}f:R×Rn→R is a function such that, for every fixed y∈Rny\in\mathbb{R}^ny∈Rn, the map x↦f(x,y)x\mapsto f(x,y)x↦f(x,y) is (a,b)(a,b)(a,b)-convex.
  • D:Ω→RD:\Omega\to\mathbb{R}D:Ω→R and Y:Ω→RnY:\Omega\to\mathbb{R}^nY:Ω→Rn are functions. Nothing further is assumed about them: no measurability, no independence, no sign.
  • For every x∈Rx\in\mathbb{R}x∈R, the map ω↦f(x−D(ω),Y(ω))\omega\mapsto f(x-D(\omega),Y(\omega))ω↦f(x−D(ω),Y(ω)) is PPP-integrable.

Conclusion. The function

x  ⟼  ∫Ωf(x−D(ω), Y(ω)) dP(ω)x\;\longmapsto\;\int_\Omega f\big(x-D(\omega),\,Y(\omega)\big)\,dP(\omega)x⟼∫Ω​f(x−D(ω),Y(ω))dP(ω)

is (a,b)(a,b)(a,b)-convex.

Degenerate cases: because integrability is assumed for every xxx, the default value 000 for non-integrable integrands never comes into play. When n=0n=0n=0, YYY carries no information and fff is effectively a single (a,b)(a,b)(a,b)-convex function of xxx. When DDD is constant, the statement is about a translate of fff.

Human review
  • Endorsed by Shuze Chen · Sep 27, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Sep 27, 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