Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 5.7 — the least-cost backward rule yields an optimal, nondominated schedule

Proved
TwoAgentSched.TotalMax.theorem_5_7

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

p2o-batch-pfp2bp2o-gran-per-chapterp2o-plan-paperp2o-v1paretoschedulingtwo-agent

Consider a feasible instance of 1∥∑CiA:fmax⁡B≤Q1\|\sum C^A_i : f^B_{\max}\le Q1∥∑CiA​:fmaxB​≤Q with at least one BBB-job, positive processing times and nondecreasing BBB-cost functions fkBf^B_kfkB​. Let σ~\tilde\sigmaσ~ be any schedule produced by the modified algorithm of §5.2.1: building the schedule backwards, with τˉ\bar\tauτˉ the total length of the unscheduled jobs, if some unscheduled BBB-job JkBJ^B_kJkB​ has fkB(τˉ)≤Qf^B_k(\bar\tau)\le QfkB​(τˉ)≤Q then place last a BBB-job JlBJ^B_lJlB​ with

flB(τˉ)=min⁡k∈UBfkB(τˉ)f^B_l(\bar\tau)=\min_{k\in U^B}f^B_k(\bar\tau)flB​(τˉ)=k∈UBmin​fkB​(τˉ)

(UBU^BUB the unscheduled BBB-jobs, ties broken arbitrarily), and otherwise a longest unscheduled AAA-job. Then

  1. σ~\tilde\sigmaσ~ is optimal for 1∥∑CiA:fmax⁡B≤Q1\|\sum C^A_i : f^B_{\max}\le Q1∥∑CiA​:fmaxB​≤Q, and
  2. σ~\tilde\sigmaσ~ is nondominated: no schedule σˉ\bar\sigmaσˉ has ∑ChA(σˉ)≤∑ChA(σ~)\sum C^A_h(\bar\sigma)\le\sum C^A_h(\tilde\sigma)∑ChA​(σˉ)≤∑ChA​(σ~) and fmax⁡B(σˉ)≤fmax⁡B(σ~)f^B_{\max}(\bar\sigma)\le f^B_{\max}(\tilde\sigma)fmaxB​(σˉ)≤fmaxB​(σ~) with at least one inequality strict.

Part 2 is the printed Theorem 5.7; part 1 is the paper's description of σ~\tilde\sigmaσ~ as "the optimal schedule generated in this way", which rests on Theorem 5.5. Together they say that agent AAA's optimum under the bound QQQ can be achieved without needlessly raising agent BBB's cost.

Formalization Note The modified algorithm is the property IsLeastCostSeq of a finished sequence; ties are quantified universally. Dominating schedules range over all schedules of the jobs, not only those feasible for QQQ. The running time of Theorem 5.8 is not formalized.

Preamble
import Mathlib
import Definitions.Def_TwoAgentSched_TotalMax_Rules
Formal statement
namespace TwoAgentSched.TotalMax

/-- Theorem 5.7 (Agnetis et al. 2004, §5.2.1, p. 235), with the optimality taken from
Theorem 5.5. On a feasible instance of `1‖ΣC^A_i : f^B_max ≤ Q` with at least one B-job, every
schedule `σ̃` of all jobs produced by the modified algorithm of §5.2.1 (any tie-breaking) is
(a) optimal for `1‖ΣC^A_i : f^B_max ≤ Q`, and (b) nondominated for `(ΣC^A_i, f^B_max)`. -/
theorem theorem_5_7 {nA nB : ℕ} (hB : 0 < nB) (p : TwoAgentSched.MaxMax.Job nA nB → ℝ) (hp : ∀ j, 0 < p j)
    (fB : Fin nB → ℝ → ℝ) (hfB : ∀ k, Monotone (fB k)) (Q : ℝ)
    (hfeas : IsFeasibleInstance p fB Q) (σtilde : List (TwoAgentSched.MaxMax.Job nA nB))
    (hsched : MooreLateJobs.Shared.IsSchedule Finset.univ σtilde)
    (hrule : IsLeastCostSeq p fB Q σtilde) :
    IsOptimal p fB Q σtilde ∧ IsNondominated hB p fB σtilde := by sorry

end TwoAgentSched.TotalMax
Source
Agnetis, Mirchandani, Pacciarelli & Pacifici, Scheduling Problems with Two Competing Agents, Oper. Res. 52(2) (2004), p. 235, §5.2.1, the modified algorithm and Theorem 5.7
Human review
  • Endorsed by Shuze Chen · Oct 8, 2026

    Confirmed by the moderator at approval.

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