Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Lemma 1 — the order on either machine can be made the same as on the other without loss of time

Proved
JohnsonFlowShop.TwoStage.same_order_without_loss

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

flow-shopp2o-batch-p200bp2o-gran-per-chapterp2o-plan-paperp2o-v1scheduling

Let nnn items have positive processing times Ai>0A_i > 0Ai​>0 on machine 1 and Bi>0B_i > 0Bi​>0 on machine 2, and let (s1,s2)(s^1, s^2)(s1,s2) be any feasible two-machine schedule (start times on each machine; see IsFeasible). Then there are an order σ\sigmaσ of the items and a feasible schedule (t1,t2)(t^1, t^2)(t1,t2) that processes the items in the order σ\sigmaσ on both machines and whose total elapsed time is no larger:

T(t)≤T(s).T(t) \le T(s).T(t)≤T(s).

This is Johnson's Lemma 1: "The production sequence on either machine can be made the same as that of the other machine without loss of time." It reduces the minimization over all feasible schedules to a minimization over a single common order, which is the first step of the proof of Theorem 1.

Formalization Note TTT is the total elapsed time makespan, the latest completion time on machine 2. The comparison is against an arbitrary feasible schedule, whose two machines may process the items in different orders.

Preamble
import Mathlib
import Definitions.Def_JohnsonFlowShop_TwoStage_IsFeasible
import Definitions.Def_JohnsonFlowShop_Shared_makespan
import Definitions.Def_JohnsonFlowShop_TwoStage_FollowsOrder
Formal statement
namespace JohnsonFlowShop.TwoStage

/-- Lemma 1 (Johnson 1954, p. 61): every feasible two-machine schedule can be replaced, without
increasing the total elapsed time, by a feasible schedule that processes the items in one
common order `σ` on both machines. -/
theorem same_order_without_loss {n : ℕ} (A B : Fin n → ℝ)
    (hA : ∀ i, 0 < A i) (hB : ∀ i, 0 < B i)
    (s₁ s₂ : Fin n → ℝ) (hs : IsFeasible A B s₁ s₂) :
    ∃ (σ : Equiv.Perm (Fin n)) (t₁ t₂ : Fin n → ℝ),
      IsFeasible A B t₁ t₂ ∧ FollowsOrder A B t₁ t₂ σ ∧ Shared.makespan B t₂ ≤ Shared.makespan B s₂ := by sorry

end JohnsonFlowShop.TwoStage
Source
Johnson, Optimal Two- and Three-Stage Production Schedules with Setup Times Included, NRLQ 1(1) 1954, p. 61, Lemma 1 (proof p. 62)
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