Right now, as I write this, a fleet of AI agents is trying to solve P vs NP in public. The project is pequalnp.com, and you can watch the agents work.
Here is how it’s set up 1:
- The problem is split into programs, i.e., different lines of attack. Most of them try to prove P ≠ NP. One looks for a fast algorithm, which would prove P = NP.
- Each program has a lead agent (an “orchestrator”), and each lead agent can start helper agents. They all coordinate through one shared server.
- “Thinker” agents argue on paper first. Only an idea that survives that goes to “builder” agents, who write it as a proof in Lean.
- Lean is the only judge. A claim counts only when the Lean proof checker accepts it.
- Some agents do nothing but hunt for counterexamples to the fleet’s own claims. Every approach that dies goes into a public graveyard, with the reason it died.
Anyone can join. The project publishes instructions for your own coding agent (Claude Code, Codex, Cursor, Gemini CLI, etc.) to pick up one small statement, prove it in Lean on your machine and send it as a pull request 2.
This week, Anthropic published a 70-page paper written by an internal Claude research model. It claims VP ≠ VNP, the algebraic cousin of P ≠ NP, and comes with a Lean proof. The repository is honest about it: “no human mathematician has checked the proof”, and “This does not settle P vs NP” 3.
The pequalnp homepage is just as plain: “Still unsolved.” 1
So what exactly are all these agents chasing? And why is there a $1 million prize on it 4?
Problem
Let’s start with a puzzle. Below are 12 numbers. Pick the ones that add up to exactly 1,000:
If you tried it, you know how it goes. Pick a few, too much. Swap one, too little. Try again. Now check my answer: 75 + 84 + 257 + 262 + 322. Add them up. Done in a few seconds.
That’s the whole problem: checking an answer is easy, but finding one seems hard.
With 12 numbers there are only 4,096 ways to pick, so a computer can just try them all. With 100 numbers there are 2¹⁰⁰, about 10³⁰. There are clever tricks, but for long lists of big numbers, every method we know still blows up the same way. Nobody has found a fast one, and nobody has proved that a fast one can’t exist. That’s P vs NP: when an answer is easy to check, is there always a shortcut to finding it?
The Clay Mathematics Institute, which offers the prize, gives a bigger example 4. You are housing 400 students, and only 100 of them get a room in the dorm. The Dean gives you a list of pairs who must not be placed together. Checking a list of 100 is easy. But the number of ways to pick 100 out of 400 is “greater than the number of atoms in the known universe” 4.
One more you can play with. Colour every node with one of three colours, so that no link joins two nodes of the same colour. Then press “Brute force”, and try it again with 24 nodes:
Checking your answer takes one look at each link. Brute force has to try up to 3ⁿ colourings: 6,561 for 8 nodes, about 282 billion for 24. Each node you add multiplies the work by 3.
What “fast” means
Computer scientists judge “fast” by how the number of steps grows with the size of the input, n:
- Polynomial: n², n³, or n to any fixed power. These count as fast.
- Exponential: 2ⁿ, 3ⁿ, n!. These blow up.
It’s tempting to think n³ is big too. Drag the slider and see:
| steps | how many | time | |
|---|---|---|---|
| n² | |||
| n³ | |||
| 2ⁿ | |||
| n! |
At n = 100, an n³ algorithm finishes in a millisecond. A 2ⁿ algorithm would take about 2,900 times the age of the universe. And a faster computer doesn’t save you. A computer 1,000 times faster lets the 2ⁿ algorithm handle n + 10 instead of n, since 2¹⁰ = 1,024. That’s it.
P and NP
Now the two names 5:
- P is the set of problems you can solve in polynomial time. Sorting, finding the shortest path on a map, testing if a number is prime, etc.
- NP is the set of problems where, if someone hands you an answer, you can check it in polynomial time. The dorm problem and the colouring puzzle are both in NP.
Note: NP doesn’t mean “not polynomial”. It stands for “nondeterministic polynomial time”. Think of a machine that magically guesses the right answer and then only has to check it.
Every problem in P is also in NP. If you can solve a problem fast, you can check an answer fast: just solve it yourself and compare. So P sits inside NP. The question is whether there is anything in NP that is not in P.
NP-complete and NP-hard
In 1971, Stephen Cook showed something surprising 5. He took SAT (given a logic formula, can you set its variables so that it comes out true?) and showed that every problem in NP can be translated into it in polynomial time. A year later, Richard Karp showed the same for 20 other natural problems, and Leonid Levin came to the same idea independently.
These are the NP-complete problems. They are the hardest problems in NP in a very exact sense: find a fast algorithm for any one of them and you get a fast algorithm for every problem in NP, i.e., P = NP. There are “many hundreds” of them now 5: 3-colouring, subset sum, Hamiltonian cycle, and “many scheduling and routing problems with industrial importance”.
NP-hard means “at least as hard as everything in NP”, but the problem doesn’t have to be in NP itself. To give you a summary:
- NP-complete = NP-hard and in NP.
- NP-hard but not in NP: finding the shortest tour through a set of cities (even with a tour in hand, there is no known quick way to check that it’s the shortest), or the halting problem, which no algorithm can solve at all.
And some problems in NP seem to sit in between. Factoring and graph isomorphism are in NP, but nobody has shown they are in P, or that they are NP-complete 5.
Here is the whole map. Click the problems, then switch to P = NP:
P = NP?
That’s the holy grail: is the green circle really smaller than the blue one?
Most people who work on it think P ≠ NP. In Bill Gasarch’s 2019 poll of researchers, 88% (109 people) said P ≠ NP 6. The main reason is experience: “a vast number of programmers and engineers” have tried to find fast algorithms for NP-complete problems, “without success” 5.
But nobody can prove it. Part of the reason is known. There are three famous results, called relativization, natural proofs and algebrization, and each one shows that a whole family of proof techniques can never settle P vs NP 7. Most of the known techniques fall into at least one of them. That’s why pequalnp has a “barrier desk”: agents that check every new approach against these three walls before the fleet spends time on it 1.
This is also why Claude’s VP ≠ VNP result doesn’t settle it. That proof is about algebraic circuits, which have to work for all values in a field, not just 0 and 1. The paper itself says its bound “does not apply to Boolean circuits”, and Boolean circuits are what P vs NP is about 8.
What if P = NP
Cook’s official description of the problem has the best list 5:
- Cryptography breaks. It rests on assumptions like “factoring is hard”. “If P = NP, these assumptions are all false.” An algorithm that solves 3-SAT in n² steps “could be used to factor 200-digit numbers in a few minutes.”
- Hard industrial problems become easy. Scheduling, routing, packing: lots of them are NP-complete.
- Maths gets automated. Checking a formal proof is easy, so finding one is an NP-style search. If P = NP, a computer could find a proof of any theorem that has a proof of reasonable length. Cook says those “may well include all of the CMI prize problems”.
So prove P = NP with a practical algorithm, and the computer might solve the other six Millennium problems for you. 🤯
There are catches, though:
- A proof could show that a fast algorithm exists without showing what it is 5.
- Polynomial doesn’t always mean practical. n¹⁰⁰ is polynomial too.
pequalnp’s FAQ says the same: “Even a proof that P = NP would not hand anyone a fast algorithm overnight.” 1
What if P ≠ NP
Less dramatic, but still huge. It would prove that some problems are hard for every possible algorithm, not just for the ones we have tried so far. Even then, cryptography isn’t automatically safe. Cook points out that NP problems could still be easy on “most” inputs, and that would be enough to break it 5.
Final Thoughts
What I find interesting about the agent attempt is that it runs into the problem itself. Lean can check a proof perfectly. What it can’t check is whether the Lean statement says what its plain-English sentence claims. pequalnp has a different agent read every statement for this 1, and Anthropic’s README says it outright: “no machine checks that this file says what is claimed” 3.
Checking is easy. Finding the right thing to check is hard. 😅
Footnotes
-
pequalnp.com: home, How it works and What this is, read on 2026-11-29. ↩ ↩2 ↩3 ↩4 ↩5
-
pequalnp.com, join.txt, and the proofs repository open-goat/pequalnp-proofs. ↩
-
Anthropic, formal-math/vp-vnp, README, November 2026. ↩ ↩2
-
Clay Mathematics Institute, P vs NP and The Millennium Prize Problems. ↩ ↩2 ↩3
-
Stephen Cook, The P versus NP Problem, the official problem description for the Clay prize. Definitions in section 1; Cook, Karp, Levin, NP-complete problems, factoring and the consequences in section 2; the case for P ≠ NP and nonconstructive proofs in section 3. ↩ ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8
-
William Gasarch, The Third P =? NP Poll, SIGACT News Complexity Theory Column 100, 2019. Section 2.1. ↩
-
Scott Aaronson, P =? NP, a survey written for a broad audience, section 6. The original papers are Baker, Gill and Solovay (1975), Razborov and Rudich (1997), and Aaronson and Wigderson (2009). ↩
-
Claude (Anthropic), VP ≠ VNP over every field, November 2026, abstract. ↩