Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Eq. (10.19) — the largest optimal solution of CN_ijt is max(S̃_ijt, critical fractile)

Proved
ServiceParts.RealTime.largest_cn_solution

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

critical-fractileinventorynewsvendorp2o-batch-b23ap2o-gran-per-chapterp2o-plan-bookp2o-v1

Fix a base jjj and a period ttt, and write F(s)=P(Xijt≤s)F(s) = P(X_{ijt} \le s)F(s)=P(Xijt​≤s) for the distribution function of the cumulative demand and

p=bijbij+hijp = \frac{b_{ij}}{b_{ij} + h_{ij}}p=bij​+hij​bij​​

for the critical ratio. Then:

  1. there is a least integer s0s^0s0 with F(s0)>pF(s^0) > pF(s0)>p;
  2. for this s0s^0s0, the constrained newsvendor problem CNijt\mathrm{CN}_{ijt}CNijt​ (minimize Gijt(S)G_{ijt}(S)Gijt​(S) over integers S≥S~ijtS \ge \tilde S_{ijt}S≥S~ijt​) has
S^ijt=max⁡(S~ijt, s0)\hat S_{ijt} = \max\big(\tilde S_{ijt},\ s^0\big)S^ijt​=max(S~ijt​, s0)

as its largest optimal solution.

In particular the largest optimal solution S^ijt\hat S_{ijt}S^ijt​ used in Theorems 15 and 16 exists and is computed by a critical-fractile rule.

Formalization Note The book writes S^ijt=max⁡(S~ijt,arg⁡min⁡S∈SGijt(S))\hat S_{ijt} = \max(\tilde S_{ijt}, \arg\min_{S \in \mathcal S} G_{ijt}(S))S^ijt​=max(S~ijt​,argminS∈S​Gijt​(S)) with S={⌈F−1(p)⌉,⌊F−1(p)⌋}\mathcal S = \{\lceil F^{-1}(p) \rceil, \lfloor F^{-1}(p) \rfloor\}S={⌈F−1(p)⌉,⌊F−1(p)⌋}. It does not say which inverse of the discrete distribution function it means or how ties are broken. The statement pins the largest unconstrained minimizer of GijtG_{ijt}Gijt​ to the least integer s0s^0s0 with F(s0)>pF(s^0) > pF(s0)>p. This is what the book's rule selects when ties go to the larger candidate, as "largest optimal solution" requires.

Preamble
import Mathlib
import Definitions.Def_ServiceParts_RealTime_Model

open MeasureTheory
Formal statement
namespace ServiceParts.RealTime

/-- Eq. (10.19), p. 237: the constrained newsvendor problem `CN_{ijt}` has a largest optimal
solution, namely `Ŝ_{ijt} = max(S̃_{ijt}, s⁰)`, where `s⁰` is the least integer `s` with
`F_{X_{ijt}}(s) > b_{ij}/(b_{ij} + h_{ij})` (the integer critical fractile of the demand). -/
theorem largest_cn_solution {J : Type*} {Ω : Type*} [MeasurableSpace Ω] {P : Measure Ω}
    [IsProbabilityMeasure P] (M : ItemModel J Ω P) (j : J) (t : ℕ) :
    (∃ s0 : ℤ, IsLeast {s : ℤ | M.b j / (M.b j + M.h j) < M.demandCDF j t s} s0) ∧
      ∀ s0 : ℤ, IsLeast {s : ℤ | M.b j / (M.b j + M.h j) < M.demandCDF j t s} s0 →
        M.IsLargestCNSolution j t (max (M.baseSupply j t) s0) := by sorry

end ServiceParts.RealTime
Source
Muckstadt, Analysis and Algorithms for Service Parts Supply Chains, Springer 2005, DOI 10.1007/b138879, p. 237, Eq. (10.19)
Human review
  • Endorsed by Shuze Chen · Oct 2, 2026

    Confirmed by the moderator at approval.

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