Online Load Balancing on Unrelated Machines
ProvedPrimalDual.buchbinder_naor_unrelated_machines_exactOnline load balancing on unrelated machines (exact form of Theorem 8.1). Consider a normalized instance with machines, jobs arriving in order, and nonnegative normalized loads , where machine is eligible for job exactly when . If the packing dual admits a feasible solution assigning unit total mass to every job, then the deterministic Buchbinder–Naor primal–dual algorithm never fails, assigns every job irrevocably, and every machine ends with normalized load
The source states the guarantee as ; the displayed constant is the explicit bound derived in its proof. In the survey's doubling scheme this normalized phase is invoked with a guessed makespan, and a feasible dual assigning all jobs exists precisely when the guess is at least the optimal makespan, which is how the phase yields the -competitive online algorithm.
Formalization Note The theorem covers the single normalized phase; the doubling wrapper that produces the competitive algorithm is outside the mission's scope. The algorithm, its state, and the dual-feasibility premise all refer to the mission's shared definitions module.
import Definitions.Def_pd_unrelated_machines
namespace PrimalDual
/--
**Online load balancing on unrelated machines (exact form).** If the normalized
instance admits a feasible dual assigning unit mass to every job, the
Buchbinder--Naor deterministic online algorithm assigns all jobs, never fails,
and puts normalized load at most `ln(3m) / ln(3/2)` on every machine.
-/
theorem buchbinder_naor_unrelated_machines_exact
{jobs machines : ℕ} (I : UnrelatedMachines.Instance jobs machines)
(y : I.EligiblePair → ℝ) (hy : I.DualAssignsAll y) :
I.Succeeded ∧ I.AssignsAll ∧
∀ j, I.assignedLoad j ≤ I.logarithmicLoadBound := by
sorry
end PrimalDualRead-back
What the Lean code literally says, in plain math · gpt-5
For every pair of natural numbers and , every instance consisting of a proof , a real load for each job and machine , and proofs , every function assigning a real number exactly to each eligible pair with , and every proof of the following compound premise: for every eligible pair, for every machine , for every job , and additionally for every job , the theorem asserts the right-nested conjunction that the deterministic run described below has final failure marker , and that both every job has some machine with final assignment entry and every machine has final assigned normalized load at most . The external is defined only on eligible pairs—there are no values for ineligible pairs—and is used only in the premise, not by the run. The run begins with every machine weight equal to , every job assignment equal to , every job slack equal to , every entry of a separate internal rectangular dual array equal to , and failure marker , and processes the jobs once each in the order . At an arrival , a state whose failure marker is already nonempty is left unchanged; otherwise the run first tests whether the eligible set is empty or whether some current machine weight satisfies the strict inequality , and if either condition holds it changes only the failure marker to . If neither holds, it sorts by the natural order of the finite machine indices and deterministically takes an argmin of ; the total definition also marks failure at if that choice nevertheless returns no machine. When it returns a machine , writing and for the old weight, the transition changes only to , the assignment of to , the slack of to , and the internal dual entry at to , retains all other entries, and leaves the failure marker ; the process’s recorded decision is the resulting assignment entry for , while its final state is obtained by iterating these state transitions through the whole arrival list. “Succeeded” here means exactly that this final marker is , with no additional post-run overweight test, and “assigns all” means exactly , the final assignment of is . The final assigned load on is exactly the finite sum \sum_{i=0}^{n-1}\bigl(p_{ij}\ \text{if the final assignment of \(i is }\operatorname{some}(j),\ \text{and }0\text{ otherwise}\bigr)), and its asserted bound is the unrounded real quotient for every . Although is universally quantified over natural numbers, admits no such instance because it would require , so that binder case has no ; when , the eligible-pair type and are empty, all per-job unit-mass conditions and the assignment conclusion are vacuous, the machine dual sums and final loads are empty sums , no transition occurs, and the load conclusion says for every machine. If and any job has no eligible machine, its required unit dual mass is the empty sum , so no proof of the premise can be supplied and the theorem has no applicable premise in that case; more generally, whenever no such feasible unit-mass exists, the hypothesis is uninhabited.
Confirmed by the mission captain (proposal self-audit).