Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Section 2, Eqs. (6)–(7) — a stationary price satisfies Whitin’s cubic

Proved
WhitinPrice.LotSize.stationary_price_cubic

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

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

Suppose S,I,C>0S,I,C>0S,I,C>0, annual demand at price ppp is D(p)=ap+b>0D(p)=ap+b>0D(p)=ap+b>0, and the derivative of the reduced annual profit P(p)=ap2+bp−2SIC(ap+b)−k(ap+b)−fP(p)=ap^2+bp-\sqrt{2SIC(ap+b)}-k(ap+b)-fP(p)=ap2+bp−2SIC(ap+b)​−k(ap+b)−f vanishes at ppp. Then ppp satisfies Whitin's cubic:

8a3p3+(16a2b−8ka3)p2+(10ab2−12ka2b+2k2a3)p+2b3−4kab2+2k2a2b−SICa2=0.8a^3p^3+(16a^2b-8ka^3)p^2 +(10ab^2-12ka^2b+2k^2a^3)p +2b^3-4kab^2+2k^2a^2b-SICa^2=0.8a3p3+(16a2b−8ka3)p2+(10ab2−12ka2b+2k2a3)p+2b3−4kab2+2k2a2b−SICa2=0.

This is a necessary algebraic condition for a profit-maximizing price; it does not say that every root is optimal.

Formalization Note No sign is imposed on the demand slope aaa, the intercept bbb, kkk, or fff. The derivative is represented by HasDerivAt with value zero, and positive demand keeps the square-root term differentiable.

Preamble
import Mathlib
import Definitions.Def_WhitinPrice_LotSize_Model
Formal statement
namespace WhitinPrice.LotSize

/-- Whitin (1955), §2, Eqs. (6)–(7): the displayed cubic is a necessary
condition for a stationary price. -/
theorem stationary_price_cubic (S I C k f a b p : ℝ)
    (hS : 0 < S) (hI : 0 < I) (hC : 0 < C)
    (hD : 0 < demand a b p)
    (hstat : HasDerivAt (reducedProfit S I C k f a b) 0 p) :
    8 * a ^ 3 * p ^ 3 + (16 * a ^ 2 * b - 8 * k * a ^ 3) * p ^ 2 +
      (10 * a * b ^ 2 - 12 * k * a ^ 2 * b + 2 * k ^ 2 * a ^ 3) * p +
      2 * b ^ 3 - 4 * k * a * b ^ 2 + 2 * k ^ 2 * a ^ 2 * b - S * I * C * a ^ 2 = 0 := by sorry

end WhitinPrice.LotSize
Source
Whitin, Inventory Control and Price Theory, Management Sci. 2 (1955), p. 62, Section 2, Eqs. (6)–(7)
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