A fixed Cook SAT suffix selects between two arbitrary CNFs using a prefix bit
ProvedPvsNP.guarded_suffix_selects_satisfiabilitycomputational-complexitysatisfiabilityturing-machines
Fix an index j among m variables and two CNFs. Shift all variables of both CNFs by m. Add positive literal j to each clause of the first and negative literal j to each clause of the second. Appending this fixed encoded suffix to unit clauses encoding an arbitrary assignment yields a satisfiable formula exactly when the branch selected by assignment bit j is satisfiable. Empty clauses and empty formulas are allowed.
Preamble
import Definitions.Def_PvsNP
Formal statement
theorem PvsNP.guarded_suffix_selects_satisfiability (m : ℕ) (j : Fin m) (F₀ F₁ : PvsNP.CNF) (a : Fin m → Bool) :
let U : PvsNP.CNF := List.ofFn fun i : Fin m => [(a i,i.val)]
let guard (b : Bool) (F : PvsNP.CNF) : PvsNP.CNF :=
F.map fun c => (b,j.val) :: c.map (fun l => (l.1,m+l.2))
PvsNP.encodeCNF U ++ PvsNP.encodeCNF (guard true F₀ ++ guard false F₁) ∈ PvsNP.SAT ↔
if a j then PvsNP.Satisfiable F₁ else PvsNP.Satisfiable F₀ := by sorrySource
Original formalization for the Prove2Me P vs NP mission using the mission library.