Schöning's k-SAT algorithm on fair-coin multitape Turing machines #
Cslib.Complexity.Schoening proves the ((k - 1) / k) ^ (k - 3) (k / (2 (k - 1))) ^ n / (3 n + 1)
single-trial success bound for Schöning's local search under exact uniform clause-literal sampling,
and Cslib.Algorithms.WordRAM.Schoening realizes the amplified algorithm on the randomized word
RAM [Sch99].
A strict fair-coin multitape Turing machine (Turing.MultiTapePTM) draws only fair bits rather than
exact uniform residues modulo non-power-of-two clause lengths m ≤ k. Reducing w fair bits modulo
m (Cslib.ProbComp.sampleModNat w m) hits every residue i < m at least 2 ^ w / m times, so
each transition dominates (1 - k / 2 ^ w) times the ideal uniform transition. Choosing
w = 2 n + k + 3 (O(n) fair bits per step, O(n ^ 2) per trial) keeps the 3 n-step
multiplicative loss (1 - k / 2 ^ w) ^ (3 n) ≥ 1 / 2, preserving the ((2 (k - 1)) / k) ^ n
exponential base without rejection loops.
Running 2 * schoeningTrials k φ.numVars c independent restarts via the binary-counter compiler
Cslib.Probability.IsPPTOn.exists_multiTapePTM_repeatAnyBool_binary gives one finite-control
fair-coin MultiTapePTM on encCNF that:
- halts on every branch within
O(((2 (k - 1)) / k) ^ n * (L + 1) ^ E)steps (n = φ.numVars,L = (encCNF φ).length), - uses polynomial workspace
O((L + 1) ^ E)(machine.toNTM.RunsInSpace), - has zero false positives (
PMF.pure [false]wheneverφ ∉ KSAT k), - accepts every
φ ∈ KSAT kwith probability at least1 - exp (-c)(and at least2 / 3atc = 2, yieldingDecidesWithBoundedErrorInTime encCNF (KSAT k) T).
Main definitions #
Cslib.Complexity.Schoening.fairFlipStep,Cslib.Complexity.Schoening.fairWalk,Cslib.Complexity.Schoening.fairTrial: fair-coin Schöning walk and trial viasampleModNat.Cslib.Complexity.Schoening.schoeningTrialProg: strict PPT single-trial program onCNF ℕ.
Main results #
Cslib.Complexity.Schoening.half_mul_succeedProb_trial_le_fairTrial:w = 2 |V| + k + 3fair bits per step preserve at least half of the ideal single-trial success probability.Cslib.Complexity.Schoening.isPPTOn_schoeningTrialProg: the single-trial program onencCNFis strict PPT.Cslib.Complexity.Schoening.computableInPolyTime_two_mul_schoeningTrials: the binary trial count2 * schoeningTrials k φ.numVars cis computable in polynomial time intoencNat.Cslib.Complexity.Schoening.exists_multiTapePTM_KSAT: sub-2 ^ nworst-case halting time, polynomial workspace, zero false positives, and1 - exp (-c)soundness onKSAT k(k ≥ 3).Cslib.Complexity.Schoening.exists_decidesWithBoundedErrorInTime_KSAT,Cslib.Complexity.Schoening.exists_decidesWithBoundedErrorInTime_ThreeSAT: bounded-error multitapek-SAT and3-SAT deciders (((2 (k - 1)) / k) ^ nand(4 / 3) ^ n).
References #
Fair-coin domination of the ideal Schöning walk #
Flip the variable at index r ← sampleModNat w c.length of c (leaving σ unchanged if c
is empty).
t steps of the fair-coin Schöning walk with bit width w per step.
One trial of the fair-coin Schöning walk: uniform initial assignment followed by 3 |V| steps
of fairWalk w.
Pointwise domination of one transition when c.length ≤ k.
Pointwise domination across t steps of the walk.
Fair-coin Schöning trial domination. Using w = 2 |V| + k + 3 fair bits per step preserves
at least half of the ideal single-trial success probability.
Strict PPT single-trial realization on CNF ℕ (encCNF) #
Boolean guard checking that every clause of φ is nonempty and has length at most k.
First unsatisfied clause of ψ under bitsAssign bits, returning [] when none exists.
One fair-coin walk step on a densely relabeled formula ψ with bit width w.
Unchecked body of one Schöning trial on φ : CNF ℕ: densely relabel φ, sample n = φ.numVars
fair bits, run 3 n steps of walkStepBits with width 2 n + k + 3, and evaluate ψ.
Certified single-trial Schöning program on CNF ℕ. Rejects immediately with false if any
clause of φ is empty or longer than k; otherwise runs schoeningBodyProg k φ.
Strict PPT certificate for one Schöning trial on CNF ℕ (encCNF).
Connecting schoeningTrialProg to fairTrial on CNF (Fin φ.numVars) #
Zero false positives for schoeningTrialProg. If φ ∉ KSAT k, one trial returns true
with probability 0.
Single-trial success lower bound on KSAT k. For k ≥ 3 and φ ∈ KSAT k, one execution
of schoeningTrialProg k φ returns true with probability at least half of Schöning's bound.
Polynomial-time binary trial count and multitape Schöning decider #
Polynomial-time binary trial count. For fixed k ≥ 3 and confidence c : ℕ, computing
2 * schoeningTrials k φ.numVars c from encCNF φ into binary (encNat) runs in polynomial
time.
Schöning's k-SAT algorithm on a fair-coin multitape Turing machine. For every k ≥ 3
and confidence parameter c : ℕ, there exist a finite-control fair-coin MultiTapePTM, a clock
T : CNF ℕ → ℕ, and polynomial constants C E : ℕ such that for every φ : CNF ℕ
(n = φ.numVars, L = (encCNF φ).length):
- Deterministic worst-case halting: every branch halts within
T φsteps (machine.toNTM.RunsInTime (encCNF φ) (T φ)), - Sub-
2 ^ nruntime:(T φ : ℝ) ≤ C * (((2 * (k - 1)) / k) ^ n * (L + 1) ^ E), - Polynomial workspace:
machine.toNTM.RunsInSpace (encCNF φ) (C * (L + 1) ^ E), - Zero false positives: if
φ ∉ KSAT k,ProbComp.eval (machine.runClosed (T φ) (encCNF φ)) = PMF.pure [false], - Amplified soundness: if
φ ∈ KSAT k, the acceptance probability[true]is at least1 - exp (-c).
Bounded-error multitape k-SAT decider (DecidesWithBoundedErrorInTime). Specializing
exists_multiTapePTM_KSAT to confidence c = 2 (exp (-2) ≤ 1 / 3) yields a fair-coin
MultiTapePTM deciding KSAT k (k ≥ 3) with bounded error, zero false positives, polynomial
workspace, and O(((2 (k - 1)) / k) ^ n * (L + 1) ^ E) worst-case halting time.
Schöning's (4 / 3) ^ n bounded-error multitape 3-SAT decider.