Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Eq. (5.65): C=h(R+Q/2−μ′)+(h+b1)σ′2Q[H(R−μ′σ′)−H(R+Q−μ′σ′)]C = h(R + Q/2 - \mu') + (h+b_1)\frac{\sigma'^2}{Q}\left[H\left(\frac{R-\mu'}{\sigma'}\right) - H\left(\frac{R+Q-\mu'}{\sigma'}\right)\right]C=h(R+Q/2−μ′)+(h+b1​)Qσ′2​[H(σ′R−μ′​)−H(σ′R+Q−μ′​)]

Proved
InventoryControl.rq_cost_closed_form

by naimengye · Sep 23, 2026 · Mathlib 0df444a (Lean v4.33.1)

inventory-controloperations-researchprobabilityreorder-point

The expected holding-plus-backorder cost rate of a continuous review (R,Q)(R,Q)(R,Q) policy has a closed form. With holding cost h>0h > 0h>0 per unit and time unit, backorder cost b1>0b_1 > 0b1​>0 per unit and time unit, batch quantity Q>0Q > 0Q>0, and normal lead-time demand with mean μ′\mu'μ′ and standard deviation σ′>0\sigma' > 0σ′>0,

C(R)  =  E[h (IL)++b1 (IL)−]  =  h(R+Q2−μ′)+(h+b1) σ′2Q[H ⁣(R−μ′σ′)−H ⁣(R+Q−μ′σ′)],C(R) \;=\; \mathbb{E}\big[h\,(IL)^{+} + b_1\,(IL)^{-}\big] \;=\; h\Big(R + \frac{Q}{2} - \mu'\Big) + (h + b_1)\,\frac{\sigma'^{2}}{Q}\left[H\!\left(\frac{R - \mu'}{\sigma'}\right) - H\!\left(\frac{R + Q - \mu'}{\sigma'}\right)\right],C(R)=E[h(IL)++b1​(IL)−]=h(R+2Q​−μ′)+(h+b1​)Qσ′2​[H(σ′R−μ′​)−H(σ′R+Q−μ′​)],

where H(x)=∫x∞G(v) dvH(x) = \int_x^{\infty} G(v)\,\mathrm{d}vH(x)=∫x∞​G(v)dv is the second loss function of Eq. (5.64).

The book reaches it in three lines (Eq. 5.62): it writes the cost as h E(IL)+(h+b1) E(IL)−h\,\mathbb{E}(IL) + (h + b_1)\,\mathbb{E}(IL)^{-}hE(IL)+(h+b1​)E(IL)− using x+−x−=xx^{+} - x^{-} = xx+−x−=x, replaces E(IL)−\mathbb{E}(IL)^{-}E(IL)− by ∫−∞0F(x) dx\int_{-\infty}^{0}F(x)\,\mathrm{d}x∫−∞0​F(x)dx, substitutes the closed form (5.42) and changes the order of integration. This is the expression that Chapter 6 adds an ordering cost to in its joint optimization of RRR and QQQ, Eq. (6.10).

Formalization Note C(R)C(R)C(R) is rqCost h b1 R Q m s, a Bochner integral against the law rqLevel R Q m s; integrability of the integrand is a separate theorem of this mission.

Preamble
import Definitions.Def_InventoryControl_rq
Formal statement
namespace InventoryControl

theorem rq_cost_closed_form (h b1 R Q m s : ℝ) (hh : 0 < h) (hb : 0 < b1) (hQ : 0 < Q)
    (hs : 0 < s) :
    rqCost h b1 R Q m s
      = h * (R + Q / 2 - m)
        + (h + b1) * (s ^ 2 / Q) * (normalLossH ((R - m) / s) - normalLossH ((R + Q - m) / s)) := by sorry

end InventoryControl
Source
Sven Axsäter, Inventory Control, 3rd ed., Springer 2015, DOI 10.1007/978-3-319-15729-0, pp. 85-86, Sect. 5.9.2, Eq. (5.62) and Eq. (5.65)
Human review
  • Endorsed by Shuze Chen · Sep 25, 2026

    Confirmed by the moderator at approval.

  • Endorsed by naimengye · Sep 25, 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