Day-Independent Due Dates
Lax117284.Theorem3 · concepts/Lax117284/Theorem3.lean · lax-117284
No public endorsements yet.
Loading review…
Sign in with ORCIDNatural Language Statement
Theorem
Theorem 3. The problem is NP-hard. It is solvable in polynomial time under either of two additional restrictions: (i) the number of days is a constant; (ii) the processing times are day-independent as well.
Hardness comes from the problem of maximizing the number of just-in-time jobs on unrelated parallel machines. Under (i) a dynamic program over the clients in order of their due dates decides the problem, carrying for each day the time at which its machine is next free. Under (ii) every day has the same conflict graph, and a -fair schedule exists exactly when times the chromatic number of that graph is at most .
Concept map
Evidence
Lean source view on GitHub
| 1 | import Lax117284.Problems |
| 2 | |
| 3 | /-! |
| 4 | --- |
| 5 | title: Day-Independent Due Dates |
| 6 | type: theorem |
| 7 | --- |
| 8 | **Theorem 3.** The problem |
| 9 | is NP-hard. It is |
| 10 | solvable in polynomial time under either of two additional restrictions: (i) the number |
| 11 | of days is a constant; (ii) the processing times are day-independent as well. |
| 12 | |
| 13 | Hardness comes from the problem of maximizing the number of just-in-time jobs on unrelated |
| 14 | parallel machines. Under (i) a dynamic program over the clients in order of their due dates |
| 15 | decides the problem, carrying for each day the time at which its machine is next free. |
| 16 | Under (ii) every day has the same conflict graph, and a -fair schedule exists exactly |
| 17 | when times the chromatic number of that graph is at most . |
| 18 | |
| 19 | # Formalization Notes |
| 20 | |
| 21 | Restriction (i) is a constant of the slice rather than part of the input, so the claim is |
| 22 | one language per number of days. This is what " is a constant" means: the algorithm may |
| 23 | depend on , and its running time is polynomial for each fixed while the exponent may |
| 24 | grow with . |
| 25 | -/ |
| 26 | |
| 27 | namespace Lax117284.Theorem3 |
| 28 | |
| 29 | open Lax117284.Scheduling Lax117284.Problems Lax434930.PolynomialTime |
| 30 | |
| 31 | /-- **Theorem 3, hardness.** With day-independent due dates the problem remains |
| 32 | NP-hard. -/ |
| 33 | axiom uniform_dayIndepD_npHard : NPHard (Uniform fun I _ => I.DayIndepD) |
| 34 | |
| 35 | /-- **Theorem 3(i).** With day-independent due dates and a fixed number `m` of days the |
| 36 | problem is solvable in polynomial time. -/ |
| 37 | axiom uniform_dayIndepD_days_mem_P (m : ℕ) : |
| 38 | Uniform (fun I _ => I.DayIndepD ∧ I.days = m) ∈ P |
| 39 | |
| 40 | /-- **Theorem 3(ii).** With day-independent due dates and day-independent processing times |
| 41 | the problem is solvable in polynomial time. -/ |
| 42 | axiom uniform_dayIndepD_dayIndepP_mem_P : |
| 43 | Uniform (fun I _ => I.DayIndepD ∧ I.DayIndepP) ∈ P |
| 44 | |
| 45 | end Lax117284.Theorem3 |
| 46 |
Formalization Notes
Restriction (i) is a constant of the slice rather than part of the input, so the claim is one language per number of days. This is what " is a constant" means: the algorithm may depend on , and its running time is polynomial for each fixed while the exponent may grow with .
Discussion
Ask a question or add context. Endorsements and structured flags are kept in the review panel above.
0 comments