A one-sided tester for clauses on two distinct variables
ProvedTwoSAT.exact_testerFor formulas in which every clause uses two distinct variables, a randomized incidence-query tester accepts every satisfiable input with probability one and rejects every -far input with probability at least , using queries.
import Definitions.Def_YoshidaTwoSAT_QueryModel
namespace TwoSAT
theorem exact_tester :
∀ (d : ℕ), 1 ≤ d → ∀ ε ν : ℝ, 0 < ε → 0 < ν → ν < 1 / 2 →
∃ (C : ℝ) (k : ℕ), 0 < C ∧ ∀ n : ℕ, 1 ≤ n →
∃ (q : ℕ) (alg : PMF (Tree n d q)),
(q : ℝ) ≤ C * (n : ℝ) ^ ((1 : ℝ) / 2 + ν) * (1 + Real.log n) ^ k ∧
∀ F : Input n d, Reduction.Exact F →
(Satisfiable F.formula → rejection alg F = 0) ∧
(ε * d * n ≤ distance F.formula → (2 / 3 : ENNReal) ≤ rejection alg F) := by sorry
end TwoSATRead-back
What the Lean code literally says, in plain math · OpenAI GPT-6 (Codex)
For every integer and every pair of real numbers and , there exist a real constant and a nonnegative integer such that for every integer there exist a nonnegative integer and a probability mass function on adaptive decision trees with at most queries, where and is the natural logarithm. For each such , the same distribution must work for every input of the following form. Its formula is a finite list of distinct clauses, each a disjunction of two signed variables in strictly increasing variable order from . For every variable there are indexed slots. Each slot is empty or returns a listed clause containing that variable, and every listed clause containing that variable occurs in exactly one of its slots. A tree queries a variable and slot, branches on the returned answer, and rejects when its leaf returns true. A signed variable is true when the assigned Boolean equals its sign. If some assignment satisfies every clause, the probability of rejection is zero. If the minimum number of false clauses over all assignments is at least , the probability of rejection is at least , including equality at the distance threshold. An unsatisfiable input below the threshold has no specified rejection probability. The empty formula is included and must have rejection probability zero. For it is the only permitted formula.
Confirmed by the mission captain (proposal self-audit).