Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 1.2, p. 3 — the ordering density lim N(T,Δ)/Δ exists and equals Σ_{N} (−1)^{|N|+1}/M_N

Proved
ContJRP.Align.lemma_1_2_density

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

densityinclusion-exclusionjoint-replenishmentleast-common-multiplep2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1

Let (Ti)i∈s(T_i)_{i\in s}(Ti​)i∈s​ be a finite family of positive intervals, N(T,Δ)=∣⋃i∈sMTi,Δ∣N(T,\Delta)=\big|\bigcup_{i\in s}\mathcal M_{T_i,\Delta}\big|N(T,Δ)=​⋃i∈s​MTi​,Δ​​ the number of joint orders in [0,Δ][0,\Delta][0,Δ], and MNM_{\mathcal N}MN​ the least common multiple of {Ti}i∈N\{T_i\}_{i\in\mathcal N}{Ti​}i∈N​ (MN=∞M_{\mathcal N}=\inftyMN​=∞, 1/MN=01/M_{\mathcal N}=01/MN​=0, if there is none). Then the limit exists and

lim⁡Δ→∞N(T,Δ)Δ=∑∅≠N⊆s(−1)∣N∣+1MN.\lim_{\Delta\to\infty}\frac{N(T,\Delta)}{\Delta}=\sum_{\emptyset\ne\mathcal N\subseteq s}\frac{(-1)^{|\mathcal N|+1}}{M_{\mathcal N}} .Δ→∞lim​ΔN(T,Δ)​=∅=N⊆s∑​MN​(−1)∣N∣+1​.

This makes the joint ordering cost J(T)J(T)J(T) of (1) well defined for every policy with positive intervals, and gives it in closed form.

Formalization Note The statement is a Tendsto (existence of the limit plus its value), not an identity about limUnder. It is stated over an arbitrary finite index set, a generalization of the page's [n][n][n] used later for sets of representatives. The page's sum over N⊆[n]\mathcal N\subseteq[n]N⊆[n] ranges over nonempty N\mathcal NN, as inclusion–exclusion requires (M∅M_\emptysetM∅​ is undefined).

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

theorem lemma_1_2_density {ι : Type*} (s : Finset ι) (T : ι → ℝ) (hT : ∀ i ∈ s, 0 < T i) :
    Filter.Tendsto (fun Δ : ℝ => (numOrders s T Δ : ℝ) / Δ) Filter.atTop
      (nhds (∑ N ∈ s.powerset.filter (fun N => N.Nonempty),
        (-1 : ℝ) ^ (N.card + 1) * invLcm N T)) := by sorry

end ContJRP.Align
Source
Segev, The Continuous-Time Joint Replenishment Problem: ϵ-Optimal Policies via Pairwise Alignment, arXiv:2302.09941v1, p. 3, Lemma 1.2 (proof in §4.1, pp. 17–18)
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