Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma EC.2, p. ec3 — if jt>ℓit,t−1j_t>\ell_{i_t,t-1}jt​>ℓit​,t−1​, step ttt earns 1q(r(jt)−r(ℓit,t−1))\frac1q(r^{(j_t)}-r^{(\ell_{i_t,t-1})})q1​(r(jt​)−r(ℓit​,t−1​)) in expectation, and 000 otherwise

Proved
ValTrackRM.Public.lemma_EC_2

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

dynamic-pricingonline-algorithmsp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1revenue-management

Consider Algorithm 1 with k≥1k\ge1k≥1 units, price grid 0=r(0)<r(1)<⋯<r(m)0=r^{(0)}<r^{(1)}<\dots<r^{(m)}0=r(0)<r(1)<⋯<r(m), m≥1m\ge1m≥1, any minimal-level tie-break in line 4, and q=∑j=1mq(j)q=\sum_{j=1}^m q^{(j)}q=∑j=1m​q(j) as in Definition 1. Fix a valuation sequence V1,…,VTV_1,\dots,V_TV1​,…,VT​ and a time step t∈[T]t\in[T]t∈[T]. Let iti_tit​ be the unit assigned to customer ttt, ℓ=ℓit,t−1\ell=\ell_{i_t,t-1}ℓ=ℓit​,t−1​ its level before the step, and jtj_tjt​ the index with Vt=r(jt)V_t=r^{(j_t)}Vt​=r(jt​). Then:

  1. if jt>ℓj_t>\elljt​>ℓ, the expected revenue of step ttt is
E[PtXt]=1q(r(jt)−r(ℓ));\mathbb E[P_tX_t]=\frac1q\bigl(r^{(j_t)}-r^{(\ell)}\bigr);E[Pt​Xt​]=q1​(r(jt​)−r(ℓ));
  1. if jt≤ℓj_t\le\elljt​≤ℓ, then E[PtXt]=0\mathbb E[P_tX_t]=0E[Pt​Xt​]=0.

Part 1 is Lemma EC.2; part 2 is the observation stated just before it ("there cannot be a sale in a time step ttt where jt≤ℓit,t−1j_t\le\ell_{i_t,t-1}jt​≤ℓit​,t−1​"). Together they say the algorithm earns, in each step, exactly 1/q1/q1/q times the increase of the tracked level.

Preamble
import Mathlib
import Definitions.Def_ValTrackRM_Public_Model
Formal statement
namespace ValTrackRM.Public

theorem lemma_EC_2 {m k : ℕ} (hm : 1 ≤ m) (hk : 1 ≤ k) (r : ℕ → ℝ) (hr0 : r 0 = 0)
    (hr : ∀ j, j < m → r j < r (j + 1))
    (sel : (Fin k → Fin (m + 1)) → Fin k) (hsel : ∀ (L : Fin k → Fin (m + 1)) (i : Fin k), L (sel L) ≤ L i)
    (V : List (Fin (m + 1))) (t : ℕ) (ht1 : 1 ≤ t) (ht : t ≤ V.length) :
    (((levels sel (V.take (t - 1)) (assigned sel V t) : ℕ) < (valIdx V t : ℕ)) →
      stepRevenue r sel V t =
        (1 / qSum r m) * (r (valIdx V t) - r (levels sel (V.take (t - 1)) (assigned sel V t)))) ∧
    (((valIdx V t : ℕ) ≤ (levels sel (V.take (t - 1)) (assigned sel V t) : ℕ)) →
      stepRevenue r sel V t = 0) := by sorry

end ValTrackRM.Public
Source
Ma, Simchi-Levi & Teo, On Policies for Single-Leg Revenue Management with Limited Demand Information, arXiv:1810.10900v2, pp. ec2–ec3, Lemma EC.2 and the preceding remark
Human review
  • Endorsed by Shuze Chen · Oct 23, 2026

    Confirmed by the moderator at approval.

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