Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Proof of Theorem 10.1 — Cmax⁡B≤P+εC^B_{\max}\le P+\varepsilonCmaxB​≤P+ε forces the B-job to start on M2M_2M2​ by P/2+εP/2+\varepsilonP/2+ε

Proved
TwoAgentSched.Shops.flow_bjob_latest_start

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

flow-shopp2o-batch-pfp2bp2o-gran-per-chapterp2o-plan-paperp2o-v1schedulingtwo-agent

Let p1,…,pkp_1,\dots,p_kp1​,…,pk​ be nonnegative integers, P=∑ipiP=\sum_i p_iP=∑i​pi​, ε=1/(k+1)\varepsilon=1/(k+1)ε=1/(k+1), and consider the flow shop instance built from them in the proof of Theorem 10.1: kkk A-jobs with processing times ε\varepsilonε on M1M_1M1​ and pip_ipi​ on M2M_2M2​, one B-job J1BJ^B_1J1B​ with processing times P/2−(k−1)εP/2-(k-1)\varepsilonP/2−(k−1)ε on M1M_1M1​ and P/2P/2P/2 on M2M_2M2​.

Let s1,s2s_1, s_2s1​,s2​ be the start times on M1M_1M1​, M2M_2M2​ of a feasible flow shop schedule in which both operations of J1BJ^B_1J1B​ end by QB=P+εQ_B=P+\varepsilonQB​=P+ε. Then

s2(J1B)≤P2+εand∑i: s2(JiA)<s2(J1B)pi≤P2,s_2(J^B_1)\le \frac P2+\varepsilon\qquad\text{and}\qquad \sum_{i:\ s_2(J^A_i)<s_2(J^B_1)} p_i\le \frac P2,s2​(J1B​)≤2P​+εandi: s2​(JiA​)<s2​(J1B​)∑​pi​≤2P​,

i.e. the B-job starts on the second machine by P/2+εP/2+\varepsilonP/2+ε, and the A-jobs started on the second machine before it have total length at most P/2P/2P/2.

This is the first half of the argument that a feasible schedule splits the integers into two halves.

Formalization Note "The A-jobs preceding J1BJ^B_1J1B​ on the second machine" is read as those whose M2M_2M2​ operation starts strictly before that of J1BJ^B_1J1B​ (an A-job of length 000 may share the start time; it adds nothing to the sum).

Preamble
import Mathlib
import Definitions.Def_TwoAgentSched_Shops_Construction
Formal statement
namespace TwoAgentSched.Shops

/-- Proof of Theorem 10.1 (Agnetis, Mirchandani, Pacciarelli & Pacifici 2004, p. 238): in the flow
shop instance built from the PARTITION integers `p`, every feasible schedule meeting
`C^B_max ≤ Q_B = P + ε` starts the B-job on `M_2` not after `P/2 + ε`, and the A-jobs started on
`M_2` before the B-job have total `M_2` processing time `∑ p_i ≤ P/2`. -/
theorem flow_bjob_latest_start (p : List ℕ)
    (s₁ s₂ : Fin ((flowInst p).nA + (flowInst p).nB) → ℝ)
    (hfeas : JohnsonFlowShop.TwoStage.IsFeasible (flowInst p).p1 (flowInst p).p2 s₁ s₂)
    (hB : (flowInst p).MeetsB s₁ s₂ (flowQB p)) :
    s₂ (flowB p) ≤ partSum p / 2 + eps p ∧
      ∑ i ∈ Finset.univ.filter (fun i : Fin p.length => s₂ (flowA p i) < s₂ (flowB p)),
        (p.get i : ℝ) ≤ partSum p / 2 := by sorry

end TwoAgentSched.Shops
Source
Agnetis, Mirchandani, Pacciarelli & Pacifici, Scheduling Problems with Two Competing Agents, Oper. Res. 52(2) (2004), p. 238, proof of Theorem 10.1 ("The constraint C^B_max ⩽ Q_B = P + ε can be satisfied only if …")
Human review
  • Endorsed by Shuze Chen · Oct 8, 2026

    Confirmed by the moderator at approval.

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