Prove2Me
Navigate
DiscoverFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Proposition 4 — Comparison of the two cost bounds

Proved
CappedBaseStock.two_branch

by StellaXin · Sep 8, 2026 · Mathlib 0df444a (Lean v4.33.1)

approximationcapped-base-stockinventorylost-salesoperations-research

Fix an integer L≥1L\ge1L≥1, put ρ=L/(L+1)\rho=L/(L+1)ρ=L/(L+1) and κL=1+4L2/((L+1)(3L−1))\kappa_L=1+4L^2/((L+1)(3L-1))κL​=1+4L2/((L+1)(3L−1)), and let λ>0\lambda>0λ>0 and Ch,Cp≥0C_h,C_p\ge0Ch​,Cp​≥0 be arbitrary real numbers. Then

min⁡{(1+1/λ)Ch+(1+ρ)Cp, 2Ch+(1+ρ+λρ)Cp}≤κL(Ch+Cp).\min\left\{(1+1/\lambda)C_h+(1+\rho)C_p,\ 2C_h+(1+\rho+\lambda\rho)C_p\right\}\le\kappa_L(C_h+C_p).min{(1+1/λ)Ch​+(1+ρ)Cp​, 2Ch​+(1+ρ+λρ)Cp​}≤κL​(Ch​+Cp​).

This purely algebraic statement includes the cases Ch=0C_h=0Ch​=0 and Cp=0C_p=0Cp​=0. There is no division by their sum and no positivity assumption on either component beyond nonnegativity. All divisions in the coefficients are real division; L≥1L\ge1L≥1 keeps their lead-time denominators positive.

Preamble
import Mathlib
Formal statement
namespace CappedBaseStock


theorem two_branch
    (L : ℕ) (hL : 1 ≤ L)
    (lambda C_h C_p : ℝ)
    (hlambda : 0 < lambda) (hC_h : 0 ≤ C_h) (hC_p : 0 ≤ C_p) :
    min
      ((1 + 1 / lambda) * C_h + (1 + (L : ℝ) / ((L : ℝ) + 1)) * C_p)
      (2 * C_h +
        (1 + (L : ℝ) / ((L : ℝ) + 1) +
          lambda * ((L : ℝ) / ((L : ℝ) + 1))) * C_p) ≤
      (1 + 4 * (L : ℝ) ^ 2 / (((L : ℝ) + 1) * (3 * (L : ℝ) - 1))) *
        (C_h + C_p) := by sorry

end CappedBaseStock
Source
Linwei Xin, Capped Base-Stock Policies: A 2.33-Approximation, author-supplied LaTeX manuscript (756 lines); public paper listing https://papers.ssrn.com/sol3/papers.cfm?abstract_id=7134538 . Author-supplied source SHA-256: f353793c255e1ebed5f3ec541037284bd926183e3e5b71941f13e79c2d67cb7a. Proposition 4 (`lem-two-branch`), lines 651–667.
Read-back

What the Lean code literally says, in plain math · GPT-6 (independent Codex sub-agent)

For every natural number LLL with 1≤L1\le L1≤L, and every three real numbers λ,Ch,Cp\lambda,C_h,C_pλ,Ch​,Cp​ satisfying λ>0\lambda>0λ>0, Ch≥0C_h\ge0Ch​≥0, and Cp≥0C_p\ge0Cp​≥0, the following inequality holds, with every occurrence of LLL in the displayed arithmetic interpreted as a real number: min⁡ ⁣{(1+1λ)Ch+(1+LL+1)Cp,  2Ch+(1+LL+1+λLL+1)Cp}≤(1+4L2(L+1)(3L−1))(Ch+Cp)\min\!\left\{\left(1+\frac1\lambda\right)C_h+\left(1+\frac{L}{L+1}\right)C_p,\;2C_h+\left(1+\frac{L}{L+1}+\lambda\frac{L}{L+1}\right)C_p\right\}\le\left(1+\frac{4L^2}{(L+1)(3L-1)}\right)(C_h+C_p)min{(1+λ1​)Ch​+(1+L+1L​)Cp​,2Ch​+(1+L+1L​+λL+1L​)Cp​}≤(1+(L+1)(3L−1)4L2​)(Ch​+Cp​). The minimum is the smaller of exactly the two displayed real quantities. The hypotheses exclude L=0L=0L=0 and λ=0\lambda=0λ=0; in particular L+1>0L+1>0L+1>0 and 3L−1>03L-1>03L−1>0, so all denominators are nonzero. They include L=1L=1L=1, all positive real values of λ\lambdaλ, and cases where either or both of Ch,CpC_h,C_pCh​,Cp​ vanish; if both vanish, the asserted inequality is 0≤00\le00≤0.

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

  • Endorsed by StellaXin · Sep 8, 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 paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me