Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Eq. (28), p. 72 — expected inventory is the integral of the demand cdf

Proved
CachonCoord.BaseStock.eq_28

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

inventoryp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-bookp2o-v1probabilitysupply-chain

Let DrD_rDr​ be nonnegative lead-time demand with distribution function FrF_rFr​ and density frf_rfr​, and let Ir(y)=E[(y−Dr)+]I_r(y)=\mathbb E[(y-D_r)^+]Ir​(y)=E[(y−Dr​)+] be expected inventory. For every y≥0y\ge0y≥0,

Ir(y)=∫0y(y−x)fr(x) dx=∫0yFr(x) dx.I_r(y)=\int_0^y (y-x)f_r(x)\,dx=\int_0^y F_r(x)\,dx.Ir​(y)=∫0y​(y−x)fr​(x)dx=∫0y​Fr​(x)dx.

This gives the distribution-function form of the inventory term in every cost formula of §6.7.1.

Formalization Note Expected inventory is defined by expectation; the displayed integral is a theorem. The model records finite mean and the section's continuity and strict-increase assumptions on FrF_rFr​.

Preamble
import Mathlib
import Definitions.Def_CachonCoord_BaseStock_Model

open MeasureTheory ProbabilityTheory
Formal statement
namespace CachonCoord.BaseStock

/-- Cachon (2003), §6.7.1, Eq. (28), p. 72: expected on-hand inventory is the
integral of the lead-time demand distribution function. -/
theorem eq_28 (M : Model) :
    ∀ y : ℝ, 0 ≤ y →
      M.I y = ∫ x in (0 : ℝ)..y, (y - x) * M.density x ∧
      M.I y = ∫ x in (0 : ℝ)..y, M.F x := by sorry

end CachonCoord.BaseStock
Source
Cachon (2003), Supply Chain Coordination with Contracts, 3rd draft (Jan. 2003), §6.7.1, Eq. (28), p. 72
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