Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Disjoint-copies Set Cover construction (nnn disjoint copies of III)

Definition
SyncPrefix_Huffman_DisjointCopies

by kmehltretter82 · Oct 27, 2026 · Mathlib 0df444a (Lean v4.33.1)

inapproximabilityset-cover

Given a Set Cover instance I=([n],S)I = ([n], \mathcal{S})I=([n],S) with universe [n]={0,…,n−1}[n] = \{0, \dots, n-1\}[n]={0,…,n−1} and family of subsets S=(S1,…,Sm)\mathcal{S} = (S_1, \dots, S_m)S=(S1​,…,Sm​), we define the nnn-fold disjoint-copies Set Cover instance I′=scDisjointCopies(I)I' = \mathrm{scDisjointCopies}(I)I′=scDisjointCopies(I) as follows.

  1. For each copy index r∈[n]r \in [n]r∈[n] and point x∈[n]x \in [n]x∈[n], the point embedding scCopyPoint(n,r,x)∈[n2]\mathrm{scCopyPoint}(n, r, x) \in [n^2]scCopyPoint(n,r,x)∈[n2] maps (r,x)(r, x)(r,x) to rn+xr n + xrn+x.
  2. For each copy index r∈[n]r \in [n]r∈[n] and subset S⊆[n]S \subseteq [n]S⊆[n], the lifted subset is
scCopySet(n,r,S)={rn+x:x∈S}⊆[n2].\mathrm{scCopySet}(n, r, S) = \{ r n + x : x \in S \} \subseteq [n^2].scCopySet(n,r,S)={rn+x:x∈S}⊆[n2].
  1. The duplicated Set Cover instance scDisjointCopies(I)\mathrm{scDisjointCopies}(I)scDisjointCopies(I) has universe size n2n^2n2 and consists of the nmn mnm subsets scCopySet(n,r,Si)\mathrm{scCopySet}(n, r, S_i)scCopySet(n,r,Si​) for r∈[n]r \in [n]r∈[n] and i∈[m]i \in [m]i∈[m].

This construction is used in the padding reduction before Corollary 8 to boost the minimum set cover size of III by an exact factor of nnn 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)

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me