Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 4(a), forward direction: the order (S′,S,Jn,T′−S′,T−S,U)(S',S,J_n,T'-S',T-S,U)(S′,S,Jn​,T′−S′,T−S,U) gives ∑jCj≤y\sum_jC_j\le y∑j​Cj​≤y

Proved
SchedComplexity.TotalCompletion.forward_bound

by mikedeng1 · Oct 6, 2026 · Mathlib 0df444a (Lean v4.33.1)

knapsacknp-completenessp2o-batch-pfp2bp2o-gran-per-chapterp2o-plan-paperp2o-v1schedulingtotal-completion-time

Let a1,…,at,ba_1,\dots,a_t,ba1​,…,at​,b be positive integers with 0<b<A0<b<A0<b<A, and suppose S⊆TS\subseteq TS⊆T satisfies ∑j∈Saj=b\sum_{j\in S}a_j=b∑j∈S​aj​=b. Put S′={t+j∣j∈T−S}S'=\{t+j\mid j\in T-S\}S′={t+j∣j∈T−S}. In the instance of the construction of Theorem 4(a), consider the processing order

({Jj∣j∈S′}, {Jj∣j∈S}, Jn, {Jj∣j∈T′−S′}, {Jj∣j∈T−S}, {Jj∣j∈U}),\bigl(\{J_j\mid j\in S'\},\ \{J_j\mid j\in S\},\ J_n,\ \{J_j\mid j\in T'-S'\},\ \{J_j\mid j\in T-S\},\ \{J_j\mid j\in U\}\bigr),({Jj​∣j∈S′}, {Jj​∣j∈S}, Jn​, {Jj​∣j∈T′−S′}, {Jj​∣j∈T−S}, {Jj​∣j∈U}),

with the jobs inside each group in any order, and the schedule it defines (each job starts as early as its release date and the previous job allow). Then this schedule is feasible and

∑j∉UCj≤u,∑j∈UCj=uσ+12u(u+1)υ,∑jCj≤y.\sum_{j\notin U}C_j\le u,\qquad \sum_{j\in U}C_j=u\sigma+\tfrac12u(u+1)\upsilon,\qquad \sum_j C_j\le y .j∈/U∑​Cj​≤u,j∈U∑​Cj​=uσ+21​u(u+1)υ,j∑​Cj​≤y.

This is the "if" half of the equivalence behind Theorem 4(a).

Formalization Note The order inside each group is arbitrary: each group is given as a duplicate-free list whose set of elements is the group. The paper's displayed estimate ∑j∉UCj≤⋯=u\sum_{j\notin U}C_j\le\dots=u∑j∈/U​Cj​≤⋯=u is stated through its conclusion. Feasibility of the schedule, which the paper leaves implicit, is part of the conclusion.

Preamble
import Mathlib
import Definitions.Def_SchedComplexity_TotalCompletion_SingleMachine
import Definitions.Def_SchedComplexity_TotalCompletion_Construction
Formal statement
namespace SchedComplexity.TotalCompletion

/-- Proof of Theorem 4(a), forward direction (p. 22): if `Σ_{j∈S} a_j = b`, then the schedule of
the processing order `({J_j | j ∈ S'}, {J_j | j ∈ S}, J_n, {J_j | j ∈ T'−S'}, {J_j | j ∈ T−S},
{J_j | j ∈ U})`, with `S' = {t + j | j ∈ T−S}` and any order inside each group, is feasible and
has `Σ_{j∉U} C_j ≤ u`, `Σ_{j∈U} C_j = uσ + ½u(u + 1)υ` and `Σ_j C_j ≤ y`. -/
theorem forward_bound {t : ℕ} (a : Fin t → ℕ) (b : ℕ)
    (ha : ∀ i, 0 < a i) (hb : 0 < b) (hbA : b < sumA a)
    (S : Finset (Fin t)) (hS : ∑ i ∈ S, a i = b)
    (l₁ l₂ l₃ l₄ l₅ : List (Fin (numJobs a b)))
    (h₁ : l₁.Nodup ∧ l₁.toFinset = jobsShift a b Sᶜ)
    (h₂ : l₂.Nodup ∧ l₂.toFinset = jobsT a b S)
    (h₃ : l₃.Nodup ∧ l₃.toFinset = groupT' a b \ jobsShift a b Sᶜ)
    (h₄ : l₄.Nodup ∧ l₄.toFinset = jobsT a b Sᶜ)
    (h₅ : l₅.Nodup ∧ l₅.toFinset = groupU a b) :
    let B := orderSchedule (procTime a b) (release a b)
      (l₁ ++ l₂ ++ [lastJob a b] ++ l₃ ++ l₄ ++ l₅)
    IsFeasible (procTime a b) (release a b) B ∧
      ∑ j ∈ (groupU a b)ᶜ, completion (procTime a b) B j ≤ uCount a b ∧
      ∑ j ∈ groupU a b, completion (procTime a b) B j =
        uCount a b * sigma a b + uCount a b * (uCount a b + 1) / 2 * upsilon a b ∧
      ∑ j, completion (procTime a b) B j ≤ yThreshold a b := by sorry

end SchedComplexity.TotalCompletion
Source
Brucker, Lenstra & Rinnooy Kan, Complexity of Machine Scheduling Problems, Mathematisch Centrum Report BW 43/75 (1975), p. 22, proof of Theorem 4(a), forward direction
Human review
  • Endorsed by Shuze Chen · Oct 6, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 6, 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