Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 9.3 with (7) — F(nA,nB,Q)F(n_A,n_B,Q)F(nA​,nB​,Q) is the optimal value of 1∥∑CiA:∑CiB≤Q1\|\sum C^A_i:\sum C^B_i\le Q1∥∑CiA​:∑CiB​≤Q

Proved
TwoAgentSched.TotalTotal.theorem_9_3

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

dynamic-programmingp2o-batch-pfp2bp2o-gran-per-chapterp2o-plan-paperp2o-v1schedulingtwo-agent

Consider a two-agent single-machine instance in which each agent's jobs are numbered in SPT order, p1A≤⋯≤pnAAp^A_1\le\dots\le p^A_{n_A}p1A​≤⋯≤pnA​A​ and p1B≤⋯≤pnBBp^B_1\le\dots\le p^B_{n_B}p1B​≤⋯≤pnB​B​, and let Q∈NQ\in\mathbb NQ∈N. Let FFF be the dynamic program (7) with its initialisation. Then F(nA,nB,Q)F(n_A,n_B,Q)F(nA​,nB​,Q) is the optimal value of the constrained problem

min⁡{∑h=1nAChA(σ) : σ a sequence of all jobs, ∑k=1nBCkB(σ)≤Q},\min\Bigl\{\sum_{h=1}^{n_A}C^A_h(\sigma)\ :\ \sigma \text{ a sequence of all jobs},\ \sum_{k=1}^{n_B}C^B_k(\sigma)\le Q\Bigr\},min{h=1∑nA​​ChA​(σ) : σ a sequence of all jobs, k=1∑nB​​CkB​(σ)≤Q},

in the following sense:

  1. F(nA,nB,Q)=+∞F(n_A,n_B,Q)=+\inftyF(nA​,nB​,Q)=+∞ iff no sequence of all jobs has ∑kCkB≤Q\sum_kC^B_k\le Q∑k​CkB​≤Q;
  2. if F(nA,nB,Q)=mF(n_A,n_B,Q)=mF(nA​,nB​,Q)=m is finite, then some sequence with ∑kCkB≤Q\sum_kC^B_k\le Q∑k​CkB​≤Q has ∑hChA=m\sum_hC^A_h=m∑h​ChA​=m, and every sequence with ∑kCkB≤Q\sum_kC^B_k\le Q∑k​CkB​≤Q has ∑hChA≥m\sum_hC^A_h\ge m∑h​ChA​≥m.

This is the correctness half of Theorem 9.3: the problem is solved by a pseudopolynomial dynamic program.

Formalization Note The running time O(nAnBQ)O(n_An_BQ)O(nA​nB​Q) of Theorem 9.3 is not formalised. The SPT numbering of each agent's jobs is the paper's standing convention of §9 and is a hypothesis.

Preamble
import Mathlib
import Definitions.Def_TwoAgentSched_TotalTotal_DP
Formal statement
namespace TwoAgentSched.TotalTotal

open MooreLateJobs.Shared

/-- Theorem 9.3 with recursion (7) (Agnetis et al. 2004, p. 238), correctness half: when each
agent's jobs are numbered in SPT order (`p^A_1 ≤ ⋯ ≤ p^A_{n_A}`, `p^B_1 ≤ ⋯ ≤ p^B_{n_B}`),
`F(n_A, n_B, Q)` is the optimal value of `1‖∑ C^A_i : ∑ C^B_i ≤ Q`:
1. `F(n_A, n_B, Q) = +∞` iff no sequence of all jobs has `∑ C^B_i ≤ Q`;
2. if `F(n_A, n_B, Q) = m` is finite, some sequence with `∑ C^B_i ≤ Q` has `∑ C^A_i = m`, and
   every sequence with `∑ C^B_i ≤ Q` has `∑ C^A_i ≥ m`.
The running time `O(n_A n_B Q)` is not part of the statement. -/
theorem theorem_9_3 (I : Instance) (hA : Monotone I.pA) (hB : Monotone I.pB) (Q : ℕ) :
    (I.dpF I.nA I.nB Q = ⊤ ↔
      ¬ ∃ l, IsSchedule Finset.univ l ∧ I.sumCB l ≤ (Q : ℝ)) ∧
    ∀ m : ℕ, I.dpF I.nA I.nB Q = (m : ℕ∞) →
      (∃ l, IsSchedule Finset.univ l ∧ I.sumCB l ≤ (Q : ℝ) ∧ I.sumCA l = (m : ℝ)) ∧
      ∀ l, IsSchedule Finset.univ l → I.sumCB l ≤ (Q : ℝ) → (m : ℝ) ≤ I.sumCA l := by sorry

end TwoAgentSched.TotalTotal
Source
Agnetis, Mirchandani, Pacciarelli & Pacifici, Scheduling Problems with Two Competing Agents, Oper. Res. 52(2) (2004), p. 238, Theorem 9.3 with recursion (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