Section 3, Eq. (15) — the derivative of P ↦ E(P, x_M(P)) vanishes iff 2P² + (3L − P₀)P − 2P₀L = 0
ProvedWhitinPrice.StyleGoods.eq_15_stationary_quadraticinventorynewsvendorp2o-batch-pfp2bp2o-gran-per-chapterp2o-plan-paperp2o-v1pricing
In the style-goods model (Whitin 1955, §3) with , , , let be the expected profit at unit profit when the optimal stock is held. For every , is differentiable at with
and consequently
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 itself, which agrees with (14) on . The explicit derivative is stated, so the equivalence is not an artefact of Lean's convention that deriv is 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
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.