Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Proof of Theorem 3.2, p. 214 — wi(x)w_i(x)wi​(x) is nondecreasing in xxx where qi(x)≰yˉiq_i(x) \not\le \bar y_iqi​(x)≤yˉ​i​

Proved
VeinottBaseStock.w_monotone

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

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

Consider the inventory model under its standing assumptions and hypotheses (3a), (3c) and (3d), and 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). Let x,x′∈Xix, x' \in X_ix,x′∈Xi​ with x≤x′x \le x'x≤x′ and qi(x)≰yˉiq_i(x) \not\le \bar y_iqi​(x)≤yˉ​i​. Then

wi(x)≤wi(x′).w_i(x) \le w_i(x').wi​(x)≤wi​(x′).

In the proof of Theorem 3.2 this transfers the monotonicity of the constraint qiq_iqi​ to the minimal feasible order level, and is what lets a larger inventory under an arbitrary policy force a larger order level than the base stock policy's.

Formalization Note. Lean period kkk is the paper's period k+1k+1k+1. (3d)'s qqq-clause is the one-sided form (x≤x′x \le x'x≤x′ and qi(x)≰yˉiq_i(x) \not\le \bar y_iqi​(x)≤yˉ​i​ imply qi(x)≤qi(x′)q_i(x) \le q_i(x')qi​(x)≤qi​(x′)), which is what this step of the paper uses. Order feasibility (hfeas) 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

/-- Proof of Theorem 3.2, p. 214: since `q_i(x)` is nondecreasing in `x` where
`q_i(x) ≰ ȳ_i`, so is `w_i(x)`. -/
theorem w_monotone {n m : ℕ} (M : Model n m) (ybar : ℕ → Fin n → ℝ)
    (hM : M.Standing) (h3a : M.H3a ybar) (h3c : M.H3c) (h3d : M.H3d ybar)
    (hfeas : M.OrderFeasible) (k : ℕ) (x x' : Fin n → ℝ) (hx : x ∈ M.X k) (hx' : x' ∈ M.X k)
    (hle : x ≤ x') (hq : ¬ M.q k x ≤ coeVec (ybar k)) :
    M.w ybar k x ≤ M.w ybar k x' := 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
Read-back

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

Setting. Let MMM be a model and yˉ\bar yyˉ​ a sequence in Rn\mathbb{R}^nRn, as in the model and base-stock definitions. Order is componentwise, with qkq_kqk​-comparisons in the extended reals. Here 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 (as listed for the model).
  • (3a): yˉk∈Yk\bar y_k\in Y_kyˉ​k​∈Yk​ minimizes GkG_kGk​ over YkY_kYk​.
  • (3c): each YkY_kYk​ is closed and totally ordered componentwise.
  • (3d), which has three parts:
    • GkG_kGk​ is nondecreasing on {y∈Yk:y≥yˉk}\{y\in Y_k:y\ge\bar y_k\}{y∈Yk​:y≥yˉ​k​};
    • y↦sk(y,t)y\mapsto s_k(y,t)y↦sk​(y,t) is nondecreasing there, for each t∈Dkt\in\mathcal{D}_kt∈Dk​;
    • 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​, one has qk(x)≤qk(x′)q_k(x)\le q_k(x')qk​(x)≤qk​(x′).
  • Order feasibility: every x∈Xkx\in X_kx∈Xk​ admits y∈Yky\in Y_ky∈Yk​ with qk(x)≤yq_k(x)\le yqk​(x)≤y.

Conclusion. For every kkk and all x,x′∈Xkx,x'\in X_kx,x′∈Xk​ with x≤x′x\le x'x≤x′ and qk(x)≰yˉkq_k(x)\not\le\bar y_kqk​(x)≤yˉ​k​ (some coordinate of qk(x)q_k(x)qk​(x) strictly exceeds the corresponding coordinate of yˉk\bar y_kyˉ​k​):

wk(x)≤wk(x′).w_k(x)\le w_k(x').wk​(x)≤wk​(x′).

Degenerate cases. For n=0n=0n=0 the hypothesis qk(x)≰yˉkq_k(x)\not\le\bar y_kqk​(x)≤yˉ​k​ can never hold, so the statement is vacuous. The statement is also vacuous at kkk if XkX_kXk​ is empty.

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