Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

§3, p. 165 — the all-normal solution is a minimum cost schedule for λ=tn(0)\lambda = t_n^{(0)}λ=tn(0)​

Proved
CriticalPath.CostCurve.all_normal_optimal

by mikedeng1 · Sep 26, 2026 · Mathlib 0df444a (Lean v4.33.1)

p2o-batch-p100ap2o-gran-per-chapterp2o-plan-paperp2o-v1parametric-linear-programmingproject-scheduling

Let a project network with jobs PPP and job data 0≤dij≤Dij0 \le d_{ij} \le D_{ij}0≤dij​≤Dij​, aij≤0a_{ij} \le 0aij​≤0, bij≥0b_{ij} \ge 0bij​≥0 be given. In the all-normal solution every job has its normal duration, yij=Dijy_{ij} = D_{ij}yij​=Dij​, and every job starts as early as possible, so the event times are the earliest event times t(0)(D)t^{(0)}(D)t(0)(D) of recursion (1). Let

λN=tn(0)(D).\lambda_N = t_n^{(0)}(D).λN​=tn(0)​(D).

Then (D,t(0)(D))(D, t^{(0)}(D))(D,t(0)(D)) is a schedule for λN\lambda_NλN​ (it satisfies (5), (8), (9)), and its cost (7) is at most the cost of every schedule for λN\lambda_NλN​: it is a minimum cost schedule for λ=tn(0)\lambda = t_n^{(0)}λ=tn(0)​.

This is the starting point of the parametric procedure that traces the project cost curve.

Preamble
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
Formal statement
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
Source
Kelley, Walker, Critical-Path Planning and Scheduling, Proc. Eastern Joint Computer Conf. 1959, DOI 10.1145/1460299.1460318, p. 165, Part I §3 Minimum Project Costs, left column ("By the nature of the job cost functions this schedule is also a minimum cost schedule for λ = t_n^(0)")
Read-back

What the Lean code literally says, in plain math · claude-opus-5-5

The setting has four parts.

  1. Network. Fix any natural number nnn and a project network on events 0,…,n0,\dots,n0,…,n. It is a finite set PPP of arrows (i,j)(i,j)(i,j) with i<ji<ji<j, with n≥1n\ge 1n≥1, every event reachable from 000, and nnn reachable from every event, via chains of zero or more arrows of PPP.
  2. Job data. Fix job data: real functions d,D,a,bd, D, a, bd,D,a,b on ordered pairs of events with 0≤dij≤Dij0\le d_{ij}\le D_{ij}0≤dij​≤Dij​, aij≤0a_{ij}\le 0aij​≤0 and bij≥0b_{ij}\ge 0bij​≥0 for (i,j)∈P(i,j)\in P(i,j)∈P. Values off PPP are arbitrary.
  3. Earliest event times. For a real function yyy on pairs, let tj(0)(y)t^{(0)}_j(y)tj(0)​(y) be the maximum of yij+ti(0)(y)y_{ij}+t^{(0)}_i(y)yij​+ti(0)​(y) over all iii with i<ji<ji<j and (i,j)∈P(i,j)\in P(i,j)∈P, and 000 if there is no such iii.
  4. Schedules and optimality. A schedule for λ\lambdaλ is a pair (y,t)(y,t)(y,t) such that, for all (i,j)∈P(i,j)\in P(i,j)∈P, dij≤yij≤Dijd_{ij}\le y_{ij}\le D_{ij}dij​≤yij​≤Dij​ and yij≤tj−tiy_{ij}\le t_j-t_iyij​≤tj​−ti​, together with t0=0t_0=0t0​=0 and tn=λt_n=\lambdatn​=λ. It is optimal if, in addition, C(y)≤C(y′)C(y)\le C(y')C(y)≤C(y′) for every schedule (y′,t′)(y',t')(y′,t′) for the same λ\lambdaλ, where C(y)=∑(i,j)∈P(aijyij+bij)C(y)=\sum_{(i,j)\in P}(a_{ij}y_{ij}+b_{ij})C(y)=∑(i,j)∈P​(aij​yij​+bij​).

Set T=tn(0)(D)T = t^{(0)}_n(D)T=tn(0)​(D). The theorem asserts that the pair

y=D,tj=tj(0)(D)(j=0,…,n)y = D, \qquad t_j = t^{(0)}_j(D) \quad (j = 0,\dots,n)y=D,tj​=tj(0)​(D)(j=0,…,n)

is an optimal schedule for λ=T\lambda = Tλ=T. Spelled out, this is four claims:

  • dij≤Dij≤Dijd_{ij}\le D_{ij}\le D_{ij}dij​≤Dij​≤Dij​ on PPP;
  • Dij≤tj(0)(D)−ti(0)(D)D_{ij}\le t^{(0)}_j(D)-t^{(0)}_i(D)Dij​≤tj(0)​(D)−ti(0)​(D) on PPP;
  • t0(0)(D)=0t^{(0)}_0(D)=0t0(0)​(D)=0 and tn(0)(D)=Tt^{(0)}_n(D)=Ttn(0)​(D)=T;
  • ∑(i,j)∈P(aijDij+bij)≤C(y′)\sum_{(i,j)\in P}(a_{ij}D_{ij}+b_{ij}) \le C(y')∑(i,j)∈P​(aij​Dij​+bij​)≤C(y′) for every schedule (y′,t′)(y',t')(y′,t′) for TTT.

Here yyy equals DDD on all pairs, including those outside PPP, 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 n=1n=1n=1 it says y01=D01y_{01}=D_{01}y01​=D01​, t=(0,D01)t=(0,D_{01})t=(0,D01​) is a cheapest schedule for λ=D01\lambda=D_{01}λ=D01​.
  • Zero slopes: if all aij=0a_{ij}=0aij​=0 on PPP, every schedule for TTT has equal cost, and the cost inequality holds with equality.
Human review
  • Endorsed by Shuze Chen · Sep 27, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Sep 27, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me