Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Proof of Lemma 2, p. OA1 — V_t(z) = min_{0≤j≤k} {F(z − j) + V_{t−j}(∞)}, k = min{t, z} − 1

Proved
ShipConsol.OneWH.lemma_2_unrolled

by mikedeng1 · Oct 18, 2026 · Mathlib 0df444a (Lean v4.33.1)

cost-to-godynamic-programmingp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1shipment-consolidation

Consider the one-warehouse fixed-cost model: a fixed shipping cost FFF that is convex and non-increasing on [1,∞)[1,\infty)[1,∞), an arrival probability α∈[0,1]\alpha \in [0,1]α∈[0,1], a deadline d≥1d \ge 1d≥1, and the cost-to-go functions Vt(z)V_t(z)Vt​(z), Vt(∞)V_t(\infty)Vt​(∞) of the dynamic program (2)–(3) (ttt periods to go, zzz the smallest slack among pending orders). For every t≥1t \ge 1t≥1 and 1≤z≤d1 \le z \le d1≤z≤d,

Vt(z)=min⁡{F(z)+Vt(∞), F(z−1)+Vt−1(∞), …, F(z−k)+Vt−k(∞)},k=min⁡{t,z}−1.V_t(z) = \min\{F(z) + V_t(\infty),\ F(z-1) + V_{t-1}(\infty),\ \dots,\ F(z-k) + V_{t-k}(\infty)\}, \qquad k = \min\{t,z\} - 1.Vt​(z)=min{F(z)+Vt​(∞), F(z−1)+Vt−1​(∞), …, F(z−k)+Vt−k​(∞)},k=min{t,z}−1.

The term F(z−j)+Vt−j(∞)F(z-j) + V_{t-j}(\infty)F(z−j)+Vt−j​(∞) is the cost of holding all pending orders for jjj periods and shipping them in period t−jt-jt−j. So the cost-to-go with pending orders is determined by the no-pending-order values Vs(∞)V_s(\infty)Vs​(∞) alone. This is the first step of the paper's proof of Lemma 2.

Formalization Note. The minimum is a Finset.inf' over j∈{0,…,min⁡{t,z}−1}j \in \{0,\dots,\min\{t,z\}-1\}j∈{0,…,min{t,z}−1} (Finset.range (min t z)), so t−j≥1t - j \ge 1t−j≥1 and z−j≥1z - j \ge 1z−j≥1 in every term and the natural-number subtractions are exact. The bound z≤dz \le dz≤d is the domain 1≤z≤d1 \le z \le d1≤z≤d of (2).

Preamble
import Mathlib
import Definitions.Def_ShipConsol_OneWH_Setting
Formal statement
namespace ShipConsol.OneWH
theorem lemma_2_unrolled (F : ℝ → ℝ) (hFconv : ConvexOn ℝ (Set.Ici 1) F) (hFanti : AntitoneOn F (Set.Ici 1)) (α : ℝ) (hα : α ∈ Set.Icc (0 : ℝ) 1) (d : ℕ) (hd : 1 ≤ d) (t z : ℕ) (ht : 1 ≤ t) (hz1 : 1 ≤ z) (hzd : z ≤ d) : V F α d t z = (Finset.range (min t z)).inf' (Finset.nonempty_range_iff.mpr (by omega)) (fun j => F ((z - j : ℕ) : ℝ) + Vinf F α d (t - j)) := by sorry
end ShipConsol.OneWH
Source
Wei, Kapuscinski & Jasin, Shipping Consolidation across Two Warehouses with Delivery Deadline and Expedited Options for E-commerce and Omni-channel Retailers, author's manuscript, SSRN 2920899 (M&SOM 2020, doi:10.1287/msom.2020.0903), proof of Lemma 2 (Online Appendix), p. OA1, "the cost-to-go function Vt(z) can also be written as …"
Human review
  • Endorsed by Shuze Chen · Oct 19, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 19, 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