Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Input test (3.123) — an activity that must be scheduled first in Ω ∪ {i}

Proved
ComplexScheduling.input_test

by naimengye · Sep 23, 2026 · Mathlib 0df444a (Lean v4.33.1)

combinatoricsconstraint-propagationoperations-researchoptimizationscheduling

Consider an RCPSP instance with conjunction set CCC, disjunction set DDD and time windows [ri,di][r_i,d_i][ri​,di​], let III be a disjunctive set for (C,D)(C,D)(C,D) whose activities have positive processing times, let Ω⊆I\Omega\subseteq IΩ⊆I be nonempty and let i∈I∖Ωi\in I\setminus\Omegai∈I∖Ω. If

max⁡μ∈Ω∪{i}dμ  −  min⁡ν∈Ωrν  <  P(Ω)+pi,\max_{\mu\in\Omega\cup\{i\}}d_\mu\;-\;\min_{\nu\in\Omega}r_\nu\;<\;P(\Omega)+p_i ,μ∈Ω∪{i}max​dμ​−ν∈Ωmin​rν​<P(Ω)+pi​,

then in every feasible schedule — feasible for the RCPSP, satisfying CCC and DDD, within the windows — activity iii is processed before every activity of Ω\OmegaΩ: Si+pi≤SjS_i+p_i\le S_jSi​+pi​≤Sj​ for all j∈Ωj\in\Omegaj∈Ω. In the book's notation, i→Ωi\to\Omegai→Ω: iii is an input of Ω∪{i}\Omega\cup\{i\}Ω∪{i}.

This is the input test, the instance J′={i}J'=\{i\}J′={i}, J′′=∅J''=\emptysetJ′′=∅ of Theorem 3.7. If some ν∈Ω\nu\in\Omegaν∈Ω started first, all of Ω∪{i}\Omega\cup\{i\}Ω∪{i} would have to fit between rνr_\nurν​ and the largest deadline, an interval too short for P(Ω)+piP(\Omega)+p_iP(Ω)+pi​; so iii starts first, and since it cannot overlap any j∈Ωj\in\Omegaj∈Ω, it finishes before jjj starts.

Formalization Note The condition is the family dμ<rν+P(Ω∪{i})d_\mu<r_\nu+P(\Omega\cup\{i\})dμ​<rν​+P(Ω∪{i}) over μ∈Ω∪{i}\mu\in\Omega\cup\{i\}μ∈Ω∪{i}, ν∈Ω\nu\in\Omegaν∈Ω, with P(Ω∪{i})=P(Ω)+piP(\Omega\cup\{i\})=P(\Omega)+p_iP(Ω∪{i})=P(Ω)+pi​ as i∉Ωi\notin\Omegai∈/Ω. Positive processing times on III are needed for the conclusion i→ji\to ji→j: with pj=0p_j=0pj​=0 an activity jjj could start at the same instant as iii without violating the disjunction. The book takes positive durations for granted in this section, and this is the hypothesis that turns "starts first" into a conjunction.

Preamble
import Definitions.Def_ComplexScheduling_RCPSP
import Definitions.Def_ComplexScheduling_JobShop
import Definitions.Def_ComplexScheduling_ConstraintPropagation
Formal statement
namespace ComplexScheduling
theorem input_test {n r : ℕ} (p : Fin n → ℕ) (Rcap : Fin r → ℕ)
    (demand : Fin n → Fin r → ℕ) (prec C D : Finset (Fin n × Fin n)) (rel dl : Fin n → ℕ)
    (I : Finset (Fin n)) (hI : IsDisjunctiveSet C D I) (hp : ∀ i ∈ I, 0 < p i)
    (Ω : Finset (Fin n)) (hΩ : Ω ⊆ I) (hne : Ω.Nonempty) (i : Fin n) (hi : i ∈ I) (hiΩ : i ∉ Ω)
    (hcond : ∀ μ ∈ insert i Ω, ∀ ν ∈ Ω, dl μ < rel ν + totalProcessing p (insert i Ω))
    (S : Fin n → ℕ) (hS : FeasibleSchedule p Rcap demand prec S) (hC : RespectsArcs p C S)
    (hD : SatisfiesDisjunctions p D S) (hw : WithinWindows rel dl p S) :
    ∀ j ∈ Ω, S i + p i ≤ S j := by sorry
end ComplexScheduling
Source
Peter Brucker and Sigrid Knust, Complex Scheduling, 2nd ed., Springer 2012, https://doi.org/10.1007/978-3-642-23929-8 — Section 3.6.4, printed p. 170 (PDF p. 180), the input test, and printed p. 171 (PDF p. 181), implication (3.123): "max_{μ∈Ω∪{i}} d_μ − min_{ν∈Ω} r_ν < P(Ω) + p_i ⇒ i → Ω, i.e. i has to be scheduled first in Ω ∪ {i}. ... In the case (3.123) we may introduce the additional conjunctions i → j for all j ∈ Ω."
Human review
  • Endorsed by Shuze Chen · Sep 25, 2026

    Confirmed by the moderator at approval.

  • Endorsed by naimengye · Sep 25, 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