Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Proof of Theorem 7 ("if") — a 3-PARTITION solution gives a schedule with Cmax⁡=2tbC_{\max} = 2tbCmax​=2tb

Proved
ResourceScheduling.Chain.chainSchedule_of_threePartition

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

3-partitionp2o-batch-p100bp2o-gran-per-chapterp2o-plan-paperp2o-v1reductionsscheduling

Let t,b,a1,…,a3tt, b, a_1,\dots,a_{3t}t,b,a1​,…,a3t​ be a valid 3-PARTITION instance (b>0b>0b>0, ∑jaj=tb\sum_j a_j = tb∑j​aj​=tb, 14b<aj<12b\tfrac14 b < a_j < \tfrac12 b41​b<aj​<21​b), and consider the instance of P2∣res111,chain,pj=1∣Cmax⁡P2\mid res111, chain, p_j=1\mid C_{\max}P2∣res111,chain,pj​=1∣Cmax​ constructed from it in the proof of Theorem 7: the chain LLL of 2tb2tb2tb jobs alternating blocks of bbb primed and bbb unprimed jobs, and for each jjj the chain Kj→Kj′K_j \to K'_jKj​→Kj′​ of aja_jaj​ unprimed followed by aja_jaj​ primed jobs, the primed jobs requiring the single unit resource. If {1,…,3t}\{1,\dots,3t\}{1,…,3t} can be partitioned into ttt disjoint 3-element sets each summing to bbb, then the constructed instance has a feasible schedule with

Cmax⁡=2tb.C_{\max} = 2tb.Cmax​=2tb.

This is the "if" direction of the claim on which the proof of Theorem 7 rests.

Formalization Note. The schedule must be feasible in the model's sense: real start times, half-open execution intervals, the resource checked at every real time. For t=0t = 0t=0 the instance has no jobs and Cmax⁡=0C_{\max} = 0Cmax​=0.

Preamble
import Mathlib
import Definitions.Def_ResourceScheduling_Chain_Constructions
Formal statement
namespace ResourceScheduling.Chain
theorem chainSchedule_of_threePartition (P : ThreePartition) (hP : P.Valid)
    (hS : P.HasSolution) :
    ∃ σ : Schedule P.chainInstance, σ.Feasible ∧ σ.cmax = ((2 * P.t * P.b : ℕ) : ℝ) := by sorry
end ResourceScheduling.Chain
Source
Błażewicz, Lenstra & Rinnooy Kan, Scheduling subject to resource constraints: classification and complexity, Discrete Appl. Math. 5 (1983), p. 19, proof of Theorem 7 ("if" direction)
Read-back

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

Let PPP consist of t,b∈Nt, b \in \mathbb{N}t,b∈N and aj∈Na_j \in \mathbb{N}aj​∈N for j∈S={0,…,3t−1}j \in S = \{0,\dots,3t-1\}j∈S={0,…,3t−1}.

Hypotheses.

  1. PPP is valid: b>0b > 0b>0, ∑jaj=tb\sum_{j} a_j = tb∑j​aj​=tb, and b<4ajb < 4a_jb<4aj​ and 2aj<b2a_j < b2aj​<b for every jjj.
  2. PPP has a solution: some σ:S→{0,…,t−1}\sigma : S \to \{0,\dots,t-1\}σ:S→{0,…,t−1} has every preimage σ−1(i)\sigma^{-1}(i)σ−1(i) of size exactly 333 with ∑j∈σ−1(i)aj=b\sum_{j\in\sigma^{-1}(i)} a_j = b∑j∈σ−1(i)​aj​=b.

The instance. Consider the following scheduling instance with N=2tb+2∑jajN = 2tb + 2\sum_j a_jN=2tb+2∑j​aj​ unit-time jobs indexed 0,…,N−10,\dots,N-10,…,N−1, 222 machines, and one resource of size 111.

  • Requirements: positions 0,…,2tb−10,\dots,2tb-10,…,2tb−1 form 2t2t2t blocks of bbb jobs. Block kkk requires 111 unit if kkk is even and 000 if kkk is odd. After that, for j=0,…,3t−1j = 0,\dots,3t-1j=0,…,3t−1 in turn, come aja_jaj​ jobs requiring 000 followed by aja_jaj​ jobs requiring 111.
  • Arcs: (p,p+1)(p,p+1)(p,p+1) for 0≤p≤2tb−20 \le p \le 2tb-20≤p≤2tb−2, and, within each jjj-segment starting at Oj=2tb+2∑i<jaiO_j = 2tb + 2\sum_{i<j}a_iOj​=2tb+2∑i<j​ai​, the arcs (Oj+c, Oj+c+1)(O_j+c,\,O_j+c+1)(Oj​+c,Oj​+c+1) for 0≤c≤2aj−20 \le c \le 2a_j-20≤c≤2aj​−2.

Conclusion. There exist machines μ(p)∈{0,1}\mu(p)\in\{0,1\}μ(p)∈{0,1} and real start times SpS_pSp​ such that all of the following hold:

  1. Sp≥0S_p \ge 0Sp​≥0 for all ppp.
  2. Distinct jobs on the same machine do not overlap: Sp+1≤SqS_p+1 \le S_qSp​+1≤Sq​ or Sq+1≤SpS_q+1 \le S_pSq​+1≤Sp​.
  3. Sp+1≤SqS_p + 1 \le S_qSp​+1≤Sq​ whenever a directed path of positive length leads from ppp to qqq along the arcs.
  4. At every real time τ\tauτ, the requirements of the jobs with Sp≤τ<Sp+1S_p \le \tau < S_p+1Sp​≤τ<Sp​+1 sum to at most 111.
  5. The makespan is exactly
max⁡p(Sp+1)=2tb,\max_p (S_p + 1) = 2tb,pmax​(Sp​+1)=2tb,

with the maximum taken as 000 when N=0N = 0N=0.

The conclusion is an equality, not merely an upper bound.

Degenerate cases.

  • When t=0t = 0t=0, validity only requires b≥1b \ge 1b≥1. The instance has N=0N = 0N=0 jobs, and the empty schedule is feasible with makespan 0=2⋅0⋅b0 = 2\cdot 0\cdot b0=2⋅0⋅b, so the conclusion holds.
  • Validity forces every aj≥1a_j \ge 1aj​≥1 and b≥3b \ge 3b≥3 whenever t≥1t \ge 1t≥1. The hypotheses are jointly satisfiable, for example t=1t=1t=1, b=7b=7b=7, a=(2,2,3)a=(2,2,3)a=(2,2,3).
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