Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Section 2, Eqs. (3), (7) — joint profit maximizers use EOQ and satisfy Whitin’s cubic

Proved
WhitinPrice.LotSize.optimal_price_cubic

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

inventorylot-sizingoptimizationp2o-batch-pfp2bp2o-gran-per-chapterp2o-plan-paperp2o-v1pricing

Let S,I,C>0S,I,C>0S,I,C>0, and let a,b,k,fa,b,k,fa,b,k,f be arbitrary real constants. At price ppp, annual demand is D(p)=ap+bD(p)=ap+bD(p)=ap+b; for lot size QQQ, annual profit is Π(p,Q)=D(p)p−TVC⁡(D(p),Q)−f\Pi(p,Q)=D(p)p-\operatorname{TVC}(D(p),Q)-fΠ(p,Q)=D(p)p−TVC(D(p),Q)−f. Suppose D(p)>0D(p)>0D(p)>0, Q>0Q>0Q>0, and (p,Q)(p,Q)(p,Q) maximizes Π\PiΠ among all pairs (p′,Q′)(p',Q')(p′,Q′) with D(p′)>0D(p')>0D(p′)>0 and Q′>0Q'>0Q′>0. Then the lot size is the economic order quantity

Q=2D(p)SIC,Q=\sqrt{\frac{2D(p)S}{IC}},Q=IC2D(p)S​​,

and the price satisfies

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 joins the inventory decision to the price decision. The cubic is only a necessary condition: it may have roots that do not maximize profit.

Formalization Note The joint maximum is over positive demand and positive lot size, with the unrestricted real price encoded in the feasible pair. The positivity of S,I,CS,I,CS,I,C is an explicit reading of the paper's costs; no sign of a,b,k,fa,b,k,fa,b,k,f is assumed.

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

/-- Whitin (1955), §2, Eqs. (3) and (7): a joint profit maximizer uses
the EOQ lot size and its price satisfies the necessary cubic equation. -/
theorem optimal_price_cubic (S I C k f a b p Q : ℝ)
    (hS : 0 < S) (hI : 0 < I) (hC : 0 < C)
    (hD : 0 < demand a b p) (hQ : 0 < Q)
    (hmax : IsMaxOn
      (fun z : ℝ × ℝ => profit S I C k f a b z.1 z.2)
      {z : ℝ × ℝ | 0 < demand a b z.1 ∧ 0 < z.2} (p, Q)) :
    Q = Real.sqrt (2 * demand a b p * S / (I * C)) ∧
      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), pp. 61–62, Section 2, Eqs. (3), (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