Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

pp. 221–222 — with M machines of p tasks each, n = Mp and there are M·p(p − 1)/2 conflicting pairs

Proved
ManneJobShop.Formulation.card_conflicts_uniform

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

countinginteger-programmingp2o-batch-pfp2bp2o-gran-per-chapterp2o-plan-paperp2o-v1scheduling

Fix a job-shop instance with nnn tasks and MMM machines, and suppose that every machine is required by exactly ppp tasks. Then

n=Mpandm=∣C∣=M⋅p(p−1)2,n=Mp\qquad\text{and}\qquad m=|\mathcal C|=M\cdot\frac{p(p-1)}{2},n=Mpandm=∣C∣=M⋅2p(p−1)​,

where C\mathcal CC is the set of conflicting pairs (j,k)(j,k)(j,k), j<kj<kj<k, of tasks on the same machine. Since the integer program has one variable xjx_jxj​ per task and one yjky_{jk}yjk​ per conflicting pair, it has n+mn+mn+m integer unknowns; for M=5M=5M=5 and p=10p=10p=10 this is 50+225=27550+225=27550+225=275, the count on p. 222.

This measures the size of Manne's formulation, which he compares with other proposals of the time.

Formalization Note Natural-number division p(p−1)/2p(p-1)/2p(p−1)/2 is exact because p(p−1)p(p-1)p(p−1) is even, and the expression is 000 for p=0p=0p=0. The numerical instance 275275275 is given here in prose only; the statement is the general count.

Preamble
import Mathlib
import Definitions.Def_ManneJobShop_Formulation_Model
Formal statement
namespace ManneJobShop.Formulation

/-- Manne (1960), pp. 221–222: if every one of the `M` machines carries exactly `p` tasks, then
there are `n = M p` tasks and `m = M · p(p - 1)/2` conflicting pairs, i.e. `n + m` unknowns
`x_j, y_jk` (for 5 machines and 10 tasks each: 50 + 225 = 275). -/
theorem card_conflicts_uniform {n : ℕ} (I : Instance n) (p : ℕ)
    (hp : ∀ i : Fin I.M, (Finset.univ.filter (fun j : Fin n => I.mach j = i)).card = p) :
    n = I.M * p ∧ (conflicts I).card = I.M * (p * (p - 1) / 2) := by sorry

end ManneJobShop.Formulation
Source
Manne, On the Job-Shop Scheduling Problem, Operations Research 8 (1960), pp. 221–222, Computational Aspects, "If, then, there are n tasks and if also there are m possible conflicting pairs of machine assignments"
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