Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Eq. (5.6) — expected bookings plus expected spill equal expected requests

Proved
SeatInventory.Distinct.bookings_add_spill

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

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

Let the number of requests rrr for a fare class take values in {0,1,2,… }\{0,1,2,\dots\}{0,1,2,…} with finite mean rˉ=E[r]\bar r = E[r]rˉ=E[r]. For every number SSS of seats allocated to the class, with expected bookings bˉ(S)=E[min⁡(r,S)]\bar b(S) = E[\min(r,S)]bˉ(S)=E[min(r,S)] and expected spill lˉ(S)=E[(r−S)+]\bar l(S) = E[(r-S)^+]lˉ(S)=E[(r−S)+],

bˉ(S)+lˉ(S)=rˉ.\bar b(S) + \bar l(S) = \bar r.bˉ(S)+lˉ(S)=rˉ.

Every request is either booked or refused, so the expected numbers of booked and refused requests account for all expected demand. The identity turns an expected-spill estimate into an expected-load estimate and back.

Formalization Note The thesis assumes the mean of the request distribution exists without saying so; the Lean statement assumes it explicitly (Summable (fun r => (p r).toReal * r)), since otherwise Lean's series for lˉ\bar llˉ and rˉ\bar rrˉ default to 000. Requests are integer valued (PMF ℕ).

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

/-- Belobaba 1987, Eq. (5.6), p. 103: for a fare class with integer requests `r` of finite mean,
expected bookings plus expected spill equal expected requests, `b̄(S) + l̄(S) = r̄`, for every
allocation `S`. -/
theorem bookings_add_spill (p : PMF ℕ) (hmean : Summable (fun r : ℕ => (p r).toReal * (r : ℝ)))
    (S : ℕ) :
    expectedBookings p S + expectedSpill p S = meanRequests p := 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. 103, Eqs. (5.3)-(5.6)
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