Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 4, Part 2 — a state-dependent base-stock policy with level yt(ot)y_t(o_t)yt​(ot​) (Eq. (11)) is optimal

Proved
GallegoOzerADI.ZeroSetup.base_stock_optimal

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

base-stockdynamic-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, fix a period t∈{1,…,T}t \in \{1, \dots, T\}t∈{1,…,T} and a vector oto_tot​ of observed demands beyond the protection period. Then the smallest minimizer

yt(ot)=min⁡{y:Vt(y,ot)=min⁡xVt(x,ot)}(11)y_t(o_t) = \min\{y : V_t(y, o_t) = \min_x V_t(x, o_t)\} \tag{11}yt​(ot​)=min{y:Vt​(y,ot​)=xmin​Vt​(x,ot​)}(11)

exists, and ordering up to it is optimal: for every modified inventory position xxx,

Jt(x,ot)=Vt(max⁡(yt(ot),x), ot).J_t(x, o_t) = V_t\big(\max(y_t(o_t), x),\, o_t\big).Jt​(x,ot​)=Vt​(max(yt​(ot​),x),ot​).

That is, an optimal ordering policy is a state-dependent base-stock policy: if x<yt(ot)x < y_t(o_t)x<yt​(ot​) raise the position to yt(ot)y_t(o_t)yt​(ot​), otherwise do not order.

Formalization Note. "An optimal ordering policy is a base-stock policy" is expressed through the functional equation: the infimum inf⁡y≥xVt(y,ot)\inf_{y \ge x} V_t(y, o_t)infy≥x​Vt​(y,ot​) is attained at max⁡(yt(ot),x)\max(y_t(o_t), x)max(yt​(ot​),x) (the paper's Eq. (14), p. 1357). No policy or trajectory objects are introduced.

Preamble
import Mathlib
import Definitions.Def_GallegoOzerADI_ZeroSetup_Model

open MeasureTheory Filter Topology
Formal statement
namespace GallegoOzerADI.ZeroSetup

/-- Theorem 4, Part 2 (p. 1351, Eqs. (11) and (14)): for every period `t ∈ {1, …, T}` and every
fixed vector `o_t`, the smallest minimizer `y_t(o_t)` of `V_t(·, o_t)` exists, and ordering up to it
is optimal: `J_t(x, o_t) = V_t(max(y_t(o_t), x), o_t)` for every `x`. -/
theorem base_stock_optimal {L M : ℕ} (P : Model L M) (hP : P.Assumptions)
    (t : ℕ) (ht1 : 1 ≤ t) (htT : t ≤ P.T) (o : Fin M → ℝ) :
    ∃ y : ℝ, IsLeastMinimizer (fun z => P.V t z o) y ∧
      ∀ x : ℝ, P.J t x o = P.V t (max y 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 2, Eq. (11); p. 1357, Eq. (14)
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 t∈Nt\in\mathbb Nt∈N.

For y∈Ry\in\mathbb Ry∈R, o∈RMo\in\mathbb R^Mo∈RM and D∈RL+2+MD\in\mathbb R^{L+2+M}D∈RL+2+M, 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),

with oMo_MoM​ read as 000. Then define

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.​

The integral is 000 when its integrand is not integrable. The infimum is 000 when the values are unbounded below.

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.
    • Each coordinate DkD_kDk​ is μt\mu_tμt​-integrable.

Claim. Fix 1≤t≤T1\le t\le T1≤t≤T and any o∈RMo\in\mathbb R^Mo∈RM. Then there exists a real y\*y^\*y\* with two properties.

  • It is the least minimizer of z↦Vt(z,o)z\mapsto V_t(z,o)z↦Vt​(z,o). That is, Vt(y\*,o)≤Vt(z,o)V_t(y^\*,o)\le V_t(z,o)Vt​(y\*,o)≤Vt​(z,o) for all zzz, and y\*≤zy^\*\le zy\*≤z for every other global minimizer zzz.
  • For every x∈Rx\in\mathbb Rx∈R,
Jt(x,o)=Vt(max⁡(y\*,x),o).J_t(x,o)=V_t\big(\max(y^\*,x),o\big).Jt​(x,o)=Vt​(max(y\*,x),o).

Degenerate cases.

  • ooo is unrestricted. Its entries may be negative.
  • T=0T=0T=0. The statement is vacuous.
  • t=Tt=Tt=T. VT=GTV_T=G_TVT​=GT​, so y\*y^\*y\* is the least minimizer of GTG_TGT​ and JT(x,o)=GT(max⁡(y\*,x))J_T(x,o)=G_T(\max(y^\*,x))JT​(x,o)=GT​(max(y\*,x)).
  • Conventions. Values are those of the definitions with the zero conventions for non-integrable integrands and unbounded-below infima.
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