Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Section 3, Eqs. (9), (12) — x_M = −2kP(P₀ − P)/(P + L) is the unique root of f = g and the unique optimal stock

Proved
WhitinPrice.StyleGoods.eq_9_12_optimal_stock

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​), demand uniform on [0,2μ(P)][0, 2\mu(P)][0,2μ(P)], marginal curves f,gf, gf,g and expected profit E(P,x)=∫0x[f−g]E(P, x) = \int_0^x [f - g]E(P,x)=∫0x​[f−g], fix a unit profit 0<P<P00 < P < P_00<P<P0​ and let

xM=−2kP(P0−P)P+L.x_M = -\frac{2kP(P_0 - P)}{P + L}.xM​=−P+L2kP(P0​−P)​.

Then:

  1. 0<xM<2μ(P)0 < x_M < 2\mu(P)0<xM​<2μ(P), so the equilibrium stock lies strictly inside the support of demand;
  2. for every stock x≥0x \ge 0x≥0, the equilibrium condition (9), f(x)−g(x)=0f(x) - g(x) = 0f(x)−g(x)=0, holds if and only if x=xMx = x_Mx=xM​;
  3. xMx_MxM​ maximizes expected profit over all stocks: E(P,x)≤E(P,xM)E(P, x) \le E(P, x_M)E(P,x)≤E(P,xM​) for every x≥0x \ge 0x≥0;
  4. the maximizer is unique: if x≥0x \ge 0x≥0 and E(P,x)=E(P,xM)E(P, x) = E(P, x_M)E(P,x)=E(P,xM​), then x=xMx = x_Mx=xM​.

This is the optimal inventory level for a given unit profit, the point QQQ below the intersection of fff and ggg in Whitin's Figure II; substituting it into the expected profit yields (14).

Formalization Note The paper says "Equation (9) may be solved for xxx" and calls the solution the equilibrium (optimal) value; the Lean makes the uniqueness of the root and the global optimality over all stocks x≥0x \ge 0x≥0, including stocks beyond the support of demand, explicit.

Preamble
import Mathlib
import Definitions.Def_WhitinPrice_StyleGoods_Model
Formal statement
namespace WhitinPrice.StyleGoods
theorem eq_9_12_optimal_stock (k P₀ L P : ℝ) (hk : k < 0) (hL : 0 < L) (hP : 0 < P)
    (hPP₀ : P < P₀) :
    0 < optimalStock k P₀ L P ∧ optimalStock k P₀ L P < 2 * meanDemand k P₀ P ∧
      (∀ x : ℝ, 0 ≤ x →
        (marginalProfit k P₀ P x - marginalLoss k P₀ L P x = 0 ↔ x = optimalStock k P₀ L P)) ∧
      (∀ x : ℝ, 0 ≤ x → expectedProfit k P₀ L P x ≤ expectedProfit k P₀ L P (optimalStock k P₀ L P)) ∧
      (∀ x : ℝ, 0 ≤ x →
        expectedProfit k P₀ L P x = expectedProfit k P₀ L P (optimalStock k P₀ L P) →
          x = optimalStock k P₀ L P) := by sorry
end WhitinPrice.StyleGoods
Source
Whitin, Inventory Control and Price Theory, Management Sci. 2 (1955), p. 66, Section 3, Eqs. (9) and (12); p. 65 (optimality of OQ)
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