Proposition 4.2 — the fraction of good random strings is at least
ProvedSetCoverThreshold.SetCover.prop_4_2Consider the set-cover instance of Section 4 built from a 3CNF-5 formula , parameters and , a code of weight and distance , and . The paper sets up (p. 646): "Let 𝒞 be a collection of subsets that covers S, where |𝒞| = (1 − δ)kQ ln m. With each question q to a prover P_i associate a weight w_{q,i} equal to the number of answers a such that S_(q,a,i) ∈ 𝒞. Hence, Σ_{q,i} w_{q,i} = |𝒞|. With each random string r associate a weight w_r = Σ_{(q,i)∈r} w_{q,i}. This weight is equal to the number of subsets that participate in covering the m points of B_r(m, L, k, d). Call r good if w_r < (1 − δ/2)k ln m."
Let and let be a collection of subsets with . Then
where is the number of random strings. It is the averaging step of the soundness analysis of the reduction.
Formalization Note The page's "" is read as : the left side is an integer and the right side is in general irrational, so the literal equation would make the statement nearly vacuous, and the proof uses only . The proposition does not need to be a cover.
import Mathlib import Definitions.Def_SetCoverThreshold_SetCover_Formula import Definitions.Def_SetCoverThreshold_SetCover_ProofSystem import Definitions.Def_SetCoverThreshold_SetCover_Reduction
namespace SetCoverThreshold.SetCover
theorem prop_4_2 (φ : Formula5) (ℓ k m : ℕ) (code : Fin k → Fin ℓ → Bool)
(hcode : IsCode ℓ k code) (hk : 0 < k) (hm : 2 ≤ m)
(δ : ℝ) (hδ : 0 < δ) (hδ1 : δ ≤ 1) (𝒞 : Finset (φ.SetIdx code))
(h𝒞 : (𝒞.card : ℝ) ≤ (1 - δ) * k * φ.numQuestions ℓ * Real.log m) :
δ / 2 ≤
((Finset.univ.filter (fun r : φ.RandomString ℓ =>
(φ.weight code 𝒞 r : ℝ) < (1 - δ / 2) * k * Real.log m)).card : ℝ) /
Fintype.card (φ.RandomString ℓ) := by sorry
end SetCoverThreshold.SetCover
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Data and hypotheses:
- a : variables and clauses of three literals on distinct variables, each variable in exactly (clause, position) pairs;
- naturals with and ;
- a code with : binary codewords of length , each with exactly ones where , and pairwise Hamming distance ;
- a real with ;
- a finite set of triples with:
- ;
- an -tuple of question coordinates having a clause exactly where has a and a variable elsewhere;
- a canonical answer to (satisfying bit-triples at clause coordinates, bits false at variable coordinates);
- the size bound
Conclusion: among the random strings , the fraction whose weight is below is at least . That is,
Here is the number of with equal to prover 's question on . That question has at coordinate the clause if is true, else the variable . No covering property and no partition systems appear in the statement.
Degenerate cases:
- forces . Every weight is then , the fraction is , and the claim reads .
- For odd , has no solution with , so the statement is vacuous.
- For , there is one random string, , and every is the empty tuple.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.