Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Proposition 2.2.1 — the clause–variable game has value 1−ε/31-\varepsilon/31−ε/3

Proved
SetCoverThreshold.SetCover.prop_2_2_1

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

max-3satp2o-batch-p100bp2o-gran-per-chapterp2o-plan-paperp2o-v1two-prover-game

Let φ\varphiφ be a 3CNF-5 formula with MMM clauses, let τ∗\tau^*τ∗ be an assignment satisfying the largest number of clauses, and let ε\varepsilonε be the fraction of clauses τ∗\tau^*τ∗ leaves unsatisfied. Consider the one-round two-prover system: the verifier picks a clause uniformly at random and one of its three variables uniformly at random, sends the clause to the first prover and the variable to the second, and accepts when the first prover's three bits satisfy the clause and agree with the second prover's bit on the chosen variable. Then the optimal strategy of the provers is accepted with probability exactly

1−ε3.1-\frac{\varepsilon}{3}.1−3ε​.

That is, some pair of strategies achieves 1−ε/31-\varepsilon/31−ε/3, and no pair exceeds it. The proposition identifies the error of the base game whose parallel repetition Raz's theorem controls.

Formalization Note This is the game of ProofSystem with ℓ=1\ell=1ℓ=1; probabilities are uniform counts over the 3M3M3M random strings, and strategies are deterministic functions of the question. ε\varepsilonε is expressed through a maximizing assignment τ∗\tau^*τ∗ rather than a supremum.

Preamble
import Mathlib
import Definitions.Def_SetCoverThreshold_SetCover_Formula
import Definitions.Def_SetCoverThreshold_SetCover_ProofSystem
Formal statement
namespace SetCoverThreshold.SetCover

theorem prop_2_2_1 (φ : Formula5) (τ : Fin φ.n → Bool)
    (hτ : ∀ τ' : Fin φ.n → Bool,
      (Finset.univ.filter (fun c => φ.ClauseSatBy c (fun p => τ' (φ.var c p)))).card ≤
        (Finset.univ.filter (fun c => φ.ClauseSatBy c (fun p => τ (φ.var c p)))).card)
    (ε : ℝ)
    (hε : ε = 1 - ((Finset.univ.filter
      (fun c => φ.ClauseSatBy c (fun p => τ (φ.var c p)))).card : ℝ) / φ.M) :
    (∃ (P₁ : φ.Prover1Strategy 1) (P₂ : φ.Prover2Strategy 1),
        φ.twoProverAcceptFrac 1 P₁ P₂ = 1 - ε / 3) ∧
      ∀ (P₁ : φ.Prover1Strategy 1) (P₂ : φ.Prover2Strategy 1),
        φ.twoProverAcceptFrac 1 P₁ P₂ ≤ 1 - ε / 3 := by sorry

end SetCoverThreshold.SetCover
Source
Feige, A threshold of ln n for approximating set cover, J. ACM 45(4) (1998), p. 641, Proposition 2.2.1
Read-back

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

Let φ\varphiφ be a Formula5\mathrm{Formula5}Formula5: nnn variables, M≥1M\ge1M≥1 clauses, and clause ccc has literals clause(c,p)=(bc,p,var(c,p))\mathrm{clause}(c,p)=(b_{c,p},\mathrm{var}(c,p))clause(c,p)=(bc,p​,var(c,p)) for p=0,1,2p=0,1,2p=0,1,2 on three distinct variables, with each variable in exactly 555 (clause, position) pairs. For an assignment τ:{0..n−1}→{true,false}\tau:\{0..n-1\}\to\{\mathrm{true},\mathrm{false}\}τ:{0..n−1}→{true,false}, say τ\tauτ satisfies clause ccc if τ(var(c,p))=bc,p\tau(\mathrm{var}(c,p))=b_{c,p}τ(var(c,p))=bc,p​ for some ppp, and let sat(τ)\mathrm{sat}(\tau)sat(τ) be the number of clauses it satisfies.

Hypotheses:

  • τ\tauτ is an assignment with sat(τ′)≤sat(τ)\mathrm{sat}(\tau')\le\mathrm{sat}(\tau)sat(τ′)≤sat(τ) for every assignment τ′\tau'τ′;
  • ε\varepsilonε is the real number ε=1−sat(τ)/M\varepsilon=1-\mathrm{sat}(\tau)/Mε=1−sat(τ)/M.

The conclusion concerns the one-round (ℓ=1\ell=1ℓ=1) two-prover game. Its 3M3M3M random strings are the pairs (c,p)(c,p)(c,p) of a clause and a position.

  • The first prover sees ccc and answers three bits P1(c)P_1(c)P1​(c).
  • The second prover sees the variable var(c,p)\mathrm{var}(c,p)var(c,p) and answers one bit P2(var(c,p))P_2(\mathrm{var}(c,p))P2​(var(c,p)).
  • The verifier accepts on (c,p)(c,p)(c,p) iff:
    • P1(c)(p′)=bc,p′P_1(c)(p')=b_{c,p'}P1​(c)(p′)=bc,p′​ for some p′p'p′, and
    • P1(c)(p)=P2(var(c,p))P_1(c)(p)=P_2(\mathrm{var}(c,p))P1​(c)(p)=P2​(var(c,p)).
  • Strategies are arbitrary functions. The acceptance fraction is the number of accepting (c,p)(c,p)(c,p) divided by 3M3M3M.

Conclusion:

  • some pair (P1,P2)(P_1,P_2)(P1​,P2​) has acceptance fraction exactly 1−ε/31-\varepsilon/31−ε/3;
  • every pair has acceptance fraction ≤1−ε/3\le 1-\varepsilon/3≤1−ε/3.

Degenerate cases: M≥1M\ge1M≥1 and n≥3n\ge3n≥3 always hold, so no division by zero occurs. If φ\varphiφ is satisfiable, then ε=0\varepsilon=0ε=0 and the value is 111. There is no separate hypothesis on the sign or size of ε\varepsilonε; it is fixed by the equation.

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