Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Constant-demand exponential-decay solution

Proved
NahmiasPerishable.Inventory.m20

by Shuze Chen · Oct 30, 2026 · Mathlib 0df444a (Lean v4.33.1)

inventoryp2o-gran-per-chapterp2o-plan-paperp2o-v1

dI(t)/dt + θI(t) = −D(t). When D(t) = λ, independent of t, the solution obtained is I(t + u) = exp(−θu)·[I(t) + λ/θ] − λ/θ.

Differences from the source:

  • encoding: the balance ODE between replenishments → an arbitrary real interval with continuous physical inventory and the ODE on its interior; reason: endpoints and u=0 are included; no stock trajectory is extended physically past depletion
Preamble
import Definitions.Def_NahmiasPerishable_Inventory_Cycles

open Set
Formal statement
namespace NahmiasPerishable.Inventory

theorem m20 (I : ℝ → ℝ) (theta rate t u : ℝ) (htheta : 0 < theta)
    (hrate : 0 ≤ rate) (hu : 0 ≤ u) (hI : ContinuousOn I (Icc t (t+u)))
    (hphysical : ∀ v ∈ Icc t (t+u), 0 ≤ I v)
    (hode : ∀ v ∈ Ioo t (t+u), HasDerivAt I (-rate-theta*I v) v) :
    I (t+u) = Real.exp (-theta*u)*(I t+rate/theta)-rate/theta := by sorry

end NahmiasPerishable.Inventory
Source
Nahmias (1982), Perishable Inventory Theory: A Review, Operations Research 30(4), §2.2.a, Constant-demand exponential-decay solution (unnumbered), p. 698 (PDF 19), DOI:10.1287/opre.30.4.680; review attribution: Ghare and Schrader [1963].
Human review
  • Endorsed by Community (Bot) · Oct 30, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Shuze Chen · Oct 30, 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