Documentation

CslibFrontier.Computability.PCP.Approximation.SetCover.PartitionGadget

Partition gadgets for Set Cover hardness #

A partition gadget ([LY94b]; [Fei98]) over a finite alphabet γ is a finite universe of points 0, …, size - 1 together with subsets S_b = {x | mem x b = true} indexed by b : γ. The gadget separates up to t labels (PartitionGadget.Separates) when every pair of disjoint subsets P, Q : Finset γ with P.card + Q.card ≤ t admits an element x < size inside every S_b (b ∈ P) and outside every S_b (b ∈ Q).

Consequently, if small subcollections A' : Finset β of complements {x | mem x (π a) = false} and B' : Finset γ of {x | mem x b = true} with A'.card + B'.card ≤ t cover the entire gadget universe, then A'.image π and B' must intersect (PartitionGadget.exists_eq_of_covers).

We provide two gadgets:

Main definitions #

Main results #

References #

Primary texts uninspected (bibliographic metadata checked via search records only; locators unverified and no numbered paper theorems are claimed). The explicit PartitionGadget structure, boolCubeGadget, and the exists_cover_of_density-derived size bound in exists_small_partitionGadget are this library's formulation.

A partition gadget over label alphabet γ: a ground range [0, size) and membership bit mem x b deciding whether element x lies in the right-hand set of b.

  • size : ℕ

    Number of elements in the gadget universe [0, size).

  • mem : ℕ → γ → Bool

    Membership predicate: mem x b = true puts x in S_b (and false puts x in its complement).

G separates up to t labels when every disjoint pair (P, Q) of total size at most t is separated by some element x < G.size.

theorem Cslib.PCP.PartitionGadget.exists_eq_of_covers {β γ : Type} {G : PartitionGadget γ} {t : ℕ} (hsep : G.Separates t) (π : β → γ) (A' : Finset β) (B' : Finset γ) (hcard : A'.card + B'.card ≤ t) (hcov : ∀ x < G.size, (∃ a ∈ A', G.mem x (π a) = false) ∨ ∃ b ∈ B', G.mem x b = true) :
∃ a ∈ A', ∃ b ∈ B', π a = b

Anti-cover property: if A' ⊆ β (whose sets are the complements of π a) and B' ⊆ γ together cover [0, G.size) and have A'.card + B'.card ≤ t, then π(A') meets B'.

Explicit Boolean-cube gadget #

noncomputable def Cslib.PCP.boolCubeGadget (γ : Type) [Fintype γ] :

The explicit Boolean-cube partition gadget on γ: universe size 2 ^ Fintype.card γ, where element x lies in S_b when bit (Fintype.equivFin γ b) of x is set.

The Boolean-cube partition gadget separates disjoint label sets of arbitrary finite size.

Small logarithmic-alphabet partition gadget via FiniteCover #

theorem Cslib.PCP.exists_small_partitionGadget (γ : Type) [Fintype γ] (t : ℕ) :
∃ (G : PartitionGadget γ), G.Separates t ∧ G.size = 2 ^ t * (t * Nat.clog 2 (2 * Fintype.card γ + 1) + 1)

Existence of a t-separating partition gadget of size 2 ^ t * (t * ⌈log₂(2|γ| + 1)⌉ + 1) via Cslib.exists_cover_of_density.