P = NP under the MAX-XOROR Gap-Hardness Hypothesis on the gadget family F
ProvedPNP.ThmMain.main_decidesUnder the MAX-XOROR Gap-Hardness Hypothesis on , .
A MAX NAE-3SAT instance is a list of clauses on three distinct variables, and a clause is satisfied when its three literals do not all take the same value. Replacing each clause by the four MAX-XOROR clauses , , , on fresh variables of arbitrary sign gives the instance ; the family consists of these instances, and each of them has three distinct variables in every clause. The optimum satisfies , where is the number of clauses of .
Hastad's inapproximability theorem for the predicate applies to this family. The predicate accepts 6 of the 8 triples, so a random assignment satisfies a clause with probability , and the accepting set contains the four odd-parity triples, which carry a pairwise independent distribution. Hastad's Long Code verifier therefore shows that for every it is NP-hard to distinguish MAX-XOROR instances with from those with . The theorem needs two structural preconditions on the instances, and every satisfies both: every clause acts on three distinct variables, because the three source variables of a clause of and the three fresh variables are six distinct variables, and every literal may have either sign, because the signs of the source and fresh literals are arbitrary. Moreover , so every soundness parameter on is at least . A gap reduction into with completeness and soundness , in particular Hastad's parameters and for every , satisfies , and so meets the hypothesis below.
The Brakensiek--Huang--Potechin--Zwick algorithm returns for every MAX NAE-3SAT instance an assignment of value at least with . Extending this assignment to the gadget variables gives an assignment of of value at least .
The hypothesis supplies rational constants with and a polynomial-time many-one reduction from Boolean satisfiability to : satisfiable formulas go to instances with and unsatisfiable formulas to instances with . Hence the value of the assignment is at least exactly when the formula is satisfiable, and testing decides satisfiability in polynomial time, so .
The formal statement is the decision step of this argument: for every input there is an assignment of such that is satisfiable if and only if satisfies at least clauses. Its hypotheses are the ratio guarantee of the algorithm (NaeRatio) and the gap reduction of the hypothesis (GapReduction).
import Mathlib import Definitions.Def_PNP_ThmMain_Defs open PNP.Gadget PNP.Semantics open PNP.Cited
theorem PNP.ThmMain.main_decides {Form : Type*} {Sat : Form → Prop} {y n : ℚ}
(hgap : n < 977 / 1000 * y) (R : GapReduction Form Sat y n) {ρ : ℚ}
(hρ : 908 / 1000 ≤ ρ) {A : ∀ m : ℕ, (Fin m → Clause ℕ) → (ℕ → Bool)}
(hA : NaeRatio ρ A) (f : Form) :
∃ τ : Target ℕ (R.size f) → Bool,
(Sat f ↔ (977 / 1000 : ℚ) * y * ((4 * R.size f : ℕ) : ℚ) ≤
(xiVal (R.inst f) (R.signs f) τ : ℚ)) := by sorry