Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Decoding step — from ε/3 good r to a strategy weakly accepting with probability (ε/3)(ε/3k)^2

Proved
SetCoverThreshold.MaxCover.decoding_step

by mikedeng1 · Sep 27, 2026 · Mathlib 0df444a (Lean v4.33.1)

hardness-of-approximationmax-k-coverp2o-batch-p100bp2o-gran-per-chapterp2o-plan-paperp2o-v1proof-systems

Let ε>0\varepsilon>0ε>0, let k,ℓk,\ellk,ℓ, a code, a 3CNF-5 formula φ\varphiφ and a collection C\mathcal CC of sets of the §5 instance be given, and suppose at least an ε/3\varepsilon/3ε/3-fraction of the random strings are good for C\mathcal CC (i.e. wr≤3k/εw_r\le 3k/\varepsilonwr​≤3k/ε and two sets of C\mathcal CC from different provers induce the same partition label on rrr). Then some deterministic strategy of the kkk provers makes the verifier weakly accept with probability at least

ε3(ε3k)2.\frac{\varepsilon}{3}\Big(\frac{\varepsilon}{3k}\Big)^2 .3ε​(3kε​)2.

This turns a good covering into a good strategy for the kkk-prover proof system; combined with the soundness bound k22−cℓk^2 2^{-c\ell}k22−cℓ of Lemma 2.3.1 it yields a contradiction for large ℓ\ellℓ.

Formalization Note The paper writes the bound as "ϵ/3(ϵ/3k)2\epsilon/3(\epsilon/3k)^2ϵ/3(ϵ/3k)2", read here as (ε/3)⋅(ε/(3k))2(\varepsilon/3)\cdot(\varepsilon/(3k))^2(ε/3)⋅(ε/(3k))2, which is what the computation of Proposition 4.3 gives. Hypothesis and conclusion are stated as counts over the R=(3M)ℓR=(3M)^\ellR=(3M)ℓ random strings.

Preamble
import Mathlib
import Definitions.Def_CookPvsNP_defs
import Definitions.Def_SetCoverThreshold_MaxCover_Formula
import Definitions.Def_SetCoverThreshold_MaxCover_ProofSystem
import Definitions.Def_SetCoverThreshold_MaxCover_Reduction
Formal statement
namespace SetCoverThreshold.MaxCover

/-- **Decoding step** (Feige 1998, p. 649, proof of Theorem 5.3): if at least an `ε/3`-fraction
of the random strings are good for a collection `C` of sets of the §5 instance, then some
strategy of the `k` provers makes the verifier weakly accept with probability at least
`(ε/3) · (ε/(3k))^2`. -/
theorem decoding_step (ε : ℝ) (hε : 0 < ε) (k ℓ : ℕ) (code : Fin k → Fin ℓ → Bool)
    (φ : Formula5) (C : Finset (SetIdx φ code))
    (hgood : ε / 3 * (Fintype.card (RandString φ ℓ) : ℝ) ≤ (goodCount φ code ε C : ℝ)) :
    ∃ strat : Fin k → Strategy φ ℓ,
      ε / 3 * (ε / (3 * k)) ^ 2 * (Fintype.card (RandString φ ℓ) : ℝ) ≤
        (weakAcceptCount φ code strat : ℝ) := by sorry

end SetCoverThreshold.MaxCover
Source
Feige, A threshold of ln n for approximating set cover, J. ACM 45(4) (1998), p. 649, proof of Theorem 5.3 (after Proposition 5.4)
Read-back

What the Lean code literally says, in plain math · claude-opus-5-5

Setting.

  • A real ε>0\varepsilon>0ε>0 and k,ℓ∈Nk,\ell\in\mathbb Nk,ℓ∈N.
  • Code. An arbitrary code:{0..k−1}×{0..ℓ−1}→Bool\mathrm{code}:\{0..k-1\}\times\{0..\ell-1\}\to\mathrm{Bool}code:{0..k−1}×{0..ℓ−1}→Bool. No weight or distance condition is assumed.
  • Formula. A Formula5 φ\varphiφ: MMM clauses of three literals over distinct variables var(c,p)\mathrm{var}(c,p)var(c,p), with every occurring variable in exactly 555 clauses.
  • Collection. A finite collection CCC of set indices (i,q,a)(i,q,a)(i,q,a). Here i<ki<ki<k, qqq is a question prover iii receives on some random string, and aaa is an answer to qqq. There is no bound on ∣C∣|C|∣C∣.

The notions involved:

  • Random strings and questions. Random strings rrr map j<ℓj<\ellj<ℓ to (cj,pj)(c_j,p_j)(cj​,pj​); there are (3M)ℓ(3M)^\ell(3M)ℓ of them. Prover iii's question on rrr has entry cjc_jcj​ where code(i,j)\mathrm{code}(i,j)code(i,j) is true and var(cj,pj)\mathrm{var}(c_j,p_j)var(cj​,pj​) otherwise.
  • Answers. An answer gives a satisfying triple per clause entry and a bit per variable entry. ara_rar​ takes bit pjp_jpj​ of the triple, or the bit.
  • Good strings. rrr is good if both:
    • wr≤3k/εw_r\le3k/\varepsilonwr​≤3k/ε, where wrw_rwr​ counts the s∈Cs\in Cs∈C whose question equals prover isi_sis​'s question on rrr;
    • two members of CCC with different provers both match rrr and have equal ara_rar​.

Hypothesis.

ε3(3M)ℓ≤#{r good}.\tfrac{\varepsilon}{3}(3M)^\ell\le\#\{r\text{ good}\}.3ε​(3M)ℓ≤#{r good}.

Conclusion. There is a kkk-tuple of strategies (each answering every question) such that

ε3(ε3k)2(3M)ℓ≤#{r:weakly accepted}.\tfrac{\varepsilon}{3}\Big(\tfrac{\varepsilon}{3k}\Big)^2(3M)^\ell\le\#\{r : \text{weakly accepted}\}.3ε​(3kε​)2(3M)ℓ≤#{r:weakly accepted}.

Weak acceptance means some two distinct provers' induced tuples on rrr are equal. Prover iii's induced tuple is its answer to its question on rrr, read at positions pjp_jpj​.

Degenerate cases:

  • k=0k=0k=0. ε/(3⋅0)=0\varepsilon/(3\cdot0)=0ε/(3⋅0)=0, so the conclusion is 0≤⋅0\le\cdot0≤⋅, which holds trivially.
  • k≤1k\le1k≤1. No string is good, so the hypothesis holds only when (3M)ℓ=0(3M)^\ell=0(3M)ℓ=0, that is, M=0M=0M=0 and ℓ≥1\ell\ge1ℓ≥1. Then both sides are 000.
  • ℓ=0\ell=0ℓ=0. There is one random string.
Human review
  • Endorsed by Shuze Chen · Sep 27, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Sep 27, 2026

    Confirmed by the mission captain (proposal self-audit).

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