Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 1, p. 13 — for every period t an integer threshold τ_t: hold all pending orders if z > τ_t, ship all if z ≤ τ_t

Proved
ShipConsol.OneWH.theorem_1

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

dynamic-programmingoptimal-policy-structurep2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1shipment-consolidationthreshold-policy

Consider a retailer shipping orders from one warehouse, with a fixed shipping cost F(p)F(p)F(p) for delivery in ppp periods that is convex and non-increasing on [1,∞)[1,\infty)[1,∞), a probability α∈[0,1]\alpha \in [0,1]α∈[0,1] that new orders arrive in a period, and a delivery deadline of d≥1d \ge 1d≥1 periods. Let Vt(z)V_t(z)Vt​(z) be the optimal cost-to-go of the dynamic program (2)–(3), with ttt periods to go and smallest slack time zzz among the pending orders.

Theorem. For every t≥1t \ge 1t≥1 there is an integer threshold τt≥0\tau_t \ge 0τt​≥0 such that, for every slack 1≤z≤d1 \le z \le d1≤z≤d:

  1. if z≤τtz \le \tau_tz≤τt​, shipping all pending orders is optimal: Vt(z)=F(z)+Vt(∞)V_t(z) = F(z) + V_t(\infty)Vt​(z)=F(z)+Vt​(∞);
  2. if z>τtz > \tau_tz>τt​, holding all pending orders is feasible and optimal: t≥2t \ge 2t≥2, z≥2z \ge 2z≥2 and Vt(z)=Vt−1(z−1)V_t(z) = V_{t-1}(z-1)Vt​(z)=Vt−1​(z−1).

The threshold depends on the period ttt. In the last period (t=1t = 1t=1) shipping is forced and the threshold is ddd. The optimal consolidation policy is thus described by one number per period: wait while the most urgent order still has more than τt\tau_tτt​ periods of slack, and ship everything otherwise.

Formalization Note. The state zzz stands for the smallest slack among pending orders; the paper's Lemma 1, which reduces the general dynamic program (1) to (2)–(3), is not formalized, and the model is the recursion (2)–(3) itself. "Optimal" means that the corresponding branch of (2) attains the minimum, so with ties both decisions are optimal; the threshold is a natural number (a negative threshold is equivalent to 000 since z≥1z \ge 1z≥1). Both implications are required: shipping is always optimal at z=1z = 1z=1, so the first implication alone would be trivial.

Preamble
import Mathlib
import Definitions.Def_ShipConsol_OneWH_Setting
Formal statement
namespace ShipConsol.OneWH
theorem theorem_1 (F : ℝ → ℝ) (hFconv : ConvexOn ℝ (Set.Ici 1) F) (hFanti : AntitoneOn F (Set.Ici 1)) (α : ℝ) (hα : α ∈ Set.Icc (0 : ℝ) 1) (d : ℕ) (hd : 1 ≤ d) (t : ℕ) (ht : 1 ≤ t) : ∃ τ : ℕ, ∀ z : ℕ, 1 ≤ z → z ≤ d → (z ≤ τ → ShipOptimal F α d t z) ∧ (τ < z → HoldOptimal F α d t z) := 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), Theorem 1, p. 13
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