Disjoint-copies Set Cover construction ( disjoint copies of )
DefinitionSyncPrefix_Huffman_DisjointCopiesinapproximabilityset-cover
Given a Set Cover instance with universe and family of subsets , we define the -fold disjoint-copies Set Cover instance as follows.
- For each copy index and point , the point embedding maps to .
- For each copy index and subset , the lifted subset is
- The duplicated Set Cover instance has universe size and consists of the subsets for and .
This construction is used in the padding reduction before Corollary 8 to boost the minimum set cover size of by an exact factor of while squaring the universe size.
Formalization Note Points are represented in Fin (I.n ^ 2) and the family of sets is built via (List.finRange I.n).flatMap (fun r => I.sets.map (scCopySet I.n r)).
Definition code
import Mathlib.Data.List.FinRange
import Definitions.Def_SetCoverThreshold_SetCover_Instance
namespace SyncPrefix.Huffman
open SetCoverThreshold.SetCover
/-- Embedding of the `r`-th copy of point `x : Fin n` into `Fin (n ^ 2)` via `r * n + x`. -/
def scCopyPoint (n : ℕ) (r x : Fin n) : Fin (n ^ 2) :=
⟨r.val * n + x.val, by
have hr := r.isLt
have hx := x.isLt
nlinarith⟩
/-- The copy of a subset `S ⊆ Fin n` in the `r`-th disjoint copy of the universe `Fin (n ^ 2)`. -/
def scCopySet (n : ℕ) (r : Fin n) (S : Finset (Fin n)) : Finset (Fin (n ^ 2)) :=
S.image (scCopyPoint n r)
/-- The Set Cover instance formed by taking `I.n` disjoint copies of `I` (p. 9, proof of the
padding lemma before Corollary 8): `I.n ^ 2` points and `I.n * I.sets.length` sets. -/
def scDisjointCopies (I : SCInstance) : SCInstance where
n := I.n ^ 2
sets := (List.finRange I.n).flatMap fun r => I.sets.map (scCopySet I.n r)
end SyncPrefix.Huffman
Source
Ryzhikov & Szykuła, Finding Short Synchronizing Words for Prefix Codes, arXiv:1806.06299v1, p. 8, proof of Corollary 8 (Set Cover padding)