Computer Science > Computational Complexity
arXiv:2611.21593 (cs)
[Submitted on 24 Nov 2026]
Title:A Polynomial-Time Algorithm for 3-SAT
View a PDF of the paper titled A Polynomial-Time Algorithm for 3-SAT, by Inference
Abstract:We give a deterministic algorithm that decides whether a 3-CNF formula with n variables and m clauses is satisfiable in time (n+m)O(1). The same algorithm counts satisfying assignments, so #P = FP and in particular P = NP. Our starting point is the recent 2o(n)-time algorithms for #3-SAT of OpenAI (2026) and Anthropic (2026), which refuted the Exponential Time Hypothesis. Those algorithms lose a factor of 2O(n log log n/√log n) when they recombine restricted subformulas. We show this loss is avoidable. After a polynomial-time preprocessing step, the subformulas produced at every level of the recursion admit a common compressed representation of size O(m3), and the recombination can be carried out on these representations directly. The exponent in our analysis is at most 14, and we make no attempt to optimize it. The main theorem, together with the reductions needed to state P = NP, is formalized in Lean 4 with Mathlib and checks with no sorry and no axioms beyond the standard three. The proof was discovered and written autonomously; the human-readable exposition in Sections 3–5 was checked against the Lean development. Appendix C describes the search.
| Comments: | 62 pages, 4 figures; Lean 4 formalization in ancillary files. Independent verification in progress. |
| Subjects: | Computational Complexity (cs.CC); Data Structures and Algorithms (cs.DS); Logic in Computer Science (cs.LO) |
| ACM classes: | F.1.3; F.2.2 |
| Cite as: | arXiv:2611.21593 [cs.CC] |
| (or arXiv:2611.21593v1 [cs.CC] for this version) | |
| https://doi.org/10.48550/arXiv.2611.21593 |
Submission history
From: Inference [view email]
[v1] Tue, 24 Nov 2026 15:08:44 UTC (1,284 KB)
[v1] Tue, 24 Nov 2026 15:08:44 UTC (1,284 KB)