Lemma 2.3.1 — completeness and soundness of the k-prover proof system
ProvedSetCoverThreshold.MaxCover.lemma_2_3_1Assume the consequence of Raz's parallel repetition theorem stated on p. 642. Let . Then there is a constant , depending only on , such that for every 3CNF-5 formula , all , and every code of binary words of length , weight and pairwise Hamming distance at least , the -prover proof system satisfies:
- if is satisfiable, the provers have a strategy under which the verifier strongly accepts on every random string;
- if at most a -fraction of the clauses of are simultaneously satisfiable, then under every strategy of the provers
The two acceptance predicates give the reduction to max -cover its gap: complete consistency on satisfiable formulas, rare pairwise consistency on far-from-satisfiable ones.
Formalization Note The constant is quantified before , , and the code. Answers on clause coordinates are canonical (they satisfy the clause), as the paper assumes without loss of generality. The probability is a uniform count over the random strings.
import Mathlib import Definitions.Def_CookPvsNP_defs import Definitions.Def_SetCoverThreshold_MaxCover_Formula import Definitions.Def_SetCoverThreshold_MaxCover_ProofSystem
namespace SetCoverThreshold.MaxCover
open CookPvsNP
/-- **Lemma 2.3.1** (Feige 1998, p. 643), from the cited parallel repetition bound: for every
`ε > 0` there is `c > 0` such that for every 3CNF-5 formula `φ`, every `ℓ`, `k` and every
code of `k` words of length `ℓ`, weight `ℓ/2` and pairwise distance `≥ ℓ/3`: if `φ` is
satisfiable the provers can make the verifier always strongly accept, and if at most a
`(1 − ε)`-fraction of its clauses are simultaneously satisfiable, the verifier weakly accepts
with probability at most `k^2 · 2^{−cℓ}` under every strategy. -/
theorem lemma_2_3_1 (hRaz : RazRepetition) (ε : ℝ) (hε : 0 < ε) :
∃ c : ℝ, 0 < c ∧
∀ (φ : Formula5) (ℓ k : ℕ) (code : Fin k → Fin ℓ → Bool), IsCode code →
(φ.toCNF.Satisfiable →
∃ strat : Fin k → Strategy φ ℓ, ∀ r, StrongAccept φ code strat r) ∧
(AtMostFracSat (1 - ε) φ.toCNF →
∀ strat : Fin k → Strategy φ ℓ,
weakAcceptFrac φ code strat ≤ (k : ℝ) ^ 2 * (2 : ℝ) ^ (-(c * ℓ))) := by sorry
end SetCoverThreshold.MaxCover
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
This is a conditional statement.
Setting. A Formula5 has:
- clauses, clause having literals for , with distinct variables;
- every occurring variable in exactly clauses.
means: under every , at most clauses (with multiplicity) contain a literal with .
Hypothesis (). For every there is such that the following holds for every with , every , and all . Here maps an -tuple of clause indices to three bits per coordinate, and maps an -tuple of naturals to one bit per coordinate. The bound is
In this bound:
- ranges over maps for ;
- is accepted if, for every , satisfies clause (some position has bit ) and its bit at equals ;
- real division is used, with .
Assumption. A real .
Conclusion. There is a real , depending only on , such that the following holds for every , all , and every that is a code. Being a code means:
- each word has exactly ones, in the sense that twice the count equals ;
- distinct indices have Hamming distance with .
The notions used in (i) and (ii):
- A strategy for prover answers every question. A question has, for each , either a clause index or a natural number.
- A clause is answered by a satisfying triple.
- A variable is answered by a bit.
- On , prover receives the clause at coordinates where is true, and the variable otherwise.
- Its induced tuple takes, at each , bit of the triple, or the bit.
- Strong acceptance: all induced tuples are equal.
- Weak acceptance: some two distinct provers have equal induced tuples.
(i) If is satisfiable (imported, unshown notion), some -tuple of strategies makes every random string strongly accepted.
(ii) If holds, every -tuple of strategies satisfies
Degenerate cases:
- . Strong acceptance is automatic and the weak fraction is .
- . holds for every , and there is one random string. For it is weakly accepted, so the fraction is .
- Odd with . No code exists, so the statement is vacuous.
- , . The fraction is .
- and part (ii). holds automatically for . For and , the hypothesis of (ii) cannot hold, since every three-literal clause is satisfiable.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.