Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

§4 — if all A-jobs are scheduled and no B-job can be scheduled last, the instance is infeasible

Proved
TwoAgentSched.MaxMax.stuck_infeasible

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

feasibilityp2o-batch-pfp2bp2o-gran-per-chapterp2o-plan-paperp2o-v1schedulingtwo-agent

Let the processing times be nonnegative and every cost function fkBf^B_kfkB​ nondecreasing. Suppose that, at some point of the backward algorithm of §4, the set UUU of unscheduled jobs is nonempty and contains no A-job, and that no B-job of UUU can be scheduled last: with

τˉ=∑j∈Upj,\bar\tau=\sum_{j\in U}p_j,τˉ=j∈U∑​pj​,

every B-job JkB∈UJ^B_k\in UJkB​∈U has fkB(τˉ)>Qf^B_k(\bar\tau)>QfkB​(τˉ)>Q. Then the problem 1∥fmax⁡A:fmax⁡B≤Q1\|f^A_{\max} : f^B_{\max}\le Q1∥fmaxA​:fmaxB​≤Q has no feasible schedule.

This is the stopping rule of the algorithm: it justifies declaring the instance infeasible when the rule cannot place a job.

Formalization Note The set UUU is an arbitrary nonempty set of B-jobs; the statement does not require UUU to arise from a run of the algorithm, which makes it apply to every such state.

Preamble
import Mathlib
import Definitions.Def_TwoAgentSched_MaxMax_Model
Formal statement
namespace TwoAgentSched.MaxMax

/-- §4, the stopping rule of the backward algorithm (Agnetis et al. 2004, p. 232): "If, at a
certain point in the algorithm, all A-jobs have been scheduled and no B-job can be scheduled
last, the instance is not feasible." Let `U` be a nonempty set of unscheduled jobs containing no
A-job, and `τ̄ = Σ_{j ∈ U} p_j`. If every B-job `k ∈ U` has `f^B_k(τ̄) > Q`, then
`1‖f^A_max : f^B_max ≤ Q` has no feasible schedule. -/
theorem stuck_infeasible {nA nB : ℕ} (p : Job nA nB → ℝ) (hp : ∀ j, 0 ≤ p j)
    (fB : Fin nB → ℝ → ℝ) (hfB : ∀ k, Monotone (fB k)) (Q : ℝ)
    (U : Finset (Job nA nB)) (hU : U.Nonempty) (hUA : ∀ h : Fin nA, Sum.inl h ∉ U)
    (hUB : ∀ k : Fin nB, Sum.inr k ∈ U → Q < fB k (∑ j ∈ U, p j)) :
    ¬ ∃ l : List (Job nA nB), IsFeasible p fB Q l := by sorry

end TwoAgentSched.MaxMax
Source
Agnetis, Mirchandani, Pacciarelli & Pacifici, Scheduling Problems with Two Competing Agents, Oper. Res. 52(2) (2004), p. 232, §4, the algorithm paragraph, last sentence ("If, at a certain point in the algorithm, all A-jobs have been scheduled and no B-job can be scheduled last, the instance is not feasible.")
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