A Distinct-Variable MAX-XOROR Gadget and a Conditional Consequence
Version 2 / Nov 30, 2026 / CC BY 4.0
Abstract
A MAX-XOROR clause has the form for literals . 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 on the image family of the reduction, where is the number of MAX NAE-3SAT clauses. Combining this shift with the polynomial-time approximation algorithm of Brakensiek, Huang, Potechin, and Zwick (ratio ) gives a polynomial-time algorithm with approximation ratio at least on . By contrast, Håstad's pairwise-independent predicate theorem establishes optimal versus approximation resistance for general distinct-variable MAX-XOROR via Long Code PCPs. We verify that every instance in satisfies Håstad's syntactic preconditions and quantify the resulting structural gap: if the versus hardness gap (or any gap ) can be realized inside the structured subfamily , then . Lean 4 formally verifies the finite gadget valuation, variable distinctness, and ratio inequalities, with the core arithmetic theorems cross-checked via \texttt{lake comparator}.
Formalizations
Tools used
- Anthropic
- Claude Sonnet
- OpenAI
- ChatGPT
- Gemini
References
- 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
- Håstad, Johan. Some Optimal Inapproximability Results. Journal of the ACM, vol. 48, no. 4, pp. 798–859. 2001DOI
- Vega, Frank. A Distinct-Variable MAX-XOROR Gadget and a Conditional P = NP Consequence. 2026. GitHub, https://github.com/frankvegadelgado/pnplink
Version history
- v1 · 5 pagesSubmitted by Frank VegaThe Lean 4 formalization is available at https://github.com/frankvegadelgado/pnpSupersededNov 30, 2026
- v2 · 5 pagesSubmitted by Frank VegaThe Lean 4 formalization is available at https://github.com/frankvegadelgado/pnpCurrentNov 30, 2026