Lemma 2.3.1 — completeness and soundness of the -prover proof system
ProvedSetCoverThreshold.SetCover.lemma_2_3_1Assume the consequence of Raz's parallel repetition theorem (Theorem 2.2.2) for the two-prover system of §2.2 (the proposition RazRepetition). Fix . Then there is a constant , depending only on , such that the following holds for every 3CNF-5 formula , every and , and every code of words of length with weight and pairwise Hamming distance at least . For the -prover proof system defined by and the code:
- if is satisfiable, the provers have a strategy that causes the verifier to always strongly accept (every pair of provers is consistent on every random string);
- if at most a -fraction of the clauses of are simultaneously satisfiable, then for every strategy of the provers
The gap between the strong acceptance of true inputs and the rare weak acceptance of false inputs is what the reduction to set cover converts into a gap in cover size.
Formalization Note The constant is quantified before the formula, , and the code. Probabilities are uniform counts over random strings; strategies are deterministic and answers canonical. Weak acceptance requires two different provers to be consistent.
import Mathlib import Definitions.Def_CookPvsNP_defs import Definitions.Def_SetCoverThreshold_SetCover_Formula import Definitions.Def_SetCoverThreshold_SetCover_ProofSystem
namespace SetCoverThreshold.SetCover
theorem lemma_2_3_1 (hRaz : RazRepetition) (ε : ℝ) (hε : 0 < ε) :
∃ c : ℝ, 0 < c ∧
∀ (φ : Formula5) (ℓ k : ℕ) (code : Fin k → Fin ℓ → Bool), IsCode ℓ k code →
(φ.toCNF.Satisfiable → ∃ A : φ.KStrategy ℓ k, ∀ r, φ.StrongAccept code A r) ∧
(AtMostFracSat (1 - ε) φ.toCNF → ∀ A : φ.KStrategy ℓ k,
φ.weakAcceptFrac code A ≤ (k : ℝ) ^ 2 * (2 : ℝ) ^ (-(c * ℓ))) := by sorry
end SetCoverThreshold.SetCover
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Hypotheses: and a real .
says: for every there is such that, for every in which every assignment satisfies at most clauses, every and all strategies of the -fold two-prover game, the acceptance fraction is .
- A has variables and clauses of three literals on distinct variables, each variable in exactly (clause, position) pairs.
- In the two-prover game, random strings are . Prover 1 answers bit-triples for the clauses; prover 2 answers bits for the variables . Acceptance requires, at each , that prover 1's triple satisfies and that its bit at equals prover 2's bit.
Conclusion: there exists , depending only on , such that for every , every and every with the following two statements hold. means each of the binary codewords of length has exactly ones with , and distinct codewords are at Hamming distance .
- If is satisfiable (outside library's notion), there is a -prover strategy under which, for every random string , every pair of provers is consistent.
- If every assignment satisfies at most clauses of (and ), then every -prover strategy has
The -prover system works as follows:
- Prover 's question on has at coordinate the clause if is true, else the variable .
- A strategy gives every prover and every question a canonical answer: a satisfying bit-triple at clause coordinates, and a triple with bits false at variable coordinates.
- The induced assignment is at clause coordinates and at variable coordinates.
- Provers are consistent on if their induced assignments coincide.
- is the fraction of the random strings on which some pair is consistent.
Degenerate cases:
- : the weak fraction is , so part 2 is trivial.
- : with , part 2 reads .
- odd: forces .
- For , the hypothesis of part 2 is unsatisfiable, since some assignment satisfies at least clauses.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.