A Distinct-Variable MAX-XOROR Gadget and a Conditional P=NP\mathrm{P} = \mathrm{NP} Consequence

Primarily AI-generated textHuman understanding: all partscs.CC — Computational Complexitycs.DS — Data Structures and Algorithms

Contributed by Frank Vega

Version 2 / Nov 30, 2026 / CC BY 4.0

Abstract

A MAX-XOROR clause has the form ℓ1∨(ℓ2⊕ℓ3)\ell_1\vee(\ell_2\oplus\ell_3) for literals ℓ1,ℓ2,ℓ3\ell_1,\ell_2,\ell_3. We construct a four-clause gadget with three fresh auxiliary variables that replaces each clause of MAX NAE-3SAT: exactly three of the four clauses are satisfied when the three input literals are equal, and all four are satisfied otherwise. Because the auxiliary variables are distinct per gadget, every resulting clause acts on three distinct variables with unrestricted literal signs, matching the standard distinct-variable MAX-CSP convention. This yields an exact affine shift OPT(Ξ(Φ))=3m+OPT(Φ)\mathrm{OPT}(\Xi(\Phi)) = 3m + \mathrm{OPT}(\Phi) on the image family F\mathcal{F} of the reduction, where mm is the number of MAX NAE-3SAT clauses. Combining this shift with the polynomial-time approximation algorithm of Brakensiek, Huang, Potechin, and Zwick (ratio ρ≈0.9089\rho \approx 0.9089) gives a polynomial-time algorithm with approximation ratio at least 0.9770.977 on F\mathcal{F}. By contrast, Håstad's pairwise-independent predicate theorem establishes optimal (1−ε)(1-\varepsilon) versus (3/4+ε)(3/4+\varepsilon) approximation resistance for general distinct-variable MAX-XOROR via Long Code PCPs. We verify that every instance in F\mathcal{F} satisfies Håstad's syntactic preconditions and quantify the resulting structural gap: if the (1−ε)(1-\varepsilon) versus (3/4+ε)(3/4+\varepsilon) hardness gap (or any gap n<0.977 yn < 0.977\,y) can be realized inside the structured subfamily F\mathcal{F}, then P=NP\mathrm{P}=\mathrm{NP}. Lean 4 formally verifies the finite gadget valuation, variable distinctness, and ratio inequalities, with the core arithmetic theorems cross-checked via \texttt{lake comparator}.

Author comments: The Lean 4 formalization is available at https://github.com/frankvegadelgado/pnp

Formalizations

Tools used

Anthropic
Claude Sonnet
OpenAI
ChatGPT
Google
Gemini

References

  1. Brakensiek, Joshua; Huang, Neng; Potechin, Aaron; Zwick, Uri. On the mysteries of MAX NAE-SAT. SIAM Journal on Discrete Mathematics, vol. 39, no. 1, pp. 267–313. 2025DOI
  2. Håstad, Johan. Some Optimal Inapproximability Results. Journal of the ACM, vol. 48, no. 4, pp. 798–859. 2001DOI
  3. Vega, Frank. A Distinct-Variable MAX-XOROR Gadget and a Conditional P = NP Consequence. 2026. GitHub, https://github.com/frankvegadelgado/pnplink

Version history

  1. v1 · 5 pagesSubmitted by Frank VegaThe Lean 4 formalization is available at https://github.com/frankvegadelgado/pnpSupersededNov 30, 2026
  2. v2 · 5 pagesSubmitted by Frank VegaThe Lean 4 formalization is available at https://github.com/frankvegadelgado/pnpCurrentNov 30, 2026