Proof of Theorem 2 — PARTITION INTO TRIANGLES has a solution iff C_max ≤ t is feasible on P3
ProvedResourceScheduling.Graph.triangles_iff_p3ScheduleLet 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 three identical machines. Then
This is the correctness of the reduction from PARTITION INTO TRIANGLES to used in the proof of Theorem 2.
Formalization Note. Schedules have real start times, 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 2, p. 15: a graph with `|V| = 3t` has a partition into triangles if and
only if the constructed instance on three identical machines has a feasible schedule with
`C_max ≤ t`. -/
theorem triangles_iff_p3Schedule (d : GraphData) :
PartitionIntoTriangles d.G ↔
((reduce d).toInstance 3 (fun _ => 1) (fun _ => one_pos)).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: partition into triangles. There is a bijection
such that and are adjacent whenever .
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;
- three machines, all of speed .
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 non-adjacent distinct vertices are both executing.
- , where the maximum is taken as if is empty.
Theorem. The left side holds if and only if the right side holds.
Degenerate case. At both sides are true: the empty bijection exists, and the empty schedule has makespan .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.