Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Polynomial-time encoding and output rescaling for disjoint Set Cover copies

Proved
SyncPrefix.Huffman.scDisjointCopies_encode_polyTime

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

inapproximabilityset-cover

Let I=([n],S)I = ([n], \mathcal{S})I=([n],S) be a coverable Set Cover instance with n≥1n \ge 1n≥1, and let I′=scDisjointCopies(I)I' = \mathrm{scDisjointCopies}(I)I′=scDisjointCopies(I) be the Set Cover instance formed by taking nnn disjoint copies of III over the universe [n2][n^2][n2]. Suppose Alg:{0,1,⊥}∗→{1}∗\mathrm{Alg} : \{0, 1, \bot\}^* \to \{1\}^*Alg:{0,1,⊥}∗→{1}∗ is a polynomial-time algorithm operating on encoded Set Cover instances.

Then there exists a polynomial-time algorithm Alg′:{0,1,⊥}∗→{1}∗\mathrm{Alg}' : \{0, 1, \bot\}^* \to \{1\}^*Alg′:{0,1,⊥}∗→{1}∗ such that for every coverable Set Cover instance III with n≥1n \ge 1n≥1,

∣Alg′(encode(I))∣=⌊∣Alg(encode(scDisjointCopies(I)))∣n⌋.|\mathrm{Alg}'(\mathrm{encode}(I))| = \left\lfloor \frac{|\mathrm{Alg}(\mathrm{encode}(\mathrm{scDisjointCopies}(I)))|}{n} \right\rfloor.∣Alg′(encode(I))∣=⌊n∣Alg(encode(scDisjointCopies(I)))∣​⌋.

This lemma isolates the polynomial-time Turing-machine transcoding and unary output-length division step in the Set Cover padding reduction used before Corollary 8.

Formalization Note Algorithms producing natural-number value estimates in unary are represented as functions List (Option Bool) → List Unit, where the output value is (Alg w).length.

Preamble
import Definitions.Def_SyncPrefix_Huffman_DisjointCopies
import Definitions.Def_CookPvsNP_defs

open SetCoverThreshold.SetCover
Formal statement
namespace SyncPrefix.Huffman

theorem scDisjointCopies_encode_polyTime (Alg : List (Option Bool) → List Unit)
    (hAlg : CookPvsNP.PolyTimeComputable Alg) :
    ∃ Alg' : List (Option Bool) → List Unit, CookPvsNP.PolyTimeComputable Alg' ∧
      ∀ I : SCInstance, I.Coverable → 1 ≤ I.n →
        (Alg' I.encode).length = (Alg (scDisjointCopies I).encode).length / I.n := by sorry

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