Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

§3.3, p. 13 — Algorithm 1 never reaches line 8 with ℓt=m\ell_t=mℓt​=m: a unit at the top level is sold with probability 1

Proved
ValTrackRM.Public.line8_unreachable

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 (the valuation tracking procedure) 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, and any tie-breaking rule in line 4 that selects a unit of minimal level. Fix a valuation sequence V1,…,VTV_1,\dots,V_TV1​,…,VT​ and a time t∈{0,…,T}t\in\{0,\dots,T\}t∈{0,…,T}. If inventory unit iii has level ℓi,t=m\ell_{i,t}=mℓi,t​=m at the end of time ttt, then

Pr⁡[Si,t=1]=1,\Pr[S_{i,t}=1]=1,Pr[Si,t​=1]=1,

that is, unit iii has been sold almost surely.

Consequently Algorithm 1 cannot branch to line 8 when ℓt=m\ell_t=mℓt​=m: the unit it∗i_t^*it∗​ it would offer is already sold. This is the observation on p. 13 that makes the offer distribution of line 8 well defined (its normalizer ∑j=ℓt+1mq(j)\sum_{j=\ell_t+1}^m q^{(j)}∑j=ℓt​+1m​q(j) is positive exactly when ℓt<m\ell_t<mℓt​<m).

Formalization Note. The definition of Algorithm 1 treats a step at a unit of level mmm as a rejection (price ∞\infty∞) so that it is total; this theorem records that the case never matters.

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

theorem line8_unreachable {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 : ℕ) (ht : t ≤ V.length) (i : Fin k)
    (hi : levels sel (V.take t) i = Fin.last m) :
    probSold r sel (V.take t) i = 1 := by sorry

end ValTrackRM.Public
Source
Ma, Simchi-Levi & Teo, On Policies for Single-Leg Revenue Management with Limited Demand Information, arXiv:1810.10900v2, p. 13, Section 3.3 (remark after Algorithm 1)
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