Theorem 4.1 (correctness) — the backward rule solves
ProvedTwoAgentSched.MaxMax.theorem_4_1Consider A-jobs and B-jobs on one machine, with nonnegative processing times, nondecreasing cost functions , , and a bound . The backward rule of §4 builds a schedule from the end: with the total processing time of the unscheduled jobs, it places last any unscheduled B-job with , and if there is none, an unscheduled A-job with the smallest ; it stops when all A-jobs are scheduled and no B-job can be placed. Then:
- every complete schedule the rule can produce, under any tie-breaking, is optimal for
- the rule produces a complete schedule if and only if the instance has a feasible schedule.
Printed as " can be solved in time ", this is the paper's first and simplest two-agent result: a single-machine scheduling problem between two agents with maximum-cost objectives is solved by a greedy rule.
Formalization Note Only the correctness of the algorithm is formalized; the running time is not. "The rule produces a complete schedule" is stated as the existence of a schedule of all jobs satisfying the backward-rule property, at every position of which the rule's choice is legal.
import Mathlib import Definitions.Def_TwoAgentSched_MaxMax_BackwardRule
namespace TwoAgentSched.MaxMax
/-- Theorem 4.1, correctness of the algorithm (Agnetis et al. 2004, §4, pp. 232–233): the
backward rule solves `1‖f^A_max : f^B_max ≤ Q`.
1. Every sequence of all `nA + nB` jobs that the backward rule can produce (any tie-breaks) is
optimal for `1‖f^A_max : f^B_max ≤ Q`.
2. The backward rule produces a complete sequence (never stops) if and only if the instance is
feasible.
The running time `O(n_A² + n_B log n_B)` of the printed theorem is not formalized. -/
theorem theorem_4_1 {nA nB : ℕ} (hA : 0 < nA) (p : Job nA nB → ℝ) (hp : ∀ j, 0 ≤ p j)
(fA : Fin nA → ℝ → ℝ) (fB : Fin nB → ℝ → ℝ) (hfA : ∀ h, Monotone (fA h))
(hfB : ∀ k, Monotone (fB k)) (Q : ℝ) :
(∀ l : List (Job nA nB), MooreLateJobs.Shared.IsSchedule Finset.univ l →
IsBackwardRuleSeq p fA fB Q l → IsOptimal hA p fA fB Q l) ∧
((∃ l : List (Job nA nB), MooreLateJobs.Shared.IsSchedule Finset.univ l ∧
IsBackwardRuleSeq p fA fB Q l) ↔
∃ l : List (Job nA nB), IsFeasible p fB Q l) := by sorry
end TwoAgentSched.MaxMax
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.