Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Proposition 4 — the discrete-price LP is solved by pricing at pk∗p_{k^*}pk∗​ and pk∗+1p_{k^*+1}pk∗+1​ only

Proved
GVRPricing.StoppingTime.prop4_lp_solution

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

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

Let a menu with K≥2K\ge2K≥2 prices be given, a stock n≥0n\ge 0n≥0 and a horizon t>0t>0t>0.

  1. If 1≤k∗≤K−11\le k^*\le K-11≤k∗≤K−1 and λk∗t≥n>λk∗+1t\lambda_{k^*}t\ge n>\lambda_{k^*+1}tλk∗​t≥n>λk∗+1​t, then the allocation with tj=0t_j=0tj​=0 for j∉{k∗,k∗+1}j\notin\{k^*,k^*+1\}j∈/{k∗,k∗+1} and
tk∗=n−λk∗+1tλk∗−λk∗+1,tk∗+1=λk∗t−nλk∗−λk∗+1t_{k^*}=\frac{n-\lambda_{k^*+1}t}{\lambda_{k^*}-\lambda_{k^*+1}},\qquad t_{k^*+1}=\frac{\lambda_{k^*}t-n}{\lambda_{k^*}-\lambda_{k^*+1}}tk∗​=λk∗​−λk∗+1​n−λk∗+1​t​,tk∗+1​=λk∗​−λk∗+1​λk∗​t−n​

solves the linear program of §4.0.1. 2. (k∗=0k^*=0k∗=0) If n>λ1tn>\lambda_1 tn>λ1​t, then t1=tt_1=tt1​=t and tj=0t_j=0tj​=0 otherwise solves the LP. 3. (k∗=Kk^*=Kk∗=K) If n≤λKtn\le\lambda_K tn≤λK​t, then tK=n/λKt_K=n/\lambda_KtK​=n/λK​ and tj=0t_j=0tj​=0 otherwise solves the LP.

In every case JD(n,t)J^D(n,t)JD(n,t) is the revenue of this allocation. This closed form is what makes the deterministic benchmark explicit and suggests the two-price stopping-time heuristic.

Formalization Note Lean indices are 0-based: the paper's k∗k^*k∗ is Lean's k + 1. The paper says "the solution", but the statement here is optimality only: when three menu points are collinear the optimum need not be unique. The statement relies on the menu's concavity condition (see the Menu definition), without which it is false.

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

/-- Proposition 4 (p. 1010): closed-form solution of the discrete-price LP.  Indices are 0-based:
the paper's `k*` is `k + 1`, `λ_{k*}` is `M.lamN k`, and the edge cases `k* = 0`, `k* = K` are the
second and third clauses.  Stock `n ≥ 0`, horizon `t > 0` (standing assumptions of §2.2). -/
theorem prop4_lp_solution {K : ℕ} (M : Menu K) (n t : ℝ) (hn : 0 ≤ n) (ht : 0 < t) :
    (∀ k : ℕ, k + 1 < K → n ≤ M.lamN k * t → M.lamN (k + 1) * t < n →
        IsLPSolution M n t (twoPriceAlloc M k n t)) ∧
    (M.lamN 0 * t < n →
        IsLPSolution M n t (fun j => if j.val = 0 then t else 0)) ∧
    (n ≤ M.lamN (K - 1) * t →
        IsLPSolution M n t (fun j => if j.val = K - 1 then n / M.lamN (K - 1) else 0)) := 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. 1010 (PDF 12), Proposition 4
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