Lemma 3.5 with explicit space bound — backlink program and schedule extraction within recordStart + 3·m·(dmax+1)^(m−1)·Σ|c̄_j| + 2n cells
ProvedLawlerCompress.TardyJobs.lemma_3_5_SThis is the constructive (backlink-program) part of Lemma 3.5 with the cell bound made explicit. There is a fixed call depth such that for every number of machines there are constants (depending only on ) with the following property. For every EDD instance with jobs there is a cell limit
where is the first address of the sparse back-link record region (after the input header, the -entry table and its auxiliary cells) and is the set of canonical completion times of job , such that, under the limits (word bound , cells, depth ) of the fixed program algorithm2BacklinkProgram:
- procedure 0, started on the encoded input, terminates within steps, ; and
- from every state in which it terminates, procedure 1 terminates within further steps in a state that writes a complete schedule into a -cell output region lying within (cell : machine of job , cell : its position in that machine's list), with on-time weight at least .
Compared to lemma_3_5, the space envelope is replaced by the explicit, sharper count of the records the program actually allocates (at most candidate records of three cells per job ), and the intermediate BacklinkReady/record-preservation clauses and the pure existence clause are dropped. This explicit form is what is needed to rerun the program on relabelled instances in the proof of Theorem 1.1.
import Definitions.Def_LawlerCompress_TardyJobs_Backlinks set_option autoImplicit false
namespace LawlerCompress.TardyJobs
theorem lemma_3_5_S :
∃ D : ℕ, ∀ m : ℕ, 1 ≤ m → ∃ C c : ℕ, 0 < C ∧ 0 < c ∧
∀ I : Instance m, 1 ≤ I.n → EDD I →
∃ S : ℕ, S ≤ recordStart I +
3 * (m * (dmax I + 1) ^ (m - 1) * ∑ j : Fin I.n, (cbar I j).card) + 2 * I.n ∧
Light.Ends (limits I c S D) algorithm2BacklinkProgram 0 entry (start I)
(timeBound I C) (fun σ₁ =>
Light.Ends (limits I c S D) algorithm2BacklinkProgram 0 (.call 1 [] 0) σ₁
(C * (I.n + dmax I ^ m)) (fun σ₂ =>
∃ τ : JobLists I, Schedule I τ ∧ OutputSchedule I S τ σ₂ ∧
algValue I ≤ onTimeWeight I τ)) := by sorry
end LawlerCompress.TardyJobs