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 1 / 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. Four such clauses with three auxiliary variables replace each clause of MAX NAE-3SAT: exactly three of them are satisfied when the three literals are equal, and all four otherwise. The fresh literals ensure that every resulting clause uses three distinct variables, matching the standard distinct-variable MAX-CSP convention. Hence the optimum of the resulting MAX-XOROR instance is 3m+OPT3m+\mathrm{OPT}, where mm is the number of NAE-3SAT clauses and OPT\mathrm{OPT} is the optimum of the NAE-3SAT instance. Since MAX NAE-3SAT admits a polynomial-time approximation algorithm with ratio ρ≈0.9089\rho \approx 0.9089, the instances in the image F\mathcal{F} of this reduction admit a polynomial-time algorithm with approximation ratio at least 0.9770.977. We review how the classical 3/43/4 approximation-resistance threshold for the XOROR predicate arises in the hardness-of-approximation literature initiated by Håstad, and we prove a formal proposition showing that the instances in F\mathcal{F} satisfy Håstad's structural preconditions (three distinct variables per clause and free literal polarity) and that any gap-hardness reduction matching Håstad's (1−ε)(1-\varepsilon) versus (3/4+ε)(3/4+\varepsilon) threshold directly covers our MAX-XOROR gap-hardness hypothesis (n<0.977 yn < 0.977\,y). Under this hypothesis, P=NP\mathrm{P}=\mathrm{NP}. Lean 4 formally verifies the gadget evaluation across all truth assignments, variable distinctness, and the ratio inequalities.

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

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/pnpCurrentNov 30, 2026