Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

§3.2, p. 11 — for n ∼ U(0, n̄): E(n) = n̄/2 and E[(n − q)⁺] = (n̄ − q)²/(2n̄)

Proved
SustainableFashion.Variety.uniform_expectations

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

fast-fashionnewsvendorp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1quick-response

Let the market size nnn be uniformly distributed on [0,nˉ][0,\bar n][0,nˉ] with nˉ>0\bar n>0nˉ>0, and let 0≤q≤nˉ0\le q\le\bar n0≤q≤nˉ. Then

E(n)=nˉ2,E[(n−q)+]=(nˉ−q)22nˉ.\mathbb E(n)=\frac{\bar n}{2},\qquad \mathbb E[(n-q)^+]=\frac{(\bar n-q)^2}{2\bar n}.E(n)=2nˉ​,E[(n−q)+]=2nˉ(nˉ−q)2​.

These are the two expectations substituted into the expected profit to obtain problem (1); the second is the expected quick-response production when qqq units of the trendy style are stocked.

Formalization Note The uniform law on [0,nˉ][0,\bar n][0,nˉ] has density 1/nˉ1/\bar n1/nˉ, so each expectation is written as an interval integral over [0,nˉ][0,\bar n][0,nˉ] divided by nˉ\bar nnˉ, and (n−q)+=max⁡(n−q,0)(n-q)^+=\max(n-q,0)(n−q)+=max(n−q,0). The paper prints "E[(nˉ−q)+]\mathbb E[(\bar n-q)^+]E[(nˉ−q)+]", a slip for E[(n−q)+]\mathbb E[(n-q)^+]E[(n−q)+]; the statement uses the intended quantity.

Preamble
import Mathlib
import Definitions.Def_SustainableFashion_Variety_Setting
Formal statement
namespace SustainableFashion.Variety

theorem uniform_expectations (nbar q : ℝ) (hn : 0 < nbar) (hq0 : 0 ≤ q) (hq : q ≤ nbar) :
    (∫ n in (0 : ℝ)..nbar, n) / nbar = nbar / 2 ∧
    (∫ n in (0 : ℝ)..nbar, max (n - q) 0) / nbar = (nbar - q) ^ 2 / (2 * nbar) := by sorry

end SustainableFashion.Variety
Source
Long & Nasiry, Sustainability in the Fast Fashion Industry, SSRN 3486502 author's manuscript (2021; MSOM doi:10.1287/msom.2021.1054), §3.2, sentence preceding (1) ("After substituting E(n) = n̄/2 …"), p. 11
Human review
  • Endorsed by Shuze Chen · Oct 19, 2026

    Confirmed by the moderator at approval.

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