Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 1.3, p. 5 — the easy policy is (1+2ϵ)-close and every Ψ-pairwise-alignment policy is (1+5ϵ)-close to any reference policy

Proved
ContJRP.Align.theorem_1_3_approximation

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

approximation-schemeeoqinclusion-exclusionjoint-replenishmentp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1

Consider n≥1n\ge1n≥1 commodities with joint ordering cost K0>0K_0>0K0​>0 and EOQ parameters Ki,Hi>0K_i,H_i>0Ki​,Hi​>0, and let ϵ∈(0,12)\epsilon\in(0,\tfrac12)ϵ∈(0,21​). Let T∗T^*T∗ be any policy with all Ti∗>0T^*_i>0Ti∗​>0, and let OPT~\widetilde{\mathrm{OPT}}OPT satisfy F(T∗)≤OPT~≤2F(T∗)F(T^*)\le\widetilde{\mathrm{OPT}}\le2F(T^*)F(T∗)≤OPT≤2F(T∗).

(a) Easy regime. If Tmin⁡∗≥nϵ⋅K0OPT~T^*_{\min}\ge\frac n\epsilon\cdot\frac{K_0}{\widetilde{\mathrm{OPT}}}Tmin∗​≥ϵn​⋅OPTK0​​, the easy policy T^i=(K0+Ki)/Hi\hat T_i=\sqrt{(K_0+K_i)/H_i}T^i​=(K0​+Ki​)/Hi​​ satisfies F(T^)≤(1+2ϵ)F(T∗)F(\hat T)\le(1+2\epsilon)F(T^*)F(T^)≤(1+2ϵ)F(T∗).

(b) Difficult regime. If Tmin⁡∗<nϵ⋅K0OPT~T^*_{\min}<\frac n\epsilon\cdot\frac{K_0}{\widetilde{\mathrm{OPT}}}Tmin∗​<ϵn​⋅OPTK0​​, then

  1. some power of 1+ϵ/21+\epsilon/21+ϵ/2 times K0/OPT~K_0/\widetilde{\mathrm{OPT}}K0​/OPT, below nϵ⋅K0OPT~\frac n\epsilon\cdot\frac{K_0}{\widetilde{\mathrm{OPT}}}ϵn​⋅OPTK0​​, satisfies (2) as a guess T~min⁡\tilde T_{\min}T~min​;
  2. for every T~min⁡\tilde T_{\min}T~min​ satisfying (2) and every choice of representatives R∗R^*R∗, (LP) has a feasible solution whose representatives in different components of GΨ∗G^*_\PsiGΨ∗​ are misaligned; and for every such solution R^\hat{\mathcal R}R^ and every final policy T^\hat TT^ built from it,
F(T^)≤(1+5ϵ)⋅F(T∗)andK0lim⁡Δ→∞N(R^,Δ)Δ+∑i∈[n]Ci(T^i)≤(1+5ϵ)⋅F(T∗).F(\hat T)\le(1+5\epsilon)\cdot F(T^*)\qquad\text{and}\qquad K_0\lim_{\Delta\to\infty}\frac{N(\hat{\mathcal R},\Delta)}{\Delta}+\sum_{i\in[n]}C_i(\hat T_i)\le(1+5\epsilon)\cdot F(T^*).F(T^)≤(1+5ϵ)⋅F(T∗)andK0​Δ→∞lim​ΔN(R^,Δ)​+i∈[n]∑​Ci​(T^i​)≤(1+5ϵ)⋅F(T∗).

Taking T∗T^*T∗ to be an optimal policy recovers the page's setting; this is the approximation guarantee of the Ψ-pairwise alignment scheme: 1+5ϵ1+5\epsilon1+5ϵ, which becomes the paper's 1+ϵ1+\epsilon1+ϵ after rescaling ϵ\epsilonϵ.

Formalization Note The running-time half of Theorem 1.3 is not formalized, and neither is the selection of the cheapest candidate among all guesses (§3.3). The constants are those the analysis proves, 1+2ϵ1+2\epsilon1+2ϵ (Lemma 2.1) and 1+5ϵ1+5\epsilon1+5ϵ ((3) and Lemma 3.6), with no rescaling of ϵ\epsilonϵ. T∗T^*T∗ is an arbitrary positive policy rather than an optimal one; the page uses optimality only through the bracket on OPT~\widetilde{\mathrm{OPT}}OPT. The second inequality in (b) bounds the cost of the joint orders the policy places at all multiples of R^\hat{\mathcal R}R^ (§2.6, step 1), which dominates J(T^)J(\hat T)J(T^). Segments are 0-indexed in Lean.

Preamble
import Mathlib
import Definitions.Def_ContJRP_Align_Model
import Definitions.Def_ContJRP_Align_Alignment
import Definitions.Def_ContJRP_Align_Policy
Formal statement
namespace ContJRP.Align

theorem theorem_1_3_approximation {n : ℕ} [NeZero n] (K0 : ℝ) (K H : Fin n → ℝ)
    (hK0 : 0 < K0) (hK : ∀ i, 0 < K i) (hH : ∀ i, 0 < H i)
    (ε : ℝ) (hε0 : 0 < ε) (hε1 : ε < 1 / 2)
    (Tstar : Fin n → ℝ) (hTstar : ∀ i, 0 < Tstar i)
    (OPT : ℝ) (hOPT1 : totalCost K0 K H Tstar ≤ OPT) (hOPT2 : OPT ≤ 2 * totalCost K0 K H Tstar) :
    -- (a) the easy regime (Lemma 2.1)
    ((n : ℝ) / ε * (K0 / OPT) ≤ tmin Tstar →
      totalCost K0 K H (easyPolicy K0 K H) ≤ (1 + 2 * ε) * totalCost K0 K H Tstar) ∧
    -- (b) the difficult regime
    (tmin Tstar < (n : ℝ) / ε * (K0 / OPT) →
      -- the grid of powers of 1 + ε/2 in [K₀/OPT~, (n/ε)·K₀/OPT~) contains a guess satisfying (2)
      (∃ j : ℕ, (1 + ε / 2) ^ j * (K0 / OPT) < (n : ℝ) / ε * (K0 / OPT) ∧
        (1 - ε / 2) * tmin Tstar ≤ (1 + ε / 2) ^ j * (K0 / OPT) ∧
        (1 + ε / 2) ^ j * (K0 / OPT) ≤ tmin Tstar) ∧
      -- for every guess satisfying (2) and every choice of representatives:
      ∀ Tt : ℝ, (1 - ε / 2) * tmin Tstar ≤ Tt → Tt ≤ tmin Tstar →
        ∀ Rstar : ℕ → ℝ, IsRepChoice ε Tt Tstar Rstar →
          -- a cross-component misaligned feasible solution of (LP) exists (Lemma 2.5), and
          (∃ R : ℕ → ℝ, IsLPFeasible ε Tt Tstar Rstar R ∧ CrossMisaligned ε Tt Tstar Rstar R) ∧
          -- the final policy of every such solution is within 1 + 5ε of Tstar
          ∀ R : ℕ → ℝ, IsLPFeasible ε Tt Tstar Rstar R → CrossMisaligned ε Tt Tstar Rstar R →
            ∀ That : Fin n → ℝ, IsFinalPolicy K H ε Tt Tstar R That →
              totalCost K0 K H That ≤ (1 + 5 * ε) * totalCost K0 K H Tstar ∧
              K0 * orderDensity (active ε Tt Tstar) R + ∑ i, eoqCost (K i) (H i) (That i) ≤
                (1 + 5 * ε) * totalCost K0 K H Tstar) := by sorry

end ContJRP.Align
Source
Segev, The Continuous-Time Joint Replenishment Problem: ϵ-Optimal Policies via Pairwise Alignment, arXiv:2302.09941v1, p. 5, Theorem 1.3; constants from p. 6 (Lemma 2.1), p. 7 (the grid for (2)), p. 12 (§3 intro, (3)) and p. 15 (Lemma 3.6)
Human review
  • Endorsed by Shuze Chen · Oct 14, 2026

    Confirmed by the moderator at approval.

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