Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Eq. (3.1), p. 214 — yˉi<yi∗=wi(xi∗)≤wi(xi)≤yi\bar y_i < y_i^* = w_i(x_i^*) \le w_i(x_i) \le y_iyˉ​i​<yi∗​=wi​(xi∗​)≤wi​(xi​)≤yi​ before the base stock level is attained

Proved
VeinottBaseStock.coupling_chain

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

base-stockcouplinginventoryp2o-batch-p100bp2o-gran-per-chapterp2o-plan-paperp2o-v1

Consider the inventory model under its standing assumptions and hypotheses (3a)–(3d), assume that for each x∈Xix \in X_ix∈Xi​ some y∈Yiy \in Y_iy∈Yi​ satisfies y≥qi(x)y \ge q_i(x)y≥qi​(x), and let x1∈X1x_1 \in X_1x1​∈X1​. Fix a demand path t1,t2,…t_1, t_2, \dotst1​,t2​,… with tj∈Djt_j \in \mathfrak{D}_jtj​∈Dj​. Let xi∗,yi∗x_i^*, y_i^*xi∗​,yi∗​ be the inventories before and after ordering under the base stock policy, and xi,yix_i, y_ixi​,yi​ those under an arbitrary feasible policy Yˉ\bar YYˉ, both started from x1x_1x1​ and driven by the same demands. If kkk is a period such that qj(xj∗)≰yˉjq_j(x_j^*) \not\le \bar y_jqj​(xj∗​)≤yˉ​j​ for every j≤kj \le kj≤k (that is, k<Tk < Tk<T, where TTT is the first period with qT(xT∗)≤yˉTq_T(x_T^*) \le \bar y_TqT​(xT∗​)≤yˉ​T​), then

yˉk<yk∗=wk(xk∗)≤wk(xk)≤yk.(3.1)\bar y_k < y_k^* = w_k(x_k^*) \le w_k(x_k) \le y_k. \tag{3.1}yˉ​k​<yk∗​=wk​(xk∗​)≤wk​(xk​)≤yk​.(3.1)

This coupling says that until the base stock level becomes attainable, the base stock policy holds less stock after ordering than any feasible policy, while staying at or above yˉk\bar y_kyˉ​k​.

Formalization Note. Lean period kkk is the paper's period k+1k+1k+1. The strict inequality yˉk<yk∗\bar y_k < y_k^*yˉ​k​<yk∗​ is the paper's >>> of footnote 3 (u>vu > vu>v iff u≥vu \ge vu≥v and u≠vu \ne vu=v), which is Lean's < on Fin n → ℝ. The period TTT (possibly +∞+\infty+∞) is encoded by the prefix condition hbefore. (3d)'s qqq-clause is the one-sided form, and order feasibility is used by the paper without being stated.

Preamble
import Mathlib
import Definitions.Def_VeinottBaseStock_Model
import Definitions.Def_VeinottBaseStock_BaseStock

open MeasureTheory ProbabilityTheory
Formal statement
namespace VeinottBaseStock

/-- (3.1), p. 214: let `x*, y*` be the base stock trajectory and `x, y` the trajectory of an
arbitrary feasible policy from the same `x_1` along the same possible demand path. For every
period `k` before the first period `T` with `q_T(x*_T) ≤ ȳ_T`,
`ȳ_k < y*_k = w_k(x*_k) ≤ w_k(x_k) ≤ y_k`. -/
theorem coupling_chain {n m : ℕ} (M : Model n m) (ybar : ℕ → Fin n → ℝ) (x₁ : Fin n → ℝ)
    (hM : M.Standing) (hx₁ : x₁ ∈ M.X 0) (h3a : M.H3a ybar) (h3b : M.H3b ybar) (h3c : M.H3c)
    (h3d : M.H3d ybar) (hfeas : M.OrderFeasible)
    (Ŷ : Pol n m) (hŶ : M.Feasible x₁ Ŷ) (d : ℕ → Fin m → ℝ) (hd : ∀ j, d j ∈ M.Dset j)
    (k : ℕ)
    (hbefore : ∀ j ≤ k, ¬ M.q j (M.stateSeq (M.baseStock ybar x₁) x₁ d j) ≤ coeVec (ybar j)) :
    ybar k < M.orderSeq (M.baseStock ybar x₁) d k ∧
      M.orderSeq (M.baseStock ybar x₁) d k =
        M.w ybar k (M.stateSeq (M.baseStock ybar x₁) x₁ d k) ∧
      M.w ybar k (M.stateSeq (M.baseStock ybar x₁) x₁ d k) ≤
        M.w ybar k (M.stateSeq Ŷ x₁ d k) ∧
      M.w ybar k (M.stateSeq Ŷ x₁ d k) ≤ M.orderSeq Ŷ d k := by sorry

end VeinottBaseStock
Source
Veinott, Optimal Policy for a Multi-Product, Dynamic, Nonstationary Inventory Problem, Management Science 12(3):206–222 (1965), p. 214, proof of Theorem 3.2, eq. (3.1)
Read-back

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

Setting. Let MMM be a model, yˉ\bar yyˉ​ a sequence in Rn\mathbb{R}^nRn, and x1∈Rnx_1\in\mathbb{R}^nx1​∈Rn. Let Y^\hat YY^ be a policy and d=(d0,d1,… )d=(d_0,d_1,\dots)d=(d0​,d1​,…) a demand path.

Two trajectories are compared along ddd:

  • Base-stock trajectory: x0∗=x1x^*_0=x_1x0∗​=x1​, yk∗=Rk(xk∗)y^*_k=R_k(x^*_k)yk∗​=Rk​(xk∗​), xk+1∗=sk(yk∗,dk)x^*_{k+1}=s_k(y^*_k,d_k)xk+1∗​=sk​(yk∗​,dk​). Here Rk(x)=yˉkR_k(x)=\bar y_kRk​(x)=yˉ​k​ if qk(x)≤yˉkq_k(x)\le\bar y_kqk​(x)≤yˉ​k​, and wk(x)w_k(x)wk​(x) otherwise.
  • Trajectory of Y^\hat YY^: x0=x1x_0=x_1x0​=x1​, yk=Y^k(d0,…,dk−1)y_k=\hat Y_k(d_0,\dots,d_{k-1})yk​=Y^k​(d0​,…,dk−1​), xk+1=sk(yk,dk)x_{k+1}=s_k(y_k,d_k)xk+1​=sk​(yk​,dk​).

wk(x)w_k(x)wk​(x) is the least element of {y∈Yk:qk(x)≤y, yˉk≤y}\{y\in Y_k:q_k(x)\le y,\ \bar y_k\le y\}{y∈Yk​:qk​(x)≤y, yˉ​k​≤y} if it exists, and yˉk\bar y_kyˉ​k​ otherwise.

Hypotheses.

  • The standing assumptions hold.
  • x1∈X0x_1\in X_0x1​∈X0​.
  • (3a): yˉk∈Yk\bar y_k\in Y_kyˉ​k​∈Yk​ minimizes GkG_kGk​ over YkY_kYk​.
  • (3b): qk+1(sk(yˉk,t))≤yˉk+1q_{k+1}(s_k(\bar y_k,t))\le\bar y_{k+1}qk+1​(sk​(yˉ​k​,t))≤yˉ​k+1​ for t∈Dkt\in\mathcal{D}_kt∈Dk​.
  • (3c): each YkY_kYk​ is closed and totally ordered.
  • (3d): GkG_kGk​ and sk(⋅,t)s_k(\cdot,t)sk​(⋅,t) are nondecreasing on {y∈Yk:y≥yˉk}\{y\in Y_k:y\ge\bar y_k\}{y∈Yk​:y≥yˉ​k​}; and for x≤x′x\le x'x≤x′ in XkX_kXk​ with qk(x)≰yˉkq_k(x)\not\le\bar y_kqk​(x)≤yˉ​k​, qk(x)≤qk(x′)q_k(x)\le q_k(x')qk​(x)≤qk​(x′).
  • Order feasibility.
  • Y^\hat YY^ is feasible from x1x_1x1​.
  • dj∈Djd_j\in\mathcal{D}_jdj​∈Dj​ for all jjj.
  • For a period kkk: qj(xj∗)≰yˉjq_j(x^*_j)\not\le\bar y_jqj​(xj∗​)≤yˉ​j​ for every j≤kj\le kj≤k.

Conclusion.

yˉk<yk∗,yk∗=wk(xk∗),wk(xk∗)≤wk(xk),wk(xk)≤yk.\bar y_k < y^*_k, \qquad y^*_k = w_k(x^*_k), \qquad w_k(x^*_k)\le w_k(x_k), \qquad w_k(x_k)\le y_k .yˉ​k​<yk∗​,yk∗​=wk​(xk∗​),wk​(xk∗​)≤wk​(xk​),wk​(xk​)≤yk​.

All comparisons are componentwise. yˉk<yk∗\bar y_k<y^*_kyˉ​k​<yk∗​ means yˉk≤yk∗\bar y_k\le y^*_kyˉ​k​≤yk∗​ and yˉk≠yk∗\bar y_k\ne y^*_kyˉ​k​=yk∗​.

Degenerate cases. For n=0n=0n=0 the hypothesis q0(x0∗)≰yˉ0q_0(x^*_0)\not\le\bar y_0q0​(x0∗​)≤yˉ​0​ can never hold, so the statement is vacuous. The statement is also vacuous at any kkk where some j≤kj\le kj≤k has qj(xj∗)≤yˉjq_j(x^*_j)\le\bar y_jqj​(xj∗​)≤yˉ​j​.

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

    Confirmed by the moderator at approval.

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