THEOREM 1, p. 336 — the total discrepancy problem is NP-complete (given that Partition is)
ProvedGTWSched.NPC.theorem_1THEOREM 1. The total discrepancy problem is NP-complete.
The total discrepancy problem asks, for tasks with lengths , preferred midtimes and a threshold , whether some one-processor schedule (nonnegative real starting times , nonoverlapping execution intervals ) has
The statement is: if Partition is NP-complete, then this problem (as the language of codes of its yes-instances) is NP-complete.
Since preferred midtimes and preferred starting times are equivalent (), it follows that minimizing the total discrepancy from preferred starting times on one processor is NP-hard.
Formalization Note NP-completeness is the published CookPvsNP.NPComplete; positivePartitionLang uses nonempty lists of positive integers, matching the paper's source problem. The NP-completeness of Partition (Garey and Johnson 1979) is the only fact the paper imports and is the hypothesis. The paper's construction D has half-integer midtimes and threshold, so a reduction to the integer-valued language must rescale. Nonnegative starting times are a standing assumption of the model (p. 336–337) and are essential to the reduction.
import Mathlib import Definitions.Def_CookPvsNP_defs import Definitions.Def_ProjSchedTW_Complexity_Encoding import Definitions.Def_GTWSched_NPC_Schedules import Definitions.Def_GTWSched_NPC_Problems
namespace GTWSched.NPC open CookPvsNP ProjSchedTW.Complexity /-- THEOREM 1, p. 336, relative to the NP-completeness of PARTITION: the total discrepancy problem is NP-complete. -/ theorem theorem_1 (hP : NPComplete positivePartitionLang) : NPComplete tdLang := by sorry end GTWSched.NPC
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.