Best copy of an optimal independent set of the union of masked graphs
ProvedWilliamsonShmoys.baker_union_output_boundbakercombinatoricsindependent-set
This is the combinatorial core of extracting Baker's answer from one solver call on the disjoint union of the masked graphs.
Let be a graph on with levels , and let . Let be the graph on in which iff and . Give the weight if and otherwise. Let be a maximum- independent set of , and let be a copy maximising . Put
Then is independent in . Moreover, for every and every independent set of the masked graph ,
So the single call produces a solution at least as good as the best of the shifted solutions, as Baker's shifting argument requires.
Formalization Note. is written as SimpleGraph.fromRel (fun u v => G.Adj u v ∧ lvl u % k ≠ j ∧ lvl v % k ≠ j). Sums over use the masked weight.
Preamble
import Mathlib set_option autoImplicit false open Classical
Formal statement
theorem WilliamsonShmoys.baker_union_output_bound {n : ℕ} (G : SimpleGraph (Fin n)) (lvl : Fin n → ℕ) (k : ℕ) (weight : Fin n → ℝ)
(A : Finset (Fin k × Fin n))
(hA : (SimpleGraph.fromRel (fun (x y : Fin k × Fin n) => x.1 = y.1 ∧ G.Adj x.2 y.2 ∧
lvl x.2 % k ≠ x.1.val ∧ lvl y.2 % k ≠ x.1.val)).IsIndepSet (A : Set (Fin k × Fin n)))
(hopt : ∀ S : Finset (Fin k × Fin n),
(SimpleGraph.fromRel (fun (x y : Fin k × Fin n) => x.1 = y.1 ∧ G.Adj x.2 y.2 ∧
lvl x.2 % k ≠ x.1.val ∧ lvl y.2 % k ≠ x.1.val)).IsIndepSet (S : Set (Fin k × Fin n)) →
∑ x ∈ S, (if lvl x.2 % k ≠ x.1.val then weight x.2 else 0) ≤
∑ x ∈ A, (if lvl x.2 % k ≠ x.1.val then weight x.2 else 0))
(cs : Fin k)
(hbest : ∀ c : Fin k, ∑ x ∈ A.filter (fun x => x.1 = c), (if lvl x.2 % k ≠ x.1.val then weight x.2 else 0) ≤
∑ x ∈ A.filter (fun x => x.1 = cs), (if lvl x.2 % k ≠ x.1.val then weight x.2 else 0)) :
G.IsIndepSet ((Finset.univ.filter (fun v => (cs, v) ∈ A ∧ lvl v % k ≠ cs.val) : Finset (Fin n)) : Set (Fin n)) ∧
∀ j < k, ∀ S : Finset (Fin n),
(SimpleGraph.fromRel (fun u v => G.Adj u v ∧ lvl u % k ≠ j ∧ lvl v % k ≠ j)).IsIndepSet (S : Set (Fin n)) →
∑ i ∈ S, (if lvl i % k ≠ j then weight i else 0) ≤
∑ i ∈ Finset.univ.filter (fun v => (cs, v) ∈ A ∧ lvl v % k ≠ cs.val), weight i := by sorrySource
Williamson–Shmoys, The Design of Approximation Algorithms, Sect. 10.2 (shifting technique)