Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 4 — the optimal cost of S\mathcal SS is the sum of the optimal subsystem costs, and independent optimal control of the subsystems is optimal

Disproved
ServiceParts.UnitDecomp.theorem4_decomposition

by mikedeng1 · Sep 30, 2026 · Mathlib 0df444a (Lean v4.33.1)

base-stockinventorymarkov-decision-processp2o-batch-b23ap2o-gran-per-chapterp2o-plan-bookp2o-v1

Consider the system S\mathcal SS and its single-unit single-customer subsystems Sw\mathcal S_wSw​ over a horizon of NNN periods (0<h<b0<h<b0<h<b, α∈(0,1]\alpha\in(0,1]α∈(0,1]). For a starting configuration x1x_1x1​ in period 1 write (zw1,yw1)(z_{w1}, y_{w1})(zw1​,yw1​) for the location of unit www and the distance of customer www in x1x_1x1​.

  1. For every Markov state sss and every starting configuration x1x_1x1​,
V1S(s,x1)=∑w≥0V1(s,(zw1,yw1)),V^{\mathcal S}_1(s,x_1) = \sum_{w\ge 0} V_1\big(s,(z_{w1},y_{w1})\big),V1S​(s,x1​)=w≥0∑​V1​(s,(zw1​,yw1​)),

where V1SV^{\mathcal S}_1V1S​ is the optimal expected discounted cost of S\mathcal SS in periods 1,…,N1,\dots,N1,…,N and V1V_1V1​ that of a subsystem. 2. Let ρ\rhoρ be a subsystem policy that is optimal in every period: Cnρ(s,x)=Vn(s,x)C^\rho_n(s,x) = V_n(s,x)Cnρ​(s,x)=Vn​(s,x) for all 1≤n≤N1\le n\le N1≤n≤N, all sss and all configurations x=(z,y)x=(z,y)x=(z,y). Let π\piπ be a policy for S\mathcal SS that, in every period nnn and configuration, releases exactly the units jjj at the supplier for which ρ\rhoρ releases in the subsystem state (sn,zjn,yjn)(s_n, z_{jn}, y_{jn})(sn​,zjn​,yjn​), whenever this set is finite. Then π\piπ is optimal for S\mathcal SS:

C1π(s,x1)=V1S(s,x1)C^\pi_1(s,x_1) = V^{\mathcal S}_1(s,x_1)C1π​(s,x1​)=V1S​(s,x1​)

for every sss and every starting configuration x1x_1x1​.

This is the decomposition of the single-location system into countably many independent unit–customer problems, which reduces the structure of an optimal policy for S\mathcal SS to that of a two-action problem.

Formalization Note The sum over subsystems is taken in [0,∞][0,\infty][0,∞]. The book's "any starting state x1x_1x1​" is read as the starting configurations built on pp. 23–24. In the second part, "managed independently and optimally using the state vector xnwx^w_nxnw​ in every period nnn" is a subsystem policy depending on (n,sn,zwn,ywn)(n, s_n, z_{wn}, y_{wn})(n,sn​,zwn​,ywn​) that is optimal from every period and state; the policy for S\mathcal SS is unconstrained in configurations where ρ\rhoρ would release infinitely many units, since an order quantity is a nonnegative integer.

Preamble
import Mathlib
import Definitions.Def_ServiceParts_UnitDecomp_Model
import Definitions.Def_ServiceParts_UnitDecomp_Subsystem
import Definitions.Def_ServiceParts_UnitDecomp_System
Formal statement
namespace ServiceParts.UnitDecomp

theorem theorem4_decomposition {σ : Type} [Fintype σ] (M : Model σ) (N : ℕ) :
    (∀ (s : σ) (a : ℕ → ℕ) (v₀ : ℕ),
      M.sysOpt N 1 s (M.initState a v₀) =
        ∑' w : ℕ, M.subOpt N 1 s ((M.initState a v₀).loc w, (M.initState a v₀).dist w)) ∧
    ∀ ρ : SubPolicy σ,
      (∀ n : ℕ, 1 ≤ n → n ≤ N → ∀ (s : σ) (x : SubState),
        M.subCost N ρ n s x = M.subOpt N n s x) →
      ∀ π : SPolicy σ,
        (∀ (n : ℕ) (s : σ) (x : SysState),
          {j | x.loc j = M.m + 1 ∧ ρ n s (x.loc j, x.dist j) = Decision.release}.Finite →
            π.act n s x = {j | x.loc j = M.m + 1 ∧ ρ n s (x.loc j, x.dist j) = Decision.release}) →
        ∀ (s : σ) (a : ℕ → ℕ) (v₀ : ℕ),
          M.sysCost N π 1 s (M.initState a v₀) = M.sysOpt N 1 s (M.initState a v₀) := by sorry

end ServiceParts.UnitDecomp
Source
Muckstadt, Analysis and Algorithms for Service Parts Supply Chains, Springer 2005, DOI 10.1007/b138879, p. 27, Theorem 4
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