Proof of `Two tests from the words up: NP-hardness of 1|r_j|L_max and Smith's rule` (2nd statement)
groundedproofs/Lax434175Proofs/Smith.lean · lax-434175
What this proof establishes
no assumptions
Assuming the claims on the left, the claim on the right holds — checked by the archive's pipeline. Proof code is not displayed here.
Description
Smith's rule as a word RAM program in IMP+: it reads the standard word into memory, copies the processing times and weights into two arrays, sorts the jobs by bottom-up merge sort with the comparison (jobs of weight last) in passes of linear cost, adds up the weighted completion times of the sorted order and compares with the threshold. Run in this order without idle time, the jobs pay plus, for every pair, the smaller of and , and every schedule on one machine pays at least that (the jobs before each job in the order of completion fill the machine up to its completion).