Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Proof of Lemma 2, p. 11 — for q₂ ≠ M, EOQ_{K₂,H₂}(q₂) ≥ EOQ_{K₂,H₂}(M ± 1) ≥ EOQ_{K₂,H₂}(M) + M

Proved
JRPHard.Periodic.eoq_gap

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

eoqjoint-replenishmentp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1

Let M≥2M \ge 2M≥2 be a natural number, K2=M3(M+1)K_2 = M^3(M+1)K2​=M3(M+1), H2=M(M+1)H_2 = M(M+1)H2​=M(M+1), and write EOQ2(q)=K2/q+H2q\mathrm{EOQ}_2(q) = K_2/q + H_2 qEOQ2​(q)=K2​/q+H2​q. Then

EOQ2(M±1)=EOQ2(M)+H2M±1≥EOQ2(M)+M,\mathrm{EOQ}_2(M \pm 1) = \mathrm{EOQ}_2(M) + \frac{H_2}{M \pm 1} \ge \mathrm{EOQ}_2(M) + M,EOQ2​(M±1)=EOQ2​(M)+M±1H2​​≥EOQ2​(M)+M,

and for every positive integer q2≠Mq_2 \neq Mq2​=M,

EOQ2(q2)≥EOQ2(M)+M.\mathrm{EOQ}_2(q_2) \ge \mathrm{EOQ}_2(M) + M.EOQ2​(q2​)≥EOQ2​(M)+M.

The EOQ cost of item 2 is minimized at q2=Mq_2 = Mq2​=M, and any other period costs at least MMM more. This is the first step in showing that every optimal solution of the Lemma 2 instance has q2=Mq_2 = Mq2​=M.

Formalization Note The two identities at M+1M+1M+1 and M−1M-1M−1 and the two bounds H2/(M±1)≥MH_2/(M\pm1) \ge MH2​/(M±1)≥M are stated separately. The paper states the step "for any q2≠Mq_2 \ne Mq2​=M" for odd composite MMM; it holds for every M≥2M \ge 2M≥2, which is the hypothesis here (M−1≥1M - 1 \ge 1M−1≥1 is needed for EOQ2(M−1)\mathrm{EOQ}_2(M-1)EOQ2​(M−1) to be a positive period).

Preamble
import Mathlib
import Definitions.Def_JRPHard_Periodic_Setting
Formal statement
namespace JRPHard.Periodic

theorem eoq_gap (M : ℕ) (hM : 2 ≤ M) :
    eoq2 M (M + 1) = eoq2 M M + (coefH2 M : ℝ) / ((M : ℝ) + 1) ∧
    eoq2 M (M - 1) = eoq2 M M + (coefH2 M : ℝ) / ((M : ℝ) - 1) ∧
    (M : ℝ) ≤ (coefH2 M : ℝ) / ((M : ℝ) + 1) ∧
    (M : ℝ) ≤ (coefH2 M : ℝ) / ((M : ℝ) - 1) ∧
    ∀ q₂ : ℕ, 0 < q₂ → q₂ ≠ M → eoq2 M M + (M : ℝ) ≤ eoq2 M q₂ := by sorry

end JRPHard.Periodic
Source
Schulz and Telha, Integer factorization and Riemann's hypothesis: Why two-item joint replenishment is hard, arXiv:2007.09045v1, p. 11, §2.2, proof of Lemma 2, "Optimal replenishment cycle for item 2" (displayed inequality)
Human review
  • Endorsed by Shuze Chen · Oct 15, 2026

    Confirmed by the moderator at approval.

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