Optimal independent sets of a disjoint union are optimal in each copy
ProvedWilliamsonShmoys.indepSet_disjoint_union_splitLet be graphs on , let be their disjoint union on , and let be a real weight function on the vertices of . Let be an independent set of of maximum weight among all independent sets of . Then, for every copy and every independent set of ,
In words, the part of an optimal independent set of a disjoint union that lies in one copy is optimal for that copy. This lets one call of an exact maximum-weight-independent-set solver, run on the disjoint union of instances, give optimal answers for all instances at once. That is the basis of the single-call RAM implementation of Baker's shifting technique.
Formalization Note. is SimpleGraph.fromRel (fun u v => u.1 = v.1 ∧ (H u.1).Adj u.2 v.2) on Fin m × Fin n. Weights are arbitrary reals; no sign assumption is needed.
import Mathlib set_option autoImplicit false open scoped BigOperators
theorem WilliamsonShmoys.indepSet_disjoint_union_split {m n : ℕ} (H : Fin m → SimpleGraph (Fin n)) (w : Fin m × Fin n → ℝ)
(A : Finset (Fin m × Fin n))
(hA : (SimpleGraph.fromRel (fun (u v : Fin m × Fin n) => u.1 = v.1 ∧ (H u.1).Adj u.2 v.2)).IsIndepSet
(A : Set (Fin m × Fin n)))
(hopt : ∀ S : Finset (Fin m × Fin n),
(SimpleGraph.fromRel (fun (u v : Fin m × Fin n) => u.1 = v.1 ∧ (H u.1).Adj u.2 v.2)).IsIndepSet
(S : Set (Fin m × Fin n)) →
∑ x ∈ S, w x ≤ ∑ x ∈ A, w x)
(j : Fin m) (S : Finset (Fin n)) (hS : (H j).IsIndepSet (S : Set (Fin n))) :
∑ a ∈ S, w (j, a) ≤ ∑ x ∈ A.filter (fun x => x.1 = j), w x := by sorry