Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 4, Part 6 — Jt(x,ot)J_t(x, o_t)Jt​(x,ot​) has decreasing differences in (x,ot)(x, o_t)(x,ot​)

Proved
GallegoOzerADI.ZeroSetup.J_decreasingDifferences

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

decreasing-differencesdynamic-programminginventoryp2o-batch-p100bp2o-gran-per-chapterp2o-plan-paperp2o-v1

In the inventory model with advance demand information and zero set-up cost, under its standing hypotheses, for every period t∈{1,…,T}t \in \{1, \dots, T\}t∈{1,…,T} the optimal cost-to-go (x,o)↦Jt(x,o)(x, o) \mapsto J_t(x, o)(x,o)↦Jt​(x,o) has decreasing differences in (x,o)(x, o)(x,o) (Definition 2): for all x1≥x2x_1 \ge x_2x1​≥x2​ and all observed-demand vectors o≥o′o \ge o'o≥o′ (componentwise),

Jt(x1,o)−Jt(x2,o)≤Jt(x1,o′)−Jt(x2,o′).J_t(x_1, o) - J_t(x_2, o) \le J_t(x_1, o') - J_t(x_2, o').Jt​(x1​,o)−Jt​(x2​,o)≤Jt​(x1​,o′)−Jt​(x2​,o′).

Together with Part 4 this propagates decreasing differences backward through the functional equation.

Preamble
import Mathlib
import Definitions.Def_GallegoOzerADI_ZeroSetup_Model
import Definitions.Def_GallegoOzerADI_ZeroSetup_DecreasingDifferences

open MeasureTheory Filter Topology
Formal statement
namespace GallegoOzerADI.ZeroSetup

/-- Theorem 4, Part 6 (p. 1351): for every period `t ∈ {1, …, T}`, `J_t(x, o_t)` has decreasing
differences in `(x, o_t)` (Definition 2). -/
theorem J_decreasingDifferences {L M : ℕ} (P : Model L M) (hP : P.Assumptions)
    (t : ℕ) (ht1 : 1 ≤ t) (htT : t ≤ P.T) :
    DecreasingDifferences (fun x o => P.J t x o) := by sorry

end GallegoOzerADI.ZeroSetup
Source
Gallego, Özer, Integrating Replenishment Decisions with Advance Demand Information, Management Science 47(10):1344–1360 (2001), p. 1351, Theorem 4, Part 6
Read-back

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

Setting. Fix natural numbers L,ML,ML,M. A model consists of:

  • a horizon T∈NT\in\mathbb NT∈N;
  • functions Gt:R→RG_t:\mathbb R\to\mathbb RGt​:R→R;
  • reals αt\alpha_tαt​;
  • measures μt\mu_tμt​ on RL+2+M\mathbb R^{L+2+M}RL+2+M,

where GtG_tGt​, αt\alpha_tαt​ and μt\mu_tμt​ are given for every ttt.

With oM:=0o_M:=0oM​:=0, define

x′(y,o,D)=y−∑k=0L+1Dk−o0,O′(o,D)j=oj+1+DL+2+j(j<M),x'(y,o,D)=y-\sum_{k=0}^{L+1}D_k-o_0,\qquad O'(o,D)_j=o_{j+1}+D_{L+2+j}\quad(j<M),x′(y,o,D)=y−k=0∑L+1​Dk​−o0​,O′(o,D)j​=oj+1​+DL+2+j​(j<M), Vt(y,o)=Gt(y)+αt+1∫Jt+1(x′(y,o,D),O′(o,D)) μt(dD),V_t(y,o)=G_t(y)+\alpha_{t+1}\int J_{t+1}\big(x'(y,o,D),O'(o,D)\big)\,\mu_t(dD),Vt​(y,o)=Gt​(y)+αt+1​∫Jt+1​(x′(y,o,D),O′(o,D))μt​(dD), Jt(x,o)={0,t>Tinf⁡y≥xVt(y,o),t≤T.J_t(x,o)=\begin{cases}0,&t>T\\ \inf_{y\ge x}V_t(y,o),&t\le T.\end{cases}Jt​(x,o)={0,infy≥x​Vt​(y,o),​t>Tt≤T.​

A non-integrable integrand gives integral 000. An unbounded-below infimum gives 000.

Hypotheses on the model.

  1. M≥1M\ge1M≥1.
  2. For each 1≤t≤T1\le t\le T1≤t≤T, all of the following hold:
    • GtG_tGt​ is convex.
    • Gt(y)→+∞G_t(y)\to+\inftyGt​(y)→+∞ as ∣y∣→∞|y|\to\infty∣y∣→∞.
    • ∣Gt(y)∣≤a+b∣y∣|G_t(y)|\le a+b|y|∣Gt​(y)∣≤a+b∣y∣ for some reals a,ba,ba,b.
    • αt+1>0\alpha_{t+1}>0αt+1​>0.
    • μt\mu_tμt​ is a probability measure.
    • Demands are a.s. componentwise ≥0\ge0≥0.
    • Coordinates are integrable.

Claim. For every 1≤t≤T1\le t\le T1≤t≤T, take any x1≥x2x_1\ge x_2x1​≥x2​ and any o,o′∈RMo,o'\in\mathbb R^Mo,o′∈RM with o′≤oo'\le oo′≤o componentwise. Then

Jt(x1,o)−Jt(x2,o)  ≤  Jt(x1,o′)−Jt(x2,o′).J_t(x_1,o)-J_t(x_2,o)\;\le\;J_t(x_1,o')-J_t(x_2,o').Jt​(x1​,o)−Jt​(x2​,o)≤Jt​(x1​,o′)−Jt​(x2​,o′).

Degenerate cases.

  • Observation vectors. ooo and o′o'o′ may have negative entries.
  • T=0T=0T=0. The statement is vacuous.
  • t=Tt=Tt=T. JT(x,o)=inf⁡y≥xGT(y)J_T(x,o)=\inf_{y\ge x}G_T(y)JT​(x,o)=infy≥x​GT​(y) does not depend on ooo, so equality holds.
  • Conventions. The zero conventions apply.
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