Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Section 3, Eq. (15) — the derivative of P ↦ E(P, x_M(P)) vanishes iff 2P² + (3L − P₀)P − 2P₀L = 0

Proved
WhitinPrice.StyleGoods.eq_15_stationary_quadratic

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, let V(P)=E(P,xM(P))V(P) = E(P, x_M(P))V(P)=E(P,xM​(P)) be the expected profit at unit profit PPP when the optimal stock xM(P)=−2kP(P0−P)/(P+L)x_M(P) = -2kP(P_0 - P)/(P + L)xM​(P)=−2kP(P0​−P)/(P+L) is held. For every 0<P<P00 < P < P_00<P<P0​, VVV is differentiable at PPP with

V′(P)=kP (2P2+(3L−P0)P−2P0L)(P+L)2,V'(P) = \frac{kP\,\big(2P^2 + (3L - P_0)P - 2P_0L\big)}{(P + L)^2},V′(P)=(P+L)2kP(2P2+(3L−P0​)P−2P0​L)​,

and consequently

V′(P)=0  ⟺  2P2+(3L−P0)P−2P0L=0.(15)V'(P) = 0 \iff 2P^2 + (3L - P_0)P - 2P_0L = 0. \tag{15}V′(P)=0⟺2P2+(3L−P0​)P−2P0​L=0.(15)

This is the first-order condition for the profit-maximizing unit profit; its positive root is (16).

Formalization Note The paper differentiates the closed form (14); the Lean differentiates the model function P↦E(P,xM(P))P \mapsto E(P, x_M(P))P↦E(P,xM​(P)) itself, which agrees with (14) on (0,P0)(0, P_0)(0,P0​). The explicit derivative is stated, so the equivalence is not an artefact of Lean's convention that deriv is 000 at non-differentiable points.

Preamble
import Mathlib
import Definitions.Def_WhitinPrice_StyleGoods_Model
Formal statement
namespace WhitinPrice.StyleGoods
theorem eq_15_stationary_quadratic (k P₀ L P : ℝ) (hk : k < 0) (hL : 0 < L) (hP : 0 < P)
    (hPP₀ : P < P₀) :
    HasDerivAt (fun Q : ℝ => expectedProfit k P₀ L Q (optimalStock k P₀ L Q))
        (k * P * (2 * P ^ 2 + (3 * L - P₀) * P - 2 * P₀ * L) / (P + L) ^ 2) P ∧
      (deriv (fun Q : ℝ => expectedProfit k P₀ L Q (optimalStock k P₀ L Q)) P = 0 ↔
        2 * P ^ 2 + (3 * L - P₀) * P - 2 * P₀ * L = 0) := by sorry
end WhitinPrice.StyleGoods
Source
Whitin, Inventory Control and Price Theory, Management Sci. 2 (1955), p. 67, Section 3, Eqs. (14) and (15)
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