Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

§3, p. 212 — wi(x)w_i(x)wi​(x) is the minimal element of Yi∩{y≥qi(x),y≥yˉi}Y_i \cap \{y \ge q_i(x), y \ge \bar y_i\}Yi​∩{y≥qi​(x),y≥yˉ​i​}, and wi(x)=yˉiw_i(x) = \bar y_iwi​(x)=yˉ​i​ when qi(x)≤yˉiq_i(x) \le \bar y_iqi​(x)≤yˉ​i​

Proved
VeinottBaseStock.w_isLeast

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

base-stockinventoryorder-theoryp2o-batch-p100bp2o-gran-per-chapterp2o-plan-paperp2o-v1

Consider the inventory model of the mission under its standing assumptions, with levels yˉi\bar y_iyˉ​i​ satisfying (3a) (yˉi∈Yi\bar y_i \in Y_iyˉ​i​∈Yi​ minimizes GiG_iGi​ over YiY_iYi​) and (3c) (YiY_iYi​ is closed and linearly ordered), 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). Then for every period iii and every x∈Xix \in X_ix∈Xi​:

  1. wi(x)w_i(x)wi​(x) is the minimal element of the set
Yi∩{y:y≥qi(x), y≥yˉi};Y_i \cap \{ y : y \ge q_i(x),\ y \ge \bar y_i \};Yi​∩{y:y≥qi​(x), y≥yˉ​i​};
  1. if qi(x)≤yˉiq_i(x) \le \bar y_iqi​(x)≤yˉ​i​, then wi(x)=yˉiw_i(x) = \bar y_iwi​(x)=yˉ​i​.

This makes the base stock rule well defined: when the base stock level yˉi\bar y_iyˉ​i​ cannot be attained, the minimal feasible level wi(x)w_i(x)wi​(x) exists.

Formalization Note. Lean period kkk is the paper's period k+1k+1k+1. The hypothesis hfeas : M.OrderFeasible (some admissible order exists from every x∈Xix \in X_ix∈Xi​) is used by the paper without being stated: without it the set above may be empty.

Preamble
import Mathlib
import Definitions.Def_VeinottBaseStock_Model
import Definitions.Def_VeinottBaseStock_BaseStock

open MeasureTheory ProbabilityTheory
Formal statement
namespace VeinottBaseStock

/-- §3, p. 212: under (3a) and (3c), for every `x ∈ X_i` the set
`Y_i ∩ {y | y ≥ q_i(x), y ≥ ȳ_i}` has the least element `w_i(x)`, and `w_i(x) = ȳ_i` whenever
`q_i(x) ≤ ȳ_i`. -/
theorem w_isLeast {n m : ℕ} (M : Model n m) (ybar : ℕ → Fin n → ℝ)
    (hM : M.Standing) (h3a : M.H3a ybar) (h3c : M.H3c) (hfeas : M.OrderFeasible)
    (k : ℕ) (x : Fin n → ℝ) (hx : x ∈ M.X k) :
    IsLeast (M.orderSet ybar k x) (M.w ybar k x) ∧
      (M.q k x ≤ coeVec (ybar k) → M.w ybar k x = ybar 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. 212, §3 (definition of w_i(x) and the observation that w_i(x) = ȳ_i when q_i(x) ≤ ȳ_i)
Read-back

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

Setting. Let MMM be a model (with nnn, mmm, sets Xk,Yk⊆RnX_k,Y_k\subseteq\mathbb{R}^nXk​,Yk​⊆Rn, extended-real-vector-valued qkq_kqk​, and GkG_kGk​ as in the model structure). Let yˉ=(yˉk)\bar y=(\bar y_k)yˉ​=(yˉ​k​) be a sequence in Rn\mathbb{R}^nRn. Order is componentwise, with qk(x)≤yq_k(x)\le yqk​(x)≤y compared in the extended reals.

Hypotheses.

  • MMM satisfies the standing assumptions: nonnegative discount factors, Borel measurability of Dk\mathcal{D}_kDk​, qkq_kqk​, sks_ksk​, gkg_kgk​; sk(Yk×Dk)⊆Xk+1s_k(Y_k\times\mathcal{D}_k)\subseteq X_{k+1}sk​(Yk​×Dk​)⊆Xk+1​; Φk\Phi_kΦk​ a probability measure concentrated on Dk\mathcal{D}_kDk​; integrability of gk(y,⋅)g_k(y,\cdot)gk​(y,⋅) and Wk(y,⋅)W_k(y,\cdot)Wk​(y,⋅) on Dk\mathcal{D}_kDk​ for all yyy; Gk≥γkG_k\ge\gamma_kGk​≥γk​ everywhere; ∑k∣βkγk∣<∞\sum_k|\beta_k\gamma_k|<\infty∑k​∣βk​γk​∣<∞.
  • (3a): yˉk∈Yk\bar y_k\in Y_kyˉ​k​∈Yk​ minimizes GkG_kGk​ over YkY_kYk​, for every kkk.
  • (3c): each YkY_kYk​ is closed and totally ordered componentwise.
  • Order feasibility: for every kkk and x∈Xkx\in X_kx∈Xk​ there is y∈Yky\in Y_ky∈Yk​ with qk(x)≤yq_k(x)\le yqk​(x)≤y.

Conclusion. For every kkk and every x∈Xkx\in X_kx∈Xk​, both of the following hold:

  1. wk(x)w_k(x)wk​(x) is the least element of Sk(x)={y∈Yk:qk(x)≤y, yˉk≤y}S_k(x)=\{y\in Y_k: q_k(x)\le y,\ \bar y_k\le y\}Sk​(x)={y∈Yk​:qk​(x)≤y, yˉ​k​≤y}. That is, wk(x)∈Sk(x)w_k(x)\in S_k(x)wk​(x)∈Sk​(x) and wk(x)≤yw_k(x)\le ywk​(x)≤y for all y∈Sk(x)y\in S_k(x)y∈Sk​(x).
  2. If qk(x)≤yˉkq_k(x)\le\bar y_kqk​(x)≤yˉ​k​, then wk(x)=yˉkw_k(x)=\bar y_kwk​(x)=yˉ​k​.

Here wk(x)w_k(x)wk​(x) is defined as a least element of Sk(x)S_k(x)Sk​(x) when one exists, and as yˉk\bar y_kyˉ​k​ otherwise.

Degenerate cases. If XkX_kXk​ is empty the statement is vacuous at kkk. For n=0n=0n=0, Sk(x)=YkS_k(x)=Y_kSk​(x)=Yk​, which is the single point yˉk\bar y_kyˉ​k​ by (3a), so the conclusion reads wk(x)=yˉkw_k(x)=\bar y_kwk​(x)=yˉ​k​.

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