Theorem 4(d), inequality (5) — a tail order with small
ProvedSchedComplexity.Tardiness.ineq_5Let be positive integers and an integer with , where and (the paper's standing assumption "we may assume that ", p. 16). Put
let be any integer with , and consider the single-machine instance of Theorem 4(d) with jobs: for , , , ; for the dummy jobs , , , . Setting for , every job has and . The threshold is
For a processing order the jobs are processed without idle time from time , so the job in position completes at , and
Then for every processing order there is a processing order with the same jobs in the first positions, for (so ), such that
The paper writes "for some "; since the proof of (A) uses (5) for a given first part of the order, it is stated here as a reordering of the positions after only. It is the upper-bound counterpart of (4).
Formalization Note The paper prints , which is a half-integer when is odd although counts jobs; the Lean takes its ceiling (tPrime), and (yThr, an exact natural-number division since is even) is computed from the same . Jobs are Fin (t + t'), the items of being the indices (aExt is the convention for ). Positions are 0-based in Lean: π i is the paper's , and posCompletion p π k is the paper's for the 1-based position (the total processing time of the first positions). Sums run over the 0-based positions (tailWeighted). is quantified over all naturals with , as in the paper.
import Mathlib import Definitions.Def_SchedComplexity_Tardiness_Construction
namespace SchedComplexity.Tardiness
/-- Inequality (5) of the proof of Theorem 4(d), p. 21: for every processing order `π` there is an
order `π'` with the same jobs in the first `t` positions (hence `c_π' = c_π`) such that
`Σ_{j>t} (C_π'(j) − C_π'(t)) ≤ ½t'(t'+1)τ + ½(t+1)(A − b − c_π)`. -/
theorem ineq_5 {t : ℕ} (a : Fin t → ℕ) (b τ : ℕ)
(ha : ∀ j, 0 < a j) (hb : 0 < b) (hbA : b < bigA a)
(hτ : 2 * tPrime a b + bigA a < τ)
(π : Equiv.Perm (Fin (t + tPrime a b))) :
∃ π' : Equiv.Perm (Fin (t + tPrime a b)),
(∀ i : Fin (t + tPrime a b), i.val < t → π' i = π i) ∧
(tailWeighted (wtP a b τ) (fun _ => 1) π' t : ℝ) ≤
(1 / 2 : ℝ) * tPrime a b * (tPrime a b + 1) * τ
+ (1 / 2 : ℝ) * (t + 1) * ((bigA a : ℝ) - b - cPi a b τ π) := by sorry
end SchedComplexity.Tardiness
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.