Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Proof of Theorem 3(b) — k(S)=k(T)−(∑Saj)(∑T−Saj)=y+c2k(S)=k(T)-(\sum_S a_j)(\sum_{T-S}a_j)=y+c^2k(S)=k(T)−(∑S​aj​)(∑T−S​aj​)=y+c2

Proved
SchedComplexity.Partition.theorem_3b_k_identity

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

np-completenessp2o-batch-pfp2bp2o-gran-per-chapterp2o-plan-paperp2o-v1schedulingweighted-completion-time

Let a1,…,ata_1,\dots,a_ta1​,…,at​ be nonnegative integers, A=∑j∈TajA=\sum_{j\in T}a_jA=∑j∈T​aj​, S⊆TS\subseteq TS⊆T, and c=∑j∈Saj−12Ac=\sum_{j\in S}a_j-\tfrac12Ac=∑j∈S​aj​−21​A. With k(⋅)k(\cdot)k(⋅) and y=∑j,k∈T, j≤kajak−14A2y=\sum_{j,k\in T,\,j\le k}a_ja_k-\tfrac14A^2y=∑j,k∈T,j≤k​aj​ak​−41​A2 as in construction (b),

k(S)=k(T)−(∑j∈Saj)(∑j∈T−Saj)=∑j,k∈T, j≤kajak−(12A+c)(12A−c)=y+c2.k(S) = k(T) - \Big(\sum_{j\in S}a_j\Big)\Big(\sum_{j\in T-S}a_j\Big) = \sum_{j,k\in T,\ j\le k} a_ja_k - \big(\tfrac12A+c\big)\big(\tfrac12A-c\big) = y + c^2 .k(S)=k(T)−(j∈S∑​aj​)(j∈T−S∑​aj​)=j,k∈T, j≤k∑​aj​ak​−(21​A+c)(21​A−c)=y+c2.

Since c2>0c^2>0c2>0 unless SSS solves PARTITION, this identity converts the schedule value k(S)k(S)k(S) into the PARTITION condition.

Formalization Note The identity is stated over R\mathbb RR as three equalities, one per step of the printed chain, and holds for all natural data, so positivity is not assumed.

Preamble
import Mathlib
import Definitions.Def_SchedComplexity_Partition_Constructions
Formal statement
namespace SchedComplexity.Partition

/-- Proof of Theorem 3(b) (p. 15), the displayed chain: with `c = Σ_{j ∈ S} a_j − ½A`,
`k(S) = k(T) − (Σ_{j∈S} a_j)(Σ_{j∈T−S} a_j) = Σ_{j,k∈T, j≤k} a_j a_k − (½A + c)(½A − c) = y + c²`. -/
theorem theorem_3b_k_identity (a : List ℕ) (S : Finset (Fin a.length)) :
    let c : ℝ := ((∑ j ∈ S, a.get j : ℕ) : ℝ) - (totalA a : ℝ) / 2
    (kVal a S : ℝ) =
        (kVal a Finset.univ : ℝ) -
          ((∑ j ∈ S, a.get j : ℕ) : ℝ) * ((∑ j ∈ Sᶜ, a.get j : ℕ) : ℝ) ∧
      (kVal a Finset.univ : ℝ) -
          ((∑ j ∈ S, a.get j : ℕ) : ℝ) * ((∑ j ∈ Sᶜ, a.get j : ℕ) : ℝ) =
        (pairSum a : ℝ) - ((totalA a : ℝ) / 2 + c) * ((totalA a : ℝ) / 2 - c) ∧
      (pairSum a : ℝ) - ((totalA a : ℝ) / 2 + c) * ((totalA a : ℝ) / 2 - c) = yB a + c ^ 2 := by sorry

end SchedComplexity.Partition
Source
Brucker, Lenstra & Rinnooy Kan, Complexity of Machine Scheduling Problems, Mathematisch Centrum Report BW 43/75 (1975), p. 15, proof of Theorem 3(b), displayed identity (cf. Figure 1)
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