Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

§5.3, p. 20, (22)–(24) — choice under a budget, profit, benchmark; menus of Theorems 5 and B1

Definition
LargeBSP_Homog_Supplement_Budget

by mikedeng1 · Nov 23, 2026 · Mathlib 0df444a (Lean v4.33.1)

bundle-size-pricingp2o-batch-supp500p2o-gran-per-chapterp2o-plan-paperp2o-v1probability

Bundle-size pricing for a customer with a budget bbb and identical marginal cost ccc.

  1. Choice (22). The customer may take size 000 for free or any offered size n≤Nn\le Nn≤N with p(n)≤bp(n)\le bp(n)≤b, and buys a size ζ(X,p,b)\zeta(X,p,b)ζ(X,p,b) maximizing VN(n)−p(n)V_N(n)-p(n)VN​(n)−p(n) among these. The smallest maximizer is chosen.
  2. Profit (23). π(p,b)=p(n)−nc\pi(p,b)=p(n)-ncπ(p,b)=p(n)−nc when the chosen size is n≥1n\ge1n≥1, and 000 when it is 000. The expected profit is E[π(p,b)]\mathbb E[\pi(p,b)]E[π(p,b)].
  3. Benchmark (24). With VN(n,b)=min⁡(VN(n),b)V_N(n,b)=\min(V_N(n),b)VN​(n,b)=min(VN​(n),b), it is
E[max⁡n=0,…,N(VN(n,b)−nc)].\mathbb E\Bigl[\max_{n=0,\dots,N}\bigl(V_N(n,b)-nc\bigr)\Bigr].E[n=0,…,Nmax​(VN​(n,b)−nc)].
  1. Optimum. The supremum of E[π(p,b)]\mathbb E[\pi(p,b)]E[π(p,b)] over menus with prices in R+∪{∞}\mathbb R_+\cup\{\infty\}R+​∪{∞}.
  2. Menu of Theorem 5. With t=n/Nt=n/Nt=n/N, size nnn costs NVˉ(t)−h(t)g(N)N\bar V(t)-h(t)g(N)NVˉ(t)−h(t)g(N) if t≤t⋆t\le t^\start≤t⋆ and is not offered otherwise.
  3. Menu of Theorem B1. Size n≤Kbn\le K_bn≤Kb​ costs nη−h(n)d(N)n\eta-h(n)d(N)nη−h(n)d(N), and larger sizes are not offered.

Neither menu depends on the budget, which the firm does not observe.

Formalization Note Entry 000 of a menu is ignored and no purchase always costs 000. The tie rule between sizes is the one of the model's unconstrained choice. The benchmark's maximum is over a nonempty finite set.

Definition code
import Mathlib
import Definitions.Def_LargeBSP_Homog_Setting

open MeasureTheory ProbabilityTheory Filter
open scoped Topology

namespace LargeBSP.Homog.Supplement

/-- (22): zero plus finite, affordable sizes, with the inherited no-purchase entry. -/
noncomputable def affordable (N : ℕ) (p : Menu) (b : ℝ) : Finset ℕ :=
  insert 0 ((offered N p).filter (fun n => price p n ≤ b))

/-- Smallest surplus maximizer among affordable sizes, the base size tie convention. -/
noncomputable def budgetChoice (x : ℕ → ℝ) (N : ℕ) (p : Menu) (b : ℝ) : ℕ :=
  sInf {n : ℕ | n ∈ affordable N p b ∧
    ∀ k ∈ affordable N p b, surplus x N p k ≤ surplus x N p n}

/-- (23), homogeneous marginal cost and zero payoff at no purchase. -/
noncomputable def budgetProfit (x : ℕ → ℝ) (c : ℝ) (N : ℕ) (p : Menu) (b : ℝ) : ℝ :=
  if budgetChoice x N p b = 0 then 0 else
    price p (budgetChoice x N p b) - (budgetChoice x N p b : ℝ) * c

noncomputable def budgetExpProfit {Ω : Type*} [MeasurableSpace Ω]
    (P : Measure Ω) (X : ℕ → Ω → ℝ) (c : ℝ) (N : ℕ) (p : Menu) (b : ℝ) : ℝ :=
  ∫ ω, budgetProfit (fun i => X i ω) c N p b ∂P

/-- Restricted valuation V_N(n,b) in Section 5.3. -/
noncomputable def restrictedValue (x : ℕ → ℝ) (N n : ℕ) (b : ℝ) : ℝ :=
  min (V x N n) b

/-- The expectation is OUTSIDE the finite maximum in (24), (25), and (B1).
The nonempty finite range includes n=0, so the real supremum is never a junk value. -/
noncomputable def budgetBenchmark {Ω : Type*} [MeasurableSpace Ω]
    (P : Measure Ω) (X : ℕ → Ω → ℝ) (c : ℝ) (N : ℕ) (b : ℝ) : ℝ :=
  ∫ ω, ((Finset.range (N + 1)).image
    (fun n => restrictedValue (fun i => X i ω) N n b - (n : ℝ) * c)).sup' (by simp) id ∂P

/-- The optimal budget-constrained BSP value, with the original nonnegative menu domain. -/
noncomputable def budgetOptProfit {Ω : Type*} [MeasurableSpace Ω]
    (P : Measure Ω) (X : ℕ → Ω → ℝ) (c : ℝ) (N : ℕ) (b : ℝ) : ℝ :=
  ⨆ p : {p : Menu // IsBSPMenu p}, budgetExpProfit P X c N p.1 b

/-- The full integer-grid menu of Theorem 5. It contains no budget parameter. Entry 0 is ignored. -/
noncomputable def scalingBudgetMenu (ν : Measure ℝ) (c : ℝ)
    (g : ℕ → ℝ) (h : ℝ → ℝ) (N : ℕ) : Menu :=
  fun n => if (n : ℝ) / N ≤ tstar ν c then
    (((N : ℝ) * Vlim ν ((n : ℝ) / N) - h ((n : ℝ) / N) * g N) : WithTop ℝ)
    else ⊤

/-- The finite-size, budget-independent menu of Theorem B1. -/
noncomputable def endpointMenu (η : ℝ) (K : ℕ) (d : ℕ → ℝ) (h : ℕ → ℝ) (N : ℕ) : Menu :=
  fun n => if n ≤ min K N then (((n : ℝ) * η - h n * d N) : WithTop ℝ) else ⊤

end LargeBSP.Homog.Supplement
Source
Abdallah, Asadpour & Reed, Large-Scale Bundle-Size Pricing: A Theoretical Analysis, author's manuscript (2021; Oper. Res. doi:10.1287/opre.2020.2097), SHA-256 1dfcad7675689de2118550b720b7488b45737ecd5ee5cd6085e5b5d0250d40cd, §5.3, (22)–(24), p. 20; Theorem 5 (menu), p. 21; Theorem B1 (menu), p. A14

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