Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Proof of Theorem 2.12.1 — the PARTITION project is feasible iff the sizes split evenly

Proved
ProjSchedTW.Complexity.partitionProject_feasible_iff

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

complexity-theorycumulative-resourcesp2o-batch-b23bp2o-gran-per-chapterp2o-plan-bookp2o-v1partitionproject-scheduling

Let s(1),…,s(ν)∈Ns(1),\dots,s(\nu)\in\mathbb Ns(1),…,s(ν)∈N with ∑i∈Is(i)\sum_{i\in\mathcal I}s(i)∑i∈I​s(i) even, I={1,…,ν}\mathcal I=\{1,\dots,\nu\}I={1,…,ν}. Consider the project with ν+2\nu+2ν+2 activities of duration zero and one cumulative resource: n=νn=\nun=ν, V=I∪{0,n+1}V=\mathcal I\cup\{0,n+1\}V=I∪{0,n+1},

r0=rn+1=−12∑i∈Is(i),ri=s(i) (i∈I),R‾=R‾=0,r_0=r_{n+1}=-\tfrac12\sum_{i\in\mathcal I}s(i),\qquad r_i=s(i)\ (i\in\mathcal I),\qquad \underline R=\overline R=0,r0​=rn+1​=−21​i∈I∑​s(i),ri​=s(i) (i∈I),R​=R=0,

and arcs ⟨0,n+1⟩\langle0,n+1\rangle⟨0,n+1⟩ with d0,n+1min⁡=1d^{\min}_{0,n+1}=1d0,n+1min​=1, ⟨0,i⟩\langle0,i\rangle⟨0,i⟩ and ⟨i,n+1⟩\langle i,n+1\rangle⟨i,n+1⟩ with d0imin⁡=di,n+1min⁡=0d^{\min}_{0i}=d^{\min}_{i,n+1}=0d0imin​=di,n+1min​=0 (i∈Ii\in\mathcal Ii∈I). Then its project network is acyclic, and

∃ S feasible  ⟺  ∃ I′⊆I: ∑i∈I′s(i)=∑i∈I∖I′s(i).\exists\,S\text{ feasible}\iff\exists\,\mathcal I'\subseteq\mathcal I:\ \sum_{i\in\mathcal I'}s(i)=\sum_{i\in\mathcal I\setminus\mathcal I'}s(i).∃S feasible⟺∃I′⊆I: i∈I′∑​s(i)=i∈I∖I′∑​s(i).

This is the correctness of the polynomial transformation from PARTITION in the proof of Theorem 2.12.1; the book remarks that the activities of I′\mathcal I'I′ start at time 000 and those of I′′\mathcal I''I′′ at time Sn+1≥1S_{n+1}\ge1Sn+1​≥1.

Formalization Note The book's r0=−∑s(i)/2r_0=-\sum s(i)/2r0​=−∑s(i)/2 is an integer only for even sums, and demands are integers (p. 129); the evenness hypothesis makes that explicit (for odd sums no partition exists). Index i∈{1,…,ν}i\in\{1,\dots,\nu\}i∈{1,…,ν} is i - 1 : Fin ν for the sizes and activity i : Fin (ν + 2). Inventory constraints are required for every t≥0t\ge0t≥0.

Preamble
import Mathlib
import Definitions.Def_ProjSchedTW_Complexity_Encoding
import Definitions.Def_ProjSchedTW_Complexity_Cumulative
Formal statement
namespace ProjSchedTW.Complexity

/-- Proof of Theorem 2.12.1 (p. 131): the project built from PARTITION sizes `s(1), …, s(ν)`
with even total size has an acyclic network, and it has a feasible schedule iff the index set
can be split into two parts of equal total size. -/
theorem partitionProject_feasible_iff {ν : ℕ} (s : Fin ν → ℕ) (hs : Even (∑ i, s i)) :
    (partitionProject s).IsAcyclic ∧
      ((∃ S, (partitionProject s).Feasible S) ↔
        ∃ A : Finset (Fin ν), ∑ i ∈ A, s i = ∑ i ∈ Aᶜ, s i) := by sorry

end ProjSchedTW.Complexity
Source
Neumann, Schwindt & Zimmermann, Project Scheduling with Time Windows and Scarce Resources, 2nd ed., Springer 2003, p. 131, proof of Theorem 2.12.1, the PARTITION transformation ("Obviously, there is a feasible schedule if and only if …")
Human review
  • Endorsed by Shuze Chen · Oct 5, 2026

    Confirmed by the moderator at approval.

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