Prove2Me
Navigate
DiscoverFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

§2, proof of the Theorem, p. 544 — moving a job of SSS to the end keeps the precedence constraints

Proved
LawlerPrec.MinMax.move_last_feasible

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

p2o-batch-pfp1ap2o-gran-per-chapterp2o-plan-paperp2o-v1precedence-constraintsschedulingsingle-machine

Let π′\pi'π′ be a sequence of the job set JJJ that observes the precedence constraints, and let k∈S(J)k \in S(J)k∈S(J) be a job that is not required to precede any other job of JJJ. Let π\piπ be obtained from π′\pi'π′ by removing kkk and appending it at the end. Then

π′ observes the precedence constraints  ⟹  π observes them.\pi' \text{ observes the precedence constraints} \;\Longrightarrow\; \pi \text{ observes them.}π′ observes the precedence constraints⟹π observes them.

In Lawler's proof π′=(A,k,B,k′)\pi' = (A, k, B, k')π′=(A,k,B,k′) and π=(A,B,k′,k)\pi = (A, B, k', k)π=(A,B,k′,k); this is the first of the three steps showing that moving kkk to the last position never hurts.

Formalization Note π\piπ is written l.erase k ++ [k] for π′=\pi' =π′= l, which is the page's (A,B,k′,k)(A, B, k', k)(A,B,k′,k) whenever l = A ++ [k] ++ B ++ [k'], and covers also the case where kkk is already last.

Preamble
import Mathlib
import Definitions.Def_LawlerPrec_MinMax_IsFeasible
import Definitions.Def_LawlerPrec_MinMax_lastEligible
Formal statement
namespace LawlerPrec.MinMax

/-- §2, proof of the Theorem, p. 544, third paragraph: moving a job `k ∈ S` to the last position
of a sequence `π′ = l` that observes the precedence constraints gives a sequence
`π = l.erase k ++ [k]` that observes them too. When `l = A ++ [k] ++ B ++ [k′]` this `π` is the
page's `A ++ B ++ [k′] ++ [k]`. -/
theorem move_last_feasible {ι : Type*} [DecidableEq ι] (prec : ι → ι → Prop) (J : Finset ι)
    (l : List ι) (k : ι) (hl : IsFeasible prec J l) (hk : k ∈ lastEligible prec J) :
    IsFeasible prec J (l.erase k ++ [k]) := by sorry

end LawlerPrec.MinMax
Source
Lawler, Optimal Sequencing of a Single Machine Subject to Precedence Constraints, Management Science 19(5), 1973, p. 544, §2 Sequencing Theorem, PROOF, third paragraph
Human review
  • Endorsed by Shuze Chen · Oct 5, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 5, 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