Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

§2.5.2, Eq. (2.5.7) — valid temporal constraint from an unresolved two-element forbidden set

Proved
ProjSchedTW.DelayingModes.two_element_forbidden_set_valid_inequality

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

p2o-batch-b23bp2o-gran-per-chapterp2o-plan-bookp2o-v1preprocessingproject-schedulingtime-windows

Let UB∈ZUB\in\mathbb ZUB∈Z and let dijd_{ij}dij​ be the longest path lengths in N+N^+N+ with δn+1,0=−UB\delta_{n+1,0}=-UBδn+1,0​=−UB. Let {i,j}\{i,j\}{i,j} be a two-element forbidden set (i≠ji\ne ji=j, rik+rjk>Rkr_{ik}+r_{jk}>R_krik​+rjk​>Rk​ for some kkk) for which neither dij>−pjd_{ij}>-p_jdij​>−pj​ nor dji>−pid_{ji}>-p_idji​>−pi​ holds. Then for all activities h,l∈Vh,l\in Vh,l∈V and every feasible schedule SSS with Sn+1≤UBS_{n+1}\le UBSn+1​≤UB,

Sl ≥ Sh+min⁡(dhi+pi+djl, dhj+pj+dil).(2.5.7)S_l\ \ge\ S_h+\min\bigl(d_{hi}+p_i+d_{jl},\ d_{hj}+p_j+d_{il}\bigr).\qquad(2.5.7)Sl​ ≥ Sh​+min(dhi​+pi​+djl​, dhj​+pj​+dil​).(2.5.7)

Although neither order of iii and jjj is forced, one of them must precede the other in every feasible schedule; the inequality combines both possibilities into a single temporal constraint, which preprocessing adds as a new arc ⟨h,l⟩\langle h,l\rangle⟨h,l⟩ of N+N^+N+ whenever it is stronger than dhld_{hl}dhl​.

Formalization Note. Distances take values in WithBot ℝ with ⊥ for −∞-\infty−∞; a term containing −∞-\infty−∞ is −∞-\infty−∞, and then the inequality is trivially satisfied, as in the book's convention. The hypothesis "neither dij>−pjd_{ij}>-p_jdij​>−pj​ nor dji>−pid_{ji}>-p_idji​>−pi​" is the case in which the page states the inequality. The standing assumptions of the model are hypotheses.

Preamble
import Mathlib
import Definitions.Def_ProjSchedTW_DelayingModes_Project
import Definitions.Def_ProjSchedTW_DelayingModes_Distance
Formal statement
namespace ProjSchedTW.DelayingModes

theorem two_element_forbidden_set_valid_inequality {n : ℕ} {K : Type} [Fintype K]
    (P : Project n K) (hP : P.StandingAssumptions) (UB : ℤ) (i j : Fin (n + 2)) (hij : i ≠ j)
    (hF : P.IsForbidden {i, j})
    (hij_not : ¬ (((-(P.p j : ℝ) : ℝ) : WithBot ℝ) < P.distPlus UB i j))
    (hji_not : ¬ (((-(P.p i : ℝ) : ℝ) : WithBot ℝ) < P.distPlus UB j i))
    (S : Fin (n + 2) → ℝ) (hS : P.IsFeasible S) (hUB : S (Fin.last (n + 1)) ≤ UB)
    (h l : Fin (n + 2)) :
    min (P.distPlus UB h i + ((P.p i : ℝ) : WithBot ℝ) + P.distPlus UB j l)
        (P.distPlus UB h j + ((P.p j : ℝ) : WithBot ℝ) + P.distPlus UB i l)
      ≤ ((S l - S h : ℝ) : WithBot ℝ) := by sorry

end ProjSchedTW.DelayingModes
Source
Neumann, Schwindt & Zimmermann, Project Scheduling with Time Windows and Scarce Resources, 2nd ed., Springer 2003, p. 55, §2.5.2, Eq. (2.5.7)
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 paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me