Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

p. ec4 — OPT =∑i=1kMik(T)=\sum_{i=1}^k M^k_i(T)=∑i=1k​Mik​(T), the sum of the kkk largest valuations padded with zeros

Proved
ValTrackRM.Public.opt_eq_sum_topK

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

competitive-ratioonline-algorithmsp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1revenue-management

Let 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, be the price grid, k≥1k\ge1k≥1 the inventory, and V1,…,VTV_1,\dots,V_TV1​,…,VT​ a valuation sequence with each Vt∈{r(0),…,r(m)}V_t\in\{r^{(0)},\dots,r^{(m)}\}Vt​∈{r(0),…,r(m)}. Let OPT\mathrm{OPT}OPT be the offline optimum, the largest total valuation of a set of at most kkk customers, and let Mk(T)M^k(T)Mk(T) be the vector of the kkk largest elements of (V1,…,VT)(V_1,\dots,V_T)(V1​,…,VT​), filled with zeros if T<kT<kT<k (Definition EC.2). Then

OPT=∑i=1kMik(T).\mathrm{OPT}=\sum_{i=1}^k M^k_i(T).OPT=i=1∑k​Mik​(T).

This identifies the offline benchmark with the vector that the levels of Algorithm 1 track (Lemma EC.4).

Formalization Note. The algorithm parameters (selector) appear only to share the standing hypotheses with the other statements; the identity concerns OPT and Mk(T)M^k(T)Mk(T) alone.

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

theorem opt_eq_sum_topK {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))) :
    opt r k V = (topK r k V).sum := 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. ec4, Definition EC.2 and the display following it
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