§3, p. 165 — within the limits of most interest, λ is also the earliest project completion time
ProvedCriticalPath.CostCurve.exists_optimal_earliest_eqLet a project network with jobs and job data , , be given, and write and for the all-crash and all-normal earliest project completion times. For every with
there is a minimum cost schedule for whose durations have earliest project completion time exactly : .
Thus, in the range the parametric procedure traverses, the parameter of the linear program is the completion time plotted on the project cost curve.
Formalization Note "Within the limits of most interest" is read as ; for no admissible durations reach completion time . The claim is that some minimum cost schedule has this property, not every one: if all , then is optimal for every and has .
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: within the limits of most interest,
`tₙ⁽⁰⁾(d) ≤ lam ≤ tₙ⁽⁰⁾(D)`, some minimum cost schedule `(y, t)` for `lam` has earliest project
completion time `tₙ⁽⁰⁾(y) = lam`. -/
theorem exists_optimal_earliest_eq {n : ℕ} (N : ProjectNetwork n) (J : JobData N) (lam : ℝ)
(hlo : earliest N J.d (Fin.last n) ≤ lam) (hhi : lam ≤ earliest N J.D (Fin.last n)) :
∃ (y : Fin (n + 1) → Fin (n + 1) → ℝ) (t : Fin (n + 1) → ℝ),
IsOptimalSchedule J lam y t ∧ earliest N y (Fin.last n) = lam := 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 , with a real function on pairs and a real function on events, such that, for all , and , together with and . It is optimal if also for every schedule for the same , where .
Let be a real number with
The theorem asserts that there exist and such that:
- is an optimal schedule for ; and
- the earliest completion time under the durations equals exactly:
The statement does not claim that equals the earliest event times at events other than . It also does not claim that every optimal schedule has this property; only one such optimal schedule is asserted to exist.
Degenerate cases:
- Nonempty interval: the recursion is monotone in the durations on and there, so . The hypotheses can therefore always be satisfied, and the statement is not vacuous.
- Single admissible value: if , which happens for example when on , only that one value of is covered.
- Smallest network: for , and the claim is that for some optimal schedule has .
- Outside the interval: nothing is asserted for outside .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.