A higher-priority exchange improves the first differing slot
ProvedFixedMachinePrec.priority_exchange_decreases_encodingSuppose two full schedules of the same jobs agree through slot . Swapping a job in slot of the second with a later job of strictly higher priority yields an encoding lexicographically smaller than that of the first schedule, irrespective of the suffix or whether the exchange is feasible.
Preamble
import Mathlib import Definitions.Def_FixedMachinePrec_Separator
Formal statement
namespace FixedMachinePrec
theorem priority_exchange_decreases_encoding {N : ℕ} (m : ℕ) (prec : Fin N → Fin N → Prop) [DecidableRel prec] (U : Finset (Fin N)) (pri : List (Fin N)) (hp : IsPriorityList prec U pri)
(Zs ρ : List (Finset (Fin N))) (hZ : IsFullSchedule prec m U Zs) (hρ : IsFullSchedule prec m U ρ)
(r : ℕ) (hr : 1 ≤ r) (hb : r ≤ Zs.length) (he : ρ.take r = Zs.take r)
(x y : Fin N) (hy : y ∈ ρ.getD (r-1) ∅) (hx : x ∈ U) (hl : r < localTime ρ x)
(hprio : pri.idxOf x < pri.idxOf y) : priEnc pri (swapJobs ρ x y) < priEnc pri Zs := by sorry
end FixedMachinePrecSource
Auxiliary result for K. Jansen, Precedence Constraint Scheduling on a Fixed Number of Machines, 1 November 2026, Lemma 7.1, pp. 30–32.