Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Eq. (5.13), discrete form — EMSR optimality conditions for distinct fare classes

Proved
SeatInventory.Distinct.emsr_optimality_conditions

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

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

Let fare classes iii have fares fi≥0f_i \ge 0fi​≥0 and integer-valued requests rir_iri​, write EMSRi(S)=fi⋅P[ri≥S]\mathrm{EMSR}_i(S) = f_i\cdot P[r_i\ge S]EMSRi​(S)=fi​⋅P[ri​≥S], and let S=(Si)S = (S_i)S=(Si​) be an allocation of exactly CCC seats, ∑iSi=C\sum_i S_i = C∑i​Si​=C, to distinct fare-class inventories. Then SSS maximises the total expected revenue Rˉ=∑ifi E[min⁡(ri,Si)]\bar R = \sum_i f_i\, E[\min(r_i,S_i)]Rˉ=∑i​fi​E[min(ri​,Si​)] among all allocations of exactly CCC seats if and only if there is a number λ\lambdaλ with

EMSRi(Si) ≥ λ  whenever Si≥1,EMSRi(Si+1) ≤ λ,for every class i.\mathrm{EMSR}_i(S_i) \ \ge\ \lambda\ \ \text{whenever } S_i \ge 1, \qquad \mathrm{EMSR}_i(S_i+1)\ \le\ \lambda, \qquad \text{for every class } i .EMSRi​(Si​) ≥ λ  whenever Si​≥1,EMSRi​(Si​+1) ≤ λ,for every class i.

This is the integer counterpart of the thesis's Lagrangian condition EMSRi(Si∗)=λ\mathrm{EMSR}_i(S_i^*) = \lambdaEMSRi​(Si∗​)=λ for all iii: the value of the last seat given to any class is at least the value of the next seat of any class, so no transfer of a seat between classes raises expected revenue. It covers the "corner" solutions the thesis mentions, in which some class receives no seats.

Formalization Note The thesis's equality "=λ= \lambda=λ" is the first-order condition of the continuous relaxation; with integer seats exact equality generally fails, so the discrete reading brackets λ\lambdaλ between the last allocated and the next unallocated seat. Requests are a PMF ℕ and P[r≥S]P[r\ge S]P[r≥S] is used throughout. Fares are assumed nonnegative.

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

/-- Belobaba 1987, Eq. (5.13), p. 107 (with (5.12), p. 105, and (4.3)–(4.4), p. 86), discrete
reading: an allocation `S` of exactly `C` seats to distinct fare-class inventories maximises total
expected revenue among all allocations of `C` seats iff there is a `λ` lying between the EMSR
of the last seat allocated to each class and the EMSR of the next seat of each class:
`EMSR_i(S_i) ≥ λ` whenever `S_i ≥ 1`, and `EMSR_i(S_i + 1) ≤ λ`, for every class `i`.
Fares are nonnegative. -/
theorem emsr_optimality_conditions {ι : Type*} [Fintype ι] (f : ι → ℝ) (hf : ∀ i, 0 ≤ f i)
    (d : ι → PMF ℕ) (C : ℕ) (S : ι → ℕ) (hS : ∑ i, S i = C) :
    (∀ S' : ι → ℕ, ∑ i, S' i = C → totalExpectedRevenue f d S' ≤ totalExpectedRevenue f d S) ↔
      ∃ lam : ℝ, ∀ i, (1 ≤ S i → lam ≤ emsr (f i) (d i) (S i)) ∧
        emsr (f i) (d i) (S i + 1) ≤ lam := 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. 107, Eq. (5.13); see also p. 105, Eq. (5.12), and p. 86, Eqs. (4.3)-(4.4)
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