Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 4.6 — if [C-LP] is feasible, Algorithm 2 can always pick a potential move

Proved
RestrictedAssignment.Svensson.exists_potential_move

by mikedeng1 · Sep 27, 2026 · Mathlib 0df444a (Lean v4.33.1)

local-searchlp-dualityp2o-batch-p100bp2o-gran-per-chapterp2o-plan-paperp2o-v1scheduling

Let (J,M,p,Γ)(J, M, p, \Gamma)(J,M,p,Γ) be an instance of restricted assignment with pj≥0p_j \ge 0pj​≥0 for all jjj such that [C-LP] is feasible for target makespan 111. Let σ0\sigma_0σ0​ be a valid partial schedule and jnewj_{\mathrm{new}}jnew​ a job with σ0(jnew)=TBD\sigma_0(j_{\mathrm{new}}) = \mathrm{TBD}σ0​(jnew​)=TBD. Then in every state (σ,T)(\sigma, T)(σ,T) reached by Algorithm 2 on (σ0,jnew)(\sigma_0, j_{\mathrm{new}})(σ0​,jnew​) in which σ(jnew)\sigma(j_{\mathrm{new}})σ(jnew​) is still TBD, there is a potential move (j,i)(j, i)(j,i).

This is one of the two halves of the correctness of Algorithm 2: the procedure never gets stuck. The other half is termination (Lemma 4.9).

Preamble
import Mathlib
import Definitions.Def_RestrictedAssignment_Svensson_configLP
import Definitions.Def_RestrictedAssignment_Svensson_extendSchedule
Formal statement
namespace RestrictedAssignment.Svensson

/-- Svensson, arXiv:1011.1168v2, p. 15, Lemma 4.6: if [C-LP] is feasible (target makespan 1),
then in every iteration of Algorithm 2 there is a potential move to pick. -/
theorem exists_potential_move {J M : Type} [Fintype J] [Fintype M] [DecidableEq J] [DecidableEq M]
    (Γ : J → Finset M) (p : J → ℝ) (hp : ∀ j, 0 ≤ p j) (hLP : CLPFeasible Γ p 1)
    (σ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) (hloop : s.σ jnew = none) :
    ∃ j i, IsPotentialMove Γ p s j i := by sorry

end RestrictedAssignment.Svensson
Source
Svensson, Santa Claus Schedules Jobs on Unrelated Machines, arXiv:1011.1168v2, p. 15, Lemma 4.6
Read-back

What the Lean code literally says, in plain math · claude-opus-5-5

Let JJJ (jobs) and MMM (machines) be finite types with decidable equality. Let Γ(j)⊆M\Gamma(j) \subseteq MΓ(j)⊆M for each job, and let the sizes satisfy pj≥0p_j \ge 0pj​≥0.

Hypotheses.

  1. The configuration LP with target 111 is feasible. There are reals xi,C≥0x_{i,C} \ge 0xi,C​≥0 (for every machine iii and every subset C⊆JC \subseteq JC⊆J) such that:

    • ∑C∈C(i)xi,C≤1\sum_{C \in \mathcal{C}(i)} x_{i,C} \le 1∑C∈C(i)​xi,C​≤1 for each iii;
    • ∑i∑C∈C(i), C∋jxi,C≥1\sum_i \sum_{C \in \mathcal{C}(i),\, C \ni j} x_{i,C} \ge 1∑i​∑C∈C(i),C∋j​xi,C​≥1 for each jjj.

    Here C(i)\mathcal{C}(i)C(i) is the family of C⊆JC \subseteq JC⊆J with i∈Γ(j)i \in \Gamma(j)i∈Γ(j) for all j∈Cj \in Cj∈C and ∑j∈Cpj≤1\sum_{j \in C} p_j \le 1∑j∈C​pj​≤1.

  2. σ0:J→M∪{TBD}\sigma_0 : J \to M \cup \{\mathrm{TBD}\}σ0​:J→M∪{TBD} is a valid partial schedule:

    • assigned jobs on machines in their Γ(j)\Gamma(j)Γ(j);
    • at most one big job (pj≥11/17p_j \ge 11/17pj​≥11/17) per machine;
    • loads ≤33/17\le 33/17≤33/17.
  3. σ0(jnew)=TBD\sigma_0(j_{new}) = \mathrm{TBD}σ0​(jnew​)=TBD.

  4. s=(σ,T)s = (\sigma, T)s=(σ,T) is reachable from (σ0, [({jnew}, ⊥, small)])(\sigma_0,\ [(\{j_{new}\},\ \bot,\ \text{small})])(σ0​, [({jnew​}, ⊥, small)]) by finitely many steps. One step:

    • requires σ(jnew)=TBD\sigma(j_{new}) = \mathrm{TBD}σ(jnew​)=TBD;
    • picks a potential move of lexicographically minimum value and a blocker containing its job;
    • either performs the reassignment (if it keeps the schedule valid) and truncates the blocker list at that blocker, or appends a small, big or medium blocker on the target machine.
  5. σ(jnew)=TBD\sigma(j_{new}) = \mathrm{TBD}σ(jnew​)=TBD in sss.

Conclusion. There exist jjj and iii such that (j,i)(j,i)(j,i) is a potential move in sss. That is:

  • jjj lies in some blocker's job set;
  • i∈Γ(j)i \in \Gamma(j)i∈Γ(j) and σ(j)≠i\sigma(j) \ne iσ(j)=i;
  • one of the following holds:
    • small type: jjj small and i∉MS(T)i \notin M_S(T)i∈/MS​(T); or jjj medium, i∉M(T)i \notin M(T)i∈/M(T), no big job on iii; or jjj large, i∉MB(T)∪MS(T)i \notin M_B(T) \cup M_S(T)i∈/MB​(T)∪MS​(T), no big job on iii.
    • medium/large-to-big: the medium/large conditions with a big job on iii.
    • huge-to-small or huge-to-big: jjj huge (pj≥14/17p_j \ge 14/17pj​≥14/17), i∉M(T)i \notin M(T)i∈/M(T), and pj+p(Si∪Mi)≤33/17p_j + p(S_i \cup M_i) \le 33/17pj​+p(Si​∪Mi​)≤33/17.
    • huge-to-medium: jjj huge, i∉M(T)i \notin M(T)i∈/M(T), and pj+p(Si)≤33/17<pj+p(Si∪Mi)p_j + p(S_i) \le 33/17 < p_j + p(S_i \cup M_i)pj​+p(Si​)≤33/17<pj​+p(Si​∪Mi​).

Here SiS_iSi​ is the set of small jobs on iii all of whose moves go to machines of small blockers, and MiM_iMi​ is the set of medium jobs on iii. Class boundaries are 9/179/179/17, 11/1711/1711/17 and 14/1714/1714/17.

Degenerate cases.

  • Hypothesis 1 forces Γ(j)≠∅\Gamma(j) \ne \emptysetΓ(j)=∅ and pj≤1p_j \le 1pj​≤1 for every job, including jnewj_{new}jnew​. With JJJ containing jnewj_{new}jnew​, it therefore also forces M≠∅M \ne \emptysetM=∅.
  • sss may be the initial state.
  • Zero-size jobs are allowed.
Human review
  • Endorsed by Shuze Chen · Sep 28, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Sep 28, 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