Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Section 9.1 — the expected number of demands through t is m(t) = ∫₀ᵗ λ(s) ds

Proved
ServiceParts.NonstatPalm.demand_count_mean

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

nonstationaryp2o-batch-b23ap2o-gran-per-chapterp2o-plan-bookp2o-v1poisson-process

In the single-location model with nonstationary Poisson demand of rate λ(s)≥0\lambda(s) \ge 0λ(s)≥0, let N(t)N(t)N(t) be the number of demands in [0,t][0,t][0,t]. For every t≥0t \ge 0t≥0,

E[N(t)]=m(t)=∫0tλ(s) ds.E\bigl[N(t)\bigr] = m(t) = \int_0^t \lambda(s)\,ds.E[N(t)]=m(t)=∫0t​λ(s)ds.

This identifies the mean function mmm used throughout Chapter 9 as the expected number of demands.

Formalization Note The expectation is the lower Lebesgue integral of N(t)N(t)N(t) as an extended nonnegative number, so the identity also asserts that E[N(t)]E[N(t)]E[N(t)] is finite.

Preamble
import Mathlib
import Definitions.Def_ServiceParts_NonstatPalm_ResupplySystem

open MeasureTheory ProbabilityTheory
Formal statement
namespace ServiceParts.NonstatPalm

theorem demand_count_mean {Ω : Type*} [MeasurableSpace Ω] {P : Measure Ω}
    [IsProbabilityMeasure P] {E : Type*} [MeasurableSpace E] (S : ResupplySystem Ω P E)
    {t : ℝ} (ht : 0 ≤ t) :
    ∫⁻ ω, (S.demandCount t ω : ENNReal) ∂P = ENNReal.ofReal (∫ s in (0 : ℝ)..t, S.rate s) := by sorry

end ServiceParts.NonstatPalm
Source
Muckstadt, Analysis and Algorithms for Service Parts Supply Chains, Springer 2005, DOI 10.1007/b138879, pp. 215-216, Section 9.1
Human review
  • Endorsed by Shuze Chen · Oct 5, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 5, 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