Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 1 — the sum (1) is minimized (maximized) by ordering by increasing (decreasing) μi/[γi−1]\mu_i/[\gamma_i-1]μi​/[γi​−1]

Proved
DeterioratingJobs.Makespan.lemma1_interchange

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

deteriorating-jobsinterchange-argumentp2o-batch-pfp2bp2o-gran-per-chapterp2o-plan-paperp2o-v1scheduling

Let μ1,…,μN\mu_1,\dots,\mu_Nμ1​,…,μN​ be real numbers and γ1,…,γN\gamma_1,\dots,\gamma_Nγ1​,…,γN​ real numbers with γi>1\gamma_i>1γi​>1 for every iii. For a permutation π\piπ of {1,…,N}\{1,\dots,N\}{1,…,N} write

F(π)=∑i=1Nμπ(i)∏r=i+1Nγπ(r)F(\pi) = \sum_{i=1}^{N} \mu_{\pi(i)} \prod_{r=i+1}^{N} \gamma_{\pi(r)}F(π)=i=1∑N​μπ(i)​r=i+1∏N​γπ(r)​

for the sum (1). Then:

  1. if π\piπ lists the jobs by increasing values of μi/[γi−1]\mu_i/[\gamma_i-1]μi​/[γi​−1], that is, μπ(1)/[γπ(1)−1]≤μπ(2)/[γπ(2)−1]≤⋯≤μπ(N)/[γπ(N)−1]\mu_{\pi(1)}/[\gamma_{\pi(1)}-1] \le \mu_{\pi(2)}/[\gamma_{\pi(2)}-1] \le \dots \le \mu_{\pi(N)}/[\gamma_{\pi(N)}-1]μπ(1)​/[γπ(1)​−1]≤μπ(2)​/[γπ(2)​−1]≤⋯≤μπ(N)​/[γπ(N)​−1], then F(π)≤F(σ)F(\pi)\le F(\sigma)F(π)≤F(σ) for every permutation σ\sigmaσ;
  2. if π\piπ lists the jobs by decreasing values of μi/[γi−1]\mu_i/[\gamma_i-1]μi​/[γi​−1], then F(σ)≤F(π)F(\sigma)\le F(\pi)F(σ)≤F(π) for every permutation σ\sigmaσ.

This is the lemma (attributed to Rau 1971) on which all index rules of the paper rest: each deterioration model has an objective of the form (1), and the lemma turns it into an index policy.

Formalization Note The paper says "the permutation ordered by increasing (decreasing) values"; with ties several permutations qualify, so the statement is made for every permutation along which the index is (non-strictly) monotone. The hypothesis γi>1\gamma_i>1γi​>1 is not printed in the lemma; the paper applies it only with γi=1+αi\gamma_i=1+\alpha_iγi​=1+αi​ or (1+αi)2(1+\alpha_i)^2(1+αi​)2, and without it the lemma is false (and μi/[γi−1]\mu_i/[\gamma_i-1]μi​/[γi​−1] divides by zero at γi=1\gamma_i=1γi​=1). μ\muμ is unrestricted. Positions are 0-based.

Preamble
import Mathlib
import Definitions.Def_DeterioratingJobs_Makespan_InterchangeSum
Formal statement
namespace DeterioratingJobs.Makespan

/-- Lemma 1 (Browne–Yechiali 1990, p. 495). For `γ_i > 1`, the sum (1)
`∑_i μ_{π(i)} ∏_{r>i} γ_{π(r)}` is minimized over all permutations by any permutation that lists the
jobs by increasing `μ_i / (γ_i - 1)`, and maximized by any that lists them by decreasing values. -/
theorem lemma1_interchange {N : ℕ} (μ γ : Fin N → ℝ) (hγ : ∀ i, 1 < γ i)
    (π : Equiv.Perm (Fin N)) :
    (Monotone (fun k : Fin N => μ (π k) / (γ (π k) - 1)) →
        ∀ σ : Equiv.Perm (Fin N), lemma1Sum μ γ π ≤ lemma1Sum μ γ σ) ∧
      (Antitone (fun k : Fin N => μ (π k) / (γ (π k) - 1)) →
        ∀ σ : Equiv.Perm (Fin N), lemma1Sum μ γ σ ≤ lemma1Sum μ γ π) := by sorry

end DeterioratingJobs.Makespan
Source
Browne, Yechiali, Scheduling Deteriorating Jobs on a Single Processor, Oper. Res. 38 (1990), p. 495, Lemma 1
Human review
  • Endorsed by Shuze Chen · Oct 6, 2026

    Confirmed by the moderator at approval.

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