Build Wiz AI Show

P vs NP for Engineers: Three Worlds, and the Math Is Moving (tarunyaa)

19 min · · English

tarunyaa's X article asks what P vs NP would mean for engineering, as OpenAI and Anthropic report AI-assisted results on three-SAT, VP vs VNP and matrix multiplication. Scott Aaronson feels a proof is not far; Lance Fortnow says it is far out of reach. In this episode: - Three worlds, from P not equal to NP to practical P = NP - How SAT solvers tame hard problems today - A SAT-based equivalence check to try this week Sources: tarunyaa (@tarunyaa_); Scott Aaronson; Lance Fortnow; Anthropic; Johannes K. Fichte et al.; Emanuele Viola Big AI ideas, made clear for builders. luongnv.com/podcast

Listen on Build Wiz AI Show Download MP3 Transcript

Based on What would P=NP mean for engineering? by tarunyaa (@tarunyaa_)

Transcript

Bob: Have we spent generations engineering around the limits of our own intelligence?

Alice: One engineer argues that most of modern engineering exists to make hard problems tractable, and that the math underneath is now moving.

Bob: So which of three possible worlds are we actually living in? Welcome to Build Wiz AI Show. Big AI ideas, made clear for builders. I'm Bob, and today I'm the one asking the questions.

Alice: And I'm Alice. Today's source is an X article by tarunyaa asking what P equals NP would mean for engineering. She writes as an engineer curious about what these results mean for how we build things.

Bob: Before we dive in, are there any ground rules for today?

Alice: Two. Her views are her own, not her employer's, she says. And for each big result she cites, we'll say who reports it and what we checked.

Bob: Okay, from zero. What are P and NP?

Alice: P is the class of problems you can solve in polynomial time, so the work grows like n to some fixed power k. NP is the class of problems whose solutions you can verify in polynomial time.

Bob: Solving versus checking. Why does that difference matter so much?

Alice: Picture a jigsaw puzzle: checking a finished one takes a glance, but building it can eat your weekend. Her classic case is SAT: with n yes-or-no variables there are two to the n possible assignments, finding a satisfying one can be incredibly difficult, and checking one is easy.

Bob: And where do her three worlds come in?

Alice: Here's her catch: k can be anything. In world one, P isn't equal to NP, and no polynomial-time algorithm exists for NP-complete problems. In world two, P equals NP but impractically, something like n to the thousandth power: technically polynomial, practically slower than brute force.

Bob: Slower than brute force. That's a very expensive way to be technically right.

Alice: Exactly! And in world three, P equals NP and it's practical, so we discover efficient algorithms for problems we've treated as intractable for decades. It's like learning that the maze you've walked for years always had a door in the wall you never tried.

Bob: Why do people get so excited about NP-complete problems in particular?

Alice: She calls them master keys: a polynomial-time algorithm for any one of them gives polynomial-time algorithms for every problem in NP. The SAT survey notes SAT was the first, shown NP-complete by Cook and Levin in the 1970s.

Bob: So why write this now? What actually changed?

Alice: Two triggers, she says. On November 25, Scott Aaronson wrote that a proof that P isn't equal to NP might be close, and there are rumors of cryptographic breakthroughs at frontier labs. Computational complexity is having a moment.

Bob: And she sorts the new results along two axes, right?

Alice: Yes. Think of it as two teams on a mountain: one finds faster trails up, the other proves how deep the bedrock goes. Her first axis is better algorithms for hard problems, and her second is fundamental bounds on algorithms.

Bob: Trail runners and geologists, I can work with that. So start with the trails: what happened with three-SAT?

Alice: Three-SAT is SAT where each clause has at most three literals, and it's NP-complete. The Exponential Time Hypothesis, ETH, conjectures that it needs exponential time in the worst case. She reports that OpenAI and Anthropic have both reported sub-exponential algorithms for it.

Bob: That's her report. Did we check any of it ourselves?

Alice: We read Anthropic's own repository. Its README says a deterministic algorithm solves three-SAT in time two to the little-o of n, refuting ETH, and that an internal research Claude model discovered it. OpenAI's version we didn't read at its source.

Bob: So is three-SAT easy now? Did P just equal NP?

Alice: No: escaping exponential scaling doesn't mean polynomial scaling, she says, though it signals more structure than we assumed. The README calls the result purely asymptotic, saying nothing about practice. She adds that it lowered Aaronson's confidence in world one; his post we read doesn't discuss it, so that's her account.

Bob: Now the bedrock team. What is VP versus VNP?

Alice: It's her algebraic cousin of P versus NP, with arithmetic circuits. Lance Fortnow explains it on his blog with two matrix functions. The determinant is computable in polynomial time; the permanent is the same formula minus its sign term, which makes a big difference in complexity.

Bob: And what did the labs claim about it?

Alice: She says both labs reported proofs that VP isn't equal to VNP: the permanent can't be computed by polynomial-size arithmetic circuits the way the determinant can. Fortnow calls Anthropic's Lean-verified proof, for now, the most important computational complexity result of the year. And per her, this nudged Aaronson back toward world one.

Bob: And the third result was about matrix multiplication?

Alice: Right. The obvious algorithm takes n cubed arithmetic operations, and in 1969 Strassen brought the exponent below three. She reports that OpenAI has since reported matching upper and lower bounds of nine quarters.

Bob: Maya, you read the blog post that set all this off. What did Aaronson actually write?

Maya: Scott Aaronson posted it on his blog Shtetl-Optimized on November 25th. He says OpenAI claims to prove the matrix multiplication exponent is exactly nine quarters, a lower bound matching its earlier upper bound. To him, the bigger shock is that AI could prove any lower bound above two.

Bob: Whoa. And what about P versus NP itself?

Maya: He now feels "in my bones, for the first time ever," that a proof that P isn't equal to NP isn't far. AI, he writes, is climbing the mountain that leads there. And his working assumption: any proof coming directly from OpenAI or Anthropic is correct, barring information to the contrary.

Bob: And the crypto rumors she mentioned? Does he touch those?

Maya: He does. He's virtually certain, from multiple reliable sources, that the labs are sitting on one or more bombshells there. But he's much less confident about their specific nature, and doesn't wish to be responsible for spreading unverified rumors.

Alice: Yesterday, in part one of Anthropic's Quantum Lattice Attack, Explained, we covered a different, public paper. Its review group wrote that the attack falls far short of compromising the current NIST standards. Today's sources don't say what these rumors are, so we won't guess.

Bob: Does any of this connect back to everyday encryption like RSA?

Alice: Her appendix is careful: integer factoring, which underpins RSA, isn't known to be NP-complete. So practical P equals NP would break RSA, but breaking RSA wouldn't imply P equals NP.

Bob: So where does she land, personally?

Alice: She says everything remains open so far. Her personal belief is that P isn't equal to NP, because she believes the world is explosive in its non-deterministic and arbitrary nature. But she recognizes that the algorithmic frontier is moving.

Bob: Let's get practical. Where does complexity actually show up in engineering?

Alice: In her view, two places. Type one is combinatorial optimization: given an enormous space of possible designs, which one best satisfies our constraints and objectives? Chip design, drug discovery, aerospace and robotics all have NP-hard formulations.

Bob: Chip design sounds like the poster child for that.

Alice: It is: billions of component locations, wire paths and routing layers. Since exhaustive search is impossible, engineers built workarounds, starting with decomposition: split chip design into synthesis, floorplanning, placement and routing, and optimize each piece.

Bob: What's the catch with splitting it up like that?

Alice: Imagine a wedding planned by committee: venue, food and band each nail their own job, and the band is still too loud for the room. That's her warning. The divisions are manmade, each subproblem affects the others, and locally optimal decisions might not produce a globally optimal design.

Bob: Ha, I think I've been to that exact wedding.

Alice: The second workaround is relaxation, and her image is lovely: search with shades of grey before producing a black-and-white design. That enables gradient-based optimization, but the relaxed optimum might not match the discrete one.

Bob: And what's the third workaround?

Alice: Heuristics: intuition and baked-in rules decide which regions of the search space deserve attention. The risk is overlooking a better move that looks unpromising at first, like move 37. All three make intractable problems manageable, but at an unknown cost to optimality.

Bob: That covers type one. So what is type two?

Alice: Correctness: does any input or operating condition violate our specification? Unlike optimization, verification can't settle for good enough, because searching a billion possibilities without finding a counterexample isn't proof that one doesn't exist.

Bob: So my favourite excuse, I didn't find a bug, isn't a proof. Then how do chip engineers prove two circuits match?

Alice: Picture a pair of drawings on a light box: wherever the lines differ, light shines through. Engineers XOR the outputs of two circuit implementations and hand that to a SAT solver: SAT means a counterexample, UNSAT proves equivalence.

Bob: But SAT is NP-complete. How does that ever finish on a real chip?

Alice: Her answer: we haven't solved NP-completeness. We build systems hierarchically, with modularity and clean interfaces, and tools exploit that structure to prune the search tree. Lena, you brought the solver side.

Lena: I did: "The Silent (R)evolution of SAT" by Johannes Fichte and colleagues in Communications of the ACM. SAT remained the embodiment of theoretical worst-case hardness, they write, yet became a central target for solving a wide variety of problems, from hardware and software verification to planning.

Bob: How did solvers get so good, if the theory says SAT is hard?

Lena: A breakthrough around the millennium catapulted practical SAT solving ahead by orders of magnitude: conflict driven clause learning, CDCL. Think of a hiker in a maze who nails up a sign at every dead end: never take this combination of turns again. Those signs are the learned clauses.

Bob: And why does it work so well on industrial problems?

Lena: The standard view, they write, is that industrial instances contain a hidden structure that the solver manages to use implicitly. There's a flip side, though: solvers still perform poorly on certain random and cryptographic instances.

Bob: So here's the big question: how does engineering change in each world?

Alice: World one, where P isn't equal to NP: we stay inside human-decomposed methods, but AI-assisted search speeds them up dramatically, with agent swarms exploring thousands of branches in parallel. If parallelism gets cheap and fast enough, we can even reshape the decompositions.

Bob: A swarm of agents loose in my maze. I like world one already.

Alice: Imagine a crowd of interns, each sent down a different corridor at once, shouting back what they find. That's the swarm: far more iterations across the same decompositions, no magic shortcut. And the SAT survey adds a caution: SAT solving hasn't yet benefited from massive parallelization.

Bob: And world two, where P equals NP but it's uselessly slow?

Alice: Even an unusable algorithm brings bounds and structural insights. For generations, engineers tweaked heuristics inside a black box, comparing tools without knowing how far either is from the best possible runtime.

Bob: That's the matrix multiplication point again, isn't it?

Alice: It's like finally learning the world record for the mile: you stop guessing how good your time is. She says establishing the bound lets engineers see how close today's methods are to the best possible. Aaronson calls it finally knowing the right answer to a central mystery of algorithms.

Bob: And world three, the dream where it's practical?

Alice: Three levels. Level one keeps today's stages but finds better solutions faster, like a faster SAT solver. Level two is joint optimization: instead of choosing a chip's netlist first and then placing and routing, optimize everything simultaneously.

Bob: So the wedding committee finally sits at one table! What excites her most about world three?

Alice: Joining type one and type two. Today we optimize an implementation and separately verify it; she asks whether we could find optimized designs that are correct by construction. A third level even revisits the rules we fixed just to keep the search manageable.

Bob: Back to the question we opened with. Have we been engineering around our own limits?

Alice: In whichever world we live in, she says, we can soon measure the extent of our intelligence by seeing how far today's designs were from the optimum. Maybe our tools are great, or maybe we've spent generations engineering around our own limitations.

Bob: So a perfect solver would hand us perfect designs?

Alice: Not quite, and here's the bittersweet part. An exact solver only solves the problem we gave it, so we're still limited by how well we model physics. Then comes physics itself: heat doesn't disappear, and signals don't propagate infinitely fast.

Bob: That's three layers, all tangled together.

Alice: Think of it as a baker who finally gets a perfect oven: now she can tell if a flat cake was the oven's fault, the recipe's, or the flour's. The oven is computation, the recipe is our model of physics, the flour is physics itself: three things she hopes we can finally pull apart.

Bob: So my flat cakes might be the flour's fault after all.

Alice: Maybe! She writes that we may discover how much of the engineered world reflects physical reality, and how much reflects the intelligence that built it. And then, simply: "I both want and don't want to know."

Bob: Honestly, same here. Counterpoints time: Sam, you brought someone who disagrees with her on the big one.

Sam: I did. Emanuele Viola, a computer science professor at Northeastern, wrote "What Happened in Fall 2026: AI and P vs NP" on the Communications of the ACM blog. He says the new findings support his iconoclastic belief that P equals NP.

Bob: The exact opposite of her bet! What's his reasoning?

Sam: History. He lists examples showing researchers have consistently underestimated the power of efficient computation, so he believes the only reasonable direction is toward P equals NP. He writes that on October 26, OpenAI proved the Exponential Time Hypothesis false, and expects more conjectures to fall soon.

Bob: So is a proof really close, or not?

Alice: Lance Fortnow is far more cautious: algebraic circuits could be much weaker than traditional ones, so VP not equal to VNP doesn't imply the Boolean separation. For now, he writes, settling P versus NP remains far out of reach for man or machine.

Bob: Next objection: these proofs came from AI models. Why should anyone trust them?

Alice: Aaronson leans on the Lean certificates the companies back their claims with. But Anthropic's README adds a caveat: Lean checks the proofs, yet no machine checks that the statement file says what the paper says. A human reader has to check that part.

Bob: And for builders: does a faster three-SAT algorithm speed up my solver tomorrow?

Lena: Not from what the survey says. There's no single best solver in practice: performance depends on the class of benchmarks and on each solver's heuristics. So measure on your own problems, whatever the asymptotics say.

Bob: Time for Builder's Corner. Alice, what's one concrete thing to try this week?

Alice: Run her equivalence trick on something small. Take two versions of the same logic, say an old rule and its refactor, and XOR their outputs. Hand that to a SAT solver: SAT gives you a counterexample input, UNSAT proves they match.

Bob: And if it says UNSAT, how do I trust that answer?

Alice: Ask for a proof: the SAT survey says modern solvers emit compact proofs that third-party tools check efficiently. The free solver MiniSat or its offspring Glucose make a good start. And from her world two: measure your heuristic against a known bound, not just another tool.

Bob: Let's wrap up. What should people remember from this one?

Alice: First, there are three practical worlds, because k can be anything. Second, the frontier is moving, with reported lab results, Aaronson feeling a proof is near and Fortnow calling it far out of reach. Third, engineering already lives with hardness through decomposition, relaxation, heuristics and structure.

Bob: So what's still open, honestly?

Alice: Almost everything, by her own account: which world we live in, and how long humans need to understand these proofs, which Aaronson says might take years. And what those crypto bombshells are, which even he won't specify without details.

Bob: And her deepest question is still hanging there, right?

Alice: Yes: how much of our engineering reflects physics, and how much reflects the intelligence that built it.

Bob: Thanks to tarunyaa for her X article on what P equals NP would mean for engineering.

Alice: And thanks to Scott Aaronson on Shtetl-Optimized, Lance Fortnow for his post on VP versus VNP, and Anthropic for its three-SAT repository. Thanks also to Emanuele Viola on the Communications of the ACM blog, Fichte and colleagues for "The Silent (R)evolution of SAT", and to Maya, Lena and Sam.

Bob: That's all for today on Build Wiz AI Show. Thanks for listening, and see you next time.