Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Proof of Theorem 5 — closed form of JD(n,t)J^D(n,t)JD(n,t) and JD(n,t)<JD(n,t′)+(pk+1−pk)J^D(n,t)<J^D(n,t')+(p_{k+1}-p_k)JD(n,t)<JD(n,t′)+(pk+1​−pk​)

Proved
GVRPricing.StoppingTime.detValue_shrunk_bound

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

linear-programmingp2o-batch-pfp2bp2o-gran-per-chapterp2o-plan-paperp2o-v1revenue-management

Let 1≤k≤K−11\le k\le K-11≤k≤K−1, n∈Nn\in\mathbb Nn∈N and ttt satisfy λkt≥n>λk+1t\lambda_k t\ge n>\lambda_{k+1}tλk​t≥n>λk+1​t, and let t′t't′ be the shrunk horizon of (28). Then the deterministic revenue is

JD(n,t)=rk−rk+1λk−λk+1 n+λkrk+1−λk+1rkλk−λk+1 t,J^D(n,t)=\frac{r_k-r_{k+1}}{\lambda_k-\lambda_{k+1}}\,n+\frac{\lambda_k r_{k+1}-\lambda_{k+1}r_k}{\lambda_k-\lambda_{k+1}}\,t,JD(n,t)=λk​−λk+1​rk​−rk+1​​n+λk​−λk+1​λk​rk+1​−λk+1​rk​​t,

and

JD(n,t)<JD(n,t′)+(pk+1−pk).J^D(n,t)<J^D(n,t')+(p_{k+1}-p_k).JD(n,t)<JD(n,t′)+(pk+1​−pk​).

Shrinking the horizon to t′t't′ therefore costs the deterministic benchmark less than one price difference.

Formalization Note JDJ^DJD is the value of the LP of §4.0.1. Lean index k is the paper's kkk minus one.

Preamble
import Mathlib
import Definitions.Def_GVRPricing_StoppingTime_DetLP
import Definitions.Def_GVRPricing_StoppingTime_STHeuristic
Formal statement
namespace GVRPricing.StoppingTime

/-- Appendix, Proof of Theorem 5 (p. 1018), display after (28): for (0-based) `k` with `k + 1 < K`
and `λ_{k+1} t < n ≤ λ_k t`,
`J^D(n, t) = (r_k − r_{k+1})/(λ_k − λ_{k+1}) · n + (λ_k r_{k+1} − λ_{k+1} r_k)/(λ_k − λ_{k+1}) · t`,
and `J^D(n, t) < J^D(n, t') + (p_{k+1} − p_k)` with `t'` the shrunk horizon. -/
theorem detValue_shrunk_bound {K : ℕ} (M : Menu K) (k : ℕ) (hk : k + 1 < K) (n : ℕ) (t : ℝ)
    (hup : (n : ℝ) ≤ M.lamN k * t) (hlow : M.lamN (k + 1) * t < n) :
    detValue M n t =
        (M.rN k - M.rN (k + 1)) / (M.lamN k - M.lamN (k + 1)) * n
          + (M.lamN k * M.rN (k + 1) - M.lamN (k + 1) * M.rN k) / (M.lamN k - M.lamN (k + 1)) * t ∧
      detValue M n t < detValue M n (shrunkHorizon M k n t) + (M.pN (k + 1) - M.pN k) := by sorry

end GVRPricing.StoppingTime
Source
Gallego, van Ryzin, Optimal Dynamic Pricing of Inventories with Stochastic Demand over Finite Horizons, Management Science 40(8) (1994), p. 1018 (PDF 20), Appendix, Proof of Theorem 5, display after (28)
Human review
  • Endorsed by Shuze Chen · Oct 5, 2026

    Confirmed by the moderator at approval.

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