Proof of Theorem 3 — PARTITION INTO PATHS OF LENGTH 2 has a solution iff C_max ≤ t is feasible on Q2 with speeds 2, 1
ProvedResourceScheduling.Graph.paths_iff_q2ScheduleLet be a graph with , and let be the scheduling instance constructed from (one unit-time job per vertex, one unit resource per non-adjacent pair , required by and ), on two uniform machines with speeds and , so that a job takes time on and time on . Then
This is the correctness of the reduction from PARTITION INTO PATHS OF LENGTH 2 to used in the proof of Theorem 3.
Formalization Note. A triple "spans a path of length 2" when at least two of its three pairs are edges (a triangle qualifies). Machines are indexed from , so the speed vector is . Schedules have real start times and half-open execution intervals, and the resource constraints are checked at every real time.
import Mathlib import Definitions.Def_ResourceScheduling_Graph_Construction
namespace ResourceScheduling.Graph
/-- Proof of Theorem 3, p. 15: a graph with `|V| = 3t` has a partition into paths of length 2 if
and only if the constructed instance on two uniform machines with speeds `q_1 = 2`, `q_2 = 1`
has a feasible schedule with `C_max ≤ t`. -/
theorem paths_iff_q2Schedule (d : GraphData) :
PartitionIntoPathsOfLength2 d.G ↔
((reduce d).toInstance 2 ![2, 1] (by intro i; fin_cases i <;> norm_num)).HasScheduleWithin
d.t := by sorry
end ResourceScheduling.Graph
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Setting. Let be any graph instance: a natural number and a simple graph on with decidable adjacency.
Left side. There exists an object of type . That type is defined in an imported module whose content is not shown. Its accompanying comment describes it as a partition of into triples, each containing at least two edges of .
Right side: a schedule within . Build the instance with:
- one job per vertex;
- one resource of size per non-adjacent pair with , required (amount ) by jobs and only;
- no precedence;
- two machines, machine with speed (processing time ) and machine with speed (processing time ).
The right side says there exist a machine assignment and real start times such that:
- for every .
- Distinct jobs on the same machine have disjoint intervals .
- At every real time, no two distinct non-adjacent vertices are both executing.
- Every completion time is (the makespan is taken as if is empty).
Theorem. The left side holds if and only if the right side holds.
Degenerate case. At the right side is true, because the empty schedule has makespan . The theorem therefore asserts that of the empty graph is nonempty.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.