Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Section 3, Eqs. (10), (13) — for uniform demand, E(P, x) = (P + L)x²/(4k(P₀ − P)) + Px on the support of demand

Proved
WhitinPrice.StyleGoods.eq_13_expected_profit

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) with P0P_0P0​, L>0L > 0L>0, k<0k < 0k<0, mean demand μ(P)=k(P−P0)\mu(P) = k(P - P_0)μ(P)=k(P−P0​) and demand uniform on [0,2μ(P)][0, 2\mu(P)][0,2μ(P)], let

E(P,x)=∫0x[f(t)−g(t)] dtE(P, x) = \int_0^x \big[f(t) - g(t)\big]\,dtE(P,x)=∫0x​[f(t)−g(t)]dt

be the expected profit of stocking xxx units at unit profit PPP, where f(t)=PPr⁡(X≥t)f(t) = P\Pr(X \ge t)f(t)=PPr(X≥t) and g(t)=LPr⁡(X<t)g(t) = L\Pr(X < t)g(t)=LPr(X<t).

For 0<P<P00 < P < P_00<P<P0​ and every stock xxx with 0≤x≤2μ(P)0 \le x \le 2\mu(P)0≤x≤2μ(P),

E(P,x)=P+L4k(P0−P) x2+P x.E(P, x) = \frac{P + L}{4k(P_0 - P)}\,x^2 + P\,x.E(P,x)=4k(P0​−P)P+L​x2+Px.

This is the closed form of the shaded area of Whitin's Figure II for uniform demand; at fixed PPP it is a concave quadratic in xxx on the support of demand, and it is the expression into which the optimal stock (12) is substituted to obtain (14).

Formalization Note The paper states (13) at a generic upper limit xmx_mxm​ without a range. Beyond 2μ(P)2\mu(P)2μ(P) the true expected profit is not given by (13) (it decreases with slope −L-L−L), so the Lean states (13) only for 0≤x≤2μ(P)0 \le x \le 2\mu(P)0≤x≤2μ(P). EEE is defined from the demand law, not by (13).

Preamble
import Mathlib
import Definitions.Def_WhitinPrice_StyleGoods_Model
Formal statement
namespace WhitinPrice.StyleGoods
theorem eq_13_expected_profit (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) :
    expectedProfit k P₀ L P x = (P + L) / (4 * k * (P₀ - P)) * x ^ 2 + P * x := by sorry
end WhitinPrice.StyleGoods
Source
Whitin, Inventory Control and Price Theory, Management Sci. 2 (1955), p. 66, Section 3, Eqs. (10) and (13)
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