If You Think AI Can Solve Everything, You Already Believe $P = NP$
December 3, 2026
There is a joke going around in math circles: If you want to ace a high school math exam—or even the International Mathematical Olympiad—don't bother grinding practice problems. Just memorize the weights of a 30-billion-parameter model.
Most people laugh at this and move on. I think it's worth sitting with it a little longer, because that joke quietly points to two ideas that break what we have treated as obvious for decades:
- Intelligence is fundamentally about compression.
- There might not be any such thing as creativity—at least not the way we usually imagine it.
Think back to primary school math competitions. You were never the cool kid if you were just good at memorization. The cool kid was the one who could stare at a weird, unfamiliar problem and pull a "creative" insight out of thin air. We grew up believing that memorization and creative problem-solving lived in completely different parts of the brain.
Now look at that 30B model. Stored in 16-bit precision, its weights take up about 60 gigabytes. That is nowhere near enough space to act as a giant lookup table for every possible olympiad math problem. Yet frontier models are already solving IMO-level problems on the fly.
If a student actually memorized those 60 gigabytes of numbers and ran the math in their head, they wouldn't be reciting an answer key. They would be executing a deeply compressed, general-purpose algorithm.
In information theory, this is the core idea behind Kolmogorov Complexity and Minimum Description Length (MDL): the best way to compress a massive dataset is to discover the underlying rules that generated it. Compare memorizing a million digits of $\pi$ with memorizing a 5-line formula that computes $\pi$.
Memorizing raw answers fails to generalize. Memorizing a maximally compressed representation of the underlying structure, however, produces behavior that is indistinguishable from creativity. What we call a "creative leap" might just be what it feels like when a neural network—biological or artificial—runs a deeply compressed circuit on a new input.
The "Convex Hull" Myth
Once you see intelligence as compression, another popular internet take starts to fall apart.
Scroll through any AI debate online and someone will inevitably say: AI can only interpolate inside the convex hull of human knowledge.
Picture a bunch of pins stuck into a board, with a rubber band stretched around the outside. The critics argue that AI can only blend ideas inside that rubber band—taking weighted averages like $\lambda x + (1 - \lambda) y$—and can never step outside to discover something genuinely new.
It sounds convincing, right up until you apply the exact same logic to humans.
We also learn from existing human knowledge. We read the same textbooks, study the same proofs, and absorb centuries of prior heuristics. If learning from a corpus traps an intelligence inside its convex hull, then humans should be trapped there too. And if that's true, how did the convex hull get built in the first place?
The rubber-band metaphor fails for three reasons:
- High-dimensional geometry breaks our 2D intuition. On a flat board, a cloud of points encloses a big, cozy interior. In high-dimensional spaces, the volume of a finite dataset's convex hull shrinks to practically zero as the number of dimensions grows. As researchers have formalized (Learning in High Dimension Always Amounts to Extrapolation), almost any new query in high-dimensional representation space actually lies outside the convex hull of the training data.
- Knowledge is a curved manifold, not a flat plane. Breakthroughs rarely come from averaging two old ideas. They come from following latent structure along a curved manifold, or composing known building blocks in a new way—like using group theory to solve a problem in number theory. Drawing a new connection between distant regions of that manifold doesn't just fill in a gap; it creates something genuinely new.
- Verifiers break the loop. Neither humans nor modern AI learn only from static text. What lets an intelligence push past its training distribution is interaction with an external verifier—physical experiments, compilers, game engines, or formal proof checkers like Lean.
We don't even have to speculate about this anymore. When paired with verifiers, AI systems across multiple labs have already shattered problems that stumped humanity for generations:
- The Riemann Hypothesis (Anthropic / Claude): In November 2026, mathematician Levent Alpöge and an internal version of Claude produced a Lean-formalized proof of the Riemann Hypothesis (along with the Generalized Riemann Hypothesis for Dirichlet $L$-functions), independently verified by the Lean FRO and Mathlib Initiative—just weeks after OpenAI proved the quasi-Riemann hypothesis.
- Navier–Stokes Existence and Smoothness (OpenAI): In September 2026, an internal OpenAI system—running thousands of collaborative agents over 88 hours—produced an analytical proof and Lean formalization showing that 3D fluid dynamics can develop a finite-time singularity under a smooth force, resolving one of the Millennium Prize Problems.
- Challenging the Exponential Time Hypothesis (OpenAI & Anthropic): Both labs have announced explicit subexponential-time algorithms proposing disproofs of the Exponential Time Hypothesis—a result that strikes right at the heart of the $P$ vs. $NP$ debate.
- OpenAI's 722 Manuscripts and Beyond: Across OpenAI, DeepMind, Anthropic, and independent researchers, AI systems have knocked down long-standing conjectures across mathematics—from the problems in OpenAI's 722-manuscript release and dozens of open Erdős problems to the cycle double cover conjecture and the existence of non-sofic groups.
None of these are "averages" of human knowledge. They are proof that we already have the core mechanism of intelligence in front of us: learning compressed structure from data and testing new hypotheses against a verifier.
The Quiet Bet on $P = NP$
This is where my own take gets a little more radical.
If you believe AI will keep scaling, keep compressing, and eventually solve any verifiable problem we throw at it—even the hardest, worst-case ones—then you aren't just an AI optimist. You are already a believer in $P = NP$.
If you aren't a computer scientist, here is the quick version of $P$ vs. $NP$:
- $P$ is the set of problems a computer can solve quickly—in polynomial time, meaning the runtime grows reasonably (like $n^2$ or $n^3$) as the problem size $n$ gets bigger.
- $NP$ is the set of problems where, if someone hands you a proposed answer, you can check it quickly—even if finding that answer from scratch seems to require a brute-force search that explodes exponentially.
There is also a cool video from PurpleMind on this.
Take a classic $NP$-complete problem like 3-Coloring. Imagine a map (or a graph $G = (V, E)$) with $n$ regions, and you want to color every region red, green, or blue so that no two touching regions share a color.
Checking a finished map is effortless: just scan the borders in linear time, $O(\vert{}V\vert{} + \vert{}E\vert{})$. Finding a valid coloring from scratch in the worst case is believed to take exponential time.
✗ Checked 19 edges: 2 conflicts.
Now look at what an AI model like a Transformer actually is. Every forward pass takes polynomial time in the context length $L$ (roughly $O(L^2 d + L d^2)$). Suppose an AI can take any graph of size $n$, think for a capped, polynomial number of tokens $\text{poly}(n)$, and reliably output a valid 3-coloring whenever one exists.
That cap on tokens is crucial. With exponentially many tokens, the model could simply brute-force every possible coloring, which would prove nothing. And with no limit at all, it could just keep generating tokens forever—and determining whether an unbounded computation will ever stop is the Halting Problem, which Alan Turing proved is mathematically undecidable. You cannot claim a model "solves" a problem if you never know whether it is still thinking or stuck in an infinite loop.
So if the model halts within a polynomial number of tokens and reliably finds the answer, then the model itself is a polynomial-time algorithm for an $NP$-complete problem.
Most skeptics dodge this by pointing out the difference between average-case and worst-case problems. Humans and AI, they argue, only solve structured, average-case instances—the kind of problems nature hands us. Under that view, AI can revolutionize science without ever touching $P$ vs. $NP$.
Fair enough. But if you believe AI will one day crack even the worst-case instances—solving arbitrary, adversarially constructed graphs or inverting cryptographic functions with zero hidden structure—then the escape hatch slams shut. Intelligence cannot outsmart a mathematical lower bound. If a polynomial-time AI can solve any worst-case $NP$ problem, then a polynomial-time algorithm existed all along, and $P = NP$.
Why Can Anything Learn at All?
Honestly, I think this goes even deeper than AI. I suspect the very reason anything—human or machine—is able to learn in the first place is tied directly to $P$ vs. $NP$.
Think about how humans discover a new algorithm. We start by checking examples and verifying patterns. Once we spot the underlying structure, we compress it into a rule. AI does the exact same thing at scale: it ingests verifiable data, compresses the regularities, and outputs generalizable procedures.
In Computational Learning Theory (specifically Leslie Valiant's PAC learning framework), this isn't just a loose analogy—it is a formal equivalence. Learning a concept from data reduces to Empirical Risk Minimization (ERM): given a set of observations, find the smallest, simplest hypothesis (a compact circuit or program) that explains the data.
- Verifying whether a candidate rule fits the data is fast ($P$).
- Finding the simplest rule that fits the data—essentially automating Occam's Razor—is an $NP$ search problem.
Remember the question from earlier: how did the convex hull get built in the first place? This is how. The rubber band only moves when someone finds a new pin outside it and checks that it holds. So asking how far the hull can grow is really asking how much can be learned.
Look at the two worlds this leaves us with:
- If $P = NP$, checking collapses into finding. Every efficiently verifiable pattern in the universe becomes efficiently learnable. Anything whose solution you can recognize, a bounded intelligence can eventually learn to solve. The hull can grow to anything that can be checked.
- If $P \neq NP$ (and specifically if one-way functions exist, which is the foundation of modern cryptography), then pseudorandom functions exist. These are simple, polynomial-time rules whose outputs are computationally indistinguishable from pure random noise to any polynomial-time learner—human or AI. In that world, there are simple, deterministic laws in the universe that no bounded intelligence can ever learn from data, no matter how much compute you throw at it. The hull has a real limit, and it is the same limit for humans and AI.
Which leaves us with two possibilities.
Either $P = NP$, and unbounded AI optimism is completely justified—every verifiable problem in math and computer science will eventually yield to bounded computation.
One fascinating thing about that first possibility: checking a proof is fast, so finding a proof is itself an $NP$ search problem. If $P = NP$, finding a proof becomes about as easy as checking one, so an AI that really can solve everything could also find the proof of $P = NP$ itself. Kurt Gödel asked essentially this question in a 1956 letter to John von Neumann, fifteen years before $P$ vs. $NP$ was formally stated. The catch is Gödel's own incompleteness theorem: some true statements cannot be proved from our axioms, and nobody has ruled out that $P = NP$ is one of them.
Or $P \neq NP$, and the only reason humans and AI can learn at all is that nature isn't actively trying to trick us. Unlike a cryptographer deliberately scrambling data with SHA-256 to lock out attackers, the universe doesn't design worst-case puzzles to hide its laws. Instead, it hands us structured, low-complexity patterns where compression actually works.
So the next time someone tells you AI is going to solve everything, ask them if they mean everything in nature, or literally everything. If they mean the latter, welcome them to the club—they're betting on $P = NP$.