The satisfiability coding lemma and PPZ for k-SAT #
The PPZ algorithm of Paturi, Pudlák and Zane processes the variables of a CNF formula in a uniformly
random order. A variable is forced if, after substituting the values already chosen, some clause
becomes a unit clause on it; the algorithm then sets the variable to satisfy that clause. Otherwise
it chooses the value uniformly (Cslib.Complexity.PPZ.round) Paturi, Pudlák, Zane.
Let σ be the only satisfying assignment of the formula. Along a run that agrees with σ, forced
values are correct (forced_eq), so the run produces σ with probability 2^{-u}, where u is
the number of unforced variables (run_apply_restrict). Flipping a variable x of σ falsifies
some clause; in this critical clause the literal on x is the only one true under σ
(exists_critical). If x comes after the other variables of its critical clause, then x is
forced. In a uniformly random order this happens with probability 1 / m for a clause on m
variables (card_isLast_mul), so for clauses of at most k literals at most (1 - 1/k) n
variables are unforced on average. By the arithmetic–geometric mean inequality, one round finds
σ with probability at least 2^{-(1 - 1/k) n} (round_success).
The run is defined for any oracle that proposes values for variables (runWith); PPZ uses unit
clauses and PPSZ (Cslib.Complexity.PPSZ.round) uses bounded implication. The run analysis
(runWith_apply_restrict, roundWith_apply_eq) and the averaging step (roundWith_apply_ge) are
proved once for every oracle whose values agree with σ along runs that agree with σ.
Without uniqueness, the same argument applies to the variables I(σ) whose flips falsify the
formula, and one round outputs σ with probability at least 2^{-(n - |I(σ)| / k)}
(round_apply_ge). Since ∑_σ 2^{|I(σ)|} ≥ 2^n over the satisfying assignments
(Cslib.BitString.two_pow_le_sum_two_pow_isolation), one round finds some satisfying assignment
with probability at least 2^{-(1 - 1/k) n} (round_success_of_satisfiable).
Main definitions #
Cslib.Complexity.PPZ.forced: the value forced on a variable by a unit clause.Cslib.Complexity.PPZ.runWith,Cslib.Complexity.PPZ.roundWith: a run in a fixed order and a round in a uniformly random order, with values proposed by an oracle.Cslib.Complexity.PPZ.run: the firstisteps of a round in a fixed order.Cslib.Complexity.PPZ.prefixSet,Cslib.Complexity.PPZ.EqOnPrefix: the variables processed in the firstisteps of an order, and agreement of two orders on their firstipositions.Cslib.Complexity.PPZ.round: one round of PPZ, in a uniformly random order.
Main results #
Cslib.Complexity.PPZ.runWith_apply_restrict: for a sound oracle, a run in a fixed order produces the solution with probability2^{-u}.Cslib.Complexity.PPZ.roundWith_apply_ge: for a sound oracle, a round produces the solution with probability at least2^{-n + ∑ₓ Pr_π[x forced]}.Cslib.Complexity.PPZ.run_apply_restrict: a round in a fixed order produces the solution with probability2^{-u}.Cslib.Complexity.PPZ.exists_critical_of_flip: a variable whose flip falsifies the formula has a critical clause.Cslib.Complexity.PPZ.exists_critical: critical clauses of a uniquely satisfiable formula.Cslib.Complexity.PPZ.card_isLast_mul: a fixed variable comes last amongmvariables in a1 / mfraction of the orders.Cslib.Complexity.PPZ.round_apply_ge: PPZ outputs a satisfying assignmentσwith probability at least2^{-(n - |I| / k)}when the flips of the variables inIfalsify the formula.Cslib.Complexity.PPZ.round_success: PPZ finds the unique satisfying assignment of a k-CNF formula with probability at least2^{-(1 - 1/k) n}.Cslib.Complexity.PPZ.round_success_of_satisfiable: PPZ finds a satisfying assignment of a satisfiable k-CNF formula with probability at least2^{-(1 - 1/k) n}.
References #
The algorithm #
The clause c is a unit clause on x with polarity b under the partial assignment τ:
it has a literal (x, b), every literal on x has polarity b, and τ falsifies every other
literal.
Instances For
One step on x with the oracle O: the value O τ x if there is one, and a uniform bit
otherwise. PPZ uses unit clauses as the oracle (step); PPSZ uses bounded implication
(Cslib.Complexity.PPSZ.step).
The first i steps of a PPZ round in the order π: the variable π j is processed at
step j.
One round of PPZ: process all variables in a uniformly random order.
Runs that agree with the solution #
The variables processed in the first i steps of the order π.
Forced values are correct. If σ satisfies φ and τ agrees with σ where defined, every
value forced under τ is the value of σ.
Prefixes of an order #
No variable is processed in zero steps.
All variables are processed in n steps.
The variable at position i is not processed in the first i steps.
The first i ≤ n steps process i variables.
The order π agrees with π₀ on the first i positions.
Instances For
Agreement on a prefix is decidable.
Orders that agree on the first i positions process the same variables in the first i
steps.
An order that agrees with π₀ on the first i positions has at position i a variable that
π₀ does not process in its first i steps.
The orders that agree with π₀ on the first i positions and have y at position i are
those that agree on the first i + 1 positions with π₀ followed by the swap of y with the
variable of π₀ at position i.
The first i + 1 steps of π₀ followed by the swap of y with the variable at position i
process the first i variables of π₀ and y.
Runs in a fixed order #
A run only assigns the variables it has processed.
The number of variables without an oracle value among the first i steps of the run with the
oracle O that agrees with σ: at these steps the run chooses a uniform bit.
The number of unforced variables among the first i steps of a run that agrees with σ.
A run in a fixed order produces the solution with probability 2^{-u}, after
Paturi, Pudlák, Saks, Zane, Lemma 1, where u counts the variables
without an oracle value along the run that agrees with σ. The oracle must be sound along σ:
under every partial assignment that agrees with σ, its values are those of σ. The source draws
the random bits up front and characterises the bit strings that lead to σ; here the bits are
drawn during the run, and the probability is computed directly.
A PPZ run in a fixed order produces the solution with probability 2^{-u}, where u
counts the unforced variables along the run that agrees with σ.
Averaging over the orders #
The success probability is an average over the orders, after
Paturi, Pudlák, Saks, Zane, Lemma 2: for an oracle that is sound along
σ, one round outputs σ with probability (1/n!) ∑_π 2^{-u(π)}, where u(π) counts the
variables without an oracle value in the order π.
The variables without an oracle value along a whole run are those whose predecessors in the
order, set as in σ, give them no oracle value.
The success probability in terms of forcing probabilities, after
Paturi, Pudlák, Saks, Zane, Lemma 3: for an oracle that is sound
along σ, one round outputs σ with probability at least 2^{-n + ∑ₓ Pr_π[x forced]}, where
Pr_π[x forced] is the fraction of the n! orders in which the values of σ on the variables
before x give x an oracle value. The proof applies the arithmetic–geometric mean inequality
to roundWith_apply_eq.
Critical clauses #
The variables of a clause.
c is a critical clause of x for σ: it contains x, the literals on x are true under
σ, and every other literal is false under σ.
Critical clauses exist for every variable whose flip falsifies φ.
Critical clauses exist for every variable of the unique satisfying assignment: flipping the variable falsifies some clause.
x comes after every other variable of S in the order π.
Instances For
A variable that comes last in its critical clause is forced.
Random orders #
The success probability #
With critical clauses C for the variables of I, the unforced variables of a run that agrees
with σ are among the variables that are not in I or do not come last in their critical
clause.
One satisfying assignment. Let σ satisfy a CNF formula on n variables whose clauses have
at most k ≥ 1 literals, and let I be a set of variables whose flips falsify the formula. Then
one round of PPZ outputs σ with probability at least 2^{-(n - |I| / k)}: each variable of I
comes last in its critical clause, and is then forced, in at least a 1 / k fraction of the
orders.
The PPZ algorithm for unique k-SAT Paturi, Pudlák, Zane: if σ is the only
satisfying assignment of a CNF formula on n variables whose clauses have at most k ≥ 1 literals,
one round of PPZ outputs σ with probability at least 2^{-(1 - 1/k) n}.
The PPZ algorithm for k-SAT Paturi, Pudlák, Zane: for every satisfiable CNF
formula on n variables whose clauses have at most k ≥ 1 literals, one round of PPZ outputs a
satisfying assignment with probability at least 2^{-(1 - 1/k) n}. Each satisfying assignment σ
is output with probability at least 2^{-(n - I(σ)/k)}, where I(σ) counts the variables whose
flips falsify the formula, and ∑_σ 2^{I(σ) - n} ≥ 1
(Cslib.BitString.two_pow_le_sum_two_pow_isolation).