Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Section 3, Eq. (11) — for uniform demand, f(x) = P x/(2k(P₀ − P)) + P and g(x) = −L x/(2k(P₀ − P))

Proved
WhitinPrice.StyleGoods.eq_11_marginal_curves

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

inventorynewsvendorp2o-batch-pfp2bp2o-gran-per-chapterp2o-plan-paperp2o-v1pricing

In the style-goods model (Whitin 1955, §3), let P0P_0P0​ be the unit profit at which demand falls to zero, L>0L > 0L>0 the unit liquidation loss, and k<0k < 0k<0 the reciprocal of the slope of the line relating unit profit and mean demand μ(P)=k(P−P0)\mu(P) = k(P - P_0)μ(P)=k(P−P0​). Fix a unit profit PPP with 0<P<P00 < P < P_00<P<P0​, and let demand be uniform on [0,2μ(P)][0, 2\mu(P)][0,2μ(P)]. Let f(x)=PPr⁡(X≥x)f(x) = P\Pr(X \ge x)f(x)=PPr(X≥x) and g(x)=LPr⁡(X<x)g(x) = L\Pr(X < x)g(x)=LPr(X<x) be the expected marginal profit and loss of the xxx-th unit.

Then for every stock xxx with 0≤x≤2μ(P)0 \le x \le 2\mu(P)0≤x≤2μ(P),

f(x)=P2k(P0−P) x+P,g(x)=−L2k(P0−P) x.f(x) = \frac{P}{2k(P_0 - P)}\,x + P, \qquad g(x) = \frac{-L}{2k(P_0 - P)}\,x.f(x)=2k(P0​−P)P​x+P,g(x)=2k(P0​−P)−L​x.

Both curves are linear on the support of demand: fff falls from PPP to 000 and ggg rises from 000 to LLL. These are the two lines whose intersection gives the optimal stock (12) and whose enclosed area gives the expected profit (13).

Formalization Note The paper writes (11) without a range; the Lean restricts to the support 0≤x≤2μ(P)0 \le x \le 2\mu(P)0≤x≤2μ(P), outside which fff and ggg are constant. The sign k<0k < 0k<0 is implicit in the paper (positive mean demand below P0P_0P0​) and is an explicit hypothesis.

Preamble
import Mathlib
import Definitions.Def_WhitinPrice_StyleGoods_Model
Formal statement
namespace WhitinPrice.StyleGoods
theorem eq_11_marginal_curves (k P₀ L P x : ℝ) (hk : k < 0) (hL : 0 < L) (hP : 0 < P)
    (hPP₀ : P < P₀) (hx₀ : 0 ≤ x) (hx : x ≤ 2 * meanDemand k P₀ P) :
    marginalProfit k P₀ P x = P / (2 * k * (P₀ - P)) * x + P ∧
      marginalLoss k P₀ L P x = -L / (2 * k * (P₀ - P)) * x := by sorry
end WhitinPrice.StyleGoods
Source
Whitin, Inventory Control and Price Theory, Management Sci. 2 (1955), p. 66, Section 3, Eq. (11)
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