p. 67, (III) ⟺ (IV) — interchanging adjacent items
ProvedJohnsonFlowShop.ThreeStage.interchange_iffflow-shopjohnson-rulep2o-batch-p200bp2o-gran-per-chapterp2o-plan-paperp2o-v1scheduling
Let be real numbers and an ordering of the items. Let and be adjacent positions and let be with the items in these two positions interchanged; write for the quantities of . Then
- and for every position ;
- relation (III),
holds if and only if relation (IV) holds for the items and :
Relation (III) says that, in the special case , keeping the -th item before the -st gives a strictly smaller elapsed time than interchanging them; (IV) is the same condition in terms of the two items alone.
Formalization Note The equivalence is pure algebra and is stated for arbitrary real times, without positivity and without the special-case hypothesis; this is stronger than what the page needs. Positions are 0-based (k = j + 1), and .
Preamble
import Mathlib import Definitions.Def_JohnsonFlowShop_Shared_K import Definitions.Def_JohnsonFlowShop_ThreeStage_H
Formal statement
namespace JohnsonFlowShop.ThreeStage
/-- p. 67, (III) ⟺ (IV): let `σ'` be the order `σ` with the items in the adjacent positions
`j` and `k = j + 1` interchanged. Then `H` and `K` are unchanged at every other position, and
`max (H_k + K_k, H_j + K_j) < max (H'_k + K'_k, H'_j + K'_j)` (relation (III)) holds if and
only if `min (A_{σ j} + B_{σ j}, C_{σ k} + B_{σ k}) < min (A_{σ k} + B_{σ k}, C_{σ j} + B_{σ j})`
(relation (IV)). This holds for arbitrary real processing times. -/
theorem interchange_iff {n : ℕ} (A B C : Fin n → ℝ) (σ : Equiv.Perm (Fin n))
(j k : Fin n) (hjk : k.val = j.val + 1) :
let σ' := σ * Equiv.swap j k
(∀ v : Fin n, v ≠ j → v ≠ k → H B C σ' v = H B C σ v ∧ Shared.K A B σ' v = Shared.K A B σ v) ∧
(max (H B C σ k + Shared.K A B σ k) (H B C σ j + Shared.K A B σ j) <
max (H B C σ' k + Shared.K A B σ' k) (H B C σ' j + Shared.K A B σ' j) ↔
min (A (σ j) + B (σ j)) (C (σ k) + B (σ k)) <
min (A (σ k) + B (σ k)) (C (σ j) + B (σ j))) := by sorry
end JohnsonFlowShop.ThreeStage
Source
Johnson, Optimal Two- and Three-Stage Production Schedules with Setup Times Included, NRLQ 1(1) 1954, p. 67, Special case where min A_i ≥ max B_j, relations (III) and (IV); p. 66 ("the H's and K's are unchanged except possibly those with subscripts j and j+1")
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.