Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 6, p. 13 — the greedy schedule satisfies ALG ≤ Σ_j cost(j → m(j))

Proved
GreedWorks.OnlineTime.lemma_6

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

competitive-analysisgreedy-algorithmonline-algorithmsp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1

Consider deterministic processing times pij≥1p_{ij}\ge1pij​≥1 on the eligible machine–job pairs, integer release dates rjr_jrj​ with jobs indexed in release order, weights wj≥0w_j\ge0wj​≥0, and a parameter c>0c>0c>0. Let (m,s)(m,s)(m,s) be any outcome of the online-time greedy algorithm with parameter ccc, where m(j)m(j)m(j) is the machine to which job jjj was assigned and Cj=sj+pm(j)jC_j=s_j+p_{m(j)j}Cj​=sj​+pm(j)j​. Then

ALG=∑j∈JwjCj  ≤  ∑j∈Jcost⁡(j→m(j)).\mathsf{ALG}=\sum_{j\in J}w_jC_j\;\le\;\sum_{j\in J}\operatorname{cost}(j\to m(j)).ALG=j∈J∑​wj​Cj​≤j∈J∑​cost(j→m(j)).

The quantities cost⁡(j→m(j))\operatorname{cost}(j\to m(j))cost(j→m(j)) are the dual values αj\alpha_jαj​ of the dual-fitting argument, so this inequality is where the algorithm's cost enters the analysis.

Formalization Note The statement holds for every tie-breaking of the algorithm and for every c>0c>0c>0. pij≥1p_{ij}\ge1pij​≥1 is the paper's scaling assumption E[Pij]≥1\mathbb E[P_{ij}]\ge1E[Pij​]≥1 (p. 6) and w≥0w\ge0w≥0 is implicit on the page.

Preamble
import Mathlib
import Definitions.Def_GreedWorks_OnlineTime_Greedy
Formal statement
namespace GreedWorks.OnlineTime

/-- Lemma 6 (p. 13). For deterministic processing times (`p_ij ≥ 1` on eligible pairs), every
parameter `c > 0` and every outcome `(m, s)` of the online-time greedy algorithm, the objective
value `ALG = Σ_j w_j C_j` is at most `Σ_j cost(j → m(j))`. -/
theorem lemma_6 {M : Type*} [Fintype M] [Nonempty M] {n : ℕ}
    (elig : M → Fin n → Prop) (hElig : ∀ j, ∃ i, elig i j)
    (r : Fin n → ℕ) (hr : Monotone r)
    (p : M → Fin n → ℝ) (hp : ∀ i j, elig i j → 1 ≤ p i j)
    (w : Fin n → ℝ) (hw : ∀ j, 0 ≤ w j)
    (c : ℝ) (hc : 0 < c) (m : Fin n → M) (s : Fin n → ℝ)
    (hG : IsGreedy c r p w elig m s) :
    nominalValue p w m s ≤ ∑ j : Fin n, cost c r p w m s j (m j) := by sorry

end GreedWorks.OnlineTime
Source
Gupta, Moseley, Uetz & Xie, Greed Works – Online Algorithms For Unrelated Machine Stochastic Scheduling, arXiv:1703.01634v4, p. 13, Lemma 6
Human review
  • Endorsed by Shuze Chen · Oct 9, 2026

    Confirmed by the moderator at approval.

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