§3, p. 165 — the project cost curve is non-increasing, piecewise linear and convex
ProvedCriticalPath.CostCurve.project_cost_curveLet a project network with events and jobs be given, with crash and normal durations and linear job costs , , . For a completion time consider the linear program
and let be the set of for which it is feasible. Let be any function whose value at every is this minimum. Then, on , the project cost curve is
- non-increasing,
- piecewise linear, with finitely many affine pieces covering , and
- convex.
The project cost curve is the trade-off between project duration and direct cost that Kelley and Walker's parametric procedure traces and that management compares against indirect costs and market losses.
Formalization Note is taken as a function whose values on are the minima (IsLeast); its values off are irrelevant and every conclusion is stated on only. That the minimum exists for every is the milestone exists_least_cost, so the hypothesis on is satisfiable. Piecewise linearity is IsPiecewiseLinearOn: finitely many breakpoints, affine pieces between consecutive breakpoints and an unbounded last piece.
import Mathlib import Definitions.Def_CriticalPath_CostCurve_ProjectNetwork import Definitions.Def_CriticalPath_CostCurve_JobData import Definitions.Def_CriticalPath_CostCurve_Schedule import Definitions.Def_CriticalPath_CostCurve_IsPiecewiseLinearOn
namespace CriticalPath.CostCurve
/-- Kelley–Walker (1959), §3, p. 165: the project cost curve `C(lam)`, the minimum of (7)
subject to (5), (8), (9), is on the set `Λ` of feasible completion times a non-increasing,
piecewise linear (finitely many affine pieces covering `Λ`), convex function. -/
theorem project_cost_curve {n : ℕ} (N : ProjectNetwork n) (J : JobData N) (C : ℝ → ℝ)
(hC : ∀ lam ∈ feasibleDurations J, IsLeast (costSet J lam) (C lam)) :
AntitoneOn C (feasibleDurations J) ∧
IsPiecewiseLinearOn C (feasibleDurations J) ∧
ConvexOn ℝ (feasibleDurations J) C := by sorry
end CriticalPath.CostCurve
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Fix , a project network with parameter (ProjectNetwork n), and job data attached to (JobData N). These are custom definitions from the bundle's modules Def_CriticalPath_CostCurve_ProjectNetwork and Def_CriticalPath_CostCurve_JobData. Their contents are not part of the code shown here, so this read-back cannot unfold them. The same holds for two other bundle notions the statement uses, which also come from those imported files:
- , a set of real numbers determined by ;
- , a set of real numbers determined by and a real number .
Let be any real function. The statement assumes one hypothesis about :
In words, at each , is the least element of . That least element must exist and be attained. Nothing is assumed about outside .
Under this hypothesis, the statement concludes all three of the following:
- is non-increasing on . For all with , we have . This is weak monotonicity; strict decrease is not claimed.
- holds. This is a custom predicate from the bundle module
Def_CriticalPath_CostCurve_IsPiecewiseLinearOn. Its definition is not shown, so what it requires cannot be spelled out here. - is convex on in Mathlib's sense. This has two parts:
- itself is a convex subset of , that is, an interval (possibly empty, a single point, unbounded, open, closed or half-open);
- for all and all with ,
So this conclusion also asserts something about the set , not only about .
The module Def_CriticalPath_CostCurve_Schedule is imported but never named in the statement. It may enter only through the unseen definitions of or . The source comment attached to the theorem describes the intended meaning. It is not part of what the code asserts, and this read-back does not rely on it.
Degenerate cases. All conclusions are restricted to , and the values of outside play no role.
- is empty. The hypothesis holds for every . The non-increasing and convexity conclusions then hold trivially, since the empty set is convex. Whether the piecewise-linear conclusion holds for the empty set depends on the unseen definition of .
- is a single point. The non-increasing and convexity conclusions hold trivially.
- Some with has no least element. This happens if the set is empty, unbounded below, or has an infimum it does not attain. Then no function satisfies the hypothesis, and the theorem is vacuous for that .
- and default values. What happens when (for example, a network with no nodes or jobs), and whether any total-function defaults (division by zero, subtraction in , and so on) occur inside the bundle definitions, cannot be determined from the code shown. None of these operations appears in the statement itself.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.