Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

p. 138 — worked example: B(2∣1)≈0.1036B(2 \mid 1) \approx 0.1036B(2∣1)≈0.1036 and B∗(2)≈0.1486B^*(2) \approx 0.1486B∗(2)≈0.1486 (printed 0.1485)

Proved
SherbrookeMetric.PointEstimate.worked_example

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

backordersinventoryp2o-batch-pfp2bp2o-gran-per-chapterp2o-plan-paperp2o-v1poisson

Let B(s∣λ)=∑x=s+1∞(x−s) e−λλx/x!B(s \mid \lambda) = \sum_{x=s+1}^{\infty}(x - s)\,e^{-\lambda}\lambda^x/x!B(s∣λ)=∑x=s+1∞​(x−s)e−λλx/x! be the expected backorders at spare stock sss under Poisson demand with mean λ\lambdaλ. Take spare stock s=2s = 2s=2.

  1. With the point estimate λ=1\lambda = 1λ=1 of mean demand,
B(2∣1)=3e−1−1,∣B(2∣1)−0.1036∣<0.00005.B(2 \mid 1) = 3e^{-1} - 1, \qquad |B(2 \mid 1) - 0.1036| < 0.00005.B(2∣1)=3e−1−1,∣B(2∣1)−0.1036∣<0.00005.
  1. If instead the mean demand is 0.50.50.5 or 1.51.51.5 with probability 0.50.50.5 each (so its mean is still 111), the expected backorders
B∗(2)=0.5 B(2∣0.5)+0.5 B(2∣1.5)B^*(2) = 0.5\,B(2 \mid 0.5) + 0.5\,B(2 \mid 1.5)B∗(2)=0.5B(2∣0.5)+0.5B(2∣1.5)

satisfy ∣B∗(2)−0.1486∣<0.00005|B^*(2) - 0.1486| < 0.00005∣B∗(2)−0.1486∣<0.00005.

This is the numerical example of Sherbrooke (1968), p. 138, which illustrates that the point estimate understates expected backorders (0.1036<0.14860.1036 < 0.14860.1036<0.1486).

Formalization Note The paper prints B∗(2)=0.1485B^*(2) = 0.1485B∗(2)=0.1485. The exact value is B∗(2)=12(2.5 e−0.5+3.5 e−1.5−2)=0.148641…B^*(2) = \tfrac12\big(2.5\,e^{-0.5} + 3.5\,e^{-1.5} - 2\big) = 0.148641\ldotsB∗(2)=21​(2.5e−0.5+3.5e−1.5−2)=0.148641…, which rounds (and truncates) to 0.14860.14860.1486; the statement uses the corrected four-digit value. The paper's sums start at x=2x = 2x=2; the x=2x = 2x=2 term is zero, so they agree with eq. (2)'s x=s+1=3x = s + 1 = 3x=s+1=3.

Preamble
import Mathlib
import Definitions.Def_SherbrookeMetric_PointEstimate_backorders
Formal statement
namespace SherbrookeMetric.PointEstimate

/-- Sherbrooke (1968), p. 138, the worked example: `B(2 | 1) = 3e^{-1} - 1 ≈ 0.1036`, and the
backorders under the two-point prior `{0.5, 1.5}` with weights `0.5, 0.5` are
`B*(2) = 0.5 B(2 | 0.5) + 0.5 B(2 | 1.5) ≈ 0.1486` (printed `0.1485`, a rounding slip). -/
theorem worked_example :
    backorders 2 1 = 3 * Real.exp (-1) - 1 ∧
    |backorders 2 1 - 0.1036| < 0.00005 ∧
    |(0.5 * backorders 2 0.5 + 0.5 * backorders 2 1.5) - 0.1486| < 0.00005 := by sorry

end SherbrookeMetric.PointEstimate
Source
Sherbrooke, METRIC: A Multi-Echelon Technique for Recoverable Item Control, Oper. Res. 16 (1968), p. 138, Demand Prediction (worked example)
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