Sect. 4.1 — Algorithm 2 keeps the partial schedule valid
ProvedRestrictedAssignment.Svensson.valid_of_reachableLet be an instance of restricted assignment, a valid partial schedule (every assigned job on a machine of , at most one big job per machine, every load at most ), and a job with . Then every state that Algorithm 2 started on reaches after finitely many iterations has a valid partial schedule .
This is the invariant that makes the output of Algorithm 2 a schedule of makespan at most .
import Mathlib import Definitions.Def_RestrictedAssignment_Svensson_configLP import Definitions.Def_RestrictedAssignment_Svensson_extendSchedule
namespace RestrictedAssignment.Svensson
/-- Svensson, arXiv:1011.1168v2, p. 14, Sect. 4.1: Algorithm 2 only updates the schedule when a
valid move is chosen, so the schedule stays valid throughout the execution. -/
theorem valid_of_reachable {J M : Type} [Fintype J] [Fintype M] [DecidableEq J] [DecidableEq M]
(Γ : J → Finset M) (p : J → ℝ) (σ0 : J → Option M) (jnew : J)
(hσ0 : Valid Γ p σ0) (hjnew : σ0 jnew = none) (s : AlgState J M)
(hs : Reachable Γ p σ0 jnew s) :
Valid Γ p s.σ := by sorry
end RestrictedAssignment.Svensson
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Let (jobs) and (machines) be finite types with decidable equality. Let for each job, and let be arbitrary real sizes. No sign restriction is assumed.
Hypotheses.
- is a partial schedule that is valid:
- implies ;
- every machine carries at most one big job (big means );
- every machine's load is at most .
- is a job with .
- is a state reachable from the initial state by finitely many (possibly zero) steps.
What one step is. A state consists of a partial schedule and a list of blockers. Each blocker has a job set, a machine or , and a kind (small, big or medium). A step from requires three things:
- .
- A choice of a potential move of lexicographically minimum value among all potential moves.
- A blocker in whose job set contains .
A potential move is a pair with the following properties:
- lies in some blocker's job set;
- and ;
- one of five size and blocker conditions (small; medium/large-to-big; huge-to-small; huge-to-big; huge-to-medium) holds. These are phrased with the classes small , medium , large and huge , and with the machines of existing blockers.
The step then has one of two effects:
- If setting yields a valid partial schedule: the step does exactly that and deletes and all blockers after it.
- Otherwise: is left unchanged and one blocker with machine is appended. Its job set is either the jobs on not already in any blocker, or the big jobs on , or the medium jobs on , according to the move's type.
Conclusion. The schedule of is valid, in the three-part sense above.
Degenerate cases.
- The statement covers equal to the initial state, where it restates the hypothesis on .
- It covers sizes that are negative or zero. Such jobs are small, and a small invalid move with has a value below that of any valid move.
- It covers every way of breaking ties and choosing .
- If no step is possible, the only reachable state is the initial one.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.