§3, p. 165 — the all-normal solution is a minimum cost schedule for
ProvedCriticalPath.CostCurve.all_normal_optimalLet a project network with jobs and job data , , be given. In the all-normal solution every job has its normal duration, , and every job starts as early as possible, so the event times are the earliest event times of recursion (1). Let
Then is a schedule for (it satisfies (5), (8), (9)), and its cost (7) is at most the cost of every schedule for : it is a minimum cost schedule for .
This is the starting point of the parametric procedure that traces the project cost curve.
import Mathlib import Definitions.Def_CriticalPath_CostCurve_ProjectNetwork import Definitions.Def_CriticalPath_CostCurve_earliest import Definitions.Def_CriticalPath_CostCurve_JobData import Definitions.Def_CriticalPath_CostCurve_Schedule
namespace CriticalPath.CostCurve
/-- Kelley–Walker (1959), §3, p. 165: the all-normal solution `y = D`, with every job started as
early as possible (`t = t⁽⁰⁾(D)`), is a minimum cost schedule for `λ = tₙ⁽⁰⁾(D)`. -/
theorem all_normal_optimal {n : ℕ} (N : ProjectNetwork n) (J : JobData N) :
IsOptimalSchedule J (earliest N J.D (Fin.last n)) J.D (earliest N J.D) := by sorry
end CriticalPath.CostCurve
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
The setting has four parts.
- Network. Fix any natural number and a project network on events . It is a finite set of arrows with , with , every event reachable from , and reachable from every event, via chains of zero or more arrows of .
- Job data. Fix job data: real functions on ordered pairs of events with , and for . Values off are arbitrary.
- Earliest event times. For a real function on pairs, let be the maximum of over all with and , and if there is no such .
- Schedules and optimality. A schedule for is a pair such that, for all , and , together with and . It is optimal if, in addition, for every schedule for the same , where .
Set . The theorem asserts that the pair
is an optimal schedule for . Spelled out, this is four claims:
- on ;
- on ;
- and ;
- for every schedule for .
Here equals on all pairs, including those outside , but those values do not enter any condition.
Degenerate cases:
- No hypotheses: there are none beyond the structures, so the claim is unconditional.
- Smallest network: for it says , is a cheapest schedule for .
- Zero slopes: if all on , every schedule for has equal cost, and the cost inequality holds with equality.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.