Mathematics

Time for Nondeterministic Polynomial Time

The hoopla has begun. As AI topples long-standing math conundrums like so many bowling pins, fears have risen that RSA and similar encryption are next. If so, it’s bye-bye to online security, Bitcoin’s included.

The fear hinges on whether P = NP, the Millennium Prize question of computational complexity. Are they equal or not? It’s widely believed that they are not, but no one has proved it. AI, however, is hot on the trail. Just this week, Anthropic and then OpenAI each released a claimed proof that VP ≠ VNP, an algebraic cousin of P vs NP that researchers treat as a warmup for the real thing. Neither proof has been checked by a human mathematician yet. But if either is confirmed, it would only add to the consensus view. Scott Aaronson, asked in his blog’s comments whether P = NP, replied yesterday, “I remain at 96% for P≠NP.”

What do the symbols P and NP mean? P is the set of problems that can be solved in polynomial time: sorting a list, finding the shortest route on a map, or checking whether a number is prime. NP, short for nondeterministic polynomial time, is the set of problems whose solutions can be verified in polynomial time. There are many examples. Verifying that a filled-in Sudoku is correct takes little effort. So does checking that a large number is the product of two supplied primes.

But the reverse task is notoriously difficult. Solving Sudoku grows dramatically harder as the grid grows, and finding the prime factors of a large number is so resource-intensive that much of the security we bank on (literally) depends on it. RSA encryption, the basis for most online security, rests on the assumption that finding those factors would take longer than the age of the universe.

And so, if P = NP, a fast method for factoring (in effect, a way to crack RSA) would necessarily exist. The reverse doesn’t hold, though: factoring could turn out to be easy even if P ≠ NP, since it isn’t one of the “hardest” NP problems–this is scenario Aaronson referenced in his “Holy Shit” post. That, along with quantum computing, is the more realistic threat to RSA. And even if P = NP, which almost certainly isn’t so, a corresponding P-factorization method could still demand more time and computing power than anything realistically available.

One more reassuring note: RSA is actively being phased out. Only 33% of websites rely on it now. Better methods exist. Surely this new threat will only accelerate that deprecation.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.