Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Proof of Theorem 3 — there are t≤rt\le rt≤r, 0<δ≤10<\delta\le 10<δ≤1 with ∑j<twj+δwt=∑j≤rvj\sum_{j<t}w_j+\delta w_t=\sum_{j\le r}v_j∑j<t​wj​+δwt​=∑j≤r​vj​

Proved
RetailVariety.Fashion.choice_of_t

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

majorizationp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1

Let v,w∈Rnv,w\in\mathbb R^nv,w∈Rn be nonnegative and sorted decreasingly, with v≺wv\prec wv≺w. Let r≤nr\le nr≤n with ∑j=1rvj>0\sum_{j=1}^{r}v_j>0∑j=1r​vj​>0. Then there exist an index ttt with 1≤t≤r1\le t\le r1≤t≤r and a number 0<δ≤10<\delta\le 10<δ≤1 such that

∑j=1t−1wj+δ wt=∑j=1rvj.\sum_{j=1}^{t-1}w_j+\delta\,w_t=\sum_{j=1}^{r}v_j.j=1∑t−1​wj​+δwt​=j=1∑r​vj​.

The first t−1t-1t−1 variants of www together with a fraction δ\deltaδ of variant ttt carry exactly the preference mass of the rrr most popular variants of vvv.

Formalization Note. The Lean index t : Fin n is the paper's t−1t-1t−1 (so t.val < r, A n t.val ={1,…,t−1}=\{1,\dots,t-1\}={1,…,t−1} and w t =wt=w_t=wt​) and θ is the paper's δ\deltaδ. The hypothesis ∑j≤rvj>0\sum_{j\le r}v_j>0∑j≤r​vj​>0 is not printed: when the sum is 000 (e.g. r=0r=0r=0) no δ>0\delta>0δ>0 works, and that case of Theorem 3 is immediate.

Preamble
import Mathlib
import Definitions.Def_RetailVariety_Fashion_Model
import Definitions.Def_RetailVariety_Fashion_Majorization
Formal statement
namespace RetailVariety.Fashion

/-- p. 1506: if `v ≺ w` (both sorted decreasingly, nonnegative) and `∑_{j=1}^r v_j > 0`, there is
a `t ≤ r` and `0 < δ ≤ 1` with `∑_{j=1}^{t−1} w_j + δ w_t = ∑_{j=1}^r v_j`. In Lean, `t : Fin n`
is the paper's `t − 1` (so `t.val < r`, `A n t` is `{1, …, t − 1}` and `w t` is `w_t`), and `θ`
is the paper's `δ`. -/
theorem choice_of_t {n : ℕ} (v w : Fin n → ℝ) (hv : ∀ j, 0 ≤ v j) (hw : ∀ j, 0 ≤ w j)
    (hva : Antitone v) (hwa : Antitone w) (hvw : Majorized v w) (r : ℕ) (hr : r ≤ n)
    (hpos : 0 < ∑ j ∈ RetailVariety.Statics.A n r, v j) :
    ∃ t : Fin n, t.val < r ∧ ∃ θ : ℝ, 0 < θ ∧ θ ≤ 1 ∧
      ∑ j ∈ RetailVariety.Statics.A n t.val, w j + θ * w t = ∑ j ∈ RetailVariety.Statics.A n r, v j := by sorry

end RetailVariety.Fashion
Source
van Ryzin & Mahajan, On the Relationship Between Inventory Costs and Variety Benefits in Retail Assortments, Management Science 45(11), 1999, p. 1506, proof of Theorem 3
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