Suffix carry and child pruning preserve the required key comparisons
ProvedFixedMachinePrec.carry_and_prune_keysFor an ordered list of qualifier sets, compare jobs by their last membership position, breaking ties by rank. A suffix carry with a rank restriction on its first retained entry selects precisely the eligible suffix, preserving key comparisons on survivors. Pruning entries disjoint from a child preserves qualification on the child and reflects each strict comparison with a qualifying interior job on the left, even when the right job is exterior. The formal statement measures last positions by searching the reversed list.
Preamble
import Mathlib
Formal statement
namespace FixedMachinePrec
theorem carry_and_prune_keys {N : ℕ} (rank : Fin N → ℕ) (V : Finset (Fin N)) (front tail K : List (Finset (Fin N))) (A : Finset (Fin N)) (r : ℕ) :
let idx := fun (l : List (Finset (Fin N))) (x : Fin N) => l.reverse.findIdx (fun B => decide (x ∈ B))
let qualifies := fun (l : List (Finset (Fin N))) (x : Fin N) => ∃ B ∈ l, x ∈ B
let earlier := fun (l : List (Finset (Fin N))) x y => idx l y < idx l x ∨ idx l x = idx l y ∧ rank x < rank y
let orig := front ++ A :: tail
let carried := (A.filter fun x => r ≤ rank x) :: tail
let pruned := K.filter fun B => (B ∩ V).Nonempty
(∀ x, qualifies carried x ↔ qualifies orig x ∧ (idx orig x < tail.length ∨ idx orig x = tail.length ∧ r ≤ rank x)) ∧
(∀ x, qualifies carried x → idx carried x = idx orig x) ∧
(∀ x ∈ V, qualifies pruned x ↔ qualifies K x) ∧
(∀ x ∈ V, ∀ y, qualifies pruned x → qualifies pruned y → earlier pruned x y → earlier K x y) := by sorry
end FixedMachinePrec
Source
K. Jansen, Precedence Constraint Scheduling on a Fixed Number of Machines, arXiv:2611.09392v1, §7, lemma “Carry and pruning comparisons”.