Thursday, December 03, 2026

Uneasy Lies the Head that Wears the Crown

Not all doors are ready to open. Image courtesy of Cliff Pickover.

With the proof of the Riemann Hypothesis, the P v NP problem takes its place as the biggest open problem in all of mathematics (if you disagree, that's why we have a comment section) and has drawn new interest in the problem and even in this blog. Let me welcome our new readers and give you my take on P v NP. TLDR: If you are expecting AI to settle the P v NP question soon, don't hold your breath.

A quick primer on the P v NP problem: 

Suppose you work at Meta and Mark comes to you and asks you to find a 300 person clique in Facebook, i.e.,  300 users who are all friends with each other. How would you go about finding the answer to that question? You have access to the entire Facebook graph, who is friends with whom. You now need to write an algorithm to find that large clique of friends. You could try all groups of size 300, but there are far too many such groups to search them all. You could try something smarter, perhaps starting with small groups and merging them into bigger groups but nothing you do seems to work well. In fact nobody knows a significantly faster algorithm than trying all the groups.

There are similar problems such as 3-coloring a map such that no two neighboring countries share the same color and traveling salesman, finding a tour through a list of cities visiting them in the shortest distance possible using any order, or finding a satisfying assignment to a Boolean formula. Turns out these problems, and tens of thousands of others are all equivalent, reducible to each other. Either we have a fast way to solve them all, or no way to efficiently solve any of them.

There are two ways to think of P v NP, either as the informal definition above or the formal mathematical Clay Millennium Prize problem that every problem in nondeterministic polynomial time (NP) is also computable in deterministic polynomial time (P). They are the same in spirit but could go different ways: We could have P = NP with an algorithm too slow to ever use, while P ≠ NP could coexist with SAT solvers and neural nets that work just fine on the problems we actually care about.

I have held strong beliefs about P v NP for many years that have not wavered even in this AI age.

  1. P ≠ NP
  2. I won't see a proof in my lifetime by man or machine
  3. I would be happy to be wrong on either of these
If P = NP then there is some algorithm that can find that needle in a haystack, a solution in a mostly unstructured search space. Just doesn't seem possible to me. But that's not a proof. You'd have to show every efficient algorithm fails to find a solution. We have no real way to understand computation. For example, we have no real idea of why neural nets have the power they do. To prove P ≠ NP you'd need to show that every possible set of weights would fail to solve a problem like Clique, as well as the infinite number of other possible efficient algorithms. We really have no good approaches to solve P v NP and just pointing LLMs at the problem is like getting many cavemen working together to get to the moon. There's just too much to do on the way.

I'd love to be wrong and see a proof. But I'd also prefer if P = NP with an efficient algorithm. The first reaction is that it would kill cryptography. But that's short-term thinking. P = NP would optimize everything and lead us to solving difficult problems including curing diseases. We're getting some of that with AI, a world I call Optiland. But P = NP would accelerate that process without the angst of LLMs that might rise up against us.

For much more on P v NP, explore this blog starting with Foundations of Complexity, see my CACM articles, or read my popular science book The Golden Ticket: P, NP and the Search for the Impossible.