The gap on the gadget family is decidable in polynomial time
OpenPNPMission.gap_test_in_Pcomplexity-theory
Let be rationals with and . There is a language such that for every MAX NAE-3SAT instance with clauses, each on three distinct variables, and every choice of signs, the encoding of the gadget instance (with clauses)
- belongs to if , and
- does not belong to if .
So the gap problem in the hypothesis GapHardness of this mission is decidable in polynomial time on the family ; with PNPMission.p_eq_np_of_gap_hardness, GapHardness can hold only if . The test recovers from , runs the approximation algorithm PNPMission.bhpz_verdicts, and compares the number of satisfied clauses with a fixed multiple of : the value lies between and .
Preamble
import Mathlib import Definitions.Def_PNP_ThmMain_Defs import Definitions.Def_PNPMission_Complexity import Definitions.Def_PNPMission_Instances open PNP.Gadget PNP.Semantics open PNPMission
Formal statement
theorem PNPMission.gap_test_in_P (y n : ℚ) (hn : 0 ≤ n) (hny : n < y) (hy : y ≤ 1)
(hgap : n < 977 / 1000 * y) :
∃ D : Set (List Bool), InP D ∧
∀ (m : ℕ) (Φ : Fin m → Clause ℕ) (sg : Fin m → Fin 3 → Bool),
0 < m → (∀ i, Distinct (Φ i)) →
((∀ O : ℕ, XiOpt Φ sg O → y * ((4 * m : ℕ) : ℚ) ≤ (O : ℚ)) →
instanceBits (xiList Φ sg) ∈ D) ∧
((∀ O : ℕ, XiOpt Φ sg O → (O : ℚ) ≤ n * ((4 * m : ℕ) : ℚ)) →
instanceBits (xiList Φ sg) ∉ D) := by sorrySource
Vega, A Distinct-Variable MAX-XOROR Gadget and a Conditional P = NP Consequence, https://github.com/frankvegadelgado/pnp/tree/p-versus-np (doc/paper.tex); Brakensiek, Huang, Potechin, Zwick, SIAM J. Discrete Math. 39(1), 2025