Documentation

CslibFrontier.Computability.Complexity.FineGrained.PPSZ.Limit

PPSZ for unique 3-SAT: the limit of the depth recursion #

For k = 3 the depth recursion of PPSZ reads Q 3 (d + 1) r = (r + (1 - r) * Q 3 d r) ^ 2. For fixed r ∈ [0, 1] the sequence Q 3 d r increases with d and is bounded by every nonnegative fixed point of x ↦ (r + (1 - r) * x) ^ 2. The fixed points are the roots of ((1 - r) ^ 2 * x - r ^ 2) * (x - 1), so the smallest one is R3 r = (r / (1 - r)) ^ 2 for r < 1 / 2 and R3 r = 1 otherwise (R3_eq, R3_le_of_eq), and Q 3 d r tends to it (tendsto_Q_three) Paturi, Pudlák, Saks, Zane, Claim 1 (p. 352) and p. 354. Its integral is ∫₀¹ R3 = 2 - 2 log 2 (integral_R3), and by dominated convergence qbar 3 d tends to it (tendsto_qbar_three). Throughout, log is the natural logarithm Real.log.

Combined with the bound 2^{-(1 - qbar 3 h) n} for unique 3-SAT (round_success_of_unique), this gives, for every ε > 0, a bound w such that one round of PPSZ with w-implication outputs the unique satisfying assignment of every 3-CNF formula on n variables with probability at least 2^{-(2 log 2 - 1 + ε) n} (round_success_unique_three_limit). Here 2 log 2 - 1 ≈ 0.386; this is the ε-form of Paturi, Pudlák, Saks, Zane, Theorem 1(ii) for k = 3, with w-implication in place of bounded resolution.

Main definitions #

Main results #

References #

The limit of the depth recursion #

noncomputable def Cslib.Complexity.PPSZ.R3 (r : ℝ) :

The limit of the depth recursion for k = 3 Paturi, Pudlák, Saks, Zane, Claim 1 and p. 354: R3 r = (r / (1 - r)) ^ 2 for r < 1 / 2 and R3 r = 1 otherwise. For r ∈ [0, 1] it is the smallest root of R = (r + (1 - r) * R) ^ 2 (R3_eq, R3_le_of_eq); the roots are 1 and, for r < 1, (r / (1 - r)) ^ 2.

theorem Cslib.Complexity.PPSZ.R3_of_le {r : ℝ} (hr : r ≤ 1 / 2) :
R3 r = (r / (1 - r)) ^ 2

Both formulas give 1 at r = 1 / 2, so R3 r = (r / (1 - r)) ^ 2 for r ≤ 1 / 2.

theorem Cslib.Complexity.PPSZ.R3_of_ge {r : ℝ} (hr : 1 / 2 ≤ r) :
R3 r = 1

R3 r = 1 for r ≥ 1 / 2.

R3 is nonnegative.

theorem Cslib.Complexity.PPSZ.R3_lt_one {r : ℝ} (hr0 : 0 ≤ r) (hr : r < 1 / 2) :
R3 r < 1

For 0 ≤ r < 1 / 2, R3 r < 1.

theorem Cslib.Complexity.PPSZ.R3_eq (r : ℝ) :
(r + (1 - r) * R3 r) ^ 2 = R3 r

R3 r is a fixed point of the recursion step.

theorem Cslib.Complexity.PPSZ.R3_le_of_eq {r : ℝ} (hr : r ∈ Set.Icc 0 1) {x : ℝ} (hx : (r + (1 - r) * x) ^ 2 = x) :
R3 r ≤ x

R3 r is the smallest fixed point of the recursion step on [0, 1].

theorem Cslib.Complexity.PPSZ.Q_three_le_R3 {r : ℝ} {d : ℕ} (hr : r ∈ Set.Icc 0 1) :
Q 3 d r ≤ R3 r

Q 3 d r ≤ R3 r on [0, 1]: the recursion step is monotone on [0, ∞) and fixes R3 r.

theorem Cslib.Complexity.PPSZ.eq_R3_of_eq {r : ℝ} (hr : r ∈ Set.Icc 0 1) {x : ℝ} (hx : (r + (1 - r) * x) ^ 2 = x) (hxR : x ≤ R3 r) :
x = R3 r

A fixed point of the recursion step that is at most R3 r equals R3 r.

theorem Cslib.Complexity.PPSZ.tendsto_Q_three {r : ℝ} (hr : r ∈ Set.Icc 0 1) :
Filter.Tendsto (fun (d : ℕ) => Q 3 d r) Filter.atTop (nhds (R3 r))

Q 3 d r tends to R3 r Paturi, Pudlák, Saks, Zane, p. 352 and p. 354: for r ∈ [0, 1] the sequence increases and is bounded by 1, so it converges; its limit is a fixed point of the recursion step at most R3 r, hence equal to R3 r.

The integral of the limit #

The integral of the limit Paturi, Pudlák, Saks, Zane, p. 354: ∫₀¹ R3 r dr = 2 - 2 log 2, since 1 / (1 - r) + 2 log (1 - r) + r is an antiderivative of (r / (1 - r)) ^ 2.

The limit of qbar 3 and unique 3-SAT #

qbar 3 d ≤ 2 - 2 log 2 for every depth d.

theorem Cslib.Complexity.PPSZ.exists_le_qbar_three {ε : ℝ} (hε : 0 < ε) :
∃ (h : ℕ), 2 - 2 * Real.log 2 - ε ≤ qbar 3 h

For every ε > 0, some depth h has qbar 3 h ≥ 2 - 2 log 2 - ε.

theorem Cslib.Complexity.PPSZ.two_rpow_neg_mul_le {x y : ℝ} (n : ℕ) (h : x ≤ y) :
2 ^ (-(y * ↑n)) ≤ 2 ^ (-(x * ↑n))

Monotonicity of x ↦ 2 ^ (-(x * n)) in the base exponent x.

theorem Cslib.Complexity.PPSZ.round_success_unique_three_limit (ε : ℝ) :
ε > 0 → ∃ (w : ℕ), ∀ (n : ℕ) (φ : Logic.PL.CNF (Fin n)) (σ : Fin n → Bool), Logic.PL.CNF.eval σ φ = true → (∀ (τ : Fin n → Bool), Logic.PL.CNF.eval τ φ = true → τ = σ) → (∀ c ∈ φ, List.length c ≤ 3) → 2 ^ (-((2 * Real.log 2 - 1 + ε) * ↑n)) ≤ ((round φ w) fun (x : Fin n) => some (σ x)).toReal

PPSZ for unique 3-SAT Paturi, Pudlák, Saks, Zane, Theorem 1(ii), Scheder, Theorem 1.3, for PPSZ with w-implication. For every ε > 0 there is a bound w such that, for every n, one round of PPSZ with w-implication outputs the unique satisfying assignment σ of any CNF formula φ on n variables whose clauses have at most 3 literals with probability at least 2^{-(2 log 2 - 1 + ε) n}, where 2 log 2 - 1 ≈ 0.386.

For k = 3, Paturi, Pudlák, Saks, Zane, Theorem 1(ii) bounds the success probability below by 2^{-(1 - μ₃ / 2) n - o(n)}, where μ₃ / 2 = 2 - 2 log 2, so 1 - μ₃ / 2 = 2 log 2 - 1; the o(n) term comes from its resolution bound s(n) growing with n. The form here, 2^{-(2 log 2 - 1 + ε) n} for every ε > 0 with w depending only on ε, is the ε-form of that bound. Letting w grow slowly with n would turn it into a lower bound 2^{-(2 log 2 - 1) n - o(n)}, uniformly over all such formulas; that form is not formalized here. The paper uses s-bounded resolution in place of w-implication; the per-variable analysis is the same Scheder, p. 3.