Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 1, Part 2 — a state-dependent (st(ot),St(ot))(s_t(o_t), S_t(o_t))(st​(ot​),St​(ot​)) policy is optimal

Proved
GallegoOzerADI.PositiveSetup.sS_policy_optimal

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

dynamic-programminginventoryp2o-batch-p100bp2o-gran-per-chapterp2o-plan-paperp2o-v1ss-policy

In the finite-horizon inventory model with advance demand information and set-up costs (Definition Model), with N>L+1N > L + 1N>L+1, fix a period 1≤t≤T1 \le t \le T1≤t≤T and a vector ot∈RMo_t \in \mathbb{R}^{M}ot​∈RM. Then the levels

St(ot)=min⁡{y:Vt(y,ot)≤Vt(x,ot) for all x},st(ot)=max⁡{x:Ht(x,ot)≤0}S_t(o_t) = \min\{y : V_t(y, o_t) \le V_t(x, o_t) \text{ for all } x\},\qquad s_t(o_t) = \max\{x : H_t(x, o_t) \le 0\}St​(ot​)=min{y:Vt​(y,ot​)≤Vt​(x,ot​) for all x},st​(ot​)=max{x:Ht​(x,ot​)≤0}

exist, and the state-dependent (st(ot),St(ot))(s_t(o_t), S_t(o_t))(st​(ot​),St​(ot​)) policy attains the minimum in the functional equation (8) at every inventory position xxx:

  1. if x≤st(ot)x \le s_t(o_t)x≤st​(ot​), then x<St(ot)x < S_t(o_t)x<St​(ot​) and ordering up to St(ot)S_t(o_t)St​(ot​) is optimal, Jt(x,ot)=Kt+Vt(St(ot),ot)J_t(x, o_t) = K_t + V_t(S_t(o_t), o_t)Jt​(x,ot​)=Kt​+Vt​(St​(ot​),ot​);
  2. if x>st(ot)x > s_t(o_t)x>st​(ot​), then not ordering is optimal, Jt(x,ot)=Vt(x,ot)J_t(x, o_t) = V_t(x, o_t)Jt​(x,ot​)=Vt​(x,ot​).

This is the paper's main structural result for positive set-up costs: the optimal policy is of (s,S)(s,S)(s,S) type, with both parameters depending on the advance demand information oto_tot​.

Formalization Note "An optimal policy" is formalized as attainment of the minimum in (8) at every state; no policy object is introduced. St(ot)S_t(o_t)St​(ot​) is characterized as the least global minimizer (IsLeast) and st(ot)s_t(o_t)st​(ot​) as the greatest element of {x:Ht(x,ot)≤0}\{x : H_t(x, o_t) \le 0\}{x:Ht​(x,ot​)≤0} (IsGreatest), so both are asserted to exist.

Preamble
import Mathlib
import Definitions.Def_GallegoOzerADI_PositiveSetup_Model
Formal statement
namespace GallegoOzerADI.PositiveSetup

theorem sS_policy_optimal {L M : ℕ} [NeZero M] (P : Model L M) (t : ℕ) (ht₁ : 1 ≤ t)
    (htT : t ≤ P.T) (o : Fin M → ℝ) :
    ∃ S s : ℝ, IsLeast {y | ∀ x, P.V t y o ≤ P.V t x o} S ∧
      IsGreatest {x | P.H t x o ≤ 0} s ∧
      ∀ x, (x ≤ s → x < S ∧ P.J t x o = P.K t + P.V t S o) ∧
        (s < x → P.J t x o = P.V t x o) := by sorry

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

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

The model. Fix L,M∈NL,M\in\mathbb{N}L,M∈N with M≥1M\ge 1M≥1. Let PPP be a model as follows:

  • a horizon TTT;
  • for each t∈Nt\in\mathbb{N}t∈N: a convex GtG_tGt​ with Gt(y)→+∞G_t(y)\to+\inftyGt​(y)→+∞ as ∣y∣→∞|y|\to\infty∣y∣→∞ and at most linear growth;
  • Kt>0K_t>0Kt​>0 and αt>0\alpha_t>0αt​>0 with αt+1Kt+1≤Kt\alpha_{t+1}K_{t+1}\le K_tαt+1​Kt+1​≤Kt​;
  • probability measures μt\mu_tμt​ on RL+M+2\mathbb{R}^{L+M+2}RL+M+2 with almost surely nonnegative, integrable components.

Value functions.

  • The cost-to-go is
Vt(y,o)=Gt(y)+αt+1∫Jt+1(y−∑k=0L+1Dk−o0, o′) dμt(D).V_t(y,o)=G_t(y)+\alpha_{t+1}\int J_{t+1}\Big(y-\textstyle\sum_{k=0}^{L+1}D_k-o_0,\ o'\Big)\,d\mu_t(D).Vt​(y,o)=Gt​(y)+αt+1​∫Jt+1​(y−∑k=0L+1​Dk​−o0​, o′)dμt​(D).

Here oj′=oj+1+DL+2+jo'_j=o_{j+1}+D_{L+2+j}oj′​=oj+1​+DL+2+j​, with oM:=0o_M:=0oM​:=0.

  • JT+1≡0J_{T+1}\equiv0JT+1​≡0.
  • For 1≤t≤T1\le t\le T1≤t≤T: Jt(x,o)=inf⁡y≥x(Ktδ(y−x)+Vt(y,o))J_t(x,o)=\inf_{y\ge x}\big(K_t\delta(y-x)+V_t(y,o)\big)Jt​(x,o)=infy≥x​(Kt​δ(y−x)+Vt​(y,o)).
  • The reorder gap is Ht(x,o)=Kt+inf⁡y≥xVt(y,o)−Vt(x,o)H_t(x,o)=K_t+\inf_{y\ge x}V_t(y,o)-V_t(x,o)Ht​(x,o)=Kt​+infy≥x​Vt​(y,o)−Vt​(x,o).

Hypotheses. A period ttt with 1≤t≤T1\le t\le T1≤t≤T and an arbitrary o∈RMo\in\mathbb{R}^Mo∈RM.

Conclusion. There exist reals SSS and sss such that:

  1. SSS is the least global minimizer of y↦Vt(y,o)y\mapsto V_t(y,o)y↦Vt​(y,o). That is, SSS minimizes it, and every minimizer is ≥S\ge S≥S.
  2. sss is the greatest element of {x:Ht(x,o)≤0}\{x : H_t(x,o)\le0\}{x:Ht​(x,o)≤0}.
  3. For every xxx:
    • if x≤sx\le sx≤s, then x<Sx<Sx<S and Jt(x,o)=Kt+Vt(S,o)J_t(x,o)=K_t+V_t(S,o)Jt​(x,o)=Kt​+Vt​(S,o);
    • if x>sx>sx>s, then Jt(x,o)=Vt(x,o)J_t(x,o)=V_t(x,o)Jt​(x,o)=Vt​(x,o).

The statement asserts facts about the values JtJ_tJt​ only. It does not separately assert which order-up-to level attains the infimum.

Degenerate cases:

  • T=0T=0T=0: the statement is vacuous.
  • t=Tt=Tt=T: VT=GTV_T=G_TVT​=GT​.
  • Default values: integrals of non-integrable integrands are taken as 000, and infima of sets unbounded below are taken as 000. The statement does not say whether this happens.
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