Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Sect. 4.2, p. 90 — the n largest m_i(k) give the revenue-maximising booking limits

Proved
SeatInventory.Distinct.marginal_allocation_optimal

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

marginal-allocationp2o-batch-pfp1ap2o-gran-per-chapterp2o-plan-bookp2o-v1revenue-managementseat-inventory-control

A flight leg with nnn seats serves fare classes iii with average fares fi≥0f_i\ge 0fi​≥0 and integer-valued requests rir_iri​, each class with its own distinct seat inventory. Let mi(k)=fi⋅P[ri≥k]m_i(k) = f_i\cdot P[r_i\ge k]mi​(k)=fi​⋅P[ri​≥k] be the expected marginal revenue of the kkk-th seat of class iii, 1≤k≤n1\le k\le n1≤k≤n, and let TTT be any set of nnn pairs (i,k)(i,k)(i,k) carrying nnn largest values mi(k)m_i(k)mi​(k) across all classes. Define the booking limits SiT=#{k:(i,k)∈T}S^T_i = \#\{k : (i,k)\in T\}SiT​=#{k:(i,k)∈T}. Then ∑iSiT=n\sum_i S^T_i = n∑i​SiT​=n, and for every allocation SSS with ∑iSi≤n\sum_i S_i \le n∑i​Si​≤n,

∑ifi E[min⁡(ri,Si)] ≤ ∑ifi E[min⁡(ri,SiT)].\sum_i f_i\, E[\min(r_i, S_i)] \ \le\ \sum_i f_i\, E[\min(r_i, S^T_i)] .i∑​fi​E[min(ri​,Si​)] ≤ i∑​fi​E[min(ri​,SiT​)].

This is the marginal approach to distinct seat allocation: since mi(k)m_i(k)mi​(k) decreases in kkk, ranking all (class, seat) marginal values and keeping the nnn largest determines the revenue-maximising combination of fare-class booking limits.

Formalization Note Expected revenue is computed from the booking rule min⁡(ri,Si)\min(r_i,S_i)min(ri​,Si​), not postulated as a sum of marginal values, and TTT ranges over every set of nnn largest values (ties allowed), not a particular sort. Seat numbers start at 111. Discrete reading: requests are a PMF ℕ and P[r≥k]P[r\ge k]P[r≥k] is used. Fares are assumed nonnegative; the competing allocations may use fewer than nnn seats.

Preamble
import Mathlib
import Definitions.Def_SeatInventory_Distinct_DemandModel
import Definitions.Def_SeatInventory_Distinct_MarginalAllocation
Formal statement
namespace SeatInventory.Distinct

/-- Belobaba 1987, Sect. 4.2, p. 90: since `m_i(k)` decreases in `k`, the `n` largest values
`m_i(k)` across all fare classes determine the revenue-maximising booking limits. For every set
`T` of `n` largest values of `m_i(k) = f_i · P[r_i ≥ k]` over (class, seat) pairs with
`1 ≤ k ≤ n`, the allocation `S^T_i = #{k : (i, k) ∈ T}` uses exactly `n` seats and its total
expected revenue `Σ_i f_i · E[min(r_i, S_i)]` is at least that of every allocation `S` of at
most `n` seats to distinct fare-class inventories. Fares are nonnegative. -/
theorem marginal_allocation_optimal {ι : Type*} [Fintype ι] [DecidableEq ι] (f : ι → ℝ)
    (hf : ∀ i, 0 ≤ f i) (d : ι → PMF ℕ) (n : ℕ) (T : Finset (ι × ℕ))
    (hT : IsTopN (marginalRevenue f d) (seatPairs ι n) T n) :
    ∑ i, allocationOf T i = n ∧
    ∀ S : ι → ℕ, ∑ i, S i ≤ n →
      totalExpectedRevenue f d S ≤ totalExpectedRevenue f d (allocationOf T) := by sorry

end SeatInventory.Distinct
Source
Belobaba, Air Travel Demand and Airline Seat Inventory Management, MIT Flight Transportation Laboratory Report R87-7 (PhD thesis), 1987, p. 90, Sect. 4.2, last paragraph (with the definition of m_i(k) on the same page)
Human review
  • Endorsed by Shuze Chen · Oct 4, 2026

    Confirmed by the moderator at approval.

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