Introduction
We study whether satisfiability of bounded-degree 2CNF formulas can be tested with a sublinear number of queries. This is a question in property testing , where the goal is to distinguish inputs having a property from those far from having it by inspecting only a small part of the input. For general background, we refer to the books by Goldreich [10 ] and Bhattacharyya and Yoshida [5 ] .
As a basic example, in the bounded-degree model [12 ] , Goldreich and Ron gave a one-sided tester for bipartiteness with O ~ ( n ) \widetilde{O}(\sqrt{n}) O ( n ) queries and proved an Ω ( n ) \Omega(\sqrt{n}) Ω ( n ) lower bound, where n n n is the number of vertices [11 , 12 ] . Bipartiteness is a constraint satisfaction problem (CSP): each vertex is a Boolean variable, and each edge requires its endpoints to take different values. More generally, a CSP specifies a finite domain of values and a finite collection of allowed constraint types. An instance consists of variables and constraints of these types, and asks whether an assignment satisfies all constraints. The degree of a variable is the number of constraints containing it. This setting includes 3LIN, whose constraints are linear equations modulo two on three variables. In contrast to bipartiteness, testing satisfiability of bounded-degree 3LIN requires Ω ( n ) \Omega(n) Ω ( n ) queries, where n n n is now the number of variables [6 ] . The same linear lower bound holds for bounded-degree 3SAT, where clauses contain at most three literals [6 ] .
A useful distinction between these problems comes from algorithms based on local consistency . Such algorithms maintain candidate assignments to small sets of variables. They repeatedly discard candidates that violate an input constraint or cannot be extended consistently with the candidates on another small set. A CSP has bounded width if this process decides satisfiability for all its instances while considering sets of at most a constant number of variables; the constant may depend on the allowed constraint types but not on the instance size [4 ] . For example, in bipartiteness, x ≠ y x \ne y x = y and y ≠ z y \ne z y = z imply x = z x = z x = z . Propagating such relations between pairs detects the contradiction around any odd cycle. Thus bipartiteness has bounded width, even though the propagation may traverse the whole graph. Bounded width limits the number of variables considered together, not the amount of input read or the number of propagation steps.
At the simplest level, width 1 , it suffices to propagate the allowed values of individual variables through the constraints. It is known that CSPs of width 1 admit constant-query testers [16 , 14 ] . This propagation, however, does not suffice for bipartiteness. To see this, initialize each vertex of an odd cycle with both possible colors. Each color at either endpoint of an edge is compatible with the opposite color at the other endpoint, so this propagation removes no colors and fails to detect unsatisfiability. Bipartiteness is a special case of 2SAT, since x ≠ y x \ne y x = y is equivalent to ( x ∨ y ) ∧ ( x ‾ ∨ y ‾ ) (x \lor y) \land(\overline{x} \lor\overline{y}) ( x ∨ y ) ∧ ( x ∨ y ) . Both problems have bounded width but not width 1: it suffices to maintain candidate assignments to pairs and repeatedly check that they extend consistently to each third variable. This is called width ( 2 , 3 ) (2,3) ( 2 , 3 ) [4 ] .
In contrast, 3LIN has unbounded width. More generally, Fei proved an Ω ( n ) \Omega(n) Ω ( n ) query lower bound for every unbounded-width CSP and asked whether every bounded-width CSP admits a sublinear-query tester [8 Question 12] . Beyond bipartiteness, 2SAT is a basic case of this question. It is known that testing 2SAT requires Ω ( n ) \Omega(\sqrt{n}) Ω ( n ) queries [16 ] , but the bipartiteness tester does not give an algorithm for general 2SAT. Fei and Rubinfeld also asked whether 2SAT admits a sublinear-query satisfiability tester [9 full version, Section 1.3] .
In this paper, we answer this question affirmatively for 2SAT: For constant degree bound and distance parameter, we give a one-sided tester with O ~ ( n 1 / 2 + ν ) \widetilde{O}(n^{1/2+\nu}) O ( n 1/2 + ν ) queries for every constant ν ∈ ( 0 , 1 / 2 ) \nu\in(0,1/2) ν ∈ ( 0 , 1/2 ) .
To state our main theorem precisely, we specify the input model and distance measure. The input F F F is a 2CNF formula on n ≥ 1 n \ge1 n ≥ 1 Boolean variables labeled by [ n ] : = { 1 , … , n } [n] := \{1,\ldots,n\} [ n ] := { 1 , … , n } : a conjunction of nonempty clauses, each containing at most two literals.2 We identify ( a ∨ a ) (a \lor a) ( a ∨ a ) with the unit clause ( a ) (a) ( a ) and allow tautologies. We assume throughout that no clause is repeated.3 The size n n n and the degree bound Δ \Delta Δ are given to the tester. Each variable belongs to at most Δ \Delta Δ clauses and has Δ \Delta Δ incidence slots containing its incident clauses or null symbols. Unused slots may occur anywhere in the list. A query ( x , i ) (x,i) ( x , i ) , with x ∈ [ n ] x \in[n] x ∈ [ n ] and 1 ≤ i ≤ Δ 1 \le i \le\Delta 1 ≤ i ≤ Δ , returns the clause in slot i i i , including its variables and literal signs, or the null symbol if that slot is unused. Let τ ( F ) \tau(F) τ ( F ) denote the minimum number of clauses that must be deleted to make F F F satisfiable, equivalently the minimum number of clauses violated by an assignment. We call F F F ε \varepsilon ε -far if τ ( F ) ≥ ε Δ n \tau(F) \ge\varepsilon\Delta n τ ( F ) ≥ ε Δ n . A one-sided ε \varepsilon ε -tester accepts every satisfiable formula with probability one and rejects every ε \varepsilon ε -far formula with probability at least 2 / 3 2/3 2/3 .
Our main result is the following.
Theorem 1.1. For every Δ ≥ 1 \Delta\ge1 Δ ≥ 1 , ε > 0 \varepsilon> 0 ε > 0 , and 0 < ν < 1 / 2 0 < \nu< 1/2 0 < ν < 1/2 , there is a one-sided ε \varepsilon ε -tester for satisfiability of n n n -variable 2CNF formulas of maximum degree at most Δ \Delta Δ in the bounded-degree model, with query complexity
O ~ ε , Δ , ν ( n 1 / 2 + ν ) . \widetilde{O}_{\varepsilon,\Delta,\nu}\left(n^{1/2+\nu}\right). O ε , Δ , ν ( n 1/2 + ν ) .
The Ω ( n ) \Omega(\sqrt{n}) Ω ( n ) lower bound [16 ] shows that the dependence on n n n is optimal up to an arbitrarily small polynomial factor.
The picture changes for tolerant testing of 2SAT, which also requires acceptance of formulas that are close to satisfiable. In fact, known lower bounds [15 , 7 ] imply that, for some constants 0 < ε 1 < ε 2 0 < \varepsilon_1 < \varepsilon_2 0 < ε 1 < ε 2 , Δ ≥ 1 \Delta\ge1 Δ ≥ 1 , and c > 0 c > 0 c > 0 , distinguishing n n n -variable 2CNF formulas of maximum degree at most Δ \Delta Δ with τ ( F ) ≤ ε 1 Δ n \tau(F) \le\varepsilon_1\Delta n τ ( F ) ≤ ε 1 Δ n from those with τ ( F ) ≥ ε 2 Δ n \tau(F) \ge\varepsilon_2\Delta n τ ( F ) ≥ ε 2 Δ n requires Ω ( n 1 / 2 + c ) \Omega(n^{1/2+c}) Ω ( n 1/2 + c ) queries. § 1.2 gives the reduction to 2SAT. Thus, the guarantee for every fixed 0 < ν < 1 / 2 0 < \nu< 1/2 0 < ν < 1/2 in Theorem 1.1 depends on requiring acceptance only of satisfiable formulas.
Technical overview
We describe the tester for E 2 S A T E2SAT E 2 S A T , where each clause contains literals on two distinct variables. A local reduction handles general 2SAT (§ 6.4 ). To analyze rejection on far inputs, we assume that every assignment violates at least a constant δ > 0 \delta> 0 δ > 0 fraction of the clauses.
The implication graph of F F F has a vertex for each literal and arcs a ˉ → b \bar{a} \to b a ˉ → b and b ˉ → a \bar{b} \to a b ˉ → a for each clause ( a ∨ b ) (a \lor b) ( a ∨ b ) . Paths s ⇝ s ˉ s \leadsto\bar{s} s ⇝ s ˉ and s ˉ ⇝ s \bar{s} \leadsto s s ˉ ⇝ s rule out both truth values of s s s , so their clauses are unsatisfiable. Conversely, every unsatisfiable 2CNF formula contains such paths [3 ] . Our tester therefore searches for this certificate using only a small part of the formula.
Finding contradictions by endpoint collisions. Following [17 ] , we search for contradictory paths by sampling forward walks. For every implication u → v u \to v u → v , the graph also contains v ˉ → u ˉ \bar{v} \to\bar{u} v ˉ → u ˉ . Thus, if two walks from s s s end at complementary literals z , z ˉ z,\bar{z} z , z ˉ , reversing and complementing the second path gives z ⇝ s ˉ z \leadsto\bar{s} z ⇝ s ˉ . Joining it to the first path gives s ⇝ s ˉ s \leadsto\bar{s} s ⇝ s ˉ .
The tester. The tester uses clause weights w e ∈ ( 0 , 1 ] w_e \in(0,1] w e ∈ ( 0 , 1 ] , whose construction is outlined later in this overview. It repeats the following trial a prescribed number of times.
Sample a seed. Choose a clause with probability proportional to its weight, choose one of its two literals uniformly, and take its complement as the seed s s s .
Explore from both s s s and s ˉ \bar{s} s ˉ . * Run four independent batches of lazy forward walks, two from each starting literal, with independent geometric stopping and expected length O ( log n ) O(\log n) O ( log n ) . For a non-lazy step from ℓ \ell ℓ , select a clause containing ℓ ˉ \bar{\ell} ℓ ˉ with probability proportional to its weight and follow its implication to the other literal. Retain the paths as well as their endpoints.
Look for a contradiction. * In the two batches from s s s , look for an endpoint in one batch whose complement occurs in the other. Perform the same check for the two batches from s ˉ \bar{s} s ˉ . If both checks succeed, reject and output the paths s ⇝ s ˉ ⇝ s s \leadsto\bar{s} \leadsto s s ⇝ s ˉ ⇝ s obtained by reversing and complementing paths as above (Figure 1 ). Otherwise try a new seed.
Figure 1. Recovering a contradiction from four forward paths. In the first row, two paths from s s s end at complementary literals z z z , z ˉ \bar{z} z ˉ ; in the second, two paths from s ˉ \bar{s} s ˉ end at complementary literals u u u , u ˉ \bar{u} u ˉ . Reversing and complementing each dashed path gives the dashed segment on the right. Every arrow between literal nodes denotes an implication path. Together, the two rows give s ⇝ s ˉ ⇝ s s \leadsto\bar{s} \leadsto s s ⇝ s ˉ ⇝ s , using only clauses on the sampled paths.
If all trials finish without a contradiction, accept. Every rejection produces an unsatisfiable set of input clauses, so satisfiable inputs are always accepted. The main issue is to choose locally computable weights that make these trials succeed on far inputs within the query budget.
Measuring the chance of finding a contradiction. Let L \mathcal{L} L be the literal set. For each s ∈ L s \in\mathcal{L} s ∈ L , let p s : L → [ 0 , 1 ] p_s : \mathcal{L} \to[0,1] p s : L → [ 0 , 1 ] be the endpoint probability mass function of a walk from s s s . Define the affinity function a : L → [ 0 , 1 ] a : \mathcal{L} \to[0,1] a : L → [ 0 , 1 ] by
a ( s ) : = ∑ ℓ ∈ L p s ( ℓ ) p s ( ℓ ˉ ) . a(s) := \sum_{\ell\in\mathcal{L}} \sqrt{p_s(\ell)p_s(\bar{\ell})}. a ( s ) := ℓ ∈ L ∑ p s ( ℓ ) p s ( ℓ ˉ ) .
Thus a ( s ) a(s) a ( s ) is the Hellinger affinity between p s p_s p s and its complemented distribution. The collision bound of Yoshida [17 Lemma 2.1] implies that constant a ( s ) a(s) a ( s ) suffices to find complementary endpoints with O ( n ) O(\sqrt{n}) O ( n ) walks; the cost for smaller a ( s ) a(s) a ( s ) grows polynomially in 1 / a ( s ) 1/a(s) 1/ a ( s ) . For completeness, we prove this bound in Lemma 6.3. However, to apply this collision bound in both directions for the same seed, we seek lower bounds on both a ( s ) a(s) a ( s ) and a ( s ˉ ) a(\bar{s}) a ( s ˉ ) . We therefore define the two-way affinity B ∈ [ 0 , 1 ] B \in[0,1] B ∈ [ 0 , 1 ] by
B : = E s min { a ( s ) , a ( s ˉ ) } , B := \mathbb{E}_s \min\{a(s),a(\bar{s})\}, B := E s min { a ( s ) , a ( s ˉ )} ,
where the expectation is over the seed distribution. The minimum makes each seed contribute only as much as its weaker direction allows. Our task is to choose walks and seeds so that B B B is large on every far input, while keeping the sampling cost small.
Choosing weights that can be used locally. Let m m m be the number of clauses. We use clause weights to define both the walks and the seed distribution. Write a clause ( u ˉ ∨ v ˉ ) (\bar{u} \vee\bar{v}) ( u ˉ ∨ v ˉ ) as a pair e = { u , v } ⊆ L e = \{u,v\} \subseteq\mathcal{L} e = { u , v } ⊆ L , with endpoints u , v u,v u , v ; it is violated exactly when both endpoints are true. For a weight vector w ∈ R ≥ 0 m w \in\mathbb{R}_{\ge0}^{m} w ∈ R ≥ 0 m with positive total weight, let π : = w / ∑ e w e ∈ [ 0 , 1 ] m \pi:= w/\sum_e w_e \in[0,1]^m π := w / ∑ e w e ∈ [ 0 , 1 ] m be the corresponding clause probability distribution. Sampling a clause from π \pi π and choosing one of its endpoints uniformly gives the literal distribution μ π : L → [ 0 , 1 ] \mu_\pi:\mathcal{L}\to[0,1] μ π : L → [ 0 , 1 ] defined by
μ π ( ℓ ) : = 1 2 ∑ e ∋ ℓ π e . \mu_\pi(\ell) := \frac{1}{2}\sum_{e\ni\ell}\pi_e. μ π ( ℓ ) := 2 1 e ∋ ℓ ∑ π e .
Thus the seed distribution is μ π \mu_\pi μ π , which need not be stationary. The walk uses the same weights for its implication transitions.
The analysis of [17 ] uses weights for which μ π \mu_\pi μ π is stationary and gives equal mass to complementary literals. We call the weights balanced if μ π ( ℓ ) = μ π ( ℓ ˉ ) \mu_\pi(\ell)=\mu_\pi(\bar{\ell}) μ π ( ℓ ) = μ π ( ℓ ˉ ) for every literal ℓ \ell ℓ . One implication step from μ π \mu_\pi μ π ends at ℓ \ell ℓ with probability μ π ( ℓ ˉ ) \mu_\pi(\bar{\ell}) μ π ( ℓ ˉ ) . Thus balance makes μ π \mu_\pi μ π stationary for both the implication walk and its lazy version.
Uniform weights need not be balanced. Changing weights to improve balance, however, could make the clauses responsible for unsatisfiability carry too little weight. Moreover, computing the weights by reading the entire formula would defeat the purpose of a sublinear-query tester. We therefore seek locally computable weights with small imbalance and a positive lower bound on the fraction of total weight carried by clauses violated by any assignment.
We obtain these properties by choosing a family of clause-weight vectors w ( z ) ∈ ( 0 , 1 ] m w(z)\in(0,1]^m w ( z ) ∈ ( 0 , 1 ] m , parameterized by z ∈ R n z\in\mathbb{R}^n z ∈ R n , together with a convex objective Φ : R n → R ≥ 0 \Phi:\mathbb{R}^n\to\mathbb{R}_{\ge0} Φ : R n → R ≥ 0 . The coordinates z x z_x z x are indexed by variables, and the weights w e ( z ) w_e(z) w e ( z ) are indexed by clauses. To express imbalance in terms of clause weights, define the weighted degree d w : L → R ≥ 0 d_w:\mathcal{L}\to\mathbb{R}_{\ge0} d w : L → R ≥ 0 by d w ( ℓ ) : = ∑ e ∋ ℓ w e d_w(\ell):=\sum_{e\ni\ell}w_e d w ( ℓ ) := ∑ e ∋ ℓ w e . Since μ π ( ℓ ) = d w ( ℓ ) / ( 2 ∑ e w e ) \mu_\pi(\ell)=d_w(\ell)/(2\sum_e w_e) μ π ( ℓ ) = d w ( ℓ ) / ( 2 ∑ e w e ) , balance is equivalent to d w ( x ) = d w ( x ˉ ) d_w(x)=d_w(\bar{x}) d w ( x ) = d w ( x ˉ ) for every variable x x x . We choose w w w and Φ \Phi Φ so that
∂ Φ ∂ z x ( z ) = − ( d w ( z ) ( x ) − d w ( z ) ( x ˉ ) ) . \frac{\partial\Phi}{\partial z_x}(z)=-(d_{w(z)}(x)-d_{w(z)}(\bar{x})). ∂ z x ∂ Φ ( z ) = − ( d w ( z ) ( x ) − d w ( z ) ( x ˉ )) .
Thus small gradients mean small imbalance. Starting from z = 0 z=0 z = 0 , which gives uniform weights, gradient descent keeps Φ ( z ) ≤ Φ ( 0 ) = m \Phi(z)\le\Phi(0)=m Φ ( z ) ≤ Φ ( 0 ) = m . We design Φ \Phi Φ and w ( z ) w(z) w ( z ) so that this inequality also prevents any assignment from violating clauses of too little weight (Lemma 3.1).
To see the idea, extend z z z to literals by z x ˉ : = − z x z_{\bar{x}}:=-z_x z x ˉ := − z x . We choose the weights so that a clause e = { u , v } e=\{u,v\} e = { u , v } has very small weight only when z u + z v z_u+z_v z u + z v is large and positive. Such a clause has an endpoint ℓ \ell ℓ with large positive z ℓ z_\ell z ℓ . Making this endpoint false satisfies the clause. Given an assignment with small weighted loss, we therefore reassign variables with large ∣ z x ∣ \lvert z_x\rvert ∣ z x ∣ in this way. A random threshold determines which variables to reassign: clauses on unchanged variables have weights bounded below, while Φ ( z ) ≤ m \Phi(z)\le m Φ ( z ) ≤ m controls the expected number of violations involving reassigned variables. If the original weighted loss were sufficiently small, some choice of threshold would yield an assignment violating fewer than δ m \delta m δ m clauses, contradicting the assumption on F F F .
Descent controls the imbalance averaged over iterations, but selecting a good iterate by measuring its total imbalance would require global information. Instead, the tester uses the average of the clause weights w e ( z ) w_e(z) w e ( z ) over the iterates. For each assignment, the total weight of violated clauses is linear in the clause weights, so averaging preserves its lower bound. At the same time, averaging makes the relative imbalance ,
∑ x ∣ d w ( x ) − d w ( x ˉ ) ∣ ∑ e w e , \frac{\sum_x\lvert d_w(x)-d_w(\bar{x})\rvert}{\sum_e w_e}, ∑ e w e ∑ x ∣ d w ( x ) − d w ( x ˉ )∣ ,
arbitrarily small. For any fixed imbalance tolerance, the required number of steps is independent of n n n . Each update uses only variables sharing a clause, so each final clause weight can be recovered by exploring a neighborhood of bounded radius (Theorem 3.2 ). The construction also guarantees ∑ e w e = Ω ( m ) \sum_e w_e = \Omega(m) ∑ e w e = Ω ( m ) . Together with local evaluation, this ensures that sampling a seed or taking a walk step uses an expected number of queries independent of n n n on far inputs, without computing the total weight ∑ e w e \sum_e w_e ∑ e w e .
Using exact balance in the analysis. The locally computed weights are only approximately balanced, so their seed distribution μ π \mu_\pi μ π may still fail to be stationary. The entropy argument below uses stationarity to average changes along walk transitions. We therefore construct an exactly balanced clause distribution π ^ ∈ [ 0 , 1 ] m \hat{\pi} \in[0,1]^m π ^ ∈ [ 0 , 1 ] m for the analysis, while the tester continues to use π \pi π for clause choices and μ π \mu_\pi μ π for seeds.
For a common stopping probability, write B π B_\pi B π and B π ^ B_{\hat{\pi}} B π ^ for the two-way affinities of walks defined by π \pi π and π ^ \hat{\pi} π ^ , with seeds drawn from μ π \mu_\pi μ π and μ π ^ \mu_{\hat{\pi}} μ π ^ , respectively. We will prove a constant lower bound on B π ^ B_{\hat{\pi}} B π ^ and transfer it to B π B_\pi B π . This requires controlling how the seed and walk distributions change. The seed distribution is used once, whereas differences in the conditional clause distributions accumulate along the walk. We therefore need tighter control of the latter.
To obtain π ^ \hat{\pi} π ^ , we reduce clause weights subject to exact balance. We maximize the minimum total weight of violated clauses over all assignments, minus a penalty given by the weighted relative entropies between the conditional clause distributions. Theorem 4.1 shows that, when the initial imbalance is sufficiently small, an optimizer retains a positive lower bound on the total weight of clauses violated by any assignment. We normalize these weights to obtain π ^ \hat{\pi} π ^ . By adjusting the penalty and reducing the initial imbalance, we can make the average relative entropy between the conditional clause distributions arbitrarily small, while preserving a positive lower bound on the total weight of violated clauses under π ^ \hat{\pi} π ^ independently of this tolerance. The average is over literals drawn from μ π ^ \mu_{\hat{\pi}} μ π ^ . The relative entropy between the seed distributions remains bounded by a constant. Since π ^ \hat{\pi} π ^ is used only in the proof, its construction need not be local.
Finding paths from s s s to s ˉ \bar{s} s ˉ and back. We now consider walks defined by the balanced distribution π ^ \hat{\pi} π ^ and write a ( s ) a(s) a ( s ) for their endpoint affinity. The entropy and rounding argument of [17 ] gives a positive constant lower bound on E s ∼ μ π ^ a ( s ) \mathbb{E}_{s\sim\mu_{\hat{\pi}}}a(s) E s ∼ μ π ^ a ( s ) for walks of logarithmic expected length. The argument proceeds by contradiction: if this average affinity were small, Gaussian rounding of vectors constructed from the endpoint distributions would give an assignment whose violated clauses have small total weight, contradicting the guarantee for π ^ \hat{\pi} π ^ (§ 5.1 ).
This still leaves a difficulty: a large average of a ( s ) a(s) a ( s ) does not ensure that a ( s ) a(s) a ( s ) and a ( s ˉ ) a(\bar{s}) a ( s ˉ ) are large at the same seeds. To lower-bound B π ^ B_{\hat{\pi}} B π ^ , we seek a set of variables on which a ( s ) a(s) a ( s ) and a ( s ˉ ) a(\bar{s}) a ( s ˉ ) are close and every assignment violates internal clauses of total weight bounded below by a positive constant. A lower bound on this set’s contribution to the average affinity will then give a lower bound on the average of min { a ( s ) , a ( s ˉ ) } \min\{a(s),a(\bar{s})\} min { a ( s ) , a ( s ˉ )} .
To find such a set, we assign variables x x x for which a ( x ) a(x) a ( x ) and a ( x ˉ ) a(\bar{x}) a ( x ˉ ) differ substantially, making their literal with smaller affinity true. The key estimate is that the difference a ( s ˉ ) − a ( s ) a(\bar{s})-a(s) a ( s ˉ ) − a ( s ) changes little on average along implications (Lemma 5.3). A clause violated by this partial assignment forces a large change in that difference, so the total weight of clauses violated by this partial assignment is small. Choosing the assignment threshold by averaging also keeps small the weight of clauses crossing between assigned and unassigned variables (Lemma 5.4). Consequently, every assignment to the remaining variables must still violate internal clauses of total weight bounded below by a positive constant, and their complementary literals have close affinities.
Restricting the walk to the remaining variables. Let S ⊆ L S \subseteq\mathcal{L} S ⊆ L be the set of literals of the remaining variables. Simply deleting the other literals and their incident clauses could destroy balance, so the walk on the internal clauses need not have a stationary distribution that is equal at complementary literals. Instead, whenever the walk leaves S S S , we follow it until it returns and treat the whole excursion as one step. This trace chain has stationary distribution μ π ^ \mu_{\widehat{\pi}} μ π conditioned on S S S , which remains equal at complementary literals. It also retains every original transition within S S S (Lemma 5.5 ). We prove the average-affinity bound for any lazy chain with these two properties, so the lower bound on the total weight of internal clauses violated by any assignment gives the bound directly for the trace chain (Lemma 5.2 ).
We must still relate its endpoints to those of the original walk: a single trace step can take many original steps, during which the original walk might stop. The probability μ π ^ ( S ) \mu_{\widehat{\pi}}(S) μ π ( S ) that the seed lies in S S S is bounded below by a positive constant, which bounds the expected return time when starting from the conditional stationary distribution. By choosing the original walk’s stopping probability to be a sufficiently small constant multiple of the trace chain’s stopping probability, we control the mass lost to stopping before a return and transfer a positive affinity bound back to the original walks from S S S (Lemma 5.6). Since a ( s ) a(s) a ( s ) and a ( s ‾ ) a(\overline{s}) a ( s ) are close for s ∈ S s \in S s ∈ S , this yields the desired constant lower bound on B π ^ B_{\widehat{\pi}} B π (Theorem 5.1 ).
From the analysis to the query bound. Finally, we transfer the guarantee to the tester’s walks. If the average relative entropy between the conditional clause distributions is at most α > 0 \alpha> 0 α > 0 , its accumulation over logarithmically many expected steps gives a divergence bound of O δ ( 1 + α log n ) O_{\delta}(1+\alpha\log n) O δ ( 1 + α log n ) for the joint seed and endpoint distributions (Lemma 6.1 ). The resulting lower bound on B π ^ B_{\widehat{\pi}} B π decreases exponentially with this divergence, so the loss in two-way affinity is only a factor of n O δ ( α ) n^{O_{\delta}(\alpha)} n O δ ( α ) (Lemma 6.2 ).
The collision search and the number of seeds tried incur only polynomial costs in 1 / B π ^ 1/B_{\widehat{\pi}} 1/ B π . Thus choosing α \alpha α sufficiently small makes their combined overhead at most n ν n^{\nu} n ν on top of the n \sqrt{n} n collision bound. Each walk has logarithmic expected length, and each weight evaluation has cost independent of n n n , giving the O ~ ε , Δ , ν ( n 1 / 2 + ν ) \widetilde{O}_{\varepsilon,\Delta,\nu}(n^{1/2+\nu}) O ε , Δ , ν ( n 1/2 + ν ) query bound. § 6.3 specifies the parameters and implements the sampling within finite query budgets. Figure 2 summarizes the tester and its analysis.
Figure 2. The tester and its analysis. The upper row shows the operations performed using locally evaluated weights w w w . The lower row records the argument on far inputs: normalize to π \pi π , establish the existence of balanced π ^ \hat{\pi} π ^ , lower-bound its two-way affinity B π ^ B_{\hat{\pi}} B π ^ , and transfer the bound to B π B_{\pi} B π . The two endpoint tests must both succeed for the same seed: one uses walks from s s s , the other from s ˉ \bar{s} s ˉ . Dashed arrows indicate logical implications in the analysis. The collision lemma gives a lower bound on the probability that both endpoint tests succeed.
Related work
Krom gave the first polynomial-time algorithm for 2SAT [13 ] , and Aspvall, Plass, and Tarjan gave a linear-time algorithm based on strongly connected components of the implication graph [3 ] . In the sublinear-query setting, Fei and Rubinfeld [9 ] gave a new analysis of the bipartiteness tester of Goldreich and Ron [11 ] , reducing the number of walks from O ε ( n log n ) O_{\varepsilon}(\sqrt{n}\log n) O ε ( n log n ) to O ε ( n ) O_{\varepsilon}(\sqrt{n}) O ε ( n ) and their length from O ε ( log 2 n ) O_{\varepsilon}(\log^{2} n) O ε ( log 2 n ) to O ε ( log n ) O_{\varepsilon}(\log n) O ε ( log n ) . This yields a query complexity of O ε ( n log n ) O_{\varepsilon}(\sqrt{n}\log n) O ε ( n log n ) . They also ask whether, for some constant 0 < ε 0 < 1 / 4 0 < \varepsilon_{0} < 1/4 0 < ε 0 < 1/4 , a sublinear-query tester can distinguish satisfiable bounded-degree 2CNF formulas from formulas in which every assignment satisfies at most 3 / 4 + ε 0 3/4+\varepsilon_{0} 3/4 + ε 0 of the clauses [9 full version, Problem 1.12] .
Yoshida’s unpublished manuscript [17 ] gives a tester for E2SAT under this promise, assuming access to a uniform clause sampler in addition to incidence queries. Our tester builds on its random-walk analysis to handle every constant distance from satisfiability using only incidence queries. In particular, on instances with Θ ( n ) \Theta(n) Θ ( n ) clauses, Theorem 1.1 distinguishes satisfiable formulas from formulas in which every assignment satisfies at most a 1 − δ 1-\delta 1 − δ fraction of the clauses, for every fixed δ > 0 \delta> 0 δ > 0 . Taking δ = 1 / 4 − ε 0 \delta= 1/4-\varepsilon_{0} δ = 1/4 − ε 0 gives the promise in Fei and Rubinfeld’s question. § 1.1 explains which parts of the manuscript’s analysis we use. All ingredients used from that manuscript are proved here, so the reader need not consult it.
For general bounded-degree CSPs, Yoshida [16 ] gives constant-time approximation algorithms whose guarantees are governed by the integrality gap of the basic LP relaxation. For satisfiability testing, this approach yields constant-query testers for width-1 CSPs [16 , 14 ] , but does not cover all bounded-width CSPs. The obstruction is that even for 2SAT, the basic LP can have value 1 on instances that are a constant distance from satisfiability [14 ] .
The tolerant-testing lower bound for 2SAT discussed after Theorem 1.1 follows from lower bounds for 2-XOR and Max Cut. Yoshida [15 Theorem 1.2] proves such a bound for 2-XOR, whose constraints have the form x ⊕ y = b x \oplus y = b x ⊕ y = b for Boolean variables x x x , y y y and b ∈ { 0 , 1 } b \in\{0, 1\} b ∈ { 0 , 1 } . For every fixed 0 < η < 1 / 4 0 < \eta< 1/4 0 < η < 1/4 , there are constants Δ = O ( η − 2 ) \Delta= O(\eta^{-2}) Δ = O ( η − 2 ) and δ = δ ( η ) > 0 \delta= \delta(\eta) > 0 δ = δ ( η ) > 0 such that distinguishing n n n -variable instances of maximum degree at most Δ \Delta Δ that can be made satisfiable by deleting at most η Δ n / 2 \eta\Delta n/2 η Δ n /2 constraints from those requiring at least ( 1 / 2 − η ) Δ n / 2 (1/2 - \eta)\Delta n/2 ( 1/2 − η ) Δ n /2 deletions requires Ω ( n 1 / 2 + δ ) \Omega(n^{1/2+\delta}) Ω ( n 1/2 + δ ) queries.
For Max Cut, Chiplunkar, Kapralov, Khanna, Mousavifar, and Peres [7 Theorem 6] show that estimating the maximum cut size within a factor 2 − ρ 2 - \rho 2 − ρ , for fixed 0 < ρ < 1 / 2 0 < \rho< 1/2 0 < ρ < 1/2 , requires n 1 / 2 + Ω ( ρ / log ( 1 / ρ ) ) n^{1/2+\Omega(\rho/\log(1/\rho))} n 1/2 + Ω ( ρ / l o g ( 1/ ρ )) queries, even on graphs of maximum degree O ( ρ − 2 ) O(\rho^{-2}) O ( ρ − 2 ) . They attribute this Max Cut lower bound to Yoshida [15 ] and give a different proof [7 full version, Remark 1] . Their construction separates graphs having a cut that contains a 1 − O ( ρ ) 1 - O(\rho) 1 − O ( ρ ) fraction of the edges from graphs in which every cut contains at most a 1 / 2 + O ( ρ ) 1/2 + O(\rho) 1/2 + O ( ρ ) fraction. The former graphs need not be bipartite.
The Max Cut lower bound transfers to tolerant testing of 2SAT by a local encoding. For a graph G = ( V , E ) G = (V, E) G = ( V , E ) , form a 2CNF formula F G F_G F G on the Boolean variables { x v : v ∈ V } \{x_v : v \in V\} { x v : v ∈ V } by replacing each edge { u , v } ∈ E \{u, v\} \in E { u , v } ∈ E with ( x u ∨ x v ) ∧ ( x ˉ u ∨ x ˉ v ) (x_u \lor x_v) \land(\bar{x}_u \lor\bar{x}_v) ( x u ∨ x v ) ∧ ( x ˉ u ∨ x ˉ v ) . Write MaxCut ( G ) \operatorname{MaxCut}(G) MaxCut ( G ) for the maximum number of edges crossing a cut of G G G . Each edge outside a cut violates exactly one of its two clauses, while each crossing edge satisfies both, so
τ ( F G ) = ∣ E ∣ − MaxCut ( G ) . \tau(F_G) = |E| - \operatorname{MaxCut}(G). τ ( F G ) = ∣ E ∣ − MaxCut ( G ) .
The encoding doubles the degree bound and simulates each formula query with a constant number of graph queries. Moreover, for each fixed sufficiently small ρ \rho ρ , the graphs used in the lower bound have Θ ( n ) \Theta(n) Θ ( n ) edges. Hence the resulting formulas satisfy τ ( F G ) ≤ ϵ 1 Δ n \tau(F_G) \le\epsilon_1\Delta n τ ( F G ) ≤ ϵ 1 Δ n in the first case and τ ( F G ) ≥ ϵ 2 Δ n \tau(F_G) \ge\epsilon_2\Delta n τ ( F G ) ≥ ϵ 2 Δ n in the second, for some constants 0 < ϵ 1 < ϵ 2 0 < \epsilon_1 < \epsilon_2 0 < ϵ 1 < ϵ 2 , where Δ \Delta Δ is the formula degree bound. This gives the tolerant-testing lower bound stated after Theorem 1.1 .
In the dense model, constant-query testers are known for satisfiability of CSP instances [2 , 1 ] . Those results use a dense representation and normalize distance by the number of possible variable tuples for constraints; their guarantees therefore do not directly apply in the bounded-degree model considered here.
Organization. Section § 2 introduces the common notation and proves a threshold assignment lemma. Section § 3 constructs the locally computable clause weights used by the tester. Section § 4 provides an exactly balanced clause distribution for comparison, with bounds on how the seed and conditional clause distributions change. Section § 5 proves a lower bound on the two-way affinity for walks defined by this balanced distribution. Finally, § 6 transfers the bound to the tester’s walks, uses endpoint collisions to detect contradictions, and proves the query bound, including the reduction from general 2SAT to E2SAT.
Preliminaries
We fix notation for weighted E2SAT formulas and probability measures and record a threshold assignment lemma. Write [ c ] + : = max { c , 0 } [c]_{+} := \max\{c, 0\} [ c ] + := max { c , 0 } for c ∈ R c \in\mathbb{R} c ∈ R .
Formulas with no clauses or maximum degree at most one are satisfiable, and ε > 1 \varepsilon> 1 ε > 1 admits no far inputs. We therefore restrict the analysis to formulas with at least one clause, degree bounds at least two, and 0 < ε ≤ 1 0 < \varepsilon\le1 0 < ε ≤ 1 .
Weighted E2SAT formulas
Let F F F be an E2SAT formula with m m m clauses on n n n variables, so each clause contains literals on two distinct variables. Write L : = { x , x ˉ : x is a variable of F } \mathcal{L} := \{x, \bar{x}: x\text{ is a variable of }F\} L := { x , x ˉ : x is a variable of F } for its literals. We represent a clause ( u ˉ ∨ v ˉ ) (\bar{u} \lor\bar{v}) ( u ˉ ∨ v ˉ ) by the pair e = { u , v } ⊆ L e = \{u,v\} \subseteq\mathcal{L} e = { u , v } ⊆ L . The clause is violated exactly when both endpoints u u u and v v v are true. We index variable vectors by x x x and clause vectors by e e e , writing their coordinates as z x z_x z x and w e w_e w e , respectively. Let T : = { t ∈ { 0 , 1 } L : t x ˉ = 1 − t x for every variable x } \mathcal{T} := \{t \in\{0,1\}^{\mathcal{L}}: t_{\bar{x}} = 1-t_x\text{ for every variable }x\} T := { t ∈ { 0 , 1 } L : t x ˉ = 1 − t x for every variable x } be the assignment space. For a weight vector w ∈ R ≥ 0 m w \in\mathbb{R}_{\geq0}^{m} w ∈ R ≥ 0 m , define its total weight W ( w ) ∈ R ≥ 0 W(w) \in\mathbb{R}_{\geq0} W ( w ) ∈ R ≥ 0 , its weighted loss function L w : T → R ≥ 0 L_w:\mathcal{T}\to\mathbb{R}_{\geq0} L w : T → R ≥ 0 , and its minimum weighted loss τ w ( F ) ∈ R ≥ 0 \tau_w(F) \in\mathbb{R}_{\geq0} τ w ( F ) ∈ R ≥ 0 by
W ( w ) : = ∑ e w e , L w ( t ) : = ∑ e = { u , v } w e t u t v , τ w ( F ) : = min t ∈ T L w ( t ) . (1) W(w) := \sum_e w_e,\qquad L_w(t) := \sum_{e=\{u,v\}} w_e t_u t_v,\qquad\tau_w(F) := \min_{t\in\mathcal{T}} L_w(t). \tag*{(1)} W ( w ) := e ∑ w e , L w ( t ) := e = { u , v } ∑ w e t u t v , τ w ( F ) := t ∈ T min L w ( t ) . (1)
We omit zero-weight clauses from weighted sums. Assignments specified on all variables incident to positive-weight clauses are extended arbitrarily to the remaining variables.
For W ( w ) > 0 W(w)>0 W ( w ) > 0 , the ratio τ w ( F ) / W ( w ) \tau_w(F)/W(w) τ w ( F ) / W ( w ) is the minimum, over all assignments, of the total weight of violated clauses divided by the total clause weight. To measure the difference between the incident weights at complementary literals, define the weighted degree d w : L → R ≥ 0 d_w:\mathcal{L}\to\mathbb{R}_{\geq0} d w : L → R ≥ 0 , the imbalance b : R ≥ 0 m → R n b:\mathbb{R}_{\geq0}^{m}\to\mathbb{R}^{n} b : R ≥ 0 m → R n , and the total imbalance ∥ b ( w ) ∥ 1 \lVert b(w)\rVert_1 ∥ b ( w ) ∥ 1 by
d w ( ℓ ) : = ∑ e ∋ ℓ w e , b x ( w ) : = d w ( x ) − d w ( x ˉ ) , ∥ b ( w ) ∥ 1 = ∑ x ∣ b x ( w ) ∣ . (2) d_w(\ell) := \sum_{e\ni\ell} w_e,\qquad b_x(w) := d_w(x)-d_w(\bar{x}),\qquad\lVert b(w)\rVert_1 = \sum_x \lvert b_x(w)\rvert. \tag*{(2)} d w ( ℓ ) := e ∋ ℓ ∑ w e , b x ( w ) := d w ( x ) − d w ( x ˉ ) , ∥ b ( w ) ∥ 1 = x ∑ ∣ b x ( w )∣ . (2)
Here b x ( w ) b_x(w) b x ( w ) is the coordinate of b ( w ) b(w) b ( w ) at variable x x x , and w w w is balanced precisely when b ( w ) = 0 b(w)=0 b ( w ) = 0 . For a clause probability distribution σ ∈ [ 0 , 1 ] m \sigma\in[0,1]^m σ ∈ [ 0 , 1 ] m , the induced literal distribution μ σ : L → [ 0 , 1 ] \mu_\sigma:\mathcal{L}\to[0,1] μ σ : L → [ 0 , 1 ] is given by μ σ ( ℓ ) : = 1 2 ∑ e ∋ ℓ σ e \mu_\sigma(\ell):=\frac{1}{2}\sum_{e\ni\ell}\sigma_e μ σ ( ℓ ) := 2 1 ∑ e ∋ ℓ σ e . This is the distribution obtained by drawing a clause from σ \sigma σ and choosing one of its endpoints uniformly. Thus μ w / W ( w ) ( ℓ ) = d w ( ℓ ) / ( 2 W ( w ) ) \mu_{w/W(w)}(\ell)=d_w(\ell)/(2W(w)) μ w / W ( w ) ( ℓ ) = d w ( ℓ ) / ( 2 W ( w )) whenever W ( w ) > 0 W(w)>0 W ( w ) > 0 . A clause distribution σ \sigma σ is balanced precisely when μ σ ( x ) = μ σ ( x ˉ ) \mu_\sigma(x)=\mu_\sigma(\bar{x}) μ σ ( x ) = μ σ ( x ˉ ) for every variable x x x .
For μ σ ( ℓ ) > 0 \mu_\sigma(\ell)>0 μ σ ( ℓ ) > 0 , let q σ ( ⋅ ∣ ℓ ) q_\sigma(\cdot\mid\ell) q σ ( ⋅ ∣ ℓ ) be the probability distribution on clauses incident to ℓ \ell ℓ given by
q σ ( e ∣ ℓ ) : = σ e 2 μ σ ( ℓ ) ( e ∋ ℓ ) . q_\sigma(e\mid\ell):=\frac{\sigma_e}{2\mu_\sigma(\ell)}\qquad(e\ni\ell). q σ ( e ∣ ℓ ) := 2 μ σ ( ℓ ) σ e ( e ∋ ℓ ) .
This is the conditional law of the sampled clause given that its selected endpoint is ℓ \ell ℓ .
Probability notation
We use relative entropy to compare sampling distributions and Hellinger affinity to measure their overlap. Throughout, log \log log denotes the natural logarithm, and log 2 \log_2 log 2 denotes the logarithm to base two.
For probability mass functions p , q : Ω → [ 0 , 1 ] p,q:\Omega\to[0,1] p , q : Ω → [ 0 , 1 ] on a finite set Ω \Omega Ω , define their relative entropy by
D ( p ∥ q ) : = ∑ i ∈ Ω p i log ( p i / q i ) ∈ [ 0 , + ∞ ] , \mathrm{D}(p\mathbin{\|}q):=\sum_{i\in\Omega}p_i\log(p_i/q_i)\in[0,+\infty], D ( p ∥ q ) := i ∈ Ω ∑ p i log ( p i / q i ) ∈ [ 0 , + ∞ ] ,
with p i : = p ( i ) p_i:=p(i) p i := p ( i ) , q i : = q ( i ) q_i:=q(i) q i := q ( i ) , zero summands interpreted as zero and divergence + ∞ +\infty + ∞ if p i > 0 = q i p_i>0=q_i p i > 0 = q i for some i i i .
For any finite set Ω \Omega Ω , define the Hellinger affinity Aff : R ≥ 0 Ω × R ≥ 0 Ω → R ≥ 0 \operatorname{Aff}:\mathbb{R}_{\geq0}^{\Omega}\times\mathbb{R}_{\geq0}^{\Omega}\to\mathbb{R}_{\geq0} Aff : R ≥ 0 Ω × R ≥ 0 Ω → R ≥ 0 of nonnegative mass functions p , q p,q p , q by
Aff ( p , q ) : = ∑ z ∈ Ω p ( z ) q ( z ) . \operatorname{Aff}(p,q):=\sum_{z\in\Omega}\sqrt{p(z)q(z)}. Aff ( p , q ) := z ∈ Ω ∑ p ( z ) q ( z ) .
For probability measures it lies in [ 0 , 1 ] [0,1] [ 0 , 1 ] ; we also use the definition for subprobability measures , whose total mass is at most one.
Random threshold assignments
The next lemma bounds violations involving variables assigned by a random threshold, regardless of how the remaining variables are filled in. Its second part also counts clauses with one assigned and one unassigned variable before completion. We use these bounds in § 3 , § 4 , and § 5 .
Lemma 2.1 (Assignment using a random threshold). For an E 2 S A T E2SAT E 2 S A T formula with literal set L \mathcal{L} L , let q ∈ R L q\in\mathbb{R}^{\mathcal{L}} q ∈ R L satisfy q ℓ ˉ = − q ℓ q_{\bar{\ell}}=-q_\ell q ℓ ˉ = − q ℓ , and let 0 ≤ α < β 0\leq\alpha<\beta 0 ≤ α < β . Choose θ \theta θ uniformly in [ α , β ] [\alpha,\beta] [ α , β ] . For each variable x x x with ∣ q x ∣ > θ |q_x|>\theta ∣ q x ∣ > θ , make its literal ℓ \ell ℓ with q ℓ > 0 q_\ell>0 q ℓ > 0 true; leave the other variables unassigned. For every clause e = { u , v } e=\{u,v\} e = { u , v } , the following bounds hold.
(i) For any rule for completing this partial assignment, the probability that e e e is violated and at least one endpoint was assigned by the threshold is at most [ q u + q v ] + / ( β − α ) [q_u+q_v]_+/(\beta-\alpha) [ q u + q v ] + / ( β − α ) .
(ii) Before completion, the probability that exactly one endpoint is assigned, or both endpoints are assigned and e e e is violated, is at most ∣ q u + q v ∣ / ( β − α ) |q_u+q_v|/(\beta-\alpha) ∣ q u + q v ∣/ ( β − α ) .
Proof. For (i), order the endpoints so that q u ≥ q v q_u\geq q_v q u ≥ q v . If e e e is violated and at least one endpoint was assigned by the threshold, then q u > θ q_u>\theta q u > θ and q v ≥ − θ q_v\geq-\theta q v ≥ − θ . Thus θ \theta θ belongs to [ − q v , q u ) ∩ [ α , β ] [-q_v,q_u)\cap[\alpha,\beta] [ − q v , q u ) ∩ [ α , β ] , an interval of length at most [ q u + q v ] + [q_u+q_v]_+ [ q u + q v ] + . Dividing by β − α \beta-\alpha β − α gives (i), regardless of how the unassigned variables are filled in.
For (ii), if q u , q v > 0 q_u,q_v>0 q u , q v > 0 , the event occurs exactly when θ < max { q u , q v } \theta<\max\{q_u,q_v\} θ < max { q u , q v } . Since θ ≥ 0 \theta\geq0 θ ≥ 0 , the corresponding interval has length at most max { q u , q v } ≤ q u + q v \max\{q_u,q_v\}\leq q_u+q_v max { q u , q v } ≤ q u + q v . Otherwise, e e e cannot be violated when both endpoints are assigned. Exactly one endpoint is assigned only for thresholds between ∣ q u ∣ |q_u| ∣ q u ∣ and ∣ q v ∣ |q_v| ∣ q v ∣ , an interval of length ∣ ∣ q u ∣ − ∣ q v ∣ ∣ ≤ ∣ q u + q v ∣ ||q_u|-|q_v||\leq|q_u+q_v| ∣∣ q u ∣ − ∣ q v ∣∣ ≤ ∣ q u + q v ∣ . Dividing by β − α \beta-\alpha β − α gives (ii).
Locally Computable Clause Weights
Our goal is to construct the clause weights w w w that the tester will use to sample seeds and walks, with each weight computable from a bounded neighborhood. The weights must have small relative imbalance while ensuring that, for every assignment to a far input, the violated clauses carry a positive fraction of the total weight. Theorem 3.2 gives these guarantees; § 4 will use them to obtain an exactly balanced distribution for the analysis. We first design the convex objective Φ \Phi Φ introduced in § 1.1 , whose decrease preserves a lower bound on τ w ( F ) \tau_w(F) τ w ( F ) , then use gradient descent to reduce imbalance and show how to evaluate the resulting weights locally.
Throughout this section, F F F is an E2SAT formula with m m m clauses, maximum variable degree Δ \Delta Δ , and τ ( F ) ≥ δ m > 0 \tau(F) \ge\delta m > 0 τ ( F ) ≥ δ m > 0 .
A lower bound on the minimum weighted loss
We first construct a convex function Φ \Phi Φ such that Φ ( z ) ≤ m \Phi(z) \le m Φ ( z ) ≤ m ensures a lower bound on the minimum weighted loss τ w ( z ) ( F ) \tau_{w(z)}(F) τ w ( z ) ( F ) for the weights w ( z ) w(z) w ( z ) defined below. This will let us reduce the imbalance b ( w ( z ) ) b(w(z)) b ( w ( z )) by gradient descent while maintaining this lower bound. To make the gradient equal the negative imbalance, we will take each clause weight to be the negative derivative of its contribution to Φ \Phi Φ . An exponential contribution gives positive, decreasing weights, but its derivative is unbounded on negative arguments. Continuing it linearly there caps the weights at one and gives the globally Lipschitz derivative needed for fixed-step gradient descent.
Take a vector z ∈ R n z \in\mathbb{R}^{n} z ∈ R n and extend it to literals by z x ˉ : = − z x z_{\bar{x}} := -z_x z x ˉ := − z x . Define the linear map c : R n → R m c : \mathbb{R}^{n} \to\mathbb{R}^{m} c : R n → R m with clause coordinates c e c_e c e , the scalar function ϕ : R → R ≥ 0 \phi: \mathbb{R} \to\mathbb{R}_{\ge0} ϕ : R → R ≥ 0 , and the objective Φ : R n → R ≥ 0 \Phi: \mathbb{R}^{n} \to\mathbb{R}_{\ge0} Φ : R n → R ≥ 0 by
c e ( z ) : = z u + z v , ϕ ( c ) : = { e − c c ≥ 0 , 1 − c c < 0 , Φ ( z ) : = ∑ e ϕ ( c e ( z ) ) . (3) c_e(z) := z_u + z_v,\qquad
\phi(c) :=
\begin{cases}
e^{-c} & c \ge0,\\
1-c & c < 0,
\end{cases}
\qquad
\Phi(z) := \sum_e \phi(c_e(z)). \tag*{(3)} c e ( z ) := z u + z v , ϕ ( c ) := { e − c 1 − c c ≥ 0 , c < 0 , Φ ( z ) := e ∑ ϕ ( c e ( z )) . (3)
Both ϕ \phi ϕ and Φ \Phi Φ are convex and continuously differentiable. For each z ∈ R n z \in\mathbb{R}^{n} z ∈ R n , define the clause-weight vector w ( z ) ∈ ( 0 , 1 ] m w(z) \in(0,1]^m w ( z ) ∈ ( 0 , 1 ] m coordinatewise by
w e ( z ) : = − ϕ ′ ( c e ( z ) ) = min { 1 , e − c e ( z ) } . (4) w_e(z) := -\phi'(c_e(z)) = \min\{1,e^{-c_e(z)}\}. \tag*{(4)} w e ( z ) := − ϕ ′ ( c e ( z )) = min { 1 , e − c e ( z ) } . (4)
This choice also gives ϕ ( c ) = min { 1 , e − c } + [ − c ] + \phi(c) = \min\{1,e^{-c}\} + [-c]_+ ϕ ( c ) = min { 1 , e − c } + [ − c ] + : besides the clause weight, Φ \Phi Φ includes a term that will control violations caused by reassignment. We use Lemma 2.1 (i) with scores − z ℓ -z_\ell − z ℓ to lower-bound τ w ( z ) ( F ) \tau_{w(z)}(F) τ w ( z ) ( F ) . Define the constant
k δ : = δ 4 e − 4 / δ . (5) k_\delta:= \frac{\delta}{4}e^{-4/\delta}. \tag*{(5)} k δ := 4 δ e − 4/ δ . (5)
Lemma 3.1. For every z ∈ R n z \in\mathbb{R}^{n} z ∈ R n with Φ ( z ) ≤ m \Phi(z) \le m Φ ( z ) ≤ m ,
L w ( z ) ( t ) ≥ 2 k δ m for every assignment t ∈ T , W ( w ( z ) ) ≥ 2 k δ m . L_{w(z)}(t) \ge2k_\delta m \quad\text{for every assignment } t \in T,\qquad W(w(z)) \ge2k_\delta m. L w ( z ) ( t ) ≥ 2 k δ m for every assignment t ∈ T , W ( w ( z )) ≥ 2 k δ m .
Proof. We convert an assignment t t t with small weighted loss L w ( z ) ( t ) L_{w(z)}(t) L w ( z ) ( t ) into one that violates few clauses of F F F . The obstacle is that clauses with large positive c e ( z ) c_e(z) c e ( z ) have very small weights, so their violations contribute little to L w ( z ) ( t ) L_{w(z)}(t) L w ( z ) ( t ) . Such a clause has an endpoint with large positive z ℓ z_\ell z ℓ , making that endpoint false satisfies the clause. We therefore reassign variables with large ∣ z x ∣ |z_x| ∣ z x ∣ , making their literal with positive z ℓ z_\ell z ℓ false, and retain t t t on the other variables. Clauses whose two variables retain t t t then have weights bounded below. Randomizing the threshold lets us control violations involving reassignment using Φ ( z ) ≤ m \Phi(z) \le m Φ ( z ) ≤ m .
Fix z ∈ R n z \in\mathbb{R}^{n} z ∈ R n with Φ ( z ) ≤ m \Phi(z) \le m Φ ( z ) ≤ m , an assignment t ∈ T t \in T t ∈ T , and r > 0 r > 0 r > 0 . Choose θ \theta θ uniformly in [ 0 , r ] [0,r] [ 0 , r ] and define a random assignment t θ ∈ T t^\theta\in T t θ ∈ T as follows. On variables with ∣ z x ∣ ≤ θ |z_x| \le\theta ∣ z x ∣ ≤ θ , retain t t t . On every other variable x x x , make the literal ℓ ∈ { x , x ˉ } \ell\in\{x,\bar{x}\} ℓ ∈ { x , x ˉ } with z ℓ < 0 z_{\ell}<0 z ℓ < 0 true and its complement false. This is consistent because z x ˉ = − z x z_{\bar{x}}=-z_x z x ˉ = − z x . This random assignment is used only in the proof; all probabilities and expectations below are over θ \theta θ .
For a clause e = { u , v } e=\{u,v\} e = { u , v } , we bound Pr θ [ t u θ = t v θ = 1 ] \Pr_{\theta}[t_u^\theta=t_v^\theta=1] Pr θ [ t u θ = t v θ = 1 ] , the probability that t θ t^\theta t θ violates e e e , by separating two disjoint cases. First consider the event that e e e is violated and both endpoint variables retain t t t . If this event is possible, then t u t v = 1 t_ut_v=1 t u t v = 1 and ∣ z u ∣ , ∣ z v ∣ ≤ r \lvert z_u\rvert,\lvert z_v\rvert\le r ∣ z u ∣ , ∣ z v ∣ ≤ r , so c e ( z ) ≤ 2 r c_e(z)\le2r c e ( z ) ≤ 2 r and w e ( z ) ≥ e − 2 r w_e(z)\ge e^{-2r} w e ( z ) ≥ e − 2 r . Hence the probability of this event is at most e 2 r w e ( z ) t u t v e^{2r}w_e(z)t_ut_v e 2 r w e ( z ) t u t v .
For violations involving at least one reassigned variable, Lemma 2.1 (i), with q ℓ = − z ℓ q_\ell=-z_\ell q ℓ = − z ℓ and [ α , β ] = [ 0 , r ] [\alpha,\beta]=[0,r] [ α , β ] = [ 0 , r ] , bounds their probability by [ − c e ( z ) ] + r \frac{[-c_e(z)]_+}{r} r [ − c e ( z ) ] + . Combining the two cases gives
Pr θ [ t u θ = t v θ = 1 ] ≤ e 2 r w e ( z ) t u t v + [ − c e ( z ) ] + r . \Pr_{\theta}[t_u^\theta=t_v^\theta=1]\le e^{2r}w_e(z)t_ut_v+\frac{[-c_e(z)]_+}{r}. θ Pr [ t u θ = t v θ = 1 ] ≤ e 2 r w e ( z ) t u t v + r [ − c e ( z ) ] + .
Every assignment t θ t^\theta t θ violates at least τ ( F ) \tau(F) τ ( F ) clauses. Taking the expected number of violated clauses and using ∑ e [ − c e ( z ) ] + ≤ Φ ( z ) ≤ m \sum_e[-c_e(z)]_+\le\Phi(z)\le m ∑ e [ − c e ( z ) ] + ≤ Φ ( z ) ≤ m therefore gives
δ m ≤ τ ( F ) ≤ E θ [ ∑ e = { u , v } t u θ t v θ ] ≤ e 2 r L w ( z ) ( t ) + m r . \delta m\le\tau(F)\le\mathbb{E}_{\theta}\left[\sum_{e=\{u,v\}}t_u^\theta t_v^\theta\right]\le e^{2r}L_{w(z)}(t)+\frac{m}{r}. δ m ≤ τ ( F ) ≤ E θ e = { u , v } ∑ t u θ t v θ ≤ e 2 r L w ( z ) ( t ) + r m .
Taking r : = 2 / δ r:=2/\delta r := 2/ δ yields L w ( z ) ( t ) ≥ ( δ / 2 ) e − 4 / δ m = 2 k δ m L_{w(z)}(t)\ge(\delta/2)e^{-4/\delta}m=2k_\delta m L w ( z ) ( t ) ≥ ( δ /2 ) e − 4/ δ m = 2 k δ m . The bound W ( w ( z ) ) ≥ 2 k δ m W(w(z))\ge2k_\delta m W ( w ( z )) ≥ 2 k δ m follows from L w ( z ) ( t ) ≤ W ( w ( z ) ) L_{w(z)}(t)\le W(w(z)) L w ( z ) ( t ) ≤ W ( w ( z )) .
Local evaluation of gradient descent
We now reduce the imbalance b ( w ( z ) ) b(w(z)) b ( w ( z )) while keeping Φ ( z ) ≤ m \Phi(z)\le m Φ ( z ) ≤ m , so Lemma 3.1 applies at every iterate. Averaging the resulting clause weights will preserve the lower bound on L w ( z ) ( t ) L_{w(z)}(t) L w ( z ) ( t ) for every assignment t t t and give a deterministic local oracle. To determine a step size for gradient descent, let B ∈ { − 1 , 0 , 1 } n × m B\in\{-1,0,1\}^{n\times m} B ∈ { − 1 , 0 , 1 } n × m be the signed incidence matrix: B x e : = 1 B_{xe}:=1 B x e := 1 if x ∈ e x\in e x ∈ e , − 1 -1 − 1 if x ˉ ∈ e \bar{x}\in e x ˉ ∈ e , and zero otherwise. Each column has two nonzero entries, and each row has at most Δ \Delta Δ , so ∥ B ∥ 2 2 ≤ 2 Δ \lVert B\rVert_2^2\le2\Delta ∥ B ∥ 2 2 ≤ 2Δ by ( s + t ) 2 ≤ 2 s 2 + 2 t 2 (s+t)^2\le2s^2+2t^2 ( s + t ) 2 ≤ 2 s 2 + 2 t 2 on each column. The gradient is
∇ Φ ( z ) = B ϕ ′ ( B T z ) = − b ( w ( z ) ) , \nabla\Phi(z)=B\phi'(B^{\mathsf T}z)=-b(w(z)), ∇Φ ( z ) = B ϕ ′ ( B T z ) = − b ( w ( z )) ,
where ϕ ′ \phi' ϕ ′ acts coordinatewise. Since ϕ ′ \phi' ϕ ′ is one-Lipschitz on R \mathbb{R} R , for all z , z ′ ∈ R n z,z'\in\mathbb{R}^n z , z ′ ∈ R n ,
∥ ∇ Φ ( z ) − ∇ Φ ( z ′ ) ∥ 2 ≤ ∥ B ∥ 2 2 ∥ z − z ′ ∥ 2 ≤ 2 Δ ∥ z − z ′ ∥ 2 . \lVert\nabla\Phi(z)-\nabla\Phi(z')\rVert_2\le\lVert B\rVert_2^2\lVert z-z'\rVert_2\le2\Delta\lVert z-z'\rVert_2. ∥ ∇Φ ( z ) − ∇Φ ( z ′ ) ∥ 2 ≤ ∥ B ∥ 2 2 ∥ z − z ′ ∥ 2 ≤ 2Δ ∥ z − z ′ ∥ 2 .
Accordingly, starting at z 0 : = 0 ∈ R n z^0:=0\in\mathbb{R}^n z 0 := 0 ∈ R n , define the iterates z j ∈ R n z^j\in\mathbb{R}^n z j ∈ R n for integers j ≥ 0 j\ge0 j ≥ 0 by the parallel updates
z j + 1 : = z j + b ( w ( z j ) ) 2 Δ . (6) z^{j+1}:=z^j+\frac{b(w(z^j))}{2\Delta}. \tag*{(6)} z j + 1 := z j + 2Δ b ( w ( z j )) . (6)
The 2 Δ 2\Delta 2Δ -Lipschitz bound on ∇ Φ \nabla\Phi ∇Φ yields
Φ ( z j + 1 ) ≤ Φ ( z j ) − ∥ b ( w ( z j ) ) ∥ 2 2 4 Δ . (7) \Phi(z^{j+1})\le\Phi(z^j)-\frac{\lVert b(w(z^j))\rVert_2^2}{4\Delta}. \tag*{(7)} Φ ( z j + 1 ) ≤ Φ ( z j ) − 4Δ ∥ b ( w ( z j )) ∥ 2 2 . (7)
Thus every iterate has Φ ( z j ) ≤ m \Phi(z^j)\le m Φ ( z j ) ≤ m , and Lemma 3.1 gives L w ( z j ) ( t ) ≥ 2 k δ m L_{w(z^j)}(t)\ge2k_\delta m L w ( z j ) ( t ) ≥ 2 k δ m for every assignment t t t . For an integer T ≥ 1 T\ge1 T ≥ 1 , summing (7) over T T T rounds and using Φ ≥ 0 \Phi\ge0 Φ ≥ 0 gives
∑ j = 0 T − 1 ∥ b ( w ( z j ) ) ∥ 2 2 ≤ 4 Δ m . (8) \sum_{j=0}^{T-1}\lVert b(w(z^j))\rVert_2^2\le4\Delta m. \tag*{(8)} j = 0 ∑ T − 1 ∥ b ( w ( z j )) ∥ 2 2 ≤ 4Δ m . (8)
Equation (8) controls the squared imbalances summed over rounds. To obtain one weight vector, we average the weights from all rounds; this avoids selecting a good round by inspecting its imbalance across the whole formula. Averaging also preserves the lower bound on L w ( t ) L_w(t) L w ( t ) for every fixed assignment t t t , since L w ( t ) L_w(t) L w ( t ) is linear in w w w . Define w ˉ ∈ ( 0 , 1 ] m \bar{w} \in(0,1]^m w ˉ ∈ ( 0 , 1 ] m by
w ˉ : = 1 T ∑ j = 0 T − 1 w ( z j ) . (9) \bar{w} := \frac{1}{T}\sum_{j=0}^{T-1}w(z^j). \tag*{(9)} w ˉ := T 1 j = 0 ∑ T − 1 w ( z j ) . (9)
To bound the imbalance of w ˉ \bar{w} w ˉ , note that b b b is linear, so ∥ b ( w ) ∥ 1 \lVert b(w)\rVert_1 ∥ b ( w ) ∥ 1 is convex in w w w . There are at most 2 m 2m 2 m nonisolated variables; hence Cauchy–Schwarz and (8) give
∥ b ( w ˉ ) ∥ 1 ≤ 1 T ∑ j = 0 T − 1 ∥ b ( w ( z j ) ) ∥ 1 ≤ 2 m T ∑ j = 0 T − 1 ∥ b ( w ( z j ) ) ∥ 2 2 ≤ m 8 Δ T . (10) \lVert b(\bar{w})\rVert_1 \le\frac{1}{T}\sum_{j=0}^{T-1}\lVert b(w(z^j))\rVert_1 \le\sqrt{\frac{2m}{T}\sum_{j=0}^{T-1}\lVert b(w(z^j))\rVert_2^2} \le m\sqrt{\frac{8\Delta}{T}}. \tag*{(10)} ∥ b ( w ˉ ) ∥ 1 ≤ T 1 j = 0 ∑ T − 1 ∥ b ( w ( z j )) ∥ 1 ≤ T 2 m j = 0 ∑ T − 1 ∥ b ( w ( z j )) ∥ 2 2 ≤ m T 8Δ . (10)
We next show that the averaged weights w ˉ \bar{w} w ˉ can be evaluated locally. The variable graph has the variables of F F F as vertices, with two variables adjacent if they share a clause.
Theorem 3.2 (Locally computable weights). For constants δ > 0 \delta> 0 δ > 0 , Δ ≥ 2 \Delta\ge2 Δ ≥ 2 , and 0 < β ≤ 1 0 < \beta\le1 0 < β ≤ 1 , there is a deterministic local oracle specifying one weight vector w ∈ ( 0 , 1 ] m w \in(0,1]^m w ∈ ( 0 , 1 ] m : all query answers, including repeated queries, agree with this vector. Under the standing assumption τ ( F ) ≥ δ m > 0 \tau(F) \ge\delta m > 0 τ ( F ) ≥ δ m > 0 ,
W ( w ) ≥ k δ m , ∥ b ( w ) ∥ 1 W ( w ) ≤ β , min t ∈ T L w ( t ) W ( w ) ≥ k δ / 2. W(w) \ge k_\delta m,\qquad\frac{\lVert b(w)\rVert_1}{W(w)} \le\beta,\qquad\min_{t\in\mathcal{T}}\frac{L_w(t)}{W(w)} \ge k_\delta/2. W ( w ) ≥ k δ m , W ( w ) ∥ b ( w ) ∥ 1 ≤ β , t ∈ T min W ( w ) L w ( t ) ≥ k δ /2. A clause weight can be evaluated from the radius-( T + 1 ) (T+1) ( T + 1 ) neighborhood of its endpoints in the variable graph, where
T : = ⌈ 288 Δ k δ 2 β 2 ⌉ . T := \left\lceil\frac{288\Delta}{k_\delta^2\beta^2}\right\rceil. T := ⌈ k δ 2 β 2 288Δ ⌉ . The direct implementation uses O ( Δ T + 2 ) O(\Delta^{T+2}) O ( Δ T + 2 ) incidence queries per weight, depending only on δ \delta δ , Δ \Delta Δ , β \beta β .
Proof. Set w : = w ˉ w := \bar{w} w := w ˉ from (9) . Since W W W and L w ( t ) L_w(t) L w ( t ) for each assignment t t t are linear in w w w , averaging the bounds in Lemma 3.1 gives W ( w ) ≥ 2 k δ m W(w) \ge2k_\delta m W ( w ) ≥ 2 k δ m and L w ( t ) ≥ 2 k δ m L_w(t) \ge2k_\delta m L w ( t ) ≥ 2 k δ m for every t t t . By (10) and the choice of T T T ,
∥ b ( w ) ∥ 1 W ( w ) ≤ 1 k δ 2 Δ T ≤ β / 12 ≤ β . \frac{\lVert b(w)\rVert_1}{W(w)} \le\frac{1}{k_\delta}\sqrt{\frac{2\Delta}{T}} \le\beta/12 \le\beta. W ( w ) ∥ b ( w ) ∥ 1 ≤ k δ 1 T 2Δ ≤ β /12 ≤ β .
Finally, W ( w ) ≤ m W(w) \le m W ( w ) ≤ m gives min t ∈ T L w ( t ) / W ( w ) ≥ 2 k δ ≥ k δ / 2 \min_{t\in\mathcal{T}} L_w(t)/W(w) \ge2k_\delta\ge k_\delta/2 min t ∈ T L w ( t ) / W ( w ) ≥ 2 k δ ≥ k δ /2 .
It remains to evaluate w w w locally. To determine the update at a variable in round j + 1 j+1 j + 1 , query all its incident clauses and recursively compute the coordinates z j z^j z j at their endpoints. For every j < T j<T j < T , these dependencies lie in the radius-( T + 1 ) (T+1) ( T + 1 ) neighborhood of the queried clause endpoints. Query this neighborhood once, compute the required coordinates in successive rounds, and accumulate w e ( z j ) w_e(z^j) w e ( z j ) for j = 0 , … , T − 1 j=0,\ldots,T-1 j = 0 , … , T − 1 . The evaluation uses O ( Δ T + 2 ) O(\Delta^{T+2}) O ( Δ T + 2 ) queries. All answers agree with (9) , even when overlapping neighborhoods are evaluated separately. This evaluation requires neither the clause count m m m nor preprocessing of the input. □
The tester will choose β \beta β independently of n n n .
Balanced Clause Distributions
This section provides the exactly balanced clause distribution needed for the walk analysis in § 5 . Normalize the weights from Theorem 3.2 to π : = w / W ( w ) \pi:= w/W(w) π := w / W ( w ) . We construct a balanced distribution π ^ \widehat{\pi} π for which τ π ^ ( F ) \tau_{\widehat{\pi}}(F) τ π ( F ) remains bounded below by a positive constant, while controlling the change from μ π \mu_{\pi} μ π to μ π ^ \mu_{\widehat{\pi}} μ π in seed distributions and the change in conditional clause distributions (Theorem 4.1 ). These bounds will let us transfer the walk guarantees from π ^ \widehat{\pi} π back to π \pi π in § 6.1 ; the tester itself never computes π ^ \widehat{\pi} π .
We use the induced literal distributions μ σ \mu_{\sigma} μ σ and conditional clause distributions q σ ( ⋅ ∣ ℓ ) q_{\sigma}(\cdot\mid\ell) q σ ( ⋅ ∣ ℓ ) from § 2.1 . We measure changes to the conditional clause distributions by their relative entropy D D D (§ 2.2 ). We first define a convex penalty that combines these divergences, then optimize over balanced weights while penalizing such changes. The final subsection proves the rounding estimate in Lemma 4.2 , which we use to lower-bound the minimum weighted loss τ π ^ ( F ) \tau_{\widehat{\pi}}(F) τ π ( F ) .
Relative entropy of conditional clause distributions
We now define the penalty for changing conditional clause distributions. It will be a weighted sum of their relative entropies; normalizing it will give the average divergence used to compare walks. Throughout this section, F F F has m m m E2SAT clauses, and π ∈ R > 0 m \pi\in\mathbb{R}_{>0}^{m} π ∈ R > 0 m is a probability distribution on them. Write E π \mathbb{E}_{\pi} E π for expectation over a clause e = { u , v } ∼ π e=\{u,v\}\sim\pi e = { u , v } ∼ π . We use the weighted degrees d w d_w d w , imbalance b ( w ) b(w) b ( w ) , and total imbalance ∥ b ( w ) ∥ 1 \|b(w)\|_1 ∥ b ( w ) ∥ 1 from (2) , together with the induced literal distributions μ σ \mu_{\sigma} μ σ .
For a weight vector v ∈ R ≥ 0 m v\in\mathbb{R}_{\geq0}^{m} v ∈ R ≥ 0 m and a literal ℓ \ell ℓ with d v ( ℓ ) > 0 d_v(\ell)>0 d v ( ℓ ) > 0 , we compare the distributions on clauses incident to ℓ \ell ℓ that assign probabilities v e / d v ( ℓ ) v_e/d_v(\ell) v e / d v ( ℓ ) and π e / ( 2 μ π ( ℓ ) ) \pi_e/(2\mu_{\pi}(\ell)) π e / ( 2 μ π ( ℓ )) to each such clause e e e , respectively. The walk comparison will use the average of these divergences over the literal distribution induced by v v v . Before normalizing v v v , the corresponding literal masses are d v ( ℓ ) / 2 d_v(\ell)/2 d v ( ℓ ) /2 . We therefore define F π : R ≥ 0 m → R ≥ 0 F_{\pi}:\mathbb{R}_{\geq0}^{m}\to\mathbb{R}_{\geq0} F π : R ≥ 0 m → R ≥ 0 by
F π ( v ) : = 1 2 ∑ ℓ : d v ( ℓ ) > 0 d v ( ℓ ) D ( ( v e d v ( ℓ ) ) e ∋ ℓ ∥ ( π e 2 μ π ( ℓ ) ) e ∋ ℓ ) ≥ 0. (11) F_{\pi}(v):=\frac{1}{2}\sum_{\ell:d_v(\ell)>0}d_v(\ell)D\left(\left(\frac{v_e}{d_v(\ell)}\right)_{e\ni\ell}\middle\|\left(\frac{\pi_e}{2\mu_{\pi}(\ell)}\right)_{e\ni\ell}\right)\geq0. \tag*{(11)} F π ( v ) := 2 1 ℓ : d v ( ℓ ) > 0 ∑ d v ( ℓ ) D ( ( d v ( ℓ ) v e ) e ∋ ℓ ( 2 μ π ( ℓ ) π e ) e ∋ ℓ ) ≥ 0. (11)
The coefficients d v ( ℓ ) / 2 d_v(\ell)/2 d v ( ℓ ) /2 in (11) sum to W ( v ) W(v) W ( v ) . Thus, for W ( v ) > 0 W(v)>0 W ( v ) > 0 , the average divergence over a literal drawn from μ v / W ( v ) \mu_v/W(v) μ v / W ( v ) is F π ( v ) / W ( v ) F_{\pi}(v)/W(v) F π ( v ) / W ( v ) .
Expanding the conditional relative entropies gives
F π ( v ) = ∑ e v e log v e π e − 1 2 ∑ ℓ d v ( ℓ ) log d v ( ℓ ) 2 μ π ( ℓ ) . (12) F_{\pi}(v)=\sum_e v_e\log\frac{v_e}{\pi_e}-\frac{1}{2}\sum_{\ell}d_v(\ell)\log\frac{d_v(\ell)}{2\mu_{\pi}(\ell)}. \tag*{(12)} F π ( v ) = e ∑ v e log π e v e − 2 1 ℓ ∑ d v ( ℓ ) log 2 μ π ( ℓ ) d v ( ℓ ) . (12)
The subtracted term removes the contribution from changing the literal masses, leaving only the weighted sum of relative entropies in (11) . Zero terms are interpreted by continuity. Any μ π ( ℓ ) = 0 \mu_{\pi}(\ell)=0 μ π ( ℓ ) = 0 also has d v ( ℓ ) = 0 d_v(\ell)=0 d v ( ℓ ) = 0 because v v v is supported on the same clauses.
To verify convexity of F π F_{\pi} F π , consider a literal with μ π ( ℓ ) > 0 \mu_{\pi}(\ell)>0 μ π ( ℓ ) > 0 . Its summand in (11) is one half of ∑ e ∋ ℓ v e log ( v e / ( d v ( ℓ ) q π ( e ∣ ℓ ) ) ) \sum_{e\ni\ell}v_e\log(v_e/(d_v(\ell)q_{\pi}(e\mid\ell))) ∑ e ∋ ℓ v e log ( v e / ( d v ( ℓ ) q π ( e ∣ ℓ ))) . Both the numerator and the denominator inside each logarithm depend linearly on v v v , so the log-sum inequality gives convexity under mixtures of weight vectors. Summing over literals proves that F π F_{\pi} F π is convex. Formula (12) , with the zero-term convention, also gives continuity on the nonnegative orthant and F π ( c v ) = c F π ( v ) F_{\pi}(cv)=cF_{\pi}(v) F π ( c v ) = c F π ( v ) for c ≥ 0 c\geq0 c ≥ 0 .
For a clause probability distribution π ^ ∈ [ 0 , 1 ] m \widehat{\pi}\in[0,1]^m π ∈ [ 0 , 1 ] m , formula (12) becomes
F π ( π ^ ) = D ( π ^ ∥ π ) − D ( μ π ^ ∥ μ π ) . (13) F_{\pi}(\widehat{\pi})=D(\widehat{\pi}\|\pi)-D(\mu_{\widehat{\pi}}\|\mu_{\pi}). \tag*{(13)} F π ( π ) = D ( π ∥ π ) − D ( μ π ∥ μ π ) . (13)
By (11) ,
F π ( π ^ ) = E ℓ ∼ μ π ^ ( D ( q π ^ ( ⋅ ∣ ℓ ) ∥ q π ( ⋅ ∣ ℓ ) ) ) . F_{\pi}(\widehat{\pi})=\mathbb{E}_{\ell\sim\mu_{\widehat{\pi}}}\left(D\left(q_{\widehat{\pi}}(\cdot\mid\ell)\mathbin\Vert q_{\pi}(\cdot\mid\ell)\right)\right). F π ( π ) = E ℓ ∼ μ π ( D ( q π ( ⋅ ∣ ℓ ) ∥ q π ( ⋅ ∣ ℓ ) ) ) .
We will use F π ( π ^ ) F_{\pi}(\widehat{\pi}) F π ( π ) to bound the divergence between walks in Lemma 6.1 .
Constructing a balanced clause distribution
We seek balanced weights v ∈ R ≥ 0 m v\in\mathbb{R}_{\geq0}^{m} v ∈ R ≥ 0 m for which τ v ( F ) \tau_v(F) τ v ( F ) remains bounded below by a positive constant while the conditional clause distributions change only slightly. Thus we want τ v ( F ) \tau_v(F) τ v ( F ) to be large and F π ( v ) / W ( v ) F_{\pi}(v)/W(v) F π ( v ) / W ( v ) to be small. We restrict to 0 ≤ v ≤ π 0\leq v\leq\pi 0 ≤ v ≤ π , reducing the original weights to obtain balance. Once W ( v ) W(v) W ( v ) is bounded below, this restriction will also control how much normalization can increase any clause probability.
For α > 0 \alpha>0 α > 0 , we combine the two requirements in the objective α τ v ( F ) − F π ( v ) \alpha\tau_v(F)-F_{\pi}(v) α τ v ( F ) − F π ( v ) . A positive value implies
F π ( v ) W ( v ) < α τ v ( F ) W ( v ) ≤ α , \frac{F_{\pi}(v)}{W(v)}<\alpha\frac{\tau_v(F)}{W(v)}\leq\alpha, W ( v ) F π ( v ) < α W ( v ) τ v ( F ) ≤ α ,
so smaller α \alpha α requires smaller average divergence. More quantitatively, for h > 0 h>0 h > 0 , a value at least α h \alpha h α h implies τ v ( F ) ≥ h \tau_v(F)\geq h τ v ( F ) ≥ h and W ( v ) ≥ h W(v)\geq h W ( v ) ≥ h . Since W ( v ) ≤ 1 W(v)\leq1 W ( v ) ≤ 1 , normalizing to π ^ = v / W ( v ) \widehat{\pi}=v/W(v) π = v / W ( v ) then gives τ π ^ ( F ) ≥ h \tau_{\widehat{\pi}}(F)\geq h τ π ( F ) ≥ h and π ^ e ≤ π e / h \widehat{\pi}_e\leq\pi_e/h π e ≤ π e / h . We therefore define the optimal value V α ( π ) ∈ R ≥ 0 V_{\alpha}(\pi)\in\mathbb{R}_{\geq0} V α ( π ) ∈ R ≥ 0 by
V α ( π ) : = max 0 ≤ v ≤ π , b ( v ) = 0 { α τ v ( F ) − F π ( v ) } . (14) V_{\alpha}(\pi):=\max_{\substack{0\leq v\leq\pi,\,b(v)=0}}\left\{\alpha\tau_v(F)-F_{\pi}(v)\right\}. \tag*{(14)} V α ( π ) := 0 ≤ v ≤ π , b ( v ) = 0 max { α τ v ( F ) − F π ( v ) } . (14)
The maximum in (14) is attained by continuity and compactness, and v = 0 v=0 v = 0 gives V α ( π ) ≥ 0 V_{\alpha}(\pi)\geq0 V α ( π ) ≥ 0 . We will prove a quantitative positive lower bound and normalize an optimizer. The theorem below gives the resulting guarantees with explicit constants.
Theorem 4.1 (Balanced clause distribution). For 0 < α ≤ 1 0<\alpha\leq1 0 < α ≤ 1 and β : = ∥ b ( π ) ∥ 1 \beta:=\lVert b(\pi)\rVert_1 β := ∥ b ( π ) ∥ 1 ,
V α ( π ) ≥ α τ π ( F ) 2 8 − β 4 . (15) V_{\alpha}(\pi)\geq\frac{\alpha\tau_{\pi}(F)^2}{8}-\frac{\beta}{4}. \tag*{(15)} V α ( π ) ≥ 8 α τ π ( F ) 2 − 4 β . (15) In particular, if τ π ( F ) ≥ δ > 0 \tau_{\pi}(F)\geq\delta>0 τ π ( F ) ≥ δ > 0 and β ≤ α δ 2 / 400 \beta\leq\alpha\delta^2/400 β ≤ α δ 2 /400 , then there is a balanced clause distribution π ^ ∈ [ 0 , 1 ] m \widehat{\pi}\in[0,1]^m π ∈ [ 0 , 1 ] m such that, with h : = δ 2 / 1600 h:=\delta^2/1600 h := δ 2 /1600 ,
π ^ e ≤ π e 2 h , τ π ^ ( F ) ≥ h , F π ( π ^ ) ≤ α / 2 , D ( μ π ^ ∥ μ π ) ≤ log 1 2 h . (16) \widehat{\pi}_e\leq\frac{\pi_e}{2h},\qquad\tau_{\widehat{\pi}}(F)\geq h,\qquad F_{\pi}(\widehat{\pi})\leq\alpha/2,\qquad D(\mu_{\widehat{\pi}}\mathbin\Vert\mu_{\pi})\leq\log\frac{1}{2h}. \tag*{(16)} π e ≤ 2 h π e , τ π ( F ) ≥ h , F π ( π ) ≤ α /2 , D ( μ π ∥ μ π ) ≤ log 2 h 1 . (16)
Proof. To lower-bound V α ( π ) V_{\alpha}(\pi) V α ( π ) directly, we would need a single balanced weight vector whose loss is large for every assignment. We use minimax to let the weight vector respond to a fixed distribution of assignments, enforcing the balance constraints using Lagrange multipliers z ∈ R n z\in\mathbb{R}^{n} z ∈ R n . Extend them by z x ‾ : = − z x z_{\overline{x}}:=-z_x z x := − z x , and recall c e ( z ) = z u + z v c_e(z)=z_u+z_v c e ( z ) = z u + z v . Let D : T → [ 0 , 1 ] \mathcal{D}: \mathcal{T}\to[0,1] D : T → [ 0 , 1 ] range over all probability mass functions on T \mathcal{T} T . For a given v v v , the infimum over z z z of ∑ x z x b x ( v ) = ∑ e c e ( z ) v e \sum_x z_xb_x(v)=\sum_e c_e(z)v_e ∑ x z x b x ( v ) = ∑ e c e ( z ) v e is zero when v v v is balanced and − ∞ -\infty − ∞ otherwise. Also, inf D E t ∼ D L v ( t ) = τ v ( F ) \inf_{\mathcal{D}}\mathbb{E}_{t\sim\mathcal{D}}L_v(t)=\tau_v(F) inf D E t ∼ D L v ( t ) = τ v ( F ) . The box 0 ≤ v ≤ π 0\leq v\leq\pi 0 ≤ v ≤ π is compact and convex, and the objective in (17) is continuous, concave in v v v , and affine in ( D , z ) (\mathcal{D},z) ( D , z ) . Minimax therefore gives
V α ( π ) = inf D , z max 0 ≤ v ≤ π { α E t ∼ D L v ( t ) + ∑ e c e ( z ) v e − F π ( v ) } . (17) V_{\alpha}(\pi)=\inf_{\mathcal{D},z}\max_{0\leq v\leq\pi}\left\{\alpha\mathbb{E}_{t\sim\mathcal{D}}L_v(t)+\sum_e c_e(z)v_e-F_{\pi}(v)\right\}. \tag*{(17)} V α ( π ) = D , z inf 0 ≤ v ≤ π max { α E t ∼ D L v ( t ) + e ∑ c e ( z ) v e − F π ( v ) } . (17)
It now suffices, for each fixed D , z \mathcal{D},z D , z , to choose a trial weight vector v ^ \widehat{v} v in the box 0 ≤ v ^ ≤ π 0\leq\widehat{v}\leq\pi 0 ≤ v ≤ π and lower-bound the objective in (17) . The trial vector need not be balanced: the outer infimum over z z z already accounts for the balance constraint. Fix D \mathcal{D} D , z z z and let p ∈ [ 0 , 1 ] m p \in[0,1]^m p ∈ [ 0 , 1 ] m have coordinates p e : = Pr t ∼ D [ t u = t v = 1 ] p_e := \Pr_{t\sim\mathcal{D}}[t_u=t_v=1] p e := Pr t ∼ D [ t u = t v = 1 ] .
To construct v ^ \hat{v} v ^ , we turn each multiplier z ℓ z_\ell z ℓ into a bias ξ ℓ ∈ ( − 1 , 1 ) \xi_\ell\in(-1,1) ξ ℓ ∈ ( − 1 , 1 ) by requiring log ( ( 1 + ξ ℓ ) / ( 1 − ξ ℓ ) ) = 2 z ℓ \log((1+\xi_\ell)/(1-\xi_\ell))=2z_\ell log (( 1 + ξ ℓ ) / ( 1 − ξ ℓ )) = 2 z ℓ , or equivalently ξ ℓ = tanh z ℓ \xi_\ell=\tanh z_\ell ξ ℓ = tanh z ℓ . The probabilities ( 1 + ξ ℓ ) / 2 (1+\xi_\ell)/2 ( 1 + ξ ℓ ) /2 and ( 1 + ξ ℓ ˉ ) / 2 (1+\xi_{\bar{\ell}})/2 ( 1 + ξ ℓ ˉ ) /2 sum to one. Consider a random assignment in which the variables are independent and each literal ℓ \ell ℓ is true with probability ( 1 + ξ ℓ ) / 2 (1+\xi_\ell)/2 ( 1 + ξ ℓ ) /2 . Under this assignment, clause { u , v } \{u,v\} { u , v } is violated with probability ( 1 + ξ u ) ( 1 + ξ v ) / 4 (1+\xi_u)(1+\xi_v)/4 ( 1 + ξ u ) ( 1 + ξ v ) /4 . We use this probability as the fraction of π e \pi_e π e retained in v ^ e \hat{v}_e v ^ e . The product form makes log ( v ^ e / π e ) \log(\hat{v}_e/\pi_e) log ( v ^ e / π e ) split into one term for u u u and one for v v v , and the log-odds relation above lets us combine them with c e ( z ) = z u + z v c_e(z)=z_u+z_v c e ( z ) = z u + z v . Define G ∈ ( 0 , 4 ) m G\in(0,4)^m G ∈ ( 0 , 4 ) m and v ^ ∈ R ≥ 0 m \hat{v}\in\mathbb{R}_{\geq0}^m v ^ ∈ R ≥ 0 m by
ξ ℓ = tanh z ℓ , G e : = ( 1 + ξ u ) ( 1 + ξ v ) , v ^ e : = π e G e 4 . (18) \xi_\ell=\tanh z_\ell,\qquad G_e:=(1+\xi_u)(1+\xi_v),\qquad\hat{v}_e:=\frac{\pi_eG_e}{4}. \tag*{(18)} ξ ℓ = tanh z ℓ , G e := ( 1 + ξ u ) ( 1 + ξ v ) , v ^ e := 4 π e G e . (18)
Here ξ ℓ ˉ = − ξ ℓ \xi_{\bar{\ell}}=-\xi_\ell ξ ℓ ˉ = − ξ ℓ , and 0 < v ^ e < π e 0<\hat{v}_e<\pi_e 0 < v ^ e < π e .
To bound the part ∑ e c e ( z ) v ^ e − F π ( v ^ ) \sum_e c_e(z)\hat{v}_e-F_\pi(\hat{v}) ∑ e c e ( z ) v ^ e − F π ( v ^ ) of the objective in (17) , apply the following identity for each literal ℓ \ell ℓ :
z ℓ − log 1 + ξ ℓ 2 = − 1 2 log 1 − ξ ℓ 2 4 . (19) z_\ell-\log\frac{1+\xi_\ell}{2}=-\frac{1}{2}\log\frac{1-\xi_\ell^2}{4}. \tag*{(19)} z ℓ − log 2 1 + ξ ℓ = − 2 1 log 4 1 − ξ ℓ 2 . (19)
In the resulting sum over literals, the denominator 2 μ π ( ℓ ) 2\mu_\pi(\ell) 2 μ π ( ℓ ) from (12) acquires the factor ( 1 − ξ ℓ 2 ) / 4 (1-\xi_\ell^2)/4 ( 1 − ξ ℓ 2 ) /4 . Define auxiliary literal masses q ∈ R ≥ 0 L q\in\mathbb{R}_{\geq0}^{\mathcal{L}} q ∈ R ≥ 0 L by
q ℓ : = μ π ( ℓ ) ( 1 − ξ ℓ 2 ) 2 . q_\ell:=\frac{\mu_\pi(\ell)(1-\xi_\ell^2)}{2}. q ℓ := 2 μ π ( ℓ ) ( 1 − ξ ℓ 2 ) .
For every literal with μ π ( ℓ ) > 0 \mu_\pi(\ell)>0 μ π ( ℓ ) > 0 , both q ℓ q_\ell q ℓ and d v ^ ( ℓ ) d_{\hat{v}}(\ell) d v ^ ( ℓ ) are positive. Expanding (12) using (19) and the definition of q ℓ q_\ell q ℓ gives
∑ e c e ( z ) v ^ e − F π ( v ^ ) = 1 2 ∑ ℓ : μ π ( ℓ ) > 0 d v ^ ( ℓ ) log d v ^ ( ℓ ) q ℓ ≥ W ( v ^ ) − 1 2 ∑ ℓ q ℓ = 1 8 E π ( ξ u + ξ v ) 2 + 1 4 ∑ x b x ( π ) ξ x . (20) \begin{aligned}
\sum_e c_e(z)\hat{v}_e-F_\pi(\hat{v})
&=\frac{1}{2}\sum_{\ell:\mu_\pi(\ell)>0}d_{\hat{v}}(\ell)\log\frac{d_{\hat{v}}(\ell)}{q_\ell}\\
&\geq W(\hat{v})-\frac{1}{2}\sum_\ell q_\ell\\
&=\frac{1}{8}\mathbb{E}_\pi(\xi_u+\xi_v)^2+\frac{1}{4}\sum_x b_x(\pi)\xi_x. \tag*{(20)}
\end{aligned} e ∑ c e ( z ) v ^ e − F π ( v ^ ) = 2 1 ℓ : μ π ( ℓ ) > 0 ∑ d v ^ ( ℓ ) log q ℓ d v ^ ( ℓ ) ≥ W ( v ^ ) − 2 1 ℓ ∑ q ℓ = 8 1 E π ( ξ u + ξ v ) 2 + 4 1 x ∑ b x ( π ) ξ x . (20)
The inequality in (20) uses x log ( x / y ) ≥ x − y x\log(x/y)\geq x-y x log ( x / y ) ≥ x − y for x , y > 0 x,y>0 x , y > 0 . The last equality in (20) follows by expanding G e G_e G e and using E π ( ξ u + ξ v ) = ∑ x b x ( π ) ξ x \mathbb{E}_\pi(\xi_u+\xi_v)=\sum_x b_x(\pi)\xi_x E π ( ξ u + ξ v ) = ∑ x b x ( π ) ξ x .
It remains to combine 1 8 E π ( ξ u + ξ v ) 2 \frac{1}{8}\mathbb{E}_\pi(\xi_u+\xi_v)^2 8 1 E π ( ξ u + ξ v ) 2 with the expected weighted loss α E t ∼ D L v ^ ( t ) \alpha\mathbb{E}_{t\sim\mathcal{D}}L_{\hat{v}}(t) α E t ∼ D L v ^ ( t ) . Define D ξ , U ≥ 0 D_\xi,U\geq0 D ξ , U ≥ 0 by
D ξ : = E π ( ξ u + ξ v ) 2 , U : = E π [ p e G e ] , D_\xi:=\mathbb{E}_\pi(\xi_u+\xi_v)^2,\qquad U:=\mathbb{E}_\pi[p_eG_e], D ξ := E π ( ξ u + ξ v ) 2 , U := E π [ p e G e ] ,
so that the loss term is α ∑ e p e v ^ e = α U / 4 \alpha\sum_e p_e\hat{v}_e=\alpha U/4 α ∑ e p e v ^ e = α U /4 . Lemma 4.2, proved in the next subsection, gives D ξ + 2 U ≥ τ π ( F ) 2 D_\xi+2U\geq\tau_\pi(F)^2 D ξ + 2 U ≥ τ π ( F ) 2 for every assignment distribution D \mathcal{D} D and every family ( ξ ℓ ) ℓ ∈ L (\xi_\ell)_{\ell\in\mathcal{L}} ( ξ ℓ ) ℓ ∈ L with ξ ℓ ∈ [ − 1 , 1 ] \xi_\ell\in[-1,1] ξ ℓ ∈ [ − 1 , 1 ] and ξ ℓ ˉ = − ξ ℓ \xi_{\bar{\ell}}=-\xi_\ell ξ ℓ ˉ = − ξ ℓ . Since ∣ ξ x ∣ ≤ 1 |\xi_x|\leq1 ∣ ξ x ∣ ≤ 1 , we also have ∑ x b x ( π ) ξ x ≥ − β \sum_x b_x(\pi)\xi_x\geq-\beta ∑ x b x ( π ) ξ x ≥ − β . Adding α U / 4 \alpha U/4 α U /4 to (20) therefore yields
α ∑ e p e v ^ e + ∑ e c e ( z ) v ^ e − F π ( v ^ ) ≥ D ξ + 2 α U 8 − β 4 ≥ α τ π ( F ) 2 8 − β 4 . (21) \alpha\sum_e p_e\hat{v}_e+\sum_e c_e(z)\hat{v}_e-F_\pi(\hat{v})
\geq\frac{D_\xi+2\alpha U}{8}-\frac{\beta}{4}
\geq\frac{\alpha\tau_\pi(F)^2}{8}-\frac{\beta}{4}. \tag*{(21)} α e ∑ p e v ^ e + e ∑ c e ( z ) v ^ e − F π ( v ^ ) ≥ 8 D ξ + 2 α U − 4 β ≥ 8 α τ π ( F ) 2 − 4 β . (21)
The last inequality in (21) uses α ≤ 1 \alpha\leq1 α ≤ 1 and D ξ + 2 U ≥ τ π ( F ) 2 D_\xi+2U\geq\tau_\pi(F)^2 D ξ + 2 U ≥ τ π ( F ) 2 . The lower bound (21) holds for every D , z \mathcal{D},z D , z , so (17) proves (15) .
To obtain the distribution guarantees in (16) , suppose τ π ( F ) ≥ δ \tau_\pi(F) \ge\delta τ π ( F ) ≥ δ and β ≤ α δ 2 / 400 \beta\le\alpha\delta^2/400 β ≤ α δ 2 /400 . Then (15) gives V α ( π ) ≥ α h V_\alpha(\pi) \ge\alpha h V α ( π ) ≥ α h for h = δ 2 / 1600 h = \delta^2/1600 h = δ 2 /1600 . Take an optimizer v v v in (14) and put W : = W ( v ) W := W(v) W := W ( v ) . A uniformly random assignment violates each E2SAT clause with probability 1 / 4 1/4 1/4 , so τ v ( F ) ≤ W / 4 ≤ W / 2 \tau_v(F) \le W/4 \le W/2 τ v ( F ) ≤ W /4 ≤ W /2 . Together with F π ( v ) ≥ 0 F_\pi(v) \ge0 F π ( v ) ≥ 0 and v ≤ π v \le\pi v ≤ π , the inequality α τ v ( F ) − F π ( v ) ≥ α h \alpha\tau_v(F) - F_\pi(v) \ge\alpha h α τ v ( F ) − F π ( v ) ≥ α h implies 2 h ≤ W ≤ 1 2h \le W \le1 2 h ≤ W ≤ 1 . Normalize π ^ : = v / W \widehat{\pi} := v/W π := v / W . Then π ^ \widehat{\pi} π is balanced, and homogeneity gives
τ π ^ ( F ) ≥ h / W ≥ h , F π ( π ^ ) = F π ( v ) W ≤ α τ v ( F ) W ≤ α / 2. \tau_{\widehat{\pi}}(F) \ge h/W \ge h,\qquad F_\pi(\widehat{\pi}) = \frac{F_\pi(v)}{W} \le\frac{\alpha\tau_v(F)}{W} \le\alpha/2. τ π ( F ) ≥ h / W ≥ h , F π ( π ) = W F π ( v ) ≤ W α τ v ( F ) ≤ α /2.
Finally, v ≤ π v \le\pi v ≤ π and W ≥ 2 h W \ge2h W ≥ 2 h give both π ^ e ≤ π e / ( 2 h ) \widehat{\pi}_e \le\pi_e/(2h) π e ≤ π e / ( 2 h ) and μ π ^ ( ℓ ) ≤ μ π ( ℓ ) / ( 2 h ) \mu_{\widehat{\pi}}(\ell) \le\mu_\pi(\ell)/(2h) μ π ( ℓ ) ≤ μ π ( ℓ ) / ( 2 h ) . The bound on μ π ^ \mu_{\widehat{\pi}} μ π implies D ( μ π ^ ∥ μ π ) ≤ log ( 1 / ( 2 h ) ) D(\mu_{\widehat{\pi}}\Vert\mu_\pi) \le\log(1/(2h)) D ( μ π ∥ μ π ) ≤ log ( 1/ ( 2 h )) , completing (16) .
The distribution π ^ \widehat{\pi} π in (16) is used only in the analysis. The tester samples with w w w from Theorem 3.2.
Reassigning variables using a random threshold
We now prove the inequality D ξ + 2 U ≥ τ π ( F ) 2 D_\xi+ 2U \ge\tau_\pi(F)^2 D ξ + 2 U ≥ τ π ( F ) 2 used in the proof of Theorem 4.1. For the trial weights v ^ \widehat{v} v in (18) , U / 4 = E t ∼ D L v ^ ( t ) U/4 = \mathbb{E}_{t\sim\mathcal{D}}L_{\widehat{v}}(t) U /4 = E t ∼ D L v ( t ) is the expected weighted loss under v ^ \widehat{v} v , and D ξ / 8 D_\xi/8 D ξ /8 is the first term in the final expression of (20) . The next lemma applies to any ξ ℓ ∈ [ − 1 , 1 ] \xi_\ell\in[-1,1] ξ ℓ ∈ [ − 1 , 1 ] satisfying ξ ℓ ‾ = − ξ ℓ \xi_{\overline{\ell}} = -\xi_\ell ξ ℓ = − ξ ℓ , including ξ ℓ = tanh z ℓ \xi_\ell= \tanh z_\ell ξ ℓ = tanh z ℓ . In the proof, we reassign variables using a random threshold and bound the expected weighted loss E L π ( t θ ) \mathbb{E}L_\pi(t^\theta) E L π ( t θ ) of the resulting assignment t θ t^\theta t θ by U + D ξ U + \sqrt{D_\xi} U + D ξ .
Lemma 4.2 (Reassignment using a random threshold). Let D : T → [ 0 , 1 ] \mathcal{D}:\mathcal{T}\to[0,1] D : T → [ 0 , 1 ] be a probability mass function on T \mathcal{T} T , and let p ∈ [ 0 , 1 ] m p\in[0,1]^m p ∈ [ 0 , 1 ] m have coordinates p e : = Pr t ∼ D [ t u = t v = 1 ] p_e := \Pr_{t\sim\mathcal{D}}[t_u=t_v=1] p e := Pr t ∼ D [ t u = t v = 1 ] . For each literal ℓ \ell ℓ , let ξ ℓ ∈ [ − 1 , 1 ] \xi_\ell\in[-1,1] ξ ℓ ∈ [ − 1 , 1 ] , with ξ ℓ ‾ = − ξ ℓ \xi_{\overline{\ell}}=-\xi_\ell ξ ℓ = − ξ ℓ . Define a vector G ∈ [ 0 , 4 ] m G\in[0,4]^m G ∈ [ 0 , 4 ] m and nonnegative scalars D ξ , U D_\xi,U D ξ , U by
G e : = ( 1 + ξ u ) ( 1 + ξ v ) , D ξ : = E π ( ξ u + ξ v ) 2 , U : = E π [ p e G e ] . G_e := (1+\xi_u)(1+\xi_v),\qquad D_\xi:= \mathbb{E}_\pi(\xi_u+\xi_v)^2,\qquad U := \mathbb{E}_\pi[p_eG_e]. G e := ( 1 + ξ u ) ( 1 + ξ v ) , D ξ := E π ( ξ u + ξ v ) 2 , U := E π [ p e G e ] . Here U U U is the expected loss of t ∼ D t\sim\mathcal{D} t ∼ D under clause weights π e G e \pi_eG_e π e G e , while D ξ D_\xi D ξ is the mean square of ξ u + ξ v \xi_u+\xi_v ξ u + ξ v for { u , v } ∼ π \{u,v\}\sim\pi { u , v } ∼ π . Then
τ π ( F ) ≤ U + D ξ , τ π ( F ) 2 ≤ D ξ + 2 U . (22) \tau_\pi(F) \le U+\sqrt{D_\xi},\qquad\tau_\pi(F)^2 \le D_\xi+2U. \tag*{(22)} τ π ( F ) ≤ U + D ξ , τ π ( F ) 2 ≤ D ξ + 2 U . (22)
Proof. Draw t ∼ D t\sim\mathcal{D} t ∼ D and, independently, θ \theta θ uniformly from [ 0 , 1 ] [0,1] [ 0 , 1 ] . On variables with ∣ ξ x ∣ ≤ θ |\xi_x|\le\theta ∣ ξ x ∣ ≤ θ , keep t t t ; on the remaining variables, make the literal ℓ \ell ℓ with ξ ℓ > 0 \xi_\ell>0 ξ ℓ > 0 true. Since ξ ℓ ‾ = − ξ ℓ \xi_{\overline{\ell}}=-\xi_\ell ξ ℓ = − ξ ℓ , this defines an assignment t θ ∈ T t^\theta\in\mathcal{T} t θ ∈ T .
For a clause e = { u , v } e=\{u,v\} e = { u , v } , put M e : = max { ∣ ξ u ∣ , ∣ ξ v ∣ } ∈ [ 0 , 1 ] M_e:=\max\{|\xi_u|,|\xi_v|\}\in[0,1] M e := max { ∣ ξ u ∣ , ∣ ξ v ∣ } ∈ [ 0 , 1 ] . The probability that e e e is violated and both endpoint variables retain t t t is p e ( 1 − M e ) p_e(1-M_e) p e ( 1 − M e ) . Lemma 2.1(i), with q ℓ = ξ ℓ q_\ell=\xi_\ell q ℓ = ξ ℓ and [ α , β ] = [ 0 , 1 ] [\alpha,\beta]=[0,1] [ α , β ] = [ 0 , 1 ] , bounds the probability of a violation involving reassignment by [ ξ u + ξ v ] + [\xi_u+\xi_v]_+ [ ξ u + ξ v ] + .
Since ∣ ξ u ξ v ∣ ≤ M e |\xi_u\xi_v|\le M_e ∣ ξ u ξ v ∣ ≤ M e , we have
1 − M e ≤ 1 + ξ u ξ v = G e − ( ξ u + ξ v ) ≤ G e + [ − ξ u − ξ v ] + . 1-M_e \le1+\xi_u\xi_v = G_e-(\xi_u+\xi_v) \le G_e+[-\xi_u-\xi_v]_+. 1 − M e ≤ 1 + ξ u ξ v = G e − ( ξ u + ξ v ) ≤ G e + [ − ξ u − ξ v ] + .
Using p e ≤ 1 p_e\le1 p e ≤ 1 therefore gives
Pr [ t u θ = t v θ = 1 ] ≤ p e ( 1 − M e ) + [ ξ u + ξ v ] + ≤ p e G e + ∣ ξ u + ξ v ∣ . \Pr[t_u^\theta=t_v^\theta=1]\le p_e(1-M_e)+[\xi_u+\xi_v]_+\le p_eG_e+|\xi_u+\xi_v|. Pr [ t u θ = t v θ = 1 ] ≤ p e ( 1 − M e ) + [ ξ u + ξ v ] + ≤ p e G e + ∣ ξ u + ξ v ∣.
Summing against π \pi π and applying Cauchy–Schwarz yields τ π ( F ) ≤ E L π ( t θ ) ≤ U + D ξ \tau_\pi(F)\le\mathbb{E}L_\pi(t^\theta)\le U+\sqrt{D_\xi} τ π ( F ) ≤ E L π ( t θ ) ≤ U + D ξ . For the second claim, put τ : = τ π ( F ) ≤ 1 \tau:=\tau_\pi(F)\le1 τ := τ π ( F ) ≤ 1 . Then D ξ ≥ [ τ − U ] + 2 ≥ τ 2 − 2 U D_\xi\ge[\tau-U]_+^2\ge\tau^2-2U D ξ ≥ [ τ − U ] + 2 ≥ τ 2 − 2 U , proving (22) .
Walks from Complementary Literals
We prove a constant lower bound on the two-way affinity B π ˉ B_{\bar{\pi}} B π ˉ introduced in § 1.1 , for walks of logarithmic expected length (Theorem 5.1 ). The bound applies when π ˉ \bar{\pi} π ˉ is balanced and τ π ˉ ( F ) \tau_{\bar{\pi}}(F) τ π ˉ ( F ) is bounded below by a positive constant. This supplies the guarantee that § 6 will transfer to the tester’s walks and turn into contradictory implication paths. The main difficulty is to obtain the implication paths s ⇝ s ˉ s \leadsto\bar{s} s ⇝ s ˉ and s ˉ ⇝ s \bar{s} \leadsto s s ˉ ⇝ s for the same literal s s s . Our test obtains the first path from complementary endpoint collisions among walks started at s s s , and the reverse path from such collisions among walks started at s ˉ \bar{s} s ˉ . We therefore analyze the two tests through B π ˉ B_{\bar{\pi}} B π ˉ , which averages the minimum of the endpoint affinities from s s s and s ˉ \bar{s} s ˉ . A lower bound on the affinity averaged over all starting literals does not give a lower bound on B π ˉ B_{\bar{\pi}} B π ˉ . We therefore seek a set where complementary literals have close affinities, so replacing each affinity by their minimum loses little. It then suffices to lower-bound this set’s contribution to the average affinity. We obtain that lower bound by applying a general lemma to the trace chain on the set and transferring the bound to the original walks.
Walk notation. We first define the walks and affinities used here and in § 6 , allowing any clause probability distribution σ ∈ [ 0 , 1 ] m \sigma\in[0,1]^m σ ∈ [ 0 , 1 ] m . We use μ σ \mu_\sigma μ σ and q σ q_\sigma q σ from § 2.1 . On any complement-closed set Ω ⊆ L \Omega\subseteq\mathcal{L} Ω ⊆ L , let I I I be the identity on R Ω \mathbb{R}^{\Omega} R Ω and let C : R Ω → R Ω C:\mathbb{R}^{\Omega}\to\mathbb{R}^{\Omega} C : R Ω → R Ω be the complementation operator , ( C f ) ( ℓ ) : = f ( ℓ ˉ ) (Cf)(\ell):=f(\bar{\ell}) ( C f ) ( ℓ ) := f ( ℓ ˉ ) . If p : Ω → [ 0 , 1 ] p:\Omega\to[0,1] p : Ω → [ 0 , 1 ] is a probability mass function, then C p Cp C p is the law of the complemented literal.
Let T σ ∈ [ 0 , 1 ] L × L T_\sigma\in[0,1]^{\mathcal{L}\times\mathcal{L}} T σ ∈ [ 0 , 1 ] L × L be the forward implication kernel . From a literal ℓ \ell ℓ with μ σ ( ℓ ) > 0 \mu_\sigma(\ell)>0 μ σ ( ℓ ) > 0 , it chooses a clause e = { ℓ , v } e=\{\ell,v\} e = { ℓ , v } according to q σ ( ⋅ ∣ ℓ ) q_\sigma(\mathord{\cdot}\mid\ell) q σ ( ⋅ ∣ ℓ ) and follows the implication ℓ → v ˉ \ell\to\bar{v} ℓ → v ˉ . At a literal with μ σ ( ℓ ) = 0 \mu_\sigma(\ell)=0 μ σ ( ℓ ) = 0 , it stays at ℓ \ell ℓ . The lazy implication kernel is P σ : = ( I + T σ ) / 2 ∈ [ 0 , 1 ] L × L P_\sigma:=(I+T_\sigma)/2\in[0,1]^{\mathcal{L}\times\mathcal{L}} P σ := ( I + T σ ) /2 ∈ [ 0 , 1 ] L × L .
To treat both these walks and the trace chain below, we define geometric stopping for any row-stochastic kernel K ∈ [ 0 , 1 ] Ω × Ω K\in[0,1]^{\Omega\times\Omega} K ∈ [ 0 , 1 ] Ω × Ω on a complement-closed literal set Ω \Omega Ω . Independently stop with probability η ∈ ( 0 , 1 ) \eta\in(0,1) η ∈ ( 0 , 1 ) before each step of K K K . The endpoint kernel R η K ∈ [ 0 , 1 ] Ω × Ω R^K_\eta\in[0,1]^{\Omega\times\Omega} R η K ∈ [ 0 , 1 ] Ω × Ω and its affinity function a η K : Ω → [ 0 , 1 ] a^K_\eta:\Omega\to[0,1] a η K : Ω → [ 0 , 1 ] are
R η K : = η ∑ r ≥ 0 ( 1 − η ) r K r , a η K ( s ) : = Aff ( R η K ( s , ⋅ ) , C R η K ( s , ⋅ ) ) . (23) R^K_\eta:=\eta\sum_{r\ge0}(1-\eta)^rK^r,\qquad
a^K_\eta(s):=\operatorname{Aff}\left(R^K_\eta(s,\mathord{\cdot}),CR^K_\eta(s,\mathord{\cdot})\right). \tag*{(23)} R η K := η r ≥ 0 ∑ ( 1 − η ) r K r , a η K ( s ) := Aff ( R η K ( s , ⋅ ) , C R η K ( s , ⋅ ) ) . (23)
The walk takes exactly r r r steps with probability η ( 1 − η ) r \eta(1-\eta)^r η ( 1 − η ) r , and the stopping rule gives R η K = η I + ( 1 − η ) K R η K R^K_\eta=\eta I+(1-\eta)KR^K_\eta R η K = η I + ( 1 − η ) K R η K . We use this recursion to control entropy dissipation and the variation of affinities. The survival factor ( 1 − η ) r (1-\eta)^r ( 1 − η ) r will also let us compare walks observed at successive returns to a subset.
For the lazy implication kernel P σ P_\sigma P σ , write R σ , η ∈ [ 0 , 1 ] L × L R_{\sigma,\eta}\in[0,1]^{\mathcal{L}\times\mathcal{L}} R σ , η ∈ [ 0 , 1 ] L × L and a σ , η : L → [ 0 , 1 ] a_{\sigma,\eta}:\mathcal{L}\to[0,1] a σ , η : L → [ 0 , 1 ] for its endpoint kernel and affinity function, and define the two-way affinity B σ , η ∈ [ 0 , 1 ] B_{\sigma,\eta}\in[0,1] B σ , η ∈ [ 0 , 1 ] by
B σ , η : = R η P σ , a σ , η : = a η P σ , B_{\sigma,\eta}:=R^{P_\sigma}_\eta,\qquad a_{\sigma,\eta}:=a^{P_\sigma}_\eta, B σ , η := R η P σ , a σ , η := a η P σ ,
B σ , η : = E s ∼ μ σ min { a σ , η ( s ) , a σ , η ( s ˉ ) } . (24) B_{\sigma,\eta}:=\mathbb{E}_{s\sim\mu_\sigma}\min\{a_{\sigma,\eta}(s),a_{\sigma,\eta}(\bar{s})\}. \tag*{(24)} B σ , η := E s ∼ μ σ min { a σ , η ( s ) , a σ , η ( s ˉ )} . (24)
The subscripts specify the clause distribution and stopping probability; the argument of a σ , η a_{\sigma,\eta} a σ , η specifies the starting literal. When η \eta η is understood, we omit it from the subscripts of a σ , η a_{\sigma,\eta} a σ , η and B σ , η B_{\sigma,\eta} B σ , η .
The affinity a σ , η ( s ) a_{\sigma,\eta}(s) a σ , η ( s ) measures the overlap between the endpoint distribution from s s s and its complement. If two independent forward walks from s s s end at z z z and z ˉ \bar{z} z ˉ , reversing and complementing the second path gives z ⇝ s ˉ z\leadsto\bar{s} z ⇝ s ˉ . Concatenating it with the first path gives s ⇝ s ˉ s\leadsto\bar{s} s ⇝ s ˉ . The walks have independent geometric lengths. A contradiction also requires the path s ˉ ⇝ s \bar{s}\leadsto s s ˉ ⇝ s , obtained by the same test from s ˉ \bar{s} s ˉ , so B σ , η B_{\sigma,\eta} B σ , η takes the minimum of the two affinities before averaging.
Specialization to a balanced clause distribution. For the remainder of this section, fix a balanced clause distribution π ^ \hat{\pi} π ^ and write μ : = μ π ^ \mu:= \mu_{\hat{\pi}} μ := μ π ^ . We work on its positive support L + : = { ℓ ∈ L : μ ( ℓ ) > 0 } \mathcal{L}_{+} := \{\ell\in\mathcal{L} : \mu(\ell) > 0\} L + := { ℓ ∈ L : μ ( ℓ ) > 0 } . Balance makes L + \mathcal{L}_{+} L + closed under complementation and under the transitions of T π ^ T_{\hat{\pi}} T π ^ . We may therefore restrict μ \mu μ and the kernels T π ^ , P π ^ , R π ^ , η T_{\hat{\pi}}, P_{\hat{\pi}}, R_{\hat{\pi},\eta} T π ^ , P π ^ , R π ^ , η to L + \mathcal{L}_{+} L + , abbreviating the kernels to T , P , R η ∈ [ 0 , 1 ] L + × L + T, P, R_{\eta} \in[0,1]^{\mathcal{L}_{+}\times\mathcal{L}_{+}} T , P , R η ∈ [ 0 , 1 ] L + × L + , respectively. Define a : L + → [ 0 , 1 ] a : \mathcal{L}_{+} \to[0,1] a : L + → [ 0 , 1 ] by a ( s ) : = a π ^ , η ( s ) a(s) := a_{\hat{\pi},\eta}(s) a ( s ) := a π ^ , η ( s ) . Since μ \mu μ is supported on L + \mathcal{L}_{+} L + , this restriction leaves B π ^ B_{\hat{\pi}} B π ^ unchanged. Balance gives μ T = μ \mu T = \mu μ T = μ , so μ \mu μ is stationary for T T T and P P P . Set N : = 2 n N := 2n N := 2 n , so that ∣ L + ∣ ≤ N \lvert\mathcal{L}_{+}\rvert\leq N ∣ L + ∣ ≤ N .
Theorem 5.1. For every 0 < δ ≤ 1 0 < \delta\leq1 0 < δ ≤ 1 , there are constants b δ , C δ > 0 b_{\delta}, C_{\delta} > 0 b δ , C δ > 0 and a choice of stopping probability η = η ( δ , n ) ∈ ( 0 , 1 ) \eta= \eta(\delta,n) \in(0,1) η = η ( δ , n ) ∈ ( 0 , 1 ) with
η − 1 ≤ C δ log ( 2 n ) \eta^{-1} \leq C_{\delta}\log(2n) η − 1 ≤ C δ log ( 2 n ) such that every clause distribution π ^ \hat{\pi} π ^ with b ( π ^ ) = 0 b(\hat{\pi}) = 0 b ( π ^ ) = 0 and τ π ^ ( F ) ≥ δ \tau_{\hat{\pi}}(F) \geq\delta τ π ^ ( F ) ≥ δ satisfies B π ^ , η ≥ b δ B_{\hat{\pi},\eta} \geq b_{\delta} B π ^ , η ≥ b δ . The constants and the choice of η \eta η are explicit in the proof below.
Proof strategy. A lower bound on E s ∼ μ a ( s ) \mathbb{E}_{s\sim\mu}a(s) E s ∼ μ a ( s ) alone does not control B π ^ B_{\hat{\pi}} B π ^ : numerical pairs ( a ( s ) , a ( s ˉ ) ) = ( 1 , 0 ) (a(s),a(\bar{s})) = (1,0) ( a ( s ) , a ( s ˉ )) = ( 1 , 0 ) would have positive average affinity but zero minimum. We will use Lemma 5.2 to lower-bound the average affinity of the trace chain on a set where a ( s ) a(s) a ( s ) and a ( s ˉ ) a(\bar{s}) a ( s ˉ ) are close. Lemma 5.6 transfers this estimate to a lower bound on that set’s contribution to the original average.
Specifically, we will choose a constant 0 < λ < 1 / 2 0 < \lambda< 1/2 0 < λ < 1/2 depending only on δ \delta δ and a complement-closed set S ⊆ L + S \subseteq\mathcal{L}_{+} S ⊆ L + on which ∣ a ( s ) − a ( s ˉ ) ∣ ≤ 2 λ \lvert a(s) - a(\bar{s})\rvert\leq2\lambda ∣ a ( s ) − a ( s ˉ )∣ ≤ 2 λ . Our goal is to obtain
4 λ ≤ ∑ s ∈ S μ ( s ) a ( s ) ≤ 2 λ + B π ^ , (25) 4\lambda\leq\sum_{s\in S}\mu(s)a(s) \leq2\lambda+ B_{\hat{\pi}}, \tag*{(25)} 4 λ ≤ s ∈ S ∑ μ ( s ) a ( s ) ≤ 2 λ + B π ^ , (25)
which gives B π ^ ≥ 2 λ B_{\hat{\pi}} \geq2\lambda B π ^ ≥ 2 λ . The upper bound follows from a ( s ) ≤ 2 λ + min { a ( s ) , a ( s ˉ ) } a(s) \leq2\lambda+ \min\{a(s),a(\bar{s})\} a ( s ) ≤ 2 λ + min { a ( s ) , a ( s ˉ )} on S S S and μ ( S ) ≤ 1 \mu(S) \leq1 μ ( S ) ≤ 1 . For the lower bound, we will retain positive minimum weighted loss within S S S , measured by min t ∈ T ∑ e = { u , v } ⊆ S π ^ e t u t v \min_{t\in T}\sum_{e=\{u,v\}\subseteq S}\hat{\pi}_{e}t_{u}t_{v} min t ∈ T ∑ e = { u , v } ⊆ S π ^ e t u t v in the original weights π ^ \hat{\pi} π ^ .
To construct S S S , Lemma 5.3 bounds the mean squared change of a ( s ˉ ) − a ( s ) a(\bar{s}) - a(s) a ( s ˉ ) − a ( s ) along implications. We assign variables x x x for which a ( x ) a(x) a ( x ) and a ( x ˉ ) a(\bar{x}) a ( x ˉ ) differ by more than a threshold, making the literal ℓ \ell ℓ with a ( ℓ ˉ ) > a ( ℓ ) a(\bar{\ell}) > a(\ell) a ( ℓ ˉ ) > a ( ℓ ) true. A violated clause all of whose variables are assigned forces large positive differences at both endpoints. Averaging over the threshold controls the weight of clauses with exactly one endpoint in S S S , the set of literals of unassigned variables. Lemma 5.4 gives a threshold for which the total π ^ \hat{\pi} π ^ -weight of these clauses and violated clauses with both endpoints outside S S S is at most δ / 2 \delta/2 δ /2 . Thus every assignment on S S S still violates clauses with both endpoints in S S S of total π ^ \hat{\pi} π ^ -weight at least δ / 2 \delta/2 δ /2 , and μ ( S ) ≥ δ / 2 \mu(S) \geq\delta/2 μ ( S ) ≥ δ /2 .
To apply Lemma 5.2 on S S S , we observe P P P at successive returns to S S S . The trace chain retains the original transitions within S S S and has stationary distribution μ \mu μ conditioned on S S S , which is equal at complementary literals (Lemma 5.5). These properties let us apply the average-affinity bound using the original internal clauses. When the starting state is drawn from μ \mu μ conditioned on S S S , Lemma 5.5 also bounds the expected return time by 1 / μ ( S ) 1/\mu(S) 1/ μ ( S ) . In Lemma 5.6, we use this bound to control the mass lost to stopping along the expanded paths. By choosing a smaller stopping probability for P P P than for the trace chain, we transfer the affinity bound back to P P P , obtaining the lower bound in (25) . The proof of Theorem 5.1 chooses λ \lambda λ and both stopping probabilities using only δ , n \delta,n δ , n , before constructing S S S .
Walk identities used in the proof. As an operator on functions, T : R L + → R L + T : \mathbb{R}^{\mathcal{L}_{+}} \to\mathbb{R}^{\mathcal{L}_{+}} T : R L + → R L + acts by ( T f ) ( i ) = ∑ j T ( i , j ) f ( j ) (Tf)(i) = \sum_j T(i,j)f(j) ( T f ) ( i ) = ∑ j T ( i , j ) f ( j ) ; probability distributions are represented by row vectors in expressions such as μ T \mu T μ T . The stationary flow of a labeled arc is the probability of traversing it when the starting literal has distribution μ \mu μ . Each of the two labeled arcs u → v ˉ u \to\bar{v} u → v ˉ and v → u ˉ v \to\bar{u} v → u ˉ has stationary flow π e ˉ / 2 \pi_{\bar{e}}/2 π e ˉ /2 . Let T ∗ , P ∗ ∈ [ 0 , 1 ] L + × L + T^{*}, P^{*} \in[0,1]^{\mathcal{L}_{+}\times\mathcal{L}_{+}} T ∗ , P ∗ ∈ [ 0 , 1 ] L + × L + be the reverse kernels of T , P T,P T , P with respect to μ \mu μ , so T ∗ ( i , j ) = μ ( j ) T ( j , i ) / μ ( i ) T^{*}(i,j)=\mu(j)T(j,i)/\mu(i) T ∗ ( i , j ) = μ ( j ) T ( j , i ) / μ ( i ) . The complementary arc pairs give
T ∗ = C T C , P ∗ = ( I + T ∗ ) / 2 = C P C . T^{*}=CTC,\qquad P^{*}=(I+T^{*})/2=CPC. T ∗ = C T C , P ∗ = ( I + T ∗ ) /2 = C P C .
Consequently, C R η ( s , ⋅ ) CR_{\eta}(s,\cdot) C R η ( s , ⋅ ) is also the endpoint distribution of a reverse walk from s ˉ \bar{s} s ˉ . This identity is used only in the analysis; the collision test samples forward walks as described above.
Average endpoint affinity
We lower-bound the average endpoint affinity by rounding vectors constructed from the endpoint distributions, following the entropy dissipation and rounding approach of Yoshida [17 ] . To use the same argument for the trace chain, the next lemma allows clause weights that need not be balanced or sum to one. It requires a lazy chain with a stationary distribution equal at complementary literals and lower bounds on its transitions along implications. These conditions will let us use the original internal clauses on S S S .
Lemma 5.2. Let Ω ⊆ L \Omega\subseteq\mathcal{L} Ω ⊆ L be complement closed, with ∣ Ω ∣ ≤ N |\Omega| \leq N ∣Ω∣ ≤ N , and let ν : Ω → ( 0 , 1 ] \nu:\Omega\to(0,1] ν : Ω → ( 0 , 1 ] be a probability mass function satisfying ν ( ℓ ) = ν ( ℓ ˉ ) \nu(\ell)=\nu(\bar{\ell}) ν ( ℓ ) = ν ( ℓ ˉ ) . Let K ∈ [ 0 , 1 ] Ω × Ω K\in[0,1]^{\Omega\times\Omega} K ∈ [ 0 , 1 ] Ω × Ω be a row-stochastic kernel with stationary distribution ν \nu ν and K ( ℓ , ℓ ) ≥ 1 / 2 K(\ell,\ell)\geq1/2 K ( ℓ , ℓ ) ≥ 1/2 . Then J : = 2 K − I ∈ [ 0 , 1 ] Ω × Ω J:=2K-I\in[0,1]^{\Omega\times\Omega} J := 2 K − I ∈ [ 0 , 1 ] Ω × Ω is also a row-stochastic kernel with stationary distribution ν \nu ν . Let ω ∈ R ≥ 0 m \omega\in\mathbb{R}_{\geq0}^{m} ω ∈ R ≥ 0 m be clause weights, zero unless both endpoints lie in Ω \Omega Ω , such that
∑ e = { i , j ˉ } ω e ≤ 2 ν ( i ) J ( i , j ) ( i , j ∈ Ω ) . (26) \sum_{e=\{i,\bar{j}\}}\omega_e \leq2\nu(i)J(i,j)\qquad(i,j\in\Omega). \tag*{(26)} e = { i , j ˉ } ∑ ω e ≤ 2 ν ( i ) J ( i , j ) ( i , j ∈ Ω ) . (26) For 0 < κ < 1 0<\kappa<1 0 < κ < 1 , define the average endpoint affinity A ∈ [ 0 , 1 ] A\in[0,1] A ∈ [ 0 , 1 ] by
A : = E s ∼ ν a κ K ( s ) , A:=\mathbb{E}_{s\sim\nu}a_{\kappa}^{K}(s), A := E s ∼ ν a κ K ( s ) , using (23) with stopping probability κ \kappa κ . If τ ω ( F ) ≥ δ > 0 \tau_{\omega}(F)\geq\delta>0 τ ω ( F ) ≥ δ > 0 , then
A ≥ δ 2 − 2 κ log 2 N . A\geq\delta^{2}-2\kappa\log_{2}N. A ≥ δ 2 − 2 κ log 2 N .
Proof. Summing (26) over j j j gives d ω ( i ) ≤ 2 ν ( i ) d_{\omega}(i)\leq2\nu(i) d ω ( i ) ≤ 2 ν ( i ) , and hence W ( ω ) ≤ 1 W(\omega)\leq1 W ( ω ) ≤ 1 . We will construct an assignment with weighted loss at most 1 2 κ log 2 N + A \frac{1}{2}\sqrt{\kappa\log_{2}N}+A 2 1 κ log 2 N + A .
To this end, for each seed s ∈ Ω s\in\Omega s ∈ Ω let f s , f s 0 : Ω → R ≥ 0 f_s,f_s^{0}:\Omega\to\mathbb{R}_{\geq0} f s , f s 0 : Ω → R ≥ 0 be the densities of R κ K ( s , ⋅ ) R_{\kappa}^{K}(s,\cdot) R κ K ( s , ⋅ ) and the point mass at s s s , respectively, with respect to ν \nu ν :
f s ( z ) : = R κ K ( s , z ) ν ( z ) , f s 0 ( z ) : = 1 { z = s } ν ( s ) . f_s(z):=\frac{R_{\kappa}^{K}(s,z)}{\nu(z)},\qquad f_s^{0}(z):=\frac{\mathbf{1}_{\{z=s\}}}{\nu(s)}. f s ( z ) := ν ( z ) R κ K ( s , z ) , f s 0 ( z ) := ν ( s ) 1 { z = s } .
First, we bound the mean squared variation of the square roots of these densities along transitions of J J J . For a density f : Ω → R ≥ 0 f:\Omega\to\mathbb{R}_{\geq0} f : Ω → R ≥ 0 with E ν f = 1 \mathbb{E}_{\nu}f=1 E ν f = 1 , define Ent ν ( f ) : = E ν f log 2 f \operatorname{Ent}_{\nu}(f):=\mathbb{E}_{\nu}f\log_{2}f Ent ν ( f ) := E ν f log 2 f , with 0 log 2 0 = 0 0\log_{2}0=0 0 log 2 0 = 0 , and
E J ( f ) : = 1 2 E X ∼ ν , Y ∼ J ( X , ⋅ ) ( f ( X ) − f ( Y ) ) 2 . \mathcal{E}_{J}(f):=\frac{1}{2}\mathbb{E}_{X\sim\nu,Y\sim J(X,\cdot)}\left(\sqrt{f(X)}-\sqrt{f(Y)}\right)^{2}. E J ( f ) := 2 1 E X ∼ ν , Y ∼ J ( X , ⋅ ) ( f ( X ) − f ( Y ) ) 2 .
Let J ∗ , K ∗ ∈ [ 0 , 1 ] Ω × Ω J^{*},K^{*}\in[0,1]^{\Omega\times\Omega} J ∗ , K ∗ ∈ [ 0 , 1 ] Ω × Ω be the reverse kernels of J , K J,K J , K with respect to ν \nu ν ; then K ∗ = ( I + J ∗ ) / 2 K^{*}=(I+J^{*})/2 K ∗ = ( I + J ∗ ) /2 . For a , b ≥ 0 a,b\geq0 a , b ≥ 0 , the scalar inequality
a log 2 a + b log 2 b − ( a + b ) log 2 ( ( a + b ) / 2 ) ≥ a + b − 2 a b a\log_{2}a+b\log_{2}b-(a+b)\log_{2}\left((a+b)/2\right)\geq a+b-2\sqrt{ab} a log 2 a + b log 2 b − ( a + b ) log 2 ( ( a + b ) /2 ) ≥ a + b − 2 ab
will be applied with a = f ( X ) a=f(X) a = f ( X ) and b = f ( Y ) b=f(Y) b = f ( Y ) , where X ∼ ν X\sim\nu X ∼ ν and, conditional on X X X , Y ∼ J ∗ ( X , ⋅ ) Y\sim J^{*}(X,\cdot) Y ∼ J ∗ ( X , ⋅ ) . Define ψ : R ≥ 0 → R \psi:\mathbb{R}_{\geq0}\to\mathbb{R} ψ : R ≥ 0 → R by ψ ( t ) : = t log 2 t \psi(t):=t\log_{2}t ψ ( t ) := t log 2 t for t > 0 t>0 t > 0 and ψ ( 0 ) : = 0 \psi(0):=0 ψ ( 0 ) := 0 . Since ( K ∗ f ) ( X ) = E [ ( f ( X ) + f ( Y ) ) / 2 ∣ X ] (K^{*}f)(X)=\mathbb{E}[(f(X)+f(Y))/2\mid X] ( K ∗ f ) ( X ) = E [( f ( X ) + f ( Y )) /2 ∣ X ] , conditional Jensen’s inequality gives
Ent ν ( K ∗ f ) = E ψ ( E [ f ( X ) + f ( Y ) 2 ∣ X ] ) ≤ E ψ ( f ( X ) + f ( Y ) 2 ) . \operatorname{Ent}_{\nu}(K^{*}f)=\mathbb{E}\psi\left(\mathbb{E}\left[\left.\frac{f(X)+f(Y)}{2}\right|X\right]\right)\leq\mathbb{E}\psi\left(\frac{f(X)+f(Y)}{2}\right). Ent ν ( K ∗ f ) = E ψ ( E [ 2 f ( X ) + f ( Y ) X ] ) ≤ E ψ ( 2 f ( X ) + f ( Y ) ) .
Both X X X and Y Y Y have distribution ν \nu ν , so Ent ν ( f ) = 1 2 E [ ψ ( f ( X ) ) + ψ ( f ( Y ) ) ] \operatorname{Ent}_{\nu}(f)=\frac{1}{2}\mathbb{E}[\psi(f(X))+\psi(f(Y))] Ent ν ( f ) = 2 1 E [ ψ ( f ( X )) + ψ ( f ( Y ))] . Subtracting the preceding upper bound and then applying the scalar inequality yields
Ent ν ( f ) − Ent ν ( K ∗ f ) ≥ 1 2 E [ ψ ( f ( X ) ) + ψ ( f ( Y ) ) − 2 ψ ( f ( X ) + f ( Y ) 2 ) ] ≥ 1 2 E ( f ( X ) − f ( Y ) ) 2 . \begin{aligned}
\operatorname{Ent}_{\nu}(f)-\operatorname{Ent}_{\nu}(K^{*}f)\geq\frac{1}{2}\mathbb{E}\left[\psi(f(X))+\psi(f(Y))-2\psi\left(\frac{f(X)+f(Y)}{2}\right)\right] \\
&\geq\frac{1}{2}\mathbb{E}\left(\sqrt{f(X)}-\sqrt{f(Y)}\right)^2.
\end{aligned} Ent ν ( f ) − Ent ν ( K ∗ f ) ≥ 2 1 E [ ψ ( f ( X )) + ψ ( f ( Y )) − 2 ψ ( 2 f ( X ) + f ( Y ) ) ] ≥ 2 1 E ( f ( X ) − f ( Y ) ) 2 .
Reversing the stationary flow exchanges J ∗ J^{*} J ∗ with J J J and preserves the squared difference. Thus
E J ( f ) ≤ Ent ν ( f ) − Ent ν ( K ∗ f ) . (27) \mathcal{E}_{J}(f)\leq\operatorname{Ent}_{\nu}(f)-\operatorname{Ent}_{\nu}(K^{*}f). \tag*{(27)} E J ( f ) ≤ Ent ν ( f ) − Ent ν ( K ∗ f ) . (27)
For the stopped walk, the identity R κ K = κ I + ( 1 − κ ) R κ K K R_{\kappa}^{K}=\kappa I+(1-\kappa)R_{\kappa}^{K}K R κ K = κ I + ( 1 − κ ) R κ K K gives f s = κ f s 0 + ( 1 − κ ) K ∗ f s f_s=\kappa f_s^0+(1-\kappa)K^{*}f_s f s = κ f s 0 + ( 1 − κ ) K ∗ f s . Convexity and nonnegativity of relative entropy imply
Ent ν ( f s ) − Ent ν ( K ∗ f s ) ≤ κ ( Ent ν ( f s 0 ) − Ent ν ( K ∗ f s ) ) ≤ κ log 2 1 ν ( s ) . \operatorname{Ent}_{\nu}(f_s)-\operatorname{Ent}_{\nu}(K^{*}f_s)\leq\kappa\left(\operatorname{Ent}_{\nu}(f_s^0)-\operatorname{Ent}_{\nu}(K^{*}f_s)\right)\leq\kappa\log_2\frac{1}{\nu(s)}. Ent ν ( f s ) − Ent ν ( K ∗ f s ) ≤ κ ( Ent ν ( f s 0 ) − Ent ν ( K ∗ f s ) ) ≤ κ log 2 ν ( s ) 1 .
Combining this with (27) and averaging over s ∼ ν s\sim\nu s ∼ ν gives
E s ∼ ν E J ( f s ) ≤ κ ∑ s ν ( s ) log 2 1 ν ( s ) ≤ κ log 2 N . (28) \mathbb{E}_{s\sim\nu}\mathcal{E}_{J}(f_s)\leq\kappa\sum_s\nu(s)\log_2\frac{1}{\nu(s)}\leq\kappa\log_2 N. \tag*{(28)} E s ∼ ν E J ( f s ) ≤ κ s ∑ ν ( s ) log 2 ν ( s ) 1 ≤ κ log 2 N . (28)
To use this bound for rounding, define vectors v ℓ ∈ R Ω v_{\ell}\in\mathbb{R}^{\Omega} v ℓ ∈ R Ω for ℓ ∈ Ω \ell\in\Omega ℓ ∈ Ω by
v ℓ ( s ) : = ν ( s ) f s ( ℓ ) . v_{\ell}(s):=\sqrt{\nu(s)}f_s(\ell). v ℓ ( s ) := ν ( s ) f s ( ℓ ) .
Stationarity gives ∥ v ℓ ∥ = 1 \lVert v_{\ell}\rVert=1 ∥ v ℓ ∥ = 1 . Let c ℓ : = ⟨ v ℓ , v ℓ ˉ ⟩ ∈ [ 0 , 1 ] c_{\ell}:=\langle v_{\ell},v_{\bar{\ell}}\rangle\in[0,1] c ℓ := ⟨ v ℓ , v ℓ ˉ ⟩ ∈ [ 0 , 1 ] , so c ℓ = c ℓ ˉ c_{\ell}=c_{\bar{\ell}} c ℓ = c ℓ ˉ . The identity ν ( ℓ ) = ν ( ℓ ˉ ) \nu(\ell)=\nu(\bar{\ell}) ν ( ℓ ) = ν ( ℓ ˉ ) gives E ν c ℓ = A \mathbb{E}_{\nu}c_{\ell}=A E ν c ℓ = A .
To transfer (28) to these vectors, expand the squared norm in the seed coordinate s s s : for any i , j ∈ Ω i,j\in\Omega i , j ∈ Ω ,
∥ v i − v j ∥ 2 = ∑ s ∈ Ω ν ( s ) ( f s ( i ) − f s ( j ) ) 2 . \lVert v_i-v_j\rVert^2=\sum_{s\in\Omega}\nu(s)\left(\sqrt{f_s(i)}-\sqrt{f_s(j)}\right)^2. ∥ v i − v j ∥ 2 = s ∈ Ω ∑ ν ( s ) ( f s ( i ) − f s ( j ) ) 2 .
Taking expectation over X ∼ ν X\sim\nu X ∼ ν , Y ∼ J ( X , ⋅ ) Y\sim J(X,\cdot) Y ∼ J ( X , ⋅ ) and exchanging it with the sum over s s s gives
E X ∼ ν , Y ∼ J ( X , ⋅ ) ∥ v X − v Y ∥ 2 = 2 E s ∼ ν E J ( f s ) \mathbb{E}_{X\sim\nu,Y\sim J(X,\cdot)}\lVert v_X-v_Y\rVert^2=2\mathbb{E}_{s\sim\nu}\mathcal{E}_{J}(f_s) E X ∼ ν , Y ∼ J ( X , ⋅ ) ∥ v X − v Y ∥ 2 = 2 E s ∼ ν E J ( f s )
≤ 2 κ log 2 N . (29) \leq2\kappa\log_2 N. \tag*{(29)} ≤ 2 κ log 2 N . (29)
Here the equality uses the factor 1 / 2 1/2 1/2 in the definition of E J \mathcal{E}_{J} E J , and the inequality is (28) .
For consistent Gaussian rounding, we need unit vectors that are negatives of each other at complementary literals. The differences v ℓ − v ℓ ˉ v_{\ell}-v_{\bar{\ell}} v ℓ − v ℓ ˉ have the required symmetry but varying norms. Complete them to unit vectors by defining X x , X x ˉ ∈ R Ω ⊕ R X_x,X_{\bar{x}}\in\mathbb{R}^{\Omega}\oplus\mathbb{R} X x , X x ˉ ∈ R Ω ⊕ R for each variable x x x with x ∈ Ω x\in\Omega x ∈ Ω :
X x : = ( v x − v x ˉ 2 , c x ) , X x ˉ : = − X x . X_x:=\left(\frac{v_x-v_{\bar{x}}}{\sqrt{2}},\sqrt{c_x}\right),\qquad X_{\bar{x}}:=-X_x. X x := ( 2 v x − v x ˉ , c x ) , X x ˉ := − X x .
Indeed, ∥ X x ∥ 2 = ( 2 − 2 c x ) / 2 + c x = 1 \lVert X_x\rVert^2=(2-2c_x)/2+c_x=1 ∥ X x ∥ 2 = ( 2 − 2 c x ) /2 + c x = 1 . For a clause { u , v } \{u,v\} { u , v } , the first coordinates of X u + X v X_u+X_v X u + X v equal ( ( v u − v v ˉ ) + ( v v − v u ˉ ) ) / 2 ((v_u-v_{\bar{v}})+(v_v-v_{\bar{u}}))/\sqrt{2} (( v u − v v ˉ ) + ( v v − v u ˉ )) / 2 , and the square of its last coordinate is at most 2 ( c u + c v ) 2(c_u+c_v) 2 ( c u + c v ) . Hence
∥ X u + X v ∥ 2 ≤ ∥ v u − v v ˉ ∥ 2 + ∥ v v − v u ˉ ∥ 2 + 2 ( c u + c v ) . \lVert X_u+X_v\rVert^2\leq\lVert v_u-v_{\bar{v}}\rVert^2+\lVert v_v-v_{\bar{u}}\rVert^2+2(c_u+c_v). ∥ X u + X v ∥ 2 ≤ ∥ v u − v v ˉ ∥ 2 + ∥ v v − v u ˉ ∥ 2 + 2 ( c u + c v ) .
Each clause supplies two implication arcs, so (26) and (29) give
∑ e = { u , v } ω e ( ∥ v u − v v ˉ ∥ 2 + ∥ v v − v u ˉ ∥ 2 ) ≤ 2 E X ∼ ν , Y ∼ J ( X , ⋅ ) ∥ v X − v Y ∥ 2 ≤ 4 κ log 2 N . \sum_{e=\{u,v\}} \omega_e\left(\lVert v_u-v_{\bar{v}}\rVert^2+\lVert v_v-v_{\bar{u}}\rVert^2\right)\le2\mathbb{E}_{X\sim\nu,\,Y\sim J(X,\cdot)}\lVert v_X-v_Y\rVert^2\le4\kappa\log_2 N. e = { u , v } ∑ ω e ( ∥ v u − v v ˉ ∥ 2 + ∥ v v − v u ˉ ∥ 2 ) ≤ 2 E X ∼ ν , Y ∼ J ( X , ⋅ ) ∥ v X − v Y ∥ 2 ≤ 4 κ log 2 N .
Also, ∑ e ω e ( c u + c v ) = ∑ ℓ d ω ( ℓ ) c ℓ ≤ 2 E ν c ℓ = 2 A \sum_e\omega_e(c_u+c_v)=\sum_\ell d_\omega(\ell)c_\ell\le2\mathbb{E}_\nu c_\ell=2A ∑ e ω e ( c u + c v ) = ∑ ℓ d ω ( ℓ ) c ℓ ≤ 2 E ν c ℓ = 2 A . Combining these bounds yields
∑ e = { u , v } ω e ∥ X u + X v ∥ 2 ≤ 4 κ log 2 N + 4 A . (30) \sum_{e=\{u,v\}}\omega_e\lVert X_u+X_v\rVert^2\le4\kappa\log_2 N+4A. \tag*{(30)} e = { u , v } ∑ ω e ∥ X u + X v ∥ 2 ≤ 4 κ log 2 N + 4 A . (30)
To complete the rounding, draw a standard Gaussian vector in R Ω ⊕ R \mathbb{R}^{\Omega}\oplus\mathbb{R} R Ω ⊕ R , and make literal ℓ \ell ℓ true when its inner product with X ℓ X_\ell X ℓ is positive. Since X ℓ ˉ = − X ℓ X_{\bar{\ell}}=-X_\ell X ℓ ˉ = − X ℓ , this gives a consistent assignment with probability one. The direction of the Gaussian projection onto a plane containing X u X_u X u and X v X_v X v is uniform. Writing θ : = ∠ ( X u , − X v ) ∈ [ 0 , π ] \theta:=\angle(X_u,-X_v)\in[0,\pi] θ := ∠ ( X u , − X v ) ∈ [ 0 , π ] , the directions for which both inner products are positive form a sector of angle θ \theta θ . Thus the probability of violating { u , v } \{u,v\} { u , v } is θ / ( 2 π ) \theta/(2\pi) θ / ( 2 π ) . Since the vectors are unit vectors,
∥ X u + X v ∥ = 2 sin ( θ / 2 ) ≥ 2 θ / π , θ 2 π ≤ ∥ X u + X v ∥ 4 . \lVert X_u+X_v\rVert=2\sin(\theta/2)\ge2\theta/\pi,\qquad\frac{\theta}{2\pi}\le\frac{\lVert X_u+X_v\rVert}{4}. ∥ X u + X v ∥ = 2 sin ( θ /2 ) ≥ 2 θ / π , 2 π θ ≤ 4 ∥ X u + X v ∥ .
By Cauchy–Schwarz, (30) , and W ( ω ) ≤ 1 W(\omega)\le1 W ( ω ) ≤ 1 , some assignment t ∈ T t\in\mathcal{T} t ∈ T therefore satisfies
L ω ( t ) ≤ 1 4 ∑ e ω e ∥ X u + X v ∥ ≤ 1 2 W ( ω ) ( κ log 2 N + A ) ≤ 1 2 κ log 2 N + A . L_\omega(t)\le\frac{1}{4}\sum_e\omega_e\lVert X_u+X_v\rVert\le\frac{1}{2}\sqrt{W(\omega)}(\kappa\log_2 N+A)\le\frac{1}{2}\sqrt{\kappa\log_2 N+A}. L ω ( t ) ≤ 4 1 e ∑ ω e ∥ X u + X v ∥ ≤ 2 1 W ( ω ) ( κ log 2 N + A ) ≤ 2 1 κ log 2 N + A .
Since τ ω ( F ) ≥ δ \tau_\omega(F)\ge\delta τ ω ( F ) ≥ δ , we obtain
A ≥ 4 δ 2 − κ log 2 N ≥ δ 2 − 2 κ log 2 N . A\ge4\delta^2-\kappa\log_2 N\ge\delta^2-2\kappa\log_2 N. A ≥ 4 δ 2 − κ log 2 N ≥ δ 2 − 2 κ log 2 N .
Taking Ω = L + \Omega=L_+ Ω = L + , K = P K=P K = P , ν = μ \nu=\mu ν = μ , ω = π ^ \omega=\widehat{\pi} ω = π , and κ = η \kappa=\eta κ = η gives equality in (26) . Thus Lemma 5.2 yields E s ∼ μ a ( s ) ≥ δ 2 − 2 η log 2 N \mathbb{E}_{s\sim\mu}a(s)\ge\delta^2-2\eta\log_2 N E s ∼ μ a ( s ) ≥ δ 2 − 2 η log 2 N whenever τ π ^ ( F ) ≥ δ \tau_{\widehat{\pi}}(F)\ge\delta τ π ( F ) ≥ δ .
Assigning variables with unequal affinities
We now construct the set S S S used in (25) . We assign variables where a ( x ) a(x) a ( x ) and a ( x ˉ ) a(\bar{x}) a ( x ˉ ) differ substantially, while bounding the total π ^ \widehat{\pi} π -weight of violated clauses all of whose variables are assigned and clauses with one assigned and one unassigned variable. The clauses all of whose variables remain unassigned will then have positive minimum weighted loss. For each remaining variable x x x , the affinities a ( x ) a(x) a ( x ) and a ( x ˉ ) a(\bar{x}) a ( x ˉ ) will be nearly equal, yielding the upper bound in (25) .
For the affinity function a a a in (24) , define the difference vector d ∈ [ − 1 , 1 ] L + d\in[-1,1]^{L_+} d ∈ [ − 1 , 1 ] L + by d s : = a ( s ˉ ) − a ( s ) d_s:=a(\bar{s})-a(s) d s := a ( s ˉ ) − a ( s ) . Since d s ˉ = − d s d_{\bar{s}}=-d_s d s ˉ = − d s , the change in d d d along an implication u → v ˉ u\to\bar{v} u → v ˉ is d u − d v ˉ = d u + d v d_u-d_{\bar{v}}=d_u+d_v d u − d v ˉ = d u + d v . We therefore measure its mean squared change by the nonnegative scalar D D D defined as
D : = E { u , v } ∼ π ^ ( d u + d v ) 2 . D:=\mathbb{E}_{\{u,v\}\sim\widehat{\pi}}(d_u+d_v)^2. D := E { u , v } ∼ π ( d u + d v ) 2 .
The next lemma bounds D D D in terms of the stopping probability η \eta η . This will let us assign variables with large ∣ d s ∣ |d_s| ∣ d s ∣ by making their literal with positive d d d true: a violated clause all of whose variables are assigned has both d u d_u d u and d v d_v d v positive and large, so it contributes substantially to D D D .
Lemma 5.3. For d d d and D D D defined above, if η ≤ 1 / 2 \eta\le1/2 η ≤ 1/2 , then
d s ˉ = − d s , D ≤ 32 η . d_{\bar{s}}=-d_s,\qquad D\le32\eta. d s ˉ = − d s , D ≤ 32 η .
Proof. Separating the zero-step term in (23) gives R η = η I + ( 1 − η ) P R η R_\eta=\eta I+(1-\eta)PR_\eta R η = η I + ( 1 − η ) P R η . Concavity of affinity then implies a ( s ) ≥ ( 1 − η ) ( P a ) ( s ) a(s)\ge(1-\eta)(Pa)(s) a ( s ) ≥ ( 1 − η ) ( P a ) ( s ) , since the point mass at s s s has zero affinity with its complement. With c : = η / ( 1 − η ) c:=\eta/(1-\eta) c := η / ( 1 − η ) , this gives P a − a ≤ c a ≤ c Pa-a\le ca\le c P a − a ≤ c a ≤ c pointwise. For functions f , g ∈ R L + f,g\in\mathbb{R}^{L_+} f , g ∈ R L + , define their μ \mu μ -weighted inner product by ⟨ f , g ⟩ μ : = ∑ s μ ( s ) f s g s \langle f,g\rangle_\mu:=\sum_s\mu(s)f_sg_s ⟨ f , g ⟩ μ := ∑ s μ ( s ) f s g s . Stationarity and 0 ≤ a ( s ) ≤ 1 0\le a(s)\le1 0 ≤ a ( s ) ≤ 1 give
⟨ a , ( I − P ) a ⟩ μ = ⟨ 1 − a , ( P − I ) a ⟩ μ ≤ c . \langle a,(I-P)a\rangle_\mu=\langle1-a,(P-I)a\rangle_\mu\le c. ⟨ a , ( I − P ) a ⟩ μ = ⟨ 1 − a , ( P − I ) a ⟩ μ ≤ c .
Therefore E X ∼ μ , Y ∼ T ( X , ⋅ ) ( a ( X ) − a ( Y ) ) 2 ≤ 4 c \mathbb{E}_{X\sim\mu,Y\sim T(X,\cdot)}(a(X)-a(Y))^2\le4c E X ∼ μ , Y ∼ T ( X , ⋅ ) ( a ( X ) − a ( Y ) ) 2 ≤ 4 c . Because T ∗ = C T C T^*=CTC T ∗ = C T C , replacing a a a by C a Ca C a in this mean square is equivalent to replacing T T T by T ∗ T^* T ∗ . Swapping X X X and Y Y Y changes their joint distribution from μ ( X ) T ( X , Y ) \mu(X)T(X,Y) μ ( X ) T ( X , Y ) to μ ( X ) T ∗ ( X , Y ) \mu(X)T^*(X,Y) μ ( X ) T ∗ ( X , Y ) but leaves ( a ( X ) − a ( Y ) ) 2 (a(X)-a(Y))^2 ( a ( X ) − a ( Y ) ) 2 unchanged. Thus the same upper bound 4 c 4c 4 c applies to C a Ca C a . Applying ( x − y ) 2 ≤ 2 x 2 + 2 y 2 (x-y)^2\le2x^2+2y^2 ( x − y ) 2 ≤ 2 x 2 + 2 y 2 to d = C a − a d=Ca-a d = C a − a gives
E X ∼ μ , Y ∼ T ( X , ⋅ ) ( d X − d Y ) 2 ≤ 16 c ≤ 32 η . \mathbb{E}_{X\sim\mu,Y\sim T(X,\cdot)}(d_X-d_Y)^2\le16c\le32\eta. E X ∼ μ , Y ∼ T ( X , ⋅ ) ( d X − d Y ) 2 ≤ 16 c ≤ 32 η .
For each clause { u , v } \{u,v\} { u , v } , both implication arcs contribute ( d u + d v ) 2 (d_u+d_v)^2 ( d u + d v ) 2 because d ℓ ˉ = − d ℓ d_{\bar{\ell}}=-d_\ell d ℓ ˉ = − d ℓ . Thus the last expectation equals D D D .
To retain positive minimum weighted loss among clauses all of whose variables are unassigned, we must also control clauses with one assigned and one unassigned variable. Lemma 2.1 (ii) bounds the probability of this event together with violations among assigned variables. We apply it with scores d ℓ d_\ell d ℓ and average over clauses to bound the combined π ^ \hat{\pi} π ^ -weight in terms of D D D .
Lemma 5.4 (Partial assignment). Assume τ π ^ ( F ) ≥ δ > 0 \tau_{\hat{\pi}}(F)\ge\delta>0 τ π ^ ( F ) ≥ δ > 0 . With d ℓ = a ( ℓ ˉ ) − a ( ℓ ) d_\ell=a(\bar{\ell})-a(\ell) d ℓ = a ( ℓ ˉ ) − a ( ℓ ) and D = E π ^ ( d u + d v ) 2 D=\mathbb{E}_{\hat{\pi}}(d_u+d_v)^2 D = E π ^ ( d u + d v ) 2 as in Lemma 5.3, for any 0 < λ < 1 / 2 0<\lambda<1/2 0 < λ < 1/2 there is a threshold θ ∈ [ λ , 2 λ ] \theta\in[\lambda,2\lambda] θ ∈ [ λ , 2 λ ] such that the complement-closed set
S : = { ℓ ∈ L + : ∣ d ℓ ∣ ≤ θ } S:=\{\ell\in L_+:|d_\ell|\le\theta\} S := { ℓ ∈ L + : ∣ d ℓ ∣ ≤ θ } has the following properties. Assign every variable x x x with x ∈ L + ∖ S x\in L_+\setminus S x ∈ L + ∖ S by making its literal ℓ \ell ℓ with d ℓ > 0 d_\ell>0 d ℓ > 0 true. The total π ^ \hat{\pi} π ^ -weight of clauses with exactly one endpoint in S S S and violated clauses with both endpoints outside S S S is at most
e 0 : = D λ . e_0:=\frac{\sqrt{D}}{\lambda}. e 0 := λ D . In the following minimum, t t t ranges over vectors in { 0 , 1 } S \{0,1\}^S { 0 , 1 } S satisfying t x ˉ = 1 − t x t_{\bar{x}}=1-t_x t x ˉ = 1 − t x for each variable of S S S . If e 0 ≤ δ / 2 e_0\le\delta/2 e 0 ≤ δ /2 , then
min t on the variables of S ∑ { u , v } ⊆ S π ^ e t u t v ≥ δ / 2 , μ ( S ) ≥ δ / 2. \min_{\substack{t\text{ on the variables of }S}}\ \sum_{\{u,v\}\subseteq S}\hat{\pi}_e t_u t_v\ge\delta/2,\qquad\mu(S)\ge\delta/2. t on the variables of S min { u , v } ⊆ S ∑ π ^ e t u t v ≥ δ /2 , μ ( S ) ≥ δ /2. This sum uses the original weights π ^ \hat{\pi} π ^ , without renormalizing the weights of clauses { u , v } ⊆ S \{u,v\}\subseteq S { u , v } ⊆ S . Moreover,
∑ ℓ ∈ S μ ( ℓ ) a ( ℓ ) ≤ 2 λ + B π ^ . (31) \sum_{\ell\in S}\mu(\ell)a(\ell)\le2\lambda+B_{\hat{\pi}}. \tag*{(31)} ℓ ∈ S ∑ μ ( ℓ ) a ( ℓ ) ≤ 2 λ + B π ^ . (31)
Proof. Choose θ \theta θ uniformly in [ λ , 2 λ ] [\lambda,2\lambda] [ λ , 2 λ ] . Apply Lemma 2.1 (ii) with q ℓ = d ℓ q_\ell=d_\ell q ℓ = d ℓ on L + L_+ L + , q ℓ = 0 q_\ell=0 q ℓ = 0 elsewhere, and [ α , β ] = [ λ , 2 λ ] [\alpha,\beta]=[\lambda,2\lambda] [ α , β ] = [ λ , 2 λ ] . For each clause { u , v } \{u,v\} { u , v } of positive π ^ \hat{\pi} π ^ -weight, the probability that exactly one endpoint lies in S S S , or both lie outside S S S and the clause is violated, is at most ∣ d u + d v ∣ / λ |d_u+d_v|/\lambda ∣ d u + d v ∣/ λ . Averaging over clauses and applying Cauchy–Schwarz gives a threshold for which the total π ^ \hat{\pi} π ^ -weight of these clauses is at most E π ^ ∣ d u + d v ∣ / λ ≤ D / λ = e 0 \mathbb{E}_{\hat{\pi}}|d_u+d_v|/\lambda\le\sqrt{D}/\lambda=e_0 E π ^ ∣ d u + d v ∣/ λ ≤ D / λ = e 0 .
Choose such a threshold and its set S S S . Extending any assignment on S S S by the prescribed outside assignment gives a full assignment t ∈ T t\in\mathcal{T} t ∈ T with L π ^ ( t ) ≤ ∑ { u , v } ⊆ S π ^ e t u t v + e 0 L_{\hat{\pi}}(t)\le\sum_{\{u,v\}\subseteq S}\hat{\pi}_e t_ut_v+e_0 L π ^ ( t ) ≤ ∑ { u , v } ⊆ S π ^ e t u t v + e 0 . If e 0 ≤ δ / 2 e_0\le\delta/2 e 0 ≤ δ /2 , the assumption τ π ^ ( F ) ≥ δ \tau_{\hat{\pi}}(F)\ge\delta τ π ^ ( F ) ≥ δ therefore forces this sum to be at least δ − e 0 ≥ δ / 2 \delta-e_0\ge\delta/2 δ − e 0 ≥ δ /2 for every assignment on S S S . The total π ^ \hat{\pi} π ^ -weight of clauses entirely in S S S is at most μ ( S ) \mu(S) μ ( S ) , so μ ( S ) ≥ δ / 2 \mu(S)\ge\delta/2 μ ( S ) ≥ δ /2 as well. Finally, for ℓ ∈ S \ell\in S ℓ ∈ S , a ( ℓ ) ≤ ∣ d ℓ ∣ + min ( a ( ℓ ) , a ( ℓ ˉ ) ) ≤ 2 λ + min ( a ( ℓ ) , a ( ℓ ˉ ) ) a(\ell)\le|d_\ell|+\min(a(\ell),a(\bar{\ell}))\le2\lambda+\min(a(\ell),a(\bar{\ell})) a ( ℓ ) ≤ ∣ d ℓ ∣ + min ( a ( ℓ ) , a ( ℓ ˉ )) ≤ 2 λ + min ( a ( ℓ ) , a ( ℓ ˉ )) ; summing proves (31) .
Comparison with the trace chain
When e 0 ≤ δ / 2 e_0 \le\delta/2 e 0 ≤ δ /2 , Lemma 5.4 gives a set S S S such that every assignment to its variables violates clauses contained in S S S of total π ^ \widehat{\pi} π -weight at least δ / 2 \delta/2 δ /2 . The lemma also gives the upper bound ∑ s ∈ S μ ( s ) a ( s ) ≤ 2 λ + B π ^ \sum_{s\in S}\mu(s)a(s) \le2\lambda+B_{\widehat{\pi}} ∑ s ∈ S μ ( s ) a ( s ) ≤ 2 λ + B π . We seek a lower bound on the same sum. However, the walk using only internal clauses need not have a stationary distribution that is equal at complementary literals. We instead observe P P P at successive visits to S S S . The resulting trace chain has the required stationary distribution and retains all original transitions within S S S , allowing Lemma 5.2 to use the internal clause weights directly. We transfer the resulting affinity bound to the original walks of P P P in Lemma 5.6.
For the next two lemmas, take any complement-closed set S ⊆ L + S\subseteq\mathcal{L}_+ S ⊆ L + with μ ( S ) > 0 \mu(S)>0 μ ( S ) > 0 . Write μ ∣ S : S → [ 0 , 1 ] \mu|_S:S\to[0,1] μ ∣ S : S → [ 0 , 1 ] for the unnormalized restriction and let μ S : S → [ 0 , 1 ] \mu_S:S\to[0,1] μ S : S → [ 0 , 1 ] be the probability mass function μ S : = ( μ ∣ S ) / μ ( S ) \mu_S:=(\mu|_S)/\mu(S) μ S := ( μ ∣ S ) / μ ( S ) . Start P P P at a state of S S S and stop at its first return to S S S after at least one step; let Q ∈ [ 0 , 1 ] S × S Q\in[0,1]^{S\times S} Q ∈ [ 0 , 1 ] S × S be the transition kernel of the trace chain on S S S . Figure 3 illustrates how successive returns form a path of Q Q Q . Since the chain is finite and its stationary distribution μ \mu μ is positive on L + \mathcal{L}_+ L + , every state in L + \mathcal{L}_+ L + belongs to a recurrent class. A walk starting in S S S stays in a recurrent class meeting S S S , so its next return to S S S is almost surely finite. In formulas involving Q Q Q , C C C and I I I act on R S \mathbb{R}^S R S .
Figure 3. A path of P P P and its successive visits to the complement-closed set S S S . The shaded band marks the visits to S S S along this path. The three Q Q Q -steps expand to three, one, and four P P P -steps, respectively; the dashed vertical lines identify the corresponding visits. Geometric stopping with probability η \eta η for P P P acts before each original step, while stopping with probability κ \kappa κ for Q Q Q acts before each step of the trace chain. The two stopping rules therefore count different numbers of steps along the same expanded path.
Lemma 5.5. The trace kernel Q Q Q has stationary distribution μ S \mu_S μ S , satisfies Q ( s , s ) ≥ 1 / 2 Q(s,s)\ge1/2 Q ( s , s ) ≥ 1/2 , and obeys the entrywise inequality 2 Q − I ≥ T S S 2Q-I\ge T_{SS} 2 Q − I ≥ T S S , where T S S T_{SS} T S S is the restriction of T T T to S × S S\times S S × S . Starting from μ S \mu_S μ S , the expected number of P P P -steps until the first return to S S S is at most 1 / μ ( S ) 1/\mu(S) 1/ μ ( S ) .
Proof. For A , B ⊆ L + A,B\subseteq\mathcal{L}_+ A , B ⊆ L + , write P A B ∈ [ 0 , 1 ] A × B P_{AB}\in[0,1]^{A\times B} P A B ∈ [ 0 , 1 ] A × B for the corresponding submatrix of P P P . Every one-step transition within S S S is already a return, so Q ≥ P S S Q\ge P_{SS} Q ≥ P S S . In particular, Q ( s , s ) ≥ 1 / 2 Q(s,s)\ge1/2 Q ( s , s ) ≥ 1/2 and 2 Q − I ≥ 2 P S S − I = T S S 2Q-I\ge2P_{SS}-I=T_{SS} 2 Q − I ≥ 2 P S S − I = T S S .
To prove μ S Q = μ S \mu_SQ=\mu_S μ S Q = μ S and bound the expected number of P P P -steps per return, restrict to the recurrent classes meeting S S S and let U ⊆ L + ∖ S U\subseteq\mathcal{L}_+\setminus S U ⊆ L + ∖ S be their remaining states. A walk starting in S S S cannot reach any other recurrent class. Every state in U U U reaches S S S almost surely. Since U U U is finite, the series
( I − P U U ) − 1 = ∑ r ≥ 0 P U U r (I-P_{UU})^{-1}=\sum_{r\ge0}P_{UU}^{r} ( I − P U U ) − 1 = r ≥ 0 ∑ P U U r
converges, where I I I is the identity on R U \mathbb{R}^{U} R U . Its ( s , z ) (s,z) ( s , z ) -entry is the expected number of visits to z ∈ U z\in U z ∈ U before reaching S S S , starting at s ∈ U s\in U s ∈ U . Decomposing a return according to whether its first step stays in S S S gives
Q = P S S + P S U ( I − P U U ) − 1 P U S . Q=P_{SS}+P_{SU}(I-P_{UU})^{-1}P_{US}. Q = P S S + P S U ( I − P U U ) − 1 P U S .
Writing μ ∣ U : U → [ 0 , 1 ] \mu|_{U}:U\to[0,1] μ ∣ U : U → [ 0 , 1 ] for the unnormalized restriction to U U U , stationarity gives
μ ∣ U = ( μ ∣ S ) P S U ( I − P U U ) − 1 , μ S Q = μ S . \mu|_{U}=(\mu|_{S})P_{SU}(I-P_{UU})^{-1},\qquad\mu_{S}Q=\mu_{S}. μ ∣ U = ( μ ∣ S ) P S U ( I − P U U ) − 1 , μ S Q = μ S .
Finally, the initial step contributes one to the return time, and the remaining steps are counted by the visits to U U U . Thus, with 1 U ∈ R U \mathbf{1}_{U}\in\mathbb{R}^{U} 1 U ∈ R U denoting the all-ones vector, the expected number of steps per return is
1 + μ S P S U ( I − P U U ) − 1 1 U = 1 + μ ( U ) μ ( S ) ≤ 1 μ ( S ) . 1+\mu_{S}P_{SU}(I-P_{UU})^{-1}\mathbf{1}_{U}
=1+\frac{\mu(U)}{\mu(S)}
\leq\frac{1}{\mu(S)}. 1 + μ S P S U ( I − P U U ) − 1 1 U = 1 + μ ( S ) μ ( U ) ≤ μ ( S ) 1 .
The tester does not construct Q Q Q . In the analysis, each Q Q Q -transition expands into a path of P P P , whose non-lazy steps are original implications.
It remains to transfer affinity from Q Q Q to P P P . Each Q Q Q -step can expand into a different number of P P P -steps. We weight each expanded path by its survival probability when stopping independently with probability η \eta η before each P P P -step. In the proof below, we use the expected return-time bound from Lemma 5.5 to bound the mass lost under this weighting and compare the surviving path weights with those of R η R_{\eta} R η . For a stopping probability 0 < κ < 1 0<\kappa<1 0 < κ < 1 , use R κ Q ∈ [ 0 , 1 ] S × S R_{\kappa}^{Q}\in[0,1]^{S\times S} R κ Q ∈ [ 0 , 1 ] S × S and a κ Q : S → [ 0 , 1 ] a_{\kappa}^{Q}:S\to[0,1] a κ Q : S → [ 0 , 1 ] from (23) with kernel Q Q Q on S S S . Thus R κ Q ( s , ⋅ ) R_{\kappa}^{Q}(s,\cdot) R κ Q ( s , ⋅ ) is the endpoint distribution when Q Q Q starts at s s s and stops with probability κ \kappa κ before each trace step.
Lemma 5.6 (Comparison with the trace chain). Suppose μ ( S ) ≥ q > 0 \mu(S)\geq q>0 μ ( S ) ≥ q > 0 and 0 < κ ≤ 1 / 2 0<\kappa\leq1/2 0 < κ ≤ 1/2 , and assume
E s ∼ μ S a κ Q ( s ) ≥ h > 0. \mathbb{E}_{s\sim\mu_{S}}a_{\kappa}^{Q}(s)\geq h>0. E s ∼ μ S a κ Q ( s ) ≥ h > 0. Choose
r 0 : = q h 2 / 16 , η : = r 0 κ . r_{0}:=qh^{2}/16,\qquad\eta:=r_{0}\kappa. r 0 := q h 2 /16 , η := r 0 κ . Then the endpoint kernel R η R_{\eta} R η satisfies
∑ s ∈ S μ ( s ) Aff ( R η ( s , ⋅ ) , C R η ( s , ⋅ ) ) ≥ q r 0 h 2 . (32) \sum_{s\in S}\mu(s)\operatorname{Aff}(R_{\eta}(s,\cdot),CR_{\eta}(s,\cdot))
\geq\frac{qr_{0}h}{2}. \tag*{(32)} s ∈ S ∑ μ ( s ) Aff ( R η ( s , ⋅ ) , C R η ( s , ⋅ )) ≥ 2 q r 0 h . (32)
Proof. Start the Q Q Q -walk from μ S \mu_{S} μ S and take an independent number J ∈ Z ≥ 0 J\in\mathbb{Z}_{\geq0} J ∈ Z ≥ 0 of steps with Pr [ J = j ] = κ ( 1 − κ ) j \Pr[J=j]=\kappa(1-\kappa)^{j} Pr [ J = j ] = κ ( 1 − κ ) j . Realize each Q Q Q -step by running P P P from its current state until its next return to S S S , and let K ∈ Z ≥ 0 K\in\mathbb{Z}_{\geq0} K ∈ Z ≥ 0 be the total number of P P P -steps. Every Q Q Q -step starts with distribution μ S \mu_{S} μ S , so Lemma 5.5 gives E K ≤ 1 / ( κ μ ( S ) ) \mathbb{E}K\leq1/(\kappa\mu(S)) E K ≤ 1/ ( κ μ ( S )) .
Retain each expanded path with probability ( 1 − η ) K (1-\eta)^{K} ( 1 − η ) K . Let G : S × L + → [ 0 , 1 ] G:S\times\mathcal{L}_{+}\to[0,1] G : S × L + → [ 0 , 1 ] be the resulting joint subprobability mass function of seed and endpoint, zero outside S × S S\times S S × S , and define G C : S × L + → [ 0 , 1 ] G^{C}:S\times\mathcal{L}_{+}\to[0,1] G C : S × L + → [ 0 , 1 ] by G C ( s , z ) : = G ( s , z ˉ ) G^{C}(s,z):=G(s,\bar{z}) G C ( s , z ) := G ( s , z ˉ ) . The removed mass ϵ ∈ [ 0 , 1 ] \epsilon\in[0,1] ϵ ∈ [ 0 , 1 ] satisfies
ϵ = E [ 1 − ( 1 − η ) K ] ≤ η E K ≤ r 0 μ ( S ) ≤ h 2 16 . \epsilon=\mathbb{E}\left[1-(1-\eta)^{K}\right]\leq\eta\mathbb{E}K\leq\frac{r_{0}}{\mu(S)}\leq\frac{h^{2}}{16}. ϵ = E [ 1 − ( 1 − η ) K ] ≤ η E K ≤ μ ( S ) r 0 ≤ 16 h 2 .
Before retention, the joint distributions μ S ( s ) R κ Q ( s , z ) \mu_S(s)R_{\kappa}^{Q}(s,z) μ S ( s ) R κ Q ( s , z ) and μ S ( s ) R κ Q ( s , z ˉ ) \mu_S(s)R_{\kappa}^{Q}(s,\bar{z}) μ S ( s ) R κ Q ( s , z ˉ ) have affinity E s ∼ μ S a κ Q ( s ) ≥ h \mathbb{E}_{s\sim\mu_S}a_{\kappa}^{Q}(s) \ge h E s ∼ μ S a κ Q ( s ) ≥ h . Reducing each of two probability measures by mass at most ϵ \epsilon ϵ decreases their affinity by at most 2 ϵ 2\sqrt{\epsilon} 2 ϵ , as follows from Cauchy–Schwarz applied to the differences of their square roots. Hence
Aff ( G , G C ) ≥ h − 2 ϵ ≥ h / 2. \operatorname{Aff}(G,G^C) \ge h-2\sqrt{\epsilon} \ge h/2. Aff ( G , G C ) ≥ h − 2 ϵ ≥ h /2.
To transfer this affinity bound to R η R_{\eta} R η , we now compare the retained path weights with the probabilities of the same paths under R η R_{\eta} R η . A path ( s 0 , … , s r ) ∈ L + r + 1 (s_0,\ldots,s_r) \in L_{+}^{r+1} ( s 0 , … , s r ) ∈ L + r + 1 of P P P with s 0 , s r ∈ S s_0,s_r \in S s 0 , s r ∈ S has a unique decomposition into first-return paths to S S S . If it contains j j j returns, its retained weight, conditional on s 0 s_0 s 0 , is
κ ( 1 − κ ) j ( 1 − η ) r ∏ i = 0 r − 1 P ( s i , s i + 1 ) . \kappa(1-\kappa)^j(1-\eta)^r\prod_{i=0}^{r-1}P(s_i,s_{i+1}). κ ( 1 − κ ) j ( 1 − η ) r i = 0 ∏ r − 1 P ( s i , s i + 1 ) .
Under the stopping rule for R η R_{\eta} R η , the probability of ( s 0 , … , s r ) (s_0,\ldots,s_r) ( s 0 , … , s r ) , conditional on s 0 s_0 s 0 , is
η ( 1 − η ) r ∏ i = 0 r − 1 P ( s i , s i + 1 ) . \eta(1-\eta)^r\prod_{i=0}^{r-1}P(s_i,s_{i+1}). η ( 1 − η ) r i = 0 ∏ r − 1 P ( s i , s i + 1 ) .
Since η = r 0 κ \eta=r_0\kappa η = r 0 κ and ( 1 − κ ) j ≤ 1 (1-\kappa)^j\le1 ( 1 − κ ) j ≤ 1 , the R η R_{\eta} R η path probability is at least r 0 r_0 r 0 times the retained weight. Summing over paths gives
μ S ( s ) R η ( s , z ) ≥ r 0 G ( s , z ) . (33) \mu_S(s)R_{\eta}(s,z) \ge r_0G(s,z). \tag*{(33)} μ S ( s ) R η ( s , z ) ≥ r 0 G ( s , z ) . (33)
Applying (33) at z z z and z ˉ \bar{z} z ˉ , taking square roots, and summing, we obtain
E s ∼ μ S Aff ( R η ( s , ⋅ ) , C R η ( s , ⋅ ) ) ≥ r 0 Aff ( G , G C ) ≥ r 0 h / 2. \mathbb{E}_{s\sim\mu_S}\operatorname{Aff}(R_{\eta}(s,\cdot),CR_{\eta}(s,\cdot)) \ge r_0\operatorname{Aff}(G,G^C) \ge r_0h/2. E s ∼ μ S Aff ( R η ( s , ⋅ ) , C R η ( s , ⋅ )) ≥ r 0 Aff ( G , G C ) ≥ r 0 h /2.
Multiplying by μ ( S ) ≥ q \mu(S)\ge q μ ( S ) ≥ q proves (32) .
The tester samples R η R_{\eta} R η directly, without detecting S S S or its return times. We now choose the parameters so that the upper bound (31) and the lower bound (32) on ∑ s ∈ S μ ( s ) a ( s ) \sum_{s\in S}\mu(s)a(s) ∑ s ∈ S μ ( s ) a ( s ) imply B ^ π ≥ 2 λ \widehat{B}_{\pi} \ge2\lambda B π ≥ 2 λ .
Proof of Theorem 5.1. Fix 0 < δ ≤ 1 0<\delta\le1 0 < δ ≤ 1 . In Lemma 5.4, the total π ^ \widehat{\pi} π -weight of clauses with exactly one endpoint in S S S and violated clauses with both endpoints outside S S S is at most e 0 = D / λ e_0=\sqrt{D}/\lambda e 0 = D / λ . We will choose the parameters so that e 0 ≤ δ / 2 e_0\le\delta/2 e 0 ≤ δ /2 . Then μ ( S ) ≥ δ / 2 \mu(S)\ge\delta/2 μ ( S ) ≥ δ /2 , and every assignment to the variables of S S S violates clauses contained in S S S of total π ^ \widehat{\pi} π -weight at least δ / 2 \delta/2 δ /2 . For the trace chain, Lemma 5.2 will then give E s ∼ μ S a κ Q ( s ) ≥ δ 2 / 8 \mathbb{E}_{s\sim\mu_S}a_{\kappa}^{Q}(s)\ge\delta^2/8 E s ∼ μ S a κ Q ( s ) ≥ δ 2 /8 when its stopping probability is small enough. Use these lower bounds on μ ( S ) \mu(S) μ ( S ) and E s ∼ μ S a κ Q ( s ) \mathbb{E}_{s\sim\mu_S}a_{\kappa}^{Q}(s) E s ∼ μ S a κ Q ( s ) in Lemma 5.6:
q : = δ / 2 , h : = δ 2 / 8 , r 0 : = q h 2 / 16. q:=\delta/2,\qquad h:=\delta^2/8,\qquad r_0:=qh^2/16. q := δ /2 , h := δ 2 /8 , r 0 := q h 2 /16.
The transferred lower bound in (32) is q r 0 h / 2 qr_0h/2 q r 0 h /2 . To make this bound equal to 4 λ 4\lambda 4 λ , choose
λ : = q r 0 h / 8 , b δ : = 2 λ . \lambda:=qr_0h/8,\qquad b_{\delta}:=2\lambda. λ := q r 0 h /8 , b δ := 2 λ .
The constants q , h , r 0 , λ , b δ q,h,r_0,\lambda,b_{\delta} q , h , r 0 , λ , b δ depend only on δ \delta δ , and 0 < λ < 1 / 2 0<\lambda<1/2 0 < λ < 1/2 . Choose the stopping probabilities by
η : = min { r 0 δ 2 16 log 2 ( 2 n ) , δ 2 λ 2 512 } , κ : = η / r 0 . \eta:=\min\left\{\frac{r_0\delta^2}{16\log_2(2n)},\frac{\delta^2\lambda^2}{512}\right\},\qquad\kappa:=\eta/r_0. η := min { 16 log 2 ( 2 n ) r 0 δ 2 , 512 δ 2 λ 2 } , κ := η / r 0 .
The first term ensures κ ≤ δ 2 / ( 16 log 2 ( 2 n ) ) \kappa\le\delta^{2}/(16\log_{2}(2n)) κ ≤ δ 2 / ( 16 log 2 ( 2 n )) , which will supply the affinity bound for the trace chain. Both η \eta η and κ \kappa κ lie in ( 0 , 1 / 2 ] (0,1/2] ( 0 , 1/2 ] and are determined by δ , n \delta,n δ , n alone, before we choose S S S . The second term and Lemma 5.3 give
D ≤ 32 η ≤ δ 2 λ 2 / 16. D \le32\eta\le\delta^{2}\lambda^{2}/16. D ≤ 32 η ≤ δ 2 λ 2 /16.
Thus e 0 = D / λ ≤ δ / 4 < δ / 2 e_{0}=\sqrt{D}/\lambda\le\delta/4<\delta/2 e 0 = D / λ ≤ δ /4 < δ /2 in Lemma 5.4. Choose the set S S S supplied by Lemma 5.4. Then μ ( S ) ≥ q \mu(S)\ge q μ ( S ) ≥ q , and every assignment on the variables of S S S violates internal clauses of total π ^ \widehat{\pi} π -weight at least δ / 2 \delta/2 δ /2 .
To apply Lemma 5.2 to Q Q Q , divide the original internal clause weights by μ ( S ) \mu(S) μ ( S ) , matching the normalization of μ S \mu_{S} μ S . Define ω ∈ R ≥ 0 m \omega\in\mathbb{R}_{\ge0}^{m} ω ∈ R ≥ 0 m by ω e : = π ^ e / μ ( S ) \omega_{e}:=\widehat{\pi}_{e}/\mu(S) ω e := π e / μ ( S ) for e ⊆ S e\subseteq S e ⊆ S and ω e : = 0 \omega_{e}:=0 ω e := 0 otherwise. Then τ ω ( F ) ≥ δ / ( 2 μ ( S ) ) ≥ δ / 2 \tau_{\omega}(F)\ge\delta/(2\mu(S))\ge\delta/2 τ ω ( F ) ≥ δ / ( 2 μ ( S )) ≥ δ /2 . By Lemma 5.5 , Q Q Q is lazy with stationary distribution μ S \mu_{S} μ S , and for i , j ∈ S i,j\in S i , j ∈ S ,
∑ e = { i , j ‾ } ω e = 2 μ S ( i ) T ( i , j ) ≤ 2 μ S ( i ) ( 2 Q − I ) ( i , j ) . \sum_{e=\{i,\overline{j}\}}\omega_{e}=2\mu_{S}(i)T(i,j)\le2\mu_{S}(i)(2Q-I)(i,j). e = { i , j } ∑ ω e = 2 μ S ( i ) T ( i , j ) ≤ 2 μ S ( i ) ( 2 Q − I ) ( i , j ) .
Since μ S ( i ) = μ S ( i ‾ ) \mu_{S}(i)=\mu_{S}(\overline{i}) μ S ( i ) = μ S ( i ) , Lemma 5.2 applies with Ω = S \Omega=S Ω = S , K = Q K=Q K = Q , ν = μ S \nu=\mu_{S} ν = μ S , and the stopping probability κ \kappa κ . It gives
E s ∼ μ S a Q κ ( s ) ≥ δ 2 4 − 2 κ log 2 ( 2 n ) ≥ δ 2 8 = h . \mathbb{E}_{s\sim\mu_{S}}a_{Q}^{\kappa}(s)\ge\frac{\delta^{2}}{4}-2\kappa\log_{2}(2n)\ge\frac{\delta^{2}}{8}=h. E s ∼ μ S a Q κ ( s ) ≥ 4 δ 2 − 2 κ log 2 ( 2 n ) ≥ 8 δ 2 = h .
Lemma 5.6 therefore gives ∑ s ∈ S μ ( s ) a ( s ) ≥ q r 0 h / 2 = 4 λ \sum_{s\in S}\mu(s)a(s)\ge qr_{0}h/2=4\lambda ∑ s ∈ S μ ( s ) a ( s ) ≥ q r 0 h /2 = 4 λ . Equation (31) bounds this same sum above by 2 λ + B π ^ 2\lambda+B_{\widehat{\pi}} 2 λ + B π . Hence
2 λ + B π ^ ≥ 4 λ , so B π ^ ≥ 2 λ = b δ . 2\lambda+B_{\widehat{\pi}}\ge4\lambda,\qquad\text{so}\qquad B_{\widehat{\pi}}\ge2\lambda=b_{\delta}. 2 λ + B π ≥ 4 λ , so B π ≥ 2 λ = b δ .
It remains to bound the expected walk length. Substituting r 0 = 2 − 11 δ 5 r_{0}=2^{-11}\delta^{5} r 0 = 2 − 11 δ 5 and λ = 2 − 18 δ 8 \lambda=2^{-18}\delta^{8} λ = 2 − 18 δ 8 into the choice of η \eta η gives
η − 1 = max { 2 15 δ − 7 log 2 ( 2 n ) , 2 45 δ − 18 } . (34) \eta^{-1}=\max\left\{2^{15}\delta^{-7}\log_{2}(2n),\,2^{45}\delta^{-18}\right\}. \tag*{(34)} η − 1 = max { 2 15 δ − 7 log 2 ( 2 n ) , 2 45 δ − 18 } . (34)
Since log 2 ( 2 n ) ≤ 2 log ( 2 n ) \log_{2}(2n)\le2\log(2n) log 2 ( 2 n ) ≤ 2 log ( 2 n ) and log ( 2 n ) ≥ 1 / 2 \log(2n)\ge1/2 log ( 2 n ) ≥ 1/2 , the following explicit constants satisfy the theorem:
b δ = 2 − 17 δ 8 , C δ : = 2 46 δ − 18 . (35) b_{\delta}=2^{-17}\delta^{8},\qquad C_{\delta}:=2^{46}\delta^{-18}. \tag*{(35)} b δ = 2 − 17 δ 8 , C δ := 2 46 δ − 18 . (35)
In particular, η − 1 = O ( δ − 18 + δ − 7 log ( 2 n ) ) \eta^{-1}=O(\delta^{-18}+\delta^{-7}\log(2n)) η − 1 = O ( δ − 18 + δ − 7 log ( 2 n )) , with absolute implicit constants.
The Tester and Its Analysis
We combine the preceding sections to construct the tester and prove Theorem 1.1 . § 5 gives a lower bound on the two-way affinity B π ^ B_{\widehat{\pi}} B π for the balanced comparison distribution π ^ \widehat{\pi} π , whereas the tester uses the locally computed weights w w w from § 3 , normalized to π = w / W ( w ) \pi=w/W(w) π = w / W ( w ) . We first transfer that bound to the tester’s walks using the relative-entropy guarantees of § 4 , then show how endpoint collisions yield contradictory paths. We next give the E2SAT algorithm and bound its query cost and error probability, and finally reduce general 2SAT to E2SAT while preserving the ability to output a contradiction in the original clauses.
Two-way affinity transfer
Our goal is to turn the lower bound on B π ^ B_{\widehat{\pi}} B π into a lower bound on B π B_{\pi} B π . We first bound the relative entropy between the joint seed and endpoint distributions, then use it to control the loss in two-way affinity. The seeds are drawn from μ π ^ \mu_{\widehat{\pi}} μ π and μ π \mu_{\pi} μ π , respectively; stationarity is required only for the former.
We use the walk and affinity notation of § 5 for the clause distributions π ^ \widehat{\pi} π and π \pi π , with a common stopping probability η \eta η . All kernels here act on the full literal set L \mathcal{L} L , including literals of zero incident weight. We suppress η \eta η in the affinity notation, writing a σ ( s ) a_{\sigma}(s) a σ ( s ) and B σ B_{\sigma} B σ for σ ∈ { π ^ , π } \sigma\in\{\widehat{\pi},\pi\} σ ∈ { π , π } .
Lemma 6.1 (Relative entropy of walk endpoints). Let π ^ , π ∈ [ 0 , 1 ] m \widehat{\pi},\pi\in[0,1]^m π , π ∈ [ 0 , 1 ] m be clause probability distributions, with π ^ \widehat{\pi} π balanced and supported where π \pi π is positive. When evaluating F π ( π ^ ) F_{\pi}(\widehat{\pi}) F π ( π ) , omit clauses with π e = 0 \pi_e=0 π e = 0 , which also have π ^ e = 0 \widehat{\pi}_e=0 π e = 0 by the support assumption; this extends (12) to the present setting. Define the nonnegative scalars K 0 , K 1 K_0,K_1 K 0 , K 1 by K 0 : = D ( μ π ^ ∥ μ π ) K_0 := \mathrm{D}(\mu_{\widehat{\pi}}\Vert\mu_{\pi}) K 0 := D ( μ π ∥ μ π ) and K 1 : = F π ( π ^ ) K_1 := F_{\pi}(\widehat{\pi}) K 1 := F π ( π ) . In the π ^ \widehat{\pi} π experiment, draw the seed s ∼ μ π ^ s \sim\mu_{\widehat{\pi}} s ∼ μ π ; in the π \pi π experiment, draw s ∼ μ π s \sim\mu_{\pi} s ∼ μ π . Start the walk either at s s s or at s ˉ \bar{s} s ˉ , and report either the endpoint or its complement, making the same two choices in both experiments. The joint distribution of the seed label s s s and reported endpoint under π ^ \widehat{\pi} π has divergence from its counterpart under π \pi π at most
d : = K 0 + 1 − η 2 η K 1 ≤ K 0 + K 1 2 η . (36) d := K_0+\frac{1-\eta}{2\eta}K_1 \le K_0+\frac{K_1}{2\eta}. \tag*{(36)} d := K 0 + 2 η 1 − η K 1 ≤ K 0 + 2 η K 1 . (36)
Proof. Retain the seed, geometric length, lazy-step indicators, and chosen clauses. The relative entropy between the seed distributions is K 0 K_0 K 0 ; the geometric length and lazy-step indicators have the same distributions in the π ^ \widehat{\pi} π and π \pi π experiments. Under π ^ \widehat{\pi} π , the starting state has distribution μ π ^ \mu_{\widehat{\pi}} μ π even when complemented, and every subsequent state has distribution μ π ^ \mu_{\widehat{\pi}} μ π by stationarity. By (11) , at each non-lazy step the relative entropy between q π ^ ( ⋅ ∣ ℓ ) q_{\widehat{\pi}}(\cdot\mid\ell) q π ( ⋅ ∣ ℓ ) and q π ( ⋅ ∣ ℓ ) q_{\pi}(\cdot\mid\ell) q π ( ⋅ ∣ ℓ ) , averaged over ℓ ∼ μ π ^ \ell\sim\mu_{\widehat{\pi}} ℓ ∼ μ π , is K 1 K_1 K 1 . The expected number of non-lazy steps is ( 1 − η ) / ( 2 η ) (1-\eta)/(2\eta) ( 1 − η ) / ( 2 η ) . The chain rule gives divergence K 0 + ( 1 − η ) K 1 / ( 2 η ) K_0+(1-\eta)K_1/(2\eta) K 0 + ( 1 − η ) K 1 / ( 2 η ) for the complete transcript. Discarding all but the seed and reported endpoint cannot increase divergence, which proves (36) . Complementing the endpoint is a bijection and does not change divergence.
We next use the divergence bound in Lemma 6.1 to control the loss in two-way affinity.
Lemma 6.2 (Comparing endpoint affinities). Under the assumptions of Lemma 6.1 , let d ∈ R ≥ 0 d\in\mathbb{R}_{\ge0} d ∈ R ≥ 0 be as in (36) . If B π ^ ≥ b > 0 B_{\widehat{\pi}}\ge b>0 B π ≥ b > 0 , then
B π ≥ b 2 exp ( − 64 ( d + 1 ) b 2 ) . (37) B_{\pi}\ge\frac{b}{2}\exp\left(-\frac{64(d+1)}{b^2}\right). \tag*{(37)} B π ≥ 2 b exp ( − b 2 64 ( d + 1 ) ) . (37)
Proof. For j ∈ { 0 , 1 } j\in\{0,1\} j ∈ { 0 , 1 } and s ∈ L s\in\mathcal{L} s ∈ L , put s 0 : = s s_0:=s s 0 := s and s 1 : = s ˉ s_1:=\bar{s} s 1 := s ˉ . Define the joint probability mass functions Q j , P j : L × L → [ 0 , 1 ] Q_j,P_j:\mathcal{L}\times\mathcal{L}\to[0,1] Q j , P j : L × L → [ 0 , 1 ] by
Q j ( s , z ) : = μ π ^ ( s ) R π ^ , η ( s j , z ) , P j ( s , z ) : = μ π ( s ) R π , η ( s j , z ) . Q_j(s,z):=\mu_{\widehat{\pi}}(s)R_{\widehat{\pi},\eta}(s_j,z),\qquad P_j(s,z):=\mu_{\pi}(s)R_{\pi,\eta}(s_j,z). Q j ( s , z ) := μ π ( s ) R π , η ( s j , z ) , P j ( s , z ) := μ π ( s ) R π , η ( s j , z ) .
Lemma 6.1 gives D ( Q j ∥ P j ) ≤ d \mathrm{D}(Q_j\Vert P_j)\le d D ( Q j ∥ P j ) ≤ d . In our application, d d d may grow with log n \log n log n , so we seek a multiplicative comparison that can tolerate this growth. For a parameter L > 0 L>0 L > 0 , if Q j ≤ e L P j Q_j\le e^L P_j Q j ≤ e L P j pointwise, the affinity between P j ( s , z ) P_j(s,z) P j ( s , z ) and P j ( s , z ˉ ) P_j(s,\bar{z}) P j ( s , z ˉ ) is at least e − L e^{-L} e − L times the corresponding affinity for Q j Q_j Q j . We enforce this inequality by truncating where its ratio to P j P_j P j is too large. Relative entropy controls the mass removed, so enough affinity survives the truncation. We will choose L L L proportional to ( d + 1 ) / b 2 (d+1)/b^2 ( d + 1 ) / b 2 ; the factor e − L e^{-L} e − L will then give the exponential dependence on d d d in (37) . To bound the mass removed by truncation, let Q , P Q,P Q , P be probability mass functions on a common finite set with D ( Q ∥ P ) ≤ d \mathrm{D}(Q\Vert P)\le d D ( Q ∥ P ) ≤ d . At a point with 0 < Q < P 0<Q<P 0 < Q < P , put t : = Q / P t:=Q/P t := Q / P . The inequality t log ( 1 / t ) ≤ 1 / e t\log(1/t)\le1/e t log ( 1/ t ) ≤ 1/ e gives
Q log ( P / Q ) = P t log ( 1 / t ) ≤ P / e . Q\log(P/Q)=Pt\log(1/t)\le P/e. Q log ( P / Q ) = P t log ( 1/ t ) ≤ P / e .
Thus the Q Q Q -expectation of the negative part of log ( Q / P ) \log(Q/P) log ( Q / P ) is at most ∑ Q < P P / e ≤ 1 / e \sum_{Q<P}P/e\le1/e ∑ Q < P P / e ≤ 1/ e . The positive part of log ( Q / P ) \log(Q/P) log ( Q / P ) therefore has expectation at most d + 1 d+1 d + 1 . Markov's inequality gives Q { Q > e L P } ≤ ( d + 1 ) / L Q\{Q>e^L P\}\le(d+1)/L Q { Q > e L P } ≤ ( d + 1 ) / L for every $L>0. Accordingly, define the subprobability mass functions Q ^ j : L × L → [ 0 , 1 ] \widehat{Q}_j:\mathcal{L}\times\mathcal{L}\to[0,1] Q j : L × L → [ 0 , 1 ] and their removed masses δ j ∈ [ 0 , 1 ] \delta_j\in[0,1] δ j ∈ [ 0 , 1 ] by
Q ^ j ( s , z ) : = min { Q j ( s , z ) , e L P j ( s , z ) } , δ j : = ∑ s , z ( Q j − Q ^ j ) ( s , z ) ≤ d + 1 L . \widehat{Q}_j(s,z):=\min\{Q_j(s,z),e^L P_j(s,z)\},\qquad\delta_j:=\sum_{s,z}(Q_j-\widehat{Q}_j)(s,z)\le\frac{d+1}{L}. Q j ( s , z ) := min { Q j ( s , z ) , e L P j ( s , z )} , δ j := s , z ∑ ( Q j − Q j ) ( s , z ) ≤ L d + 1 .
Define the affinity contributions A j , A ^ j : L → [ 0 , 1 ] A_j,\widehat{A}_j:\mathcal{L}\to[0,1] A j , A j : L → [ 0 , 1 ] at each seed, including the seed mass, by
A j ( s ) : = ∑ z Q j ( s , z ) Q j ( s , z ˉ ) = μ π ^ ( s ) a π ^ ( s j ) , A_j(s):=\sum_z\sqrt{Q_j(s,z)Q_j(s,\bar{z})}=\mu_{\widehat{\pi}}(s)a_{\widehat{\pi}}(s_j), A j ( s ) := z ∑ Q j ( s , z ) Q j ( s , z ˉ ) = μ π ( s ) a π ( s j ) ,
A ^ j ( s ) : = ∑ z Q ^ j ( s , z ) Q ^ j ( s , z ˉ ) . \widehat{A}_j(s):=\sum_z\sqrt{\widehat{Q}_j(s,z)\widehat{Q}_j(s,\bar{z})}. A j ( s ) := z ∑ Q j ( s , z ) Q j ( s , z ˉ ) .
Using the Euclidean norm over seed–endpoint pairs, we have ∥ Q j − Q ^ j ∥ 2 2 ≤ δ j \lVert\sqrt{Q_j}-\sqrt{\widehat{Q}_j}\rVert_2^2\le\delta_j ∥ Q j − Q j ∥ 2 2 ≤ δ j . Cauchy–Schwarz therefore bounds the total affinity loss by
∑ s ( A j ( s ) − A ^ j ( s ) ) ≤ 2 ∥ Q j − Q ^ j ∥ 2 ≤ 2 δ j . \sum_s\left(A_j(s)-\widehat{A}_j(s)\right)\le2\lVert\sqrt{Q_j}-\sqrt{\widehat{Q}_j}\rVert_2\le2\sqrt{\delta_j}. s ∑ ( A j ( s ) − A j ( s ) ) ≤ 2 ∥ Q j − Q j ∥ 2 ≤ 2 δ j .
Also, A ^ j ( s ) ≤ e L μ π ( s ) a π ( s j ) \widehat{A}_j(s)\le e^L\mu_\pi(s)a_\pi(s_j) A j ( s ) ≤ e L μ π ( s ) a π ( s j ) . We need both affinity contributions A ^ 0 ( s ) \widehat{A}_0(s) A 0 ( s ) and A ^ 1 ( s ) \widehat{A}_1(s) A 1 ( s ) at the same seed: taking the minimum over j j j before summing over s s s loses at most the sum of the affinity decreases. Consequently,
e L B π ≥ ∑ s min j A ^ j ( s ) ≥ B π ^ − 2 δ 0 − 2 δ 1 ≥ B π ^ − 4 d + 1 L . e^L B_{\pi}\ge\sum_s\min_j\widehat{A}_j(s)\ge B_{\widehat{\pi}}-2\sqrt{\delta_0}-2\sqrt{\delta_1}\ge B_{\widehat{\pi}}-4\sqrt{\frac{d+1}{L}}. e L B π ≥ s ∑ j min A j ( s ) ≥ B π − 2 δ 0 − 2 δ 1 ≥ B π − 4 L d + 1 .
Taking L : = 64 ( d + 1 ) / b 2 L:=64(d+1)/b^2 L := 64 ( d + 1 ) / b 2 and using B π ^ ≥ b B_{\widehat{\pi}}\ge b B π ≥ b proves (37) .
In the proof of Lemma 6.2, we apply the divergence bound d d d to the two pairs ( Q j , P j ) (Q_j,P_j) ( Q j , P j ) , j = 0 , 1 j=0,1 j = 0 , 1 , of joint seed and endpoint distributions. Thus the divergence bound d d d in (36) is not multiplied by the number of walks that the tester later samples.
Endpoint collisions
We now use B π B_\pi B π from (24) to bound the number of walks needed to find a contradiction. The next lemma bounds the probability that independent samples from two distributions contain a common element in terms of their Hellinger affinity. We will apply it to an endpoint distribution and its complement.
Lemma 6.3 (Two-distribution collision bound). There is a universal constant C ∗ C_* C ∗ with the following property. Let p , q : Ω → [ 0 , 1 ] p,q:\Omega\to[0,1] p , q : Ω → [ 0 , 1 ] be probability mass functions on a finite set Ω \Omega Ω of size at most N N N , with Hellinger affinity Aff ( p , q ) ≥ a > 0 \operatorname{Aff}(p,q)\ge a>0 Aff ( p , q ) ≥ a > 0 . Two independent batches of samples, one from p p p and one from q q q , contain a common element with probability at least 1 / 4 1/4 1/4 if each batch has size
M : = ⌈ C ∗ ( N a + 1 a 2 ) ⌉ . M:=\left\lceil C_*\left(\frac{\sqrt{N}}{a}+\frac{1}{a^2}\right)\right\rceil. M := ⌈ C ∗ ( a N + a 2 1 ) ⌉ .
Proof. For completeness, we prove the collision bound of Yoshida [17 Lemma 2.1] by a second-moment argument. Let X 1 , … , X M ∈ Ω X_1,\ldots,X_M \in\Omega X 1 , … , X M ∈ Ω and Y 1 , … , Y M ∈ Ω Y_1,\ldots,Y_M \in\Omega Y 1 , … , Y M ∈ Ω be the independent batches drawn from p p p and q q q , respectively, and let N i , K i ∈ { 0 , … , M } N_i,K_i \in\{0,\ldots,M\} N i , K i ∈ { 0 , … , M } count the occurrences of i ∈ Ω i \in\Omega i ∈ Ω in the two batches. Put I : = { i ∈ Ω : p i q i > 0 } I := \{i \in\Omega: p_iq_i > 0\} I := { i ∈ Ω : p i q i > 0 } and A : = Aff ( p , q ) ≥ a A := \operatorname{Aff}(p,q) \ge a A := Aff ( p , q ) ≥ a . The normalized collision count M − 2 ∑ i N i K i M^{-2}\sum_i N_iK_i M − 2 ∑ i N i K i has expectation ∑ i p i q i \sum_i p_iq_i ∑ i p i q i . To make this expectation equal the affinity A = ∑ i p i q i A = \sum_i \sqrt{p_iq_i} A = ∑ i p i q i , weight each collision at i ∈ I i \in I i ∈ I by 1 / p i q i 1/\sqrt{p_iq_i} 1/ p i q i . This changes the value of the count but preserves whether any collision occurred. Accordingly, define the nonnegative random variable
Z : = 1 M 2 ∑ i ∈ I N i K i p i q i . Z := \frac{1}{M^2}\sum_{i\in I}\frac{N_iK_i}{\sqrt{p_iq_i}}. Z := M 2 1 i ∈ I ∑ p i q i N i K i .
Then Z > 0 Z > 0 Z > 0 exactly when the batches collide, and E Z = A \mathbb{E}Z = A E Z = A . Expanding E Z 2 \mathbb{E}Z^2 E Z 2 according to whether two sample pairs ( X r , Y t ) (X_r,Y_t) ( X r , Y t ) and ( X r ′ , Y t ′ ) (X_{r'},Y_{t'}) ( X r ′ , Y t ′ ) share neither, one, or both indices gives
E Z 2 = ( M − 1 ) 2 A 2 + ( M − 1 ) ∑ i ∈ I ( p i + q i ) + ∣ I ∣ M 2 ≤ A 2 + 2 M + N M 2 . \mathbb{E}Z^2 = \frac{(M-1)^2A^2+(M-1)\sum_{i\in I}(p_i+q_i)+|I|}{M^2} \le A^2+\frac{2}{M}+\frac{N}{M^2}. E Z 2 = M 2 ( M − 1 ) 2 A 2 + ( M − 1 ) ∑ i ∈ I ( p i + q i ) + ∣ I ∣ ≤ A 2 + M 2 + M 2 N .
Therefore Cauchy–Schwarz yields
Pr [ Z > 0 ] ≥ ( E Z ) 2 E Z 2 ≥ A 2 A 2 + 2 / M + N / M 2 ≥ 1 4 . \Pr[Z>0] \ge\frac{(\mathbb{E}Z)^2}{\mathbb{E}Z^2} \ge\frac{A^2}{A^2+2/M+N/M^2} \ge\frac{1}{4}. Pr [ Z > 0 ] ≥ E Z 2 ( E Z ) 2 ≥ A 2 + 2/ M + N / M 2 A 2 ≥ 4 1 .
when M ≥ N / a + a − 2 M \ge\sqrt{N}/a+a^{-2} M ≥ N / a + a − 2 . Thus we may take C ∗ : = 1 C_* := 1 C ∗ := 1 . The weights in Z Z Z are used only in the analysis; the tester simply checks for a common sample.
To apply Lemma 6.3 to the contradiction search, suppose B π ≥ b 0 B_\pi\ge b_0 B π ≥ b 0 for some b 0 ∈ ( 0 , 1 ] b_0 \in(0,1] b 0 ∈ ( 0 , 1 ] . Then min { a π ( s ) , a π ( s ˉ ) } ≥ b 0 / 2 \min\{a_\pi(s),a_\pi(\bar{s})\} \ge b_0/2 min { a π ( s ) , a π ( s ˉ )} ≥ b 0 /2 on seeds of total μ π \mu_\pi μ π -mass at least b 0 / 2 b_0/2 b 0 /2 , because this minimum lies in [ 0 , 1 ] [0,1] [ 0 , 1 ] . For such a seed s s s , use four independent batches of forward walks: two from s s s and two from s ˉ \bar{s} s ˉ . Within each pair, seek complementary endpoints. Lemma 6.3 with a = b 0 / 2 a=b_0/2 a = b 0 /2 gives paths s ⇝ s ˉ s \leadsto\bar{s} s ⇝ s ˉ and s ˉ ⇝ s \bar{s} \leadsto s s ˉ ⇝ s with probability at least 1 / 16 1/16 1/16 . A trial that draws s ∼ μ π s \sim\mu_\pi s ∼ μ π and performs these four batches therefore succeeds with probability at least b 0 / 32 b_0/32 b 0 /32 . Taking
R : = ⌈ 128 b 0 ⌉ , M : = ⌈ C ∗ ( 2 2 n b 0 + 4 b 0 2 ) ⌉ (38) R := \left\lceil\frac{128}{b_0}\right\rceil,\qquad M := \left\lceil C_*\left(\frac{2\sqrt{2n}}{b_0}+\frac{4}{b_0^2}\right)\right\rceil \tag*{(38)} R := ⌈ b 0 128 ⌉ , M := ⌈ C ∗ ( b 0 2 2 n + b 0 2 4 ) ⌉ (38)
as the number of independent seed trials and the number of endpoints per batch, respectively, makes the probability of finding no contradiction at most 1 / 16 1/16 1/16 . The total number of endpoints is
Q : = 4 R M = O ( n b 0 2 + b 0 − 3 ) . (39) Q := 4RM = O\left(\frac{\sqrt{n}}{b_0^2}+b_0^{-3}\right). \tag*{(39)} Q := 4 R M = O ( b 0 2 n + b 0 − 3 ) . (39)
Each sampled path is retained with the clauses used by its non-lazy steps. If both endpoint tests succeed, reverse and complement one path in each pair and concatenate the paths to obtain s ⇝ s ˉ ⇝ s s \leadsto\bar{s} \leadsto s s ⇝ s ˉ ⇝ s , as in Figure 1 .
The E2SAT tester
The tester evaluates clause weights on demand, samples seeds and walks using those weights, and searches for contradictory paths. We give the procedure first, then choose its parameters and specify how to sample within deterministic budgets.
Write D D D for the E2SAT degree bound, and fix 0 < ν < 1 / 2 0 < \nu< 1/2 0 < ν < 1/2 . The far condition is τ ( F ) ≥ ε D n \tau(F) \ge\varepsilon Dn τ ( F ) ≥ ε D n , and m ≤ D n / 2 m \le Dn/2 m ≤ D n /2 gives τ ( F ) / m ≥ 2 ε \tau(F)/m \ge2\varepsilon τ ( F ) / m ≥ 2 ε on a far input. The algorithm. Use the local oracle of Theorem 3.2 to evaluate a deterministic clause-weight vector w ∈ ( 0 , 1 ] m w \in(0,1]^m w ∈ ( 0 , 1 ] m as needed. The procedure uses a target lower bound b 0 ∈ ( 0 , 1 ] b_0 \in(0,1] b 0 ∈ ( 0 , 1 ] on the two-way affinity B π B_\pi B π and a stopping probability η ∈ ( 0 , 1 ) \eta\in(0,1) η ∈ ( 0 , 1 ) . Set the number of seed trials R R R , the batch size M M M , and the total number of walks Q = 4 R M Q=4RM Q = 4 R M by (38)–(39). The oracle parameters, b 0 b_0 b 0 , η \eta η , and the budgets below depend only on n n n , ε \varepsilon ε , D D D , ν \nu ν and are specified in the following paragraphs.
For each of the R R R trials, attempt to sample a seed using the incidence-slot procedure below. As we verify below, the accepted seed has distribution μ π \mu_\pi μ π , where π : = w / W ( w ) \pi:= w/W(w) π := w / W ( w ) . Run four independent batches of M M M forward lazy walks with weights w w w , two from the seed and two from its complement. Each walk stops independently with probability η \eta η before each step. Test each pair of batches for complementary endpoints, retaining the paths and the clauses used by their non-lazy steps. If both tests succeed for the same seed, reject and output the resulting contradictory paths. Otherwise accept after the R R R trials. Also accept immediately if the total number of seed proposals reaches its budget S max S_{\max} S m a x without obtaining all seeds, or if the total number of walk steps reaches its budget L max L_{\max} L m a x before all walks finish.
Parameter choices and two-way affinity guarantee. Choose δ 0 > 0 \delta_0>0 δ 0 > 0 so that τ ( F ) ≥ δ 0 m \tau(F)\ge\delta_0m τ ( F ) ≥ δ 0 m on far inputs, as required by the local oracle. Let k > 0 k>0 k > 0 be the coefficient in its total-weight bound W ( w ) ≥ k m W(w)\ge km W ( w ) ≥ k m , and let g , h > 0 g,h>0 g , h > 0 be the lower bounds we seek for τ π ( F ) \tau_\pi(F) τ π ( F ) and τ π ^ ( F ) \tau_{\widehat{\pi}}(F) τ π ( F ) , respectively:
δ 0 : = min { ε , 1 / 4 } , k : = k δ 0 = δ 0 4 e − 4 / δ 0 , g : = k / 2 , h : = g 2 / 1600. (40) \delta_0:=\min\{\varepsilon,1/4\},\qquad k:=k_{\delta_0}=\frac{\delta_0}{4}e^{-4/\delta_0},\qquad g:=k/2,\qquad h:=g^2/1600. \tag*{(40)} δ 0 := min { ε , 1/4 } , k := k δ 0 = 4 δ 0 e − 4/ δ 0 , g := k /2 , h := g 2 /1600. (40)
Theorem 5.1, applied with δ = h \delta=h δ = h , supplies a lower bound B π ^ ≥ b h B_{\widehat{\pi}}\ge b_h B π ≥ b h and a stopping probability with η − 1 ≤ C h log ( 2 n ) \eta^{-1}\le C_h\log(2n) η − 1 ≤ C h log ( 2 n ) . Use the constants b h , C h b_h,C_h b h , C h from (35) and write b : = b h b:=b_h b := b h . Choose α \alpha α to make the divergence accumulated over O ( log n ) O(\log n) O ( log n ) steps contribute an exponent at most ν / 2 \nu/2 ν /2 in the lower bound on B π B_\pi B π from Lemma 6.2. Then choose the imbalance tolerance β \beta β to meet Theorem 4.1, and the number T 0 T_0 T 0 of descent iterates to meet that tolerance:
α : = min { 1 , ν b 2 32 C h } , β : = min { 1 , α g 2 / 400 } , T 0 : = ⌈ 288 D k 2 β 2 ⌉ . (41) \alpha:=\min\left\{1,\frac{\nu b^2}{32C_h}\right\},\qquad\beta:=\min\{1,\alpha g^2/400\},\qquad T_0:=\left\lceil\frac{288D}{k^2\beta^2}\right\rceil. \tag*{(41)} α := min { 1 , 32 C h ν b 2 } , β := min { 1 , α g 2 /400 } , T 0 := ⌈ k 2 β 2 288 D ⌉ . (41)
The constants in (40) and (41) depend only on ε , D , ν \varepsilon,D,\nu ε , D , ν . Invoke Theorem 3.2 with δ = δ 0 \delta=\delta_0 δ = δ 0 , degree bound D D D , and imbalance tolerance β \beta β . The oracle locally evaluates the deterministic average w = T 0 − 1 ∑ j = 0 T 0 − 1 w ( z j ) ∈ ( 0 , 1 ] m w=T_0^{-1}\sum_{j=0}^{T_0-1}w(z^j)\in(0,1]^m w = T 0 − 1 ∑ j = 0 T 0 − 1 w ( z j ) ∈ ( 0 , 1 ] m from (9) .
Put W : = W ( w ) W:=W(w) W := W ( w ) . On every far input, Theorem 3.2 gives
W ≥ k m , ∥ b ( w ) ∥ 1 / W ≤ β , τ π ( F ) ≥ g , π e = w e / W . (42) W\ge km,\qquad\lVert b(w)\rVert_1/W\le\beta,\qquad\tau_\pi(F)\ge g,\qquad\pi_e=w_e/W. \tag*{(42)} W ≥ k m , ∥ b ( w ) ∥ 1 / W ≤ β , τ π ( F ) ≥ g , π e = w e / W . (42)
Every clause has positive weight, as required in § 4 . The tester need not check (42) or compute m m m , W W W , or π \pi π explicitly.
On a far input, applying Theorem 4.1 to (42) , with δ = g \delta=g δ = g , provides a balanced distribution π ^ \widehat{\pi} π with τ π ^ ( F ) ≥ h \tau_{\widehat{\pi}}(F)\ge h τ π ( F ) ≥ h , K 0 = D ( μ π ^ ∥ μ π ) ≤ log ( 1 / ( 2 h ) ) K_0=D(\mu_{\widehat{\pi}}\Vert\mu_\pi)\le\log(1/(2h)) K 0 = D ( μ π ∥ μ π ) ≤ log ( 1/ ( 2 h )) , and K 1 = F π ( π ^ ) ≤ α / 2 K_1=F_\pi(\widehat{\pi})\le\alpha/2 K 1 = F π ( π ) ≤ α /2 . Choose the stopping probability η = η ( h , n ) \eta=\eta(h,n) η = η ( h , n ) by (34) with δ = h \delta=h δ = h . Theorem 5.1 gives B π ^ ≥ b B_{\widehat{\pi}}\ge b B π ≥ b , while Lemmas 6.1 and 6.2 give the following bound with constants c , γ > 0 c,\gamma>0 c , γ > 0 :
B π ≥ c ( 2 n ) − γ , B_\pi\ge c(2n)^{-\gamma}, B π ≥ c ( 2 n ) − γ ,
c : = b 2 exp [ − 64 ( 1 + log ( 1 / ( 2 h ) ) ) b 2 ] , γ : = 16 α C h b 2 ≤ ν / 2. (43) c:=\frac{b}{2}\exp\left[-\frac{64(1+\log(1/(2h)))}{b^2}\right],\qquad\gamma:=\frac{16\alpha C_h}{b^2}\le\nu/2. \tag*{(43)} c := 2 b exp [ − b 2 64 ( 1 + log ( 1/ ( 2 h ))) ] , γ := b 2 16 α C h ≤ ν /2. (43)
Since γ ≤ ν / 2 \gamma\le\nu/2 γ ≤ ν /2 , we may use the following lower bound on B π B_\pi B π :
b 0 : = c ( 2 n ) − ν / 2 . (44) b_0:=c(2n)^{-\nu/2}. \tag*{(44)} b 0 := c ( 2 n ) − ν /2 . (44)
Then B π ≥ b 0 B_\pi\ge b_0 B π ≥ b 0 and b 0 − 1 = O ε , D , ν ( n ν / 2 ) b_0^{-1}=O_{\varepsilon,D,\nu}(n^{\nu/2}) b 0 − 1 = O ε , D , ν ( n ν /2 ) .
Exact seed sampling from incidence slots. Choose a uniform variable and a uniform incidence slot in { 1 , … , D } \{1,\ldots,D\} { 1 , … , D } . If the answer is null, discard the proposal and try again, subject to the proposal budget. For a returned E2SAT clause e e e , compute w e w_e w e and accept this proposal with probability w e w_e w e . The seed is the complement of the literal of the queried variable in the returned clause.
The vector w w w is deterministic. Each incidence of a clause e e e at one of its variables is proposed and accepted with probability w e / ( n D ) w_e/(nD) w e / ( n D ) . Thus accepted seeds have distribution μ π \mu_\pi μ π exactly, with the associated clause distributed as π \pi π . Without a proposal budget, the accepted seeds are i.i.d. and independent of the acceptance indicators. The number of proposals needed to obtain R R R accepted seeds depends only on those indicators, so imposing the budget can reduce the rejection probability only by the probability of exhausting it.
On a far input, we have m ≥ τ ( F ) ≥ ε D n m \ge\tau(F) \ge\varepsilon Dn m ≥ τ ( F ) ≥ ε D n . Together with the total-weight bound in (42) , this gives the following lower bound on the probability of accepting one seed proposal:
p : = 2 W n D ≥ 2 k m n D ≥ p 0 , p 0 : = 2 k ε . p := \frac{2W}{nD} \ge\frac{2km}{nD} \ge p_0,\qquad p_0 := 2k\varepsilon. p := n D 2 W ≥ n D 2 k m ≥ p 0 , p 0 := 2 k ε .
Cap all seed proposals at S max : = ⌈ 64 R / p 0 ⌉ S_{\max} := \lceil64R/p_0\rceil S m a x := ⌈ 64 R / p 0 ⌉ . Without this budget, sampling R R R seeds on a far input takes at most R / p 0 R/p_0 R / p 0 proposals in expectation. By Markov’s inequality, the probability of exhausting the proposal budget is at most 1 / 64 1/64 1/64 .
Walk steps and stopping. At a literal ℓ \ell ℓ , query the at most D D D incidences of its variable and compute w e w_e w e for each clause e e e in which ℓ ˉ \bar{\ell} ℓ ˉ appears. A non-lazy step uses these weights to sample T π ( ℓ , ⋅ ) T_\pi(\ell,\cdot) T π ( ℓ , ⋅ ) , as defined in Section 5. The deterministic oracle gives consistent weights on repeated queries.
Each of the Q Q Q walks has expected length ( 1 − η ) / η ≤ 1 / η (1-\eta)/\eta\le1/\eta ( 1 − η ) / η ≤ 1/ η , regardless of the seed and input. Cap the total number of steps taken by these walks at L max : = ⌈ 64 Q / η ⌉ L_{\max} := \lceil64Q/\eta\rceil L m a x := ⌈ 64 Q / η ⌉ . By Markov’s inequality, the probability of exhausting this step budget is at most 1 / 64 1/64 1/64 .
Soundness and completeness. On a far input, we have B π ≥ b 0 B_\pi\ge b_0 B π ≥ b 0 by (43) –(44) . Thus, if no budget is imposed on seed proposals or walk steps, the probability that the tester finds no contradiction is at most 1 / 16 1/16 1/16 . Exhaustion of the seed proposal budget S max S_{\max} S m a x or the step budget L max L_{\max} L m a x adds at most 2 / 64 2/64 2/64 to the failure probability. The tester therefore rejects with probability at least 1 − 1 / 16 − 2 / 64 = 29 / 32 > 2 / 3 1-1/16-2/64=29/32>2/3 1 − 1/16 − 2/64 = 29/32 > 2/3 .
The tester rejects only if it finds contradictory implication paths in the input. Thus the tester accepts every satisfiable input, regardless of the weights, random choices, or budget limits.
Query complexity. The local oracle requires O ( D T 0 + 2 ) O(D^{T_0+2}) O ( D T 0 + 2 ) incidence queries per clause weight. Since T 0 T_0 T 0 in (41) is independent of n n n , this cost depends only on ε , D , ν \varepsilon,D,\nu ε , D , ν . Thus each seed proposal and walk step uses O ε , D , ν ( 1 ) O_{\varepsilon,D,\nu}(1) O ε , D , ν ( 1 ) queries. For the number of endpoints, substituting (44) into (39) gives
Q = O ε , D , ν ( n 1 / 2 + ν + n 3 ν / 2 ) = O ε , D , ν ( n 1 / 2 + ν ) . Q=O_{\varepsilon,D,\nu}\left(n^{1/2+\nu}+n^{3\nu/2}\right)=O_{\varepsilon,D,\nu}\left(n^{1/2+\nu}\right). Q = O ε , D , ν ( n 1/2 + ν + n 3 ν /2 ) = O ε , D , ν ( n 1/2 + ν ) .
Seed proposals cost O ε , D , ν ( R ) O_{\varepsilon,D,\nu}(R) O ε , D , ν ( R ) queries, and the step budget is O ε , D , ν ( Q log ( 2 n ) ) O_{\varepsilon,D,\nu}(Q\log(2n)) O ε , D , ν ( Q log ( 2 n )) . Hence the query complexity is O ~ ε , D , ν ( n 1 / 2 + ν ) \widetilde{O}_{\varepsilon,D,\nu}(n^{1/2+\nu}) O ε , D , ν ( n 1/2 + ν ) . This proves Theorem 1.1 for E2SAT.
Reduction from general 2SAT
We complete the proof of Theorem 1.1 by extending the E2SAT tester to formulas with unit clauses and tautologies. The reduction must preserve the distance from satisfiability up to a constant factor, allow local simulation of queries, and convert a detected contradiction back to original clauses.
We construct an E2SAT formula F ′ F' F ′ with τ ( F ′ ) = τ ( F ) \tau(F') = \tau(F) τ ( F ′ ) = τ ( F ) and simulate each incidence query to F ′ F' F ′ using one query to F F F . Normalize ( a ∨ a ) (a \lor a) ( a ∨ a ) to the unit clause ( a ) (a) ( a ) and discard tautologies ( a ∨ a ˉ ) (a \lor\bar{a}) ( a ∨ a ˉ ) , where a a a is an original literal. Keep every clause on two distinct variables. For each original variable x x x , introduce a fresh Boolean variable z x z_x z x and replace each unit clause on a literal a ∈ { x , x ˉ } a \in\{x,\bar{x}\} a ∈ { x , x ˉ } by
( a ) ⟼ ( a ∨ z x ) , ( a ∨ z ˉ x ) . (a) \longmapsto(a \lor z_x),(a \lor\bar{z}_x). ( a ) ⟼ ( a ∨ z x ) , ( a ∨ z ˉ x ) .
The unit clauses ( x ) (x) ( x ) and ( x ˉ ) (\bar{x}) ( x ˉ ) , when present, share z x z_x z x . Since the auxiliary variables are fresh, this construction introduces no repeated clauses. If a a a is true, both replacement clauses are satisfied; if a a a is false, exactly one is violated, regardless of z x z_x z x . Thus every assignment to the original and auxiliary variables violates exactly as many clauses of F ′ F' F ′ as its restriction violates in F F F . In particular, F ′ F' F ′ is satisfiable exactly when F F F is, and τ ( F ′ ) = τ ( F ) \tau(F') = \tau(F) τ ( F ′ ) = τ ( F ) .
Include z x z_x z x even when x x x has no unit clauses, so that F ′ F' F ′ has the known size n ′ : = 2 n n' := 2n n ′ := 2 n . Each original incidence produces at most two incidences at its original variable, and only a unit on x x x produces incidences at z x z_x z x . Hence the maximum degree is at most D : = 2 Δ D := 2\Delta D := 2Δ . To simulate the incidence oracle, assign output slots 2 i − 1 , 2 i 2i-1,2i 2 i − 1 , 2 i at both x x x and z x z_x z x to the original slot ( x , i ) (x,i) ( x , i ) :
If ( x , i ) (x,i) ( x , i ) contains a unit ( a ) (a) ( a ) after normalization, slots 2 i − 1 , 2 i 2i-1,2i 2 i − 1 , 2 i at both x x x and z x z_x z x contain ( a ∨ z x ) , ( a ∨ z ˉ x ) (a \lor z_x),(a \lor\bar{z}_x) ( a ∨ z x ) , ( a ∨ z ˉ x ) , respectively.
If ( x , i ) (x,i) ( x , i ) contains a clause on two distinct variables, slot 2 i − 1 2i-1 2 i − 1 at x x x contains that clause; slot 2 i 2i 2 i at x x x and both slots at z x z_x z x are null.
If ( x , i ) (x,i) ( x , i ) is null or contains a tautology, all four output slots are null.
For each clause returned by the simulated oracle, retain the original clause that produced it, so that a contradiction in F ′ F' F ′ can be converted to one in F F F . Every output query uses one original query. Sampling uniformly from the 2 n 2n 2 n labels x , z x x,z_x x , z x requires no preprocessing or enumeration of clauses.
To verify preservation of distance, suppose the original formula is ε \varepsilon ε -far. Then
τ ( F ′ ) = τ ( F ) ≥ ε Δ n = ε ′ D n ′ , ε ′ : = ε / 4. \tau(F') = \tau(F) \ge\varepsilon\Delta n = \varepsilon' Dn', \qquad\varepsilon' := \varepsilon/4. τ ( F ′ ) = τ ( F ) ≥ ε Δ n = ε ′ D n ′ , ε ′ := ε /4.
We may therefore apply the E2SAT tester with parameters D , ε ′ , ν D,\varepsilon',\nu D , ε ′ , ν . Since n ′ = 2 n n' = 2n n ′ = 2 n , the query bound in the original model remains
O ~ ε , Δ , ν ( n 1 / 2 + ν ) . \widetilde{O}_{\varepsilon,\Delta,\nu}(n^{1/2+\nu}). O ε , Δ , ν ( n 1/2 + ν ) .
Finally, suppose the tester finds a contradiction in F ′ F' F ′ . Let F 0 F_0 F 0 be the subformula of F F F consisting of the original clauses that give rise to the clauses on the contradictory paths. The formula F 0 F_0 F 0 is unsatisfiable: any satisfying assignment would satisfy the retained binary clauses and both replacements of every unit, for any choice of auxiliary values, contradicting the paths in F ′ F' F ′ . Using the implication graph of F 0 F_0 F 0 , with each unit clause ( a ) (a) ( a ) represented by the implication a ˉ → a \bar{a}\to a a ˉ → a , the tester can extract paths s ⇝ s ˉ ⇝ s s\leadsto\bar{s}\leadsto s s ⇝ s ˉ ⇝ s for some literal s s s of F 0 F_0 F 0 without further queries. This proves Theorem 1.1 for general 2SAT.