Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Corollary 2 — OPT(L)\mathrm{OPT}(L)OPT(L) is at least a discounted sum over the pipeline

Proved
XinGoldbergTBS.Asymptotic.corollary2

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

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

For all L0≥0L_0 \ge 0L0​≥0, L>L0+1L > L_0 + 1L>L0​+1, α∈(0,1)\alpha \in (0,1)α∈(0,1), and every (χ∗,L,q∗,L,I∗,L,{Di})(\chi^{*,L}, q^{*,L}, \mathcal I^{*,L}, \{D_i\})(χ∗,L,q∗,L,I∗,L,{Di​}) with properties (i)–(vi) of Theorem 2, where rL=E[χ1∗,L]r_L = \mathbb E[\chi^{*,L}_1]rL​=E[χ1∗,L​]:

OPT(L)≥c(E[D]−rL)+1−α1−αL∑k=1Lαk−1 E[G(I∗,L+q1∗,L−∑i=1L0+1Di)]≥c(E[D]−rL)+(1−α)∑k=1L−L0αk−1 E[G(I∗,L+∑i=1k−1(qi∗,L+χi∗,L−Di)+qk∗,L−∑i=kk+L0Di)].\begin{aligned}\mathrm{OPT}(L) &\ge c(\mathbb E[D]-r_L) + \frac{1-\alpha}{1-\alpha^L}\sum_{k=1}^{L}\alpha^{k-1}\,\mathbb E\Big[G\Big(\mathcal I^{*,L} + q^{*,L}_1 - \sum_{i=1}^{L_0+1}D_i\Big)\Big]\\ &\ge c(\mathbb E[D]-r_L) + (1-\alpha)\sum_{k=1}^{L-L_0}\alpha^{k-1}\,\mathbb E\Big[G\Big(\mathcal I^{*,L} + \sum_{i=1}^{k-1}(q^{*,L}_i + \chi^{*,L}_i - D_i) + q^{*,L}_k - \sum_{i=k}^{k+L_0}D_i\Big)\Big].\end{aligned}OPT(L)​≥c(E[D]−rL​)+1−αL1−α​k=1∑L​αk−1E[G(I∗,L+q1∗,L​−i=1∑L0​+1​Di​)]≥c(E[D]−rL​)+(1−α)k=1∑L−L0​​αk−1E[G(I∗,L+i=1∑k−1​(qi∗,L​+χi∗,L​−Di​)+qk∗,L​−i=k∑k+L0​​Di​)].​

This introduces the discount factor α\alphaα of the vanishing-discount argument.

Formalization Note The chain OPT(L)≥A≥B\mathrm{OPT}(L) \ge A \ge BOPT(L)≥A≥B is stated as the two inequalities A≤OPT(L)A \le \mathrm{OPT}(L)A≤OPT(L) and B≤AB \le AB≤A, computed in [0,∞][0,\infty][0,∞] (all terms are nonnegative).

Preamble
import Mathlib
import Definitions.Def_XinGoldbergTBS_Asymptotic_Model
import Definitions.Def_XinGoldbergTBS_Asymptotic_Witness

open MeasureTheory ProbabilityTheory Filter
open scoped ENNReal NNReal BigOperators
Formal statement
namespace XinGoldbergTBS.Asymptotic

/-- Corollary 2, p. 443, for every witness of Theorem 2 (`r_L = 𝔼[χ_1^{*,L}]`); the chain
`OPT(L) ≥ A ≥ B` is stated as `A ≤ OPT(L)` and `B ≤ A`. -/
theorem corollary2 (μ : DemandLaw) (κ : Costs) (L₀ L : ℕ) (hL : L₀ + 1 < L)
    {Ω : Type*} [MeasurableSpace Ω] (P : Measure Ω)
    (χ : Ω → Fin (L - L₀ - 1) → ℝ) (q : Ω → Fin (L - L₀) → ℝ) (I : Ω → ℝ) (D : ℕ → Ω → ℝ)
    (hw : IsStationaryWitness P μ κ L₀ L χ q I D)
    (α : ℝ) (hα0 : 0 < α) (hα1 : α < 1) :
    ENNReal.ofReal (κ.c * (μ.mean - rL P L₀ L χ)) +
        ENNReal.ofReal ((1 - α) / (1 - α ^ L)) *
          ∑ k ∈ Finset.range L, ENNReal.ofReal (α ^ k) *
            ∫⁻ ω, ENNReal.ofReal
              (G κ (I ω + qN L₀ L q ω 0 - ∑ i ∈ Finset.range (L₀ + 1), D i ω)) ∂P
      ≤ OPT μ κ L₀ L ∧
    ENNReal.ofReal (κ.c * (μ.mean - rL P L₀ L χ)) +
        ENNReal.ofReal (1 - α) *
          ∑ k ∈ Finset.range (L - L₀), ENNReal.ofReal (α ^ k) *
            ∫⁻ ω, ENNReal.ofReal (G κ (I ω
                + ∑ i ∈ Finset.range k, (qN L₀ L q ω i + chiN L₀ L χ ω i - D i ω)
                + qN L₀ L q ω k - ∑ i ∈ Finset.range (L₀ + 1), D (k + i) ω)) ∂P
      ≤ ENNReal.ofReal (κ.c * (μ.mean - rL P L₀ L χ)) +
        ENNReal.ofReal ((1 - α) / (1 - α ^ L)) *
          ∑ k ∈ Finset.range L, ENNReal.ofReal (α ^ k) *
            ∫⁻ ω, ENNReal.ofReal
              (G κ (I ω + qN L₀ L q ω 0 - ∑ i ∈ Finset.range (L₀ + 1), D i ω)) ∂P := by sorry

end XinGoldbergTBS.Asymptotic
Source
Xin and Goldberg, Asymptotic Optimality of Tailored Base-Surge Policies in Dual-Sourcing Inventory Systems, Management Science 64(1), 2018, p. 443, Corollary 2
Read-back

What the Lean code literally says, in plain math · claude-opus-5-5

Setting. μ\muμ is a probability measure on R\mathbb RR with μ((−∞,0))=0\mu((-\infty,0))=0μ((−∞,0))=0, finite mean E[D]\mathbb E[D]E[D], and μ({a})<1\mu(\{a\})<1μ({a})<1 for all aaa. Costs are b,h,c>0b,h,c>0b,h,c>0 with G(y)=hmax⁡(y,0)+bmax⁡(−y,0)G(y)=h\max(y,0)+b\max(-y,0)G(y)=hmax(y,0)+bmax(−y,0). L0,L∈NL_0,L\in\mathbb NL0​,L∈N with L0+1<LL_0+1<LL0​+1<L, and α\alphaα is real with 0<α<10<\alpha<10<α<1.

OPT(L)\mathrm{OPT}(L)OPT(L). This is the infimum, over sequences of measurable maps ft:RL×RL0×R→[0,∞)2f_t:\mathbb R^L\times\mathbb R^{L_0}\times\mathbb R\to[0,\infty)^2ft​:RL×RL0​×R→[0,∞)2, of

lim sup⁡T1T∑t=L0+1TE[c qt−L0E+G(It+1)].\limsup_T\frac1T\sum_{t=L_0+1}^T\mathbb E\big[c\,q^E_{t-L_0}+G(I_{t+1})\big].Tlimsup​T1​t=L0​+1∑T​E[cqt−L0​E​+G(It+1​)].

The system behind it:

  • Inputs. DtD_tDt​ and Di′D'_iDi′​ are i.i.d. μ\muμ, and G^\hat GG^ is independent with Pr⁡(G^=k)=2−k\Pr(\hat G=k)=2^{-k}Pr(G^=k)=2−k for k≥1k\ge1k≥1.
  • Initial state. Past orders are 000, and I1=−∑i≤G^Di′I_1=-\sum_{i\le\hat G}D'_iI1​=−∑i≤G^​Di′​.
  • Dynamics. (qtR,qtE)=ft((qt−L..t−1R),(qt−L0..t−1E),It)(q^R_t,q^E_t)=f_t((q^R_{t-L..t-1}),(q^E_{t-L_0..t-1}),I_t)(qtR​,qtE​)=ft​((qt−L..t−1R​),(qt−L0​..t−1E​),It​), and It+1=It+qt−LR+qt−L0E−DtI_{t+1}=I_t+q^R_{t-L}+q^E_{t-L_0}-D_tIt+1​=It​+qt−LR​+qt−L0​E​−Dt​.

Witness hypothesis. (Ω,P)(\Omega,P)(Ω,P) is any measurable space with a measure. The objects χ=(χ0,…,χL−L0−2)\chi=(\chi_0,\dots,\chi_{L-L_0-2})χ=(χ0​,…,χL−L0​−2​), q=(q0,…,qL−L0−1)q=(q_0,\dots,q_{L-L_0-1})q=(q0​,…,qL−L0​−1​), I\mathcal II and D0,D1,…D_0,D_1,\dotsD0​,D1​,… on it satisfy:

  1. PPP is a probability measure, and everything is measurable.
  2. Each Dj∼μD_j\sim\muDj​∼μ, and the DjD_jDj​ are mutually independent.
  3. A.s., χ,q≥0\chi,q\ge0χ,q≥0 coordinatewise.
  4. (χ,I)(\chi,\mathcal I)(χ,I) is independent of (Dj)j≥0(D_j)_{j\ge0}(Dj​)j≥0​.
  5. qkq_kqk​ is independent of (Dk+j)j≥0(D_{k+j})_{j\ge0}(Dk+j​)j≥0​ for each kkk.
  6. The χi\chi_iχi​ are identically distributed, as are the qiq_iqi​.
  7. For each k∈{0,…,L−L0−1}k\in\{0,\dots,L-L_0-1\}k∈{0,…,L−L0​−1}, I+∑i<k(qi+χi−Di)+qk−∑i=0L0Dk+i=dI+q0−∑i=0L0Di\mathcal I+\sum_{i<k}(q_i+\chi_i-D_i)+q_k-\sum_{i=0}^{L_0}D_{k+i}\overset d=\mathcal I+q_0-\sum_{i=0}^{L_0}D_iI+∑i<k​(qi​+χi​−Di​)+qk​−∑i=0L0​​Dk+i​=dI+q0​−∑i=0L0​​Di​.
  8. All of χj,qj,I\chi_j,q_j,\mathcal Iχj​,qj​,I are integrable.
  9. Eχ0+Eq0=E[D]\mathbb E\chi_0+\mathbb Eq_0=\mathbb E[D]Eχ0​+Eq0​=E[D].
  10. max⁡(c(E[D]−Eχ0),0)+E[G(I+q0−∑i=0L0Di)]≤OPT(L)\max(c(\mathbb E[D]-\mathbb E\chi_0),0)+\mathbb E[G(\mathcal I+q_0-\sum_{i=0}^{L_0}D_i)]\le\mathrm{OPT}(L)max(c(E[D]−Eχ0​),0)+E[G(I+q0​−∑i=0L0​​Di​)]≤OPT(L).

Let rL=E[χ0]r_L=\mathbb E[\chi_0]rL​=E[χ0​] and K=max⁡(c(E[D]−rL),0)K=\max(c(\mathbb E[D]-r_L),0)K=max(c(E[D]−rL​),0).

The two quantities.

A=K+1−α1−αL∑k=0L−1αk E[G(I+q0−∑i=0L0Di)],A=K+\frac{1-\alpha}{1-\alpha^L}\sum_{k=0}^{L-1}\alpha^k\,\mathbb E\Big[G\Big(\mathcal I+q_0-\sum_{i=0}^{L_0}D_i\Big)\Big],A=K+1−αL1−α​k=0∑L−1​αkE[G(I+q0​−i=0∑L0​​Di​)], B=K+(1−α)∑k=0L−L0−1αk E[G(I+∑i=0k−1(qi+χi−Di)+qk−∑i=0L0Dk+i)],B=K+(1-\alpha)\sum_{k=0}^{L-L_0-1}\alpha^k\,\mathbb E\Big[G\Big(\mathcal I+\sum_{i=0}^{k-1}(q_i+\chi_i-D_i)+q_k-\sum_{i=0}^{L_0}D_{k+i}\Big)\Big],B=K+(1−α)k=0∑L−L0​−1​αkE[G(I+i=0∑k−1​(qi​+χi​−Di​)+qk​−i=0∑L0​​Dk+i​)],

with all expectations in [0,∞][0,\infty][0,∞].

Claim.

A≤OPT(L)andB≤A.A\le\mathrm{OPT}(L)\quad\text{and}\quad B\le A.A≤OPT(L)andB≤A.

Edge cases. The expectation inside AAA does not depend on kkk. Since ∑k=0L−1αk=(1−αL)/(1−α)\sum_{k=0}^{L-1}\alpha^k=(1-\alpha^L)/(1-\alpha)∑k=0L−1​αk=(1−αL)/(1−α), the weights in AAA multiply to exactly 111, so literally A=K+E[G(I+q0−∑i=0L0Di)]A=K+\mathbb E[G(\mathcal I+q_0-\sum_{i=0}^{L_0}D_i)]A=K+E[G(I+q0​−∑i=0L0​​Di​)]. The claim says nothing unless a witness exists. L0=0L_0=0L0​=0 is allowed when L≥2L\ge2L≥2.

Human review
  • Endorsed by Shuze Chen · Sep 27, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Sep 27, 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