one-picture-one-big-open-problem

The most famous open question in computer science fits into one small picture: six regions, six problems, and one assumption nobody has managed to prove.

After 30 years of programming, I still find P vs NP the most beautiful question in our field. It is not about faster hardware or smarter libraries. It asks whether checking a solution is fundamentally easier than finding one. This post walks through the picture region by region, with one typical problem in each. It is the first in a series: over the next weeks I will write more posts on complexity theory, taking a closer look at the problems and ideas behind this picture.

Why hasn’t AI cracked this yet?

AI now proves theorems at a remarkable pace. It solves olympiad problems and writes formal proofs in Lean. Yet none of the big questions in this picture has moved: not P vs NP, not NP vs coNP, not the status of FACTORING.

AI has not ignored the field. In 2025, researchers at Google DeepMind used AlphaEvolve to find new gadget reductions. But that is progress at the edges: finite structures found by search and then verified. Nothing comparable has happened at the centre of the picture.

Sometimes I wonder whether the stakes are part of the reason. Imagine an AI producing a polynomial-time algorithm for FACTORING. RSA, still used in many TLS certificates, VPNs and code-signing systems, would break overnight. Who would want to publish that first?

I don’t think that is the real explanation, though. There are more sober ones:

  • Known barriers. Relativization (1975), natural proofs (1994) and algebrization (2008) show that whole families of proof techniques cannot settle P vs NP. An AI recombining known techniques runs into the same walls.
  • Search needs a checkable target. AI shines where candidates can be verified automatically. A proof of P ≠ NP is not a small object you can search for. It needs a genuinely new idea.
  • FACTORING is not P vs NP. A fast factoring algorithm would not settle P vs NP, because FACTORING is not believed to be NP-complete. And RSA is already on its way out: Shor’s algorithm breaks it on a large quantum computer, and NIST standardised post-quantum replacements in 2024.

So the motivation for this post is simple: before AI changes this picture, or fails to, it is worth understanding what the picture actually says.

The picture

Two overlapping ellipses carry the whole story: NP on the left, coNP on the right, and P sitting in their intersection.

  • NP contains decision problems whose “yes” answers come with a short certificate you can check in polynomial time.
  • coNP contains problems whose “no” answers come with such a certificate.
  • P contains problems you can solve outright in polynomial time. Those are trivially in both NP and coNP, because you do not need a certificate at all.

The complete problems sit at the far edges: the hardest of NP on the left, the hardest of coNP on the right.

Six regions, six problems

Each region of the picture has a classic representative, and each one teaches something different.

RegionTypical problemWhy it sits there
PShortest path, PRIMESDijkstra solves shortest path in polynomial time. PRIMES joined P in 2002 with the AKS algorithm.
NPGraph isomorphismThe vertex mapping is a quick-to-check certificate. It is the best-known candidate for a problem that is neither in P nor NP-complete.
coNPGraph non-isomorphismThe complement of graph isomorphism: a “no” answer has a short certificate.
NP ∩ coNPFACTORINGThe prime factorization settles both “yes” and “no”, and it can be verified because PRIMES is in P.
NP-completeSAT, 3-colouringEvery NP problem reduces to them. SAT was the first, by the Cook–Levin theorem (1971).
coNP-completeUNSATThe mirror of SAT: a formula is unsatisfiable exactly when its negation is a tautology.

Two of these surprise people. PRIMES looks hard but is easy, because deciding whether a number is prime is different from finding its factors. And FACTORING, the problem RSA relies on, is almost certainly not NP-complete: if it were, NP would equal coNP.

The catch: it is a belief

The picture is drawn under two unproven assumptions, P ≠ NP and NP ≠ coNP. Most researchers believe both, but nobody can prove either.

  • If P = NP, then P = NP = coNP and the whole picture collapses into a single circle. SAT, 3-colouring and UNSAT would all have polynomial-time algorithms.
  • If NP = coNP, the two ellipses merge into one, but P could still be a smaller circle inside. Proving NP ≠ coNP would therefore also prove P ≠ NP.

The second scenario has a concrete meaning: NP ≠ coNP is equivalent to saying that some tautologies have no short proofs in any propositional proof system.

What we can actually prove

Exponential lower bounds exist, but only for problems far outside NP or in restricted models of computation.

  • Outside NP: the time hierarchy theorem (Hartmanis and Stearns, 1965) proves P ≠ EXPTIME. So generalized chess, checkers and Go on an n×n board provably need exponential time. Presburger arithmetic is worse: Fischer and Rabin showed in 1974 that it needs doubly exponential time.
  • Restricted models: monotone circuits for CLIQUE need exponential size (Razborov, 1985). Resolution proofs of the pigeonhole principle need exponential length (Haken, 1985), which is why DPLL-style SAT solvers choke on those instances.
  • Inside NP: nothing. No NP problem is proven to need more than polynomial time. Our best SAT algorithms are exponential, but that is an upper bound, not a lower bound.

The Exponential Time Hypothesis (ETH) conjectures that 3-SAT needs 2^Ω(n) time. A whole subfield, fine-grained complexity, is built on assuming it.

Why I keep coming back to it

P vs NP is one of the seven Millennium Prize Problems, worth a million dollars, and it is still open more than 50 years after Cook stated it.

What fascinates me is how practical it is. Every time we trust a password hash, an RSA key or a blockchain signature, we bet that this picture is right: that some things are easy to check but hard to find. As a developer, I have spent decades writing code that finds solutions. This picture reminds me that whether finding can ever be as easy as checking is still anyone’s guess.

tomkausch

Leave a Reply

Your email address will not be published. Required fields are marked *