Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Lemma 2 — relation (II) is transitive except when item 2 is indifferent to both 1 and 3

Proved
JohnsonFlowShop.TwoStage.lemma2_transitive

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

flow-shopjohnson-rulep2o-batch-p200bp2o-gran-per-chapterp2o-plan-paperp2o-v1scheduling

Let A1,B1,A2,B2,A3,B3A_1, B_1, A_2, B_2, A_3, B_3A1​,B1​,A2​,B2​,A3​,B3​ be real numbers (the processing times of three items on the two machines). Suppose

min⁡(A1,B2)≤min⁡(A2,B1)andmin⁡(A2,B3)≤min⁡(A3,B2).\min(A_1, B_2) \le \min(A_2, B_1) \quad\text{and}\quad \min(A_2, B_3) \le \min(A_3, B_2).min(A1​,B2​)≤min(A2​,B1​)andmin(A2​,B3​)≤min(A3​,B2​).

Then

min⁡(A1,B3)≤min⁡(A3,B1),\min(A_1, B_3) \le \min(A_3, B_1),min(A1​,B3​)≤min(A3​,B1​),

or else item 2 is indifferent to both items 1 and 3, that is, min⁡(A1,B2)=min⁡(A2,B1)\min(A_1, B_2) = \min(A_2, B_1)min(A1​,B2​)=min(A2​,B1​) and min⁡(A2,B3)=min⁡(A3,B2)\min(A_2, B_3) = \min(A_3, B_2)min(A2​,B3​)=min(A3​,B2​).

This is Johnson's Lemma 2, "Relation (II) is transitive", with its stated exception. It is what makes an order consistent with all definite preferences exist. The exception is needed: (Ai,Bi)=(5,2),(1,1),(2,5)(A_i, B_i) = (5,2), (1,1), (2,5)(Ai​,Bi​)=(5,2),(1,1),(2,5) satisfies both hypotheses, but min⁡(5,5)≤min⁡(2,2)\min(5,5) \le \min(2,2)min(5,5)≤min(2,2) fails.

Formalization Note The statement is pure min-algebra and needs no positivity.

Preamble
import Mathlib
Formal statement
namespace JohnsonFlowShop.TwoStage

/-- Lemma 2 (p. 64): relation (II) is transitive, except possibly when item 2 is indifferent to
both items 1 and 3. For real numbers (no positivity needed): if
`min A₁ B₂ ≤ min A₂ B₁` and `min A₂ B₃ ≤ min A₃ B₂`, then `min A₁ B₃ ≤ min A₃ B₁`, or
`min A₁ B₂ = min A₂ B₁` and `min A₂ B₃ = min A₃ B₂`. -/
theorem lemma2_transitive (A₁ B₁ A₂ B₂ A₃ B₃ : ℝ)
    (h₁₂ : min A₁ B₂ ≤ min A₂ B₁) (h₂₃ : min A₂ B₃ ≤ min A₃ B₂) :
    min A₁ B₃ ≤ min A₃ B₁ ∨ (min A₁ B₂ = min A₂ B₁ ∧ min A₂ B₃ = min A₃ B₂) := by sorry

end JohnsonFlowShop.TwoStage
Source
Johnson, Optimal Two- and Three-Stage Production Schedules with Setup Times Included, NRLQ 1(1) 1954, p. 64, Lemma 2
Human review
  • Endorsed by Shuze Chen · Oct 1, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 1, 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 paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me