Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

p. 220, conditions (1)–(4) — given |x_j − x_k| ≤ T, some y_jk ∈ {0, 1} satisfies (3) and (4) iff (1) holds

Proved
ManneJobShop.Formulation.pair_either_or_iff

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

big-meither-orinteger-programmingp2o-batch-pfp2bp2o-gran-per-chapterp2o-plan-paperp2o-v1scheduling

Let TTT, aja_jaj​, aka_kak​, xjx_jxj​, xkx_kxk​ be integers with ∣xj−xk∣≤T|x_j-x_k|\le T∣xj​−xk​∣≤T. Then there is an integer yjky_{jk}yjk​ with

0≤yjk≤1,(T+ak) yjk+(xj−xk)≥ak,(T+aj)(1−yjk)+(xk−xj)≥aj0\le y_{jk}\le 1,\qquad (T+a_k)\,y_{jk}+(x_j-x_k)\ge a_k,\qquad (T+a_j)(1-y_{jk})+(x_k-x_j)\ge a_j0≤yjk​≤1,(T+ak​)yjk​+(xj​−xk​)≥ak​,(T+aj​)(1−yjk​)+(xk​−xj​)≥aj​

(Manne's conditions (2), (3), (4)) if and only if the either-or condition (1) holds:

xj−xk≥akorxk−xj≥aj.x_j-x_k\ge a_k\quad\text{or}\quad x_k-x_j\ge a_j .xj​−xk​≥ak​orxk​−xj​≥aj​.

This is the correctness of Manne's linearization of the nonconvex noninterference condition (1) for one pair of tasks on the same machine: the 0–1 variable yjky_{jk}yjk​ records which job goes first, and the coefficients T+akT+a_kT+ak​, T+ajT+a_jT+aj​ switch the inactive inequality off.

Formalization Note The paper writes "We already know that ∣xj−xk∣≤T|x_j-x_k|\le T∣xj​−xk​∣≤T", which follows from 0≤xj,xk≤T0\le x_j,x_k\le T0≤xj​,xk​≤T; here it is a hypothesis. No sign condition on aj,aka_j,a_kaj​,ak​ is needed. The paper's summary table of admissible values of yjky_{jk}yjk​ is not stated row by row (for 0<xj−xk<ak0<x_j-x_k<a_k0<xj​−xk​<ak​ condition (3) in fact forces yjk=1y_{jk}=1yjk​=1); its content is this equivalence together with the exclusion of xj=xkx_j=x_kxj​=xk​ (a separate statement).

Preamble
import Mathlib
Formal statement
namespace ManneJobShop.Formulation

/-- Manne (1960), p. 220, conditions (1)–(4): when `|x_j - x_k| ≤ T`, some integer `y_jk` with
`0 ≤ y_jk ≤ 1` satisfies (3) and (4) iff the either-or condition (1) holds. -/
theorem pair_either_or_iff (T aj ak xj xk : ℤ) (hT : |xj - xk| ≤ T) :
    (∃ y : ℤ, (0 ≤ y ∧ y ≤ 1) ∧
        (T + ak) * y + (xj - xk) ≥ ak ∧ (T + aj) * (1 - y) + (xk - xj) ≥ aj) ↔
      (xj - xk ≥ ak ∨ xk - xj ≥ aj) := by sorry

end ManneJobShop.Formulation
Source
Manne, On the Job-Shop Scheduling Problem, Operations Research 8 (1960), p. 220, conditions (1)–(4), "Condition (2) ensures that y_jk equals either zero or else unity" … "Equations (3) and (4) then ensure"
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