AFTD Auto-Formalizing Theoretical Domains

is_feasible_parallel_schedule

def

A schedule on m identical parallel machines with machine assignment M : Fin n → Fin m and completion times C : Fin n → ℝ is feasible for processing times p : Fin n → ℝ if every job j starts at or after time 0 (so p j ≤ C j) and any two distinct jobs j ≠ k assigned to the same machine do not overlap in time (either C j ≤ C k - p k or C k ≤ C j - p j).

Statement

def is_feasible_parallel_schedule (m : ℕ) {n : ℕ} (p : Fin n → ℝ) (M : Fin n → Fin m) (C : Fin n → ℝ) : Prop
Defined in
arXiv:2611.30731, Section 1, p. 3
Verified
29 Nov 2026
Axioms
none listed
Used by 1

Read back from the Lean

The predicate is_feasible_parallel_schedule m p M C, for $m : ℕ$, an implicit $n : ℕ$, processing times $p : \text{Fin } n \to ℝ$, machine assignments $M : \text{Fin } n \to \text{Fin } m$, and completion times $C : \text{Fin } n \to ℝ$, asserts that: 1. For all jobs $j : \text{Fin } n$, $p(j) \le C(j)$ (every job completes after at least its processing duration, i.e., start time $C(j) - p(j) \ge 0$); and 2. For all pairs of jobs $j, k : \text{Fin } n$, if $j \ne k$ and both jobs are assigned to the same machine ($M(j) = M(k)$), then either job $j$ finishes before job $k$ starts ($C(j) \le C(k) - p(k)$) or job $k$ finishes before job $j$ starts ($C(k) \le C(j) - p(j)$).

Written by a model that saw only the Lean, never the English above. If the two disagree, that is worth a challenge.

Lean source view module on GitHub

/-- Feasibility of a non-preemptive schedule on m identical parallel machines. -/
def is_feasible_parallel_schedule (m : ℕ) {n : ℕ} (p : Fin n → ℝ) (M : Fin n → Fin m) (C : Fin n → ℝ) : Prop := (∀ j, p j ≤ C j) ∧
  (∀ j k, j ≠ k → M j = M k → C j ≤ C k - p k ∨ C k ≤ C j - p j)
See it in the graphDiscuss this resultChallenge it