Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

§3.1: h(vj)=π(S∪{j},v)h(v_j)=\pi(S\cup\{j\},v)h(vj​)=π(S∪{j},v) for j∉Sj\notin Sj∈/S, and h(0)=π(S,v)h(0)=\pi(S,v)h(0)=π(S,v)

Proved
RetailVariety.Structure.h_endpoints

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

assortment-planninginventorymultinomial-logitnewsvendorp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1

Let vj>0v_j>0vj​>0, v0>0v_0>0v0​>0, 0<c<p0<c<p0<c<p, λ>0\lambda>0λ>0, σ>0\sigma>0σ>0, 0≤β<10\le\beta<10≤β<1, and let S⊆NS\subseteq NS⊆N be an assortment. With hIh_IhI​, hTh_ThT​ as in Lemma 1:

  1. for every variant j∉Sj\notin Sj∈/S, hI(vj)=πI(S∪{j},v)h_I(v_j)=\pi_I(S\cup\{j\},v)hI​(vj​)=πI​(S∪{j},v);
  2. for every variant j∉Sj\notin Sj∈/S, hT(vj)=πT(S∪{j},v)h_T(v_j)=\pi_T(S\cup\{j\},v)hT​(vj​)=πT​(S∪{j},v);
  3. hT(0)=πT(S,v)h_T(0)=\pi_T(S,v)hT​(0)=πT​(S,v);
  4. if β>0\beta>0β>0, then hI(0)=πI(S,v)h_I(0)=\pi_I(S,v)hI​(0)=πI​(S,v).

In words, h(δ)h(\delta)h(δ) is the profit of adding a variant of preference δ\deltaδ to SSS: at δ=0\delta=0δ=0 nothing is added and at δ=vj\delta=v_jδ=vj​ variant jjj is added.

Formalization Note Clause 4 needs β>0\beta>0β>0: gIg_IgI​ contains δβ\delta^\betaδβ, and at β=0\beta=0β=0 the convention 00=10^0=100=1 (which also makes ∑j∈Sqj0\sum_{j\in S}q_j^0∑j∈S​qj0​ count the variants of SSS, as in (7)) gives gI(0)g_I(0)gI​(0) one extra unit of the safety-stock term, so hI(0)<πI(S,v)h_I(0)<\pi_I(S,v)hI​(0)<πI​(S,v) there. Clause 2 relies on λ\lambdaλ multiplying both terms of gTg_TgT​; with (11) as printed it fails unless λ=1\lambda=1λ=1.

Preamble
import Mathlib
import Definitions.Def_RetailVariety_Structure_Model
Formal statement
namespace RetailVariety.Structure

/-- §3.1, p. 1503 (after Lemma 1): `h_I(v_j) = π_I(S ∪ {j}, v)` and `h_T(v_j) = π_T(S ∪ {j}, v)`
for `j ∉ S`; `h_T(0) = π_T(S, v)`; and, when `0 < β`, `h_I(0) = π_I(S, v)`. (At `β = 0`,
Lean's `0 ^ 0 = 1` puts an extra unit into `g_I(0)`.) -/
theorem h_endpoints {n : ℕ} (v : Fin n → ℝ) (v0 : ℝ) (hv : ∀ j, 0 < v j) (hv0 : 0 < v0)
    (p c lam σ β : ℝ) (hc : 0 < c) (hcp : c < p) (hlam : 0 < lam) (hσ : 0 < σ)
    (hβ0 : 0 ≤ β) (hβ1 : β < 1) (S : Finset (Fin n)) :
    (∀ j, j ∉ S → hI p c lam σ β v v0 S (v j) = profitI p c lam σ β v v0 (insert j S)) ∧
      (∀ j, j ∉ S → hT p c lam v v0 S (v j) = profitT p c lam v v0 (insert j S)) ∧
      hT p c lam v v0 S 0 = profitT p c lam v v0 S ∧
      (0 < β → hI p c lam σ β v v0 S 0 = profitI p c lam σ β v v0 S) := by sorry

end RetailVariety.Structure
Source
van Ryzin & Mahajan, On the Relationship Between Inventory Costs and Variety Benefits in Retail Assortments, Management Science 45(11), 1999, p. 1503, §3.1, paragraph after Lemma 1
Human review
  • Endorsed by Shuze Chen · Oct 6, 2026

    Confirmed by the moderator at approval.

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