Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Section 3, Eq. (16) — P* = ((P₀ − 3L) + √((3L − P₀)² + 16P₀L))/4 with stock x_M(P*) uniquely maximizes expected profit

Proved
WhitinPrice.StyleGoods.optimal_unit_profit

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

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

Consider the style-goods model of Whitin (1955, §3): a single selling period, stock x≥0x \ge 0x≥0 on hand at its start, a unit profit PPP earned on each unit sold, and a loss L>0L > 0L>0 on each unit liquidated at its close. Mean demand is linear in the unit profit, μ(P)=k(P−P0)\mu(P) = k(P - P_0)μ(P)=k(P−P0​), where P0>0P_0 > 0P0​>0 is the unit profit at which demand falls to zero and k<0k < 0k<0 is the reciprocal of the slope of that line; demand is uniform on [0,2μ(P)][0, 2\mu(P)][0,2μ(P)]. The expected profit is

E(P,x)=∫0x[PPr⁡(X≥t)−LPr⁡(X<t)] dt,E(P, x) = \int_0^x \big[P\Pr(X \ge t) - L\Pr(X < t)\big]\,dt,E(P,x)=∫0x​[PPr(X≥t)−LPr(X<t)]dt,

and xM(P)=−2kP(P0−P)/(P+L)x_M(P) = -2kP(P_0 - P)/(P + L)xM​(P)=−2kP(P0​−P)/(P+L) is the equilibrium stock (12). Let

P∗=(P0−3L)+(3L−P0)2+16P0L4.(16)P^* = \frac{(P_0 - 3L) + \sqrt{(3L - P_0)^2 + 16P_0L}}{4}. \tag{16}P∗=4(P0​−3L)+(3L−P0​)2+16P0​L​​.(16)

Then

  1. 0<P∗<P00 < P^* < P_00<P∗<P0​;
  2. for every unit profit 0<P<P00 < P < P_00<P<P0​ and every stock x≥0x \ge 0x≥0, E(P,x)≤E(P∗,xM(P∗))E(P, x) \le E\big(P^*, x_M(P^*)\big)E(P,x)≤E(P∗,xM​(P∗));
  3. equality holds only at P=P∗P = P^*P=P∗ and x=xM(P∗)x = x_M(P^*)x=xM​(P∗).

So the pair (P∗,xM(P∗))(P^*, x_M(P^*))(P∗,xM​(P∗)) is the unique joint optimum of unit profit and stock. As Whitin observes, the optimal unit profit (16) does not involve kkk: it depends only on P0P_0P0​ and LLL, although the optimal stock and the optimal expected profit scale with kkk.

Formalization Note The paper's "Solving (15) gives the optimal P" is made explicit as unique global maximization of expected profit jointly over 0<P<P00 < P < P_00<P<P0​ and all stocks x≥0x \ge 0x≥0. The independence of kkk is visible in the hypothesis fixing P∗P^*P∗, which mentions only P0P_0P0​ and LLL. The conditions P0>0P_0 > 0P0​>0, L>0L > 0L>0 and k<0k < 0k<0 are implicit in the paper and are explicit hypotheses.

Preamble
import Mathlib
import Definitions.Def_WhitinPrice_StyleGoods_Model
Formal statement
namespace WhitinPrice.StyleGoods
theorem optimal_unit_profit (k P₀ L Pstar : ℝ) (hk : k < 0) (hL : 0 < L) (hP₀ : 0 < P₀)
    (hPstar : Pstar = ((P₀ - 3 * L) + Real.sqrt ((3 * L - P₀) ^ 2 + 16 * P₀ * L)) / 4) :
    0 < Pstar ∧ Pstar < P₀ ∧
      (∀ P x : ℝ, 0 < P → P < P₀ → 0 ≤ x →
        expectedProfit k P₀ L P x ≤ expectedProfit k P₀ L Pstar (optimalStock k P₀ L Pstar)) ∧
      (∀ P x : ℝ, 0 < P → P < P₀ → 0 ≤ x →
        expectedProfit k P₀ L P x = expectedProfit k P₀ L Pstar (optimalStock k P₀ L Pstar) →
          P = Pstar ∧ x = optimalStock k P₀ L Pstar) := by sorry
end WhitinPrice.StyleGoods
Source
Whitin, Inventory Control and Price Theory, Management Sci. 2 (1955), p. 67, Section 3, Eqs. (14)–(16); p. 65 (select the value of P that maximizes expected profits)
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