Proof of Theorem 7 ("if") — a 3-PARTITION solution gives a schedule with
ProvedResourceScheduling.Chain.chainSchedule_of_threePartitionLet be a valid 3-PARTITION instance (, , ), and consider the instance of constructed from it in the proof of Theorem 7: the chain of jobs alternating blocks of primed and unprimed jobs, and for each the chain of unprimed followed by primed jobs, the primed jobs requiring the single unit resource. If can be partitioned into disjoint 3-element sets each summing to , then the constructed instance has a feasible schedule with
This is the "if" direction of the claim on which the proof of Theorem 7 rests.
Formalization Note. The schedule must be feasible in the model's sense: real start times, half-open execution intervals, the resource checked at every real time. For the instance has no jobs and .
import Mathlib import Definitions.Def_ResourceScheduling_Chain_Constructions
namespace ResourceScheduling.Chain
theorem chainSchedule_of_threePartition (P : ThreePartition) (hP : P.Valid)
(hS : P.HasSolution) :
∃ σ : Schedule P.chainInstance, σ.Feasible ∧ σ.cmax = ((2 * P.t * P.b : ℕ) : ℝ) := by sorry
end ResourceScheduling.Chain
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Let consist of and for .
Hypotheses.
- is valid: , , and and for every .
- has a solution: some has every preimage of size exactly with .
The instance. Consider the following scheduling instance with unit-time jobs indexed , machines, and one resource of size .
- Requirements: positions form blocks of jobs. Block requires unit if is even and if is odd. After that, for in turn, come jobs requiring followed by jobs requiring .
- Arcs: for , and, within each -segment starting at , the arcs for .
Conclusion. There exist machines and real start times such that all of the following hold:
- for all .
- Distinct jobs on the same machine do not overlap: or .
- whenever a directed path of positive length leads from to along the arcs.
- At every real time , the requirements of the jobs with sum to at most .
- The makespan is exactly
with the maximum taken as when .
The conclusion is an equality, not merely an upper bound.
Degenerate cases.
- When , validity only requires . The instance has jobs, and the empty schedule is feasible with makespan , so the conclusion holds.
- Validity forces every and whenever . The hypotheses are jointly satisfiable, for example , , .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.