Skip to content
PodSubs
ShowsPeopleGuestsJobsNewsEvents
More
BlogPodCred
Menu
ShowsPeopleGuestsJobsNewsEventsBlogPodCredNetworksSign in
Join nowSign in
  • Shows
  • People
  • Jobs
  • News
  • More
    • Guests
    • Events
    • Blog
    • PodCred
    • Networks
    Join nowSign in

The Sentient Code: AI and Robotics

The Sentient Code: AI and Robotics artwork

AI Writes 180 Million Lines of Proofs That Software Is Safe

Oct 29, 202623 minAudio
ShareXLinkedInFacebookWhatsAppEmail

Claude just wrote hundreds of millions of lines of mathematical proofs showing real open-source libraries cannot crash on any input under 64 MB. The same process uncovered bugs that survived years of fuzzing. We unpack how formal verification is moving from specialist luxury to practical defensive tool. This episode includes AI-generated content.

Audio and video play straight from the show's own hosting. PodSubs stores and serves no media.

Transcript

From the show. Tap a time to play from there.

Speaker 1Welcome to the Sentient Code, where intelligence is engineered, autonomy is emerging, and a line between human and machine grows thinner. Each episode, we decode the algorithms, explore the robotics, and examine the ideas shaping the future of artificial minds.

Speaker 2Welcome to the Sentient Code Podcast. Today we will talk about how Anthropic just used Claude to write mathematical proofs that real open-source software, libraries, cannot crash, at a scale that used to take human experts years.

Speaker 3Wait, mathematical proofs that code cannot crash? Like, for actual libraries people use every day?

Speaker 2Yes. They published this on October 22nd. Claude proved no-crash properties for 239 entry points across 123 open-source libraries from Google's OSS Fuzz project, all at the level of the compiled RISC-V assembly code.

Speaker 3RISC-V assembly. So not the source code, the actual machine instructions. That is wild. Formal verification has always been this legendary hard thing, right? I remember CL4 took like 20 person-years just for the kernel.

Speaker 2Exactly. Most software is full of bugs, and AI is getting better at finding and even chaining them into exploits. The usual testing and fuzzing can never be complete because there are infinite possible inputs. Formal verification is the idea of proving mathematically that certain bad things never happen, for every possible input under the assumptions.

Speaker 3But the proofs are huge, and writing them needs rare specialists. So if Claude can do it autonomously for over 100 libraries, that changes who can afford this kind of guarantee.

Speaker 2That is the claim. They worked with a company called Theorem. Claude wrote the proofs in ROC, which is a proof assistant, and the ROC kernel checks that the proof actually satisfies the specification. The total proof size is about 180 million lines of ROC.

Speaker 3180 million lines? A typical proof was around 600,000 lines for a binary that is maybe 18,000 instructions long. How does that even work without the model just hallucinating nonsense?

Speaker 2Because the checker is the ground truth. If the proof does not type check against the spec, it fails. Humans only need to trust the models of the RISC-FEV instruction set and Linux processes, the exact theorem statements, and the ROC checker itself. Everything else is verified.

Speaker 3Okay, that is a much smaller trusted base. Still, what exactly did they prove? Not that the whole program is perfect, right?

Speaker 2No. They took the existing fuzz tests... which are entry points designed so that a crash means a bug the developers care about, and turn them into specs. The spec says the program never crashes for any input under 64 megabytes under the modeled conditions, single-threaded static binary, fixed memory budget, RISC-V CPU, Linux. Then Claude proved that.

Speaker 3So if the proof succeeds, fuzzing that entry point is basically pointless because it will never find a crash. And along the way, Claude found and patched bugs that had survived trillions of test runs.

Speaker 2Yes. Some of those bugs were ones a normal fuzzer would almost never hit, like a counter underflow in a decompressor that only triggers on a rare 20 megabyte input layout, or an out-of-bounds read needing 64 megabytes and over 2 gigabytes of memory. It even rediscovered a known CVE in libxpat.

Speaker 3That is the part that surprises me most. The process of trying to prove it surfaces the bugs, then you patch and prove the fixed version. It is both a bug finder and a guarantee machine. So how did they actually get Claude to produce these enormous proofs without losing the thread?

Speaker 2They set it up so Claude could iterate. When the proof attempt hit a bug, Claude was allowed to patch the code itself. That regenerates the specification from the patched binary, and then it continues proving the new version. Over a few weeks, it got through 239 of them.

Speaker 3Autonomously patching as it goes? That feels like the agentic part. Did they publish the proofs?

Speaker 2Yes. They are publishing the trusted components that are not already public, Claude's complete rock proofs for the cases that did not need patching, and the specifications for the ones they could not fully prove, so other people can check the work.

Speaker 3I like that, because the whole value is that the checker is independent. Anyone who trusts Rock and the semantics can verify the claim without redoing the huge proof.

Speaker 2Right. And they note that formally verified does not mean bug-free. Remaining bugs could be in the trusted models of RISC-V and Linux, in the theorem statements, in the proof checker, or outside the scope of what was proved. For example, most software ships as x86 or ARM, not RISC-V, and these are single-threaded static binaries.

Speaker 3So it is a strong guarantee inside a specific model, but not yet a drop-in for every production binary. Still, expanding the semantics to more architectures and operating systems is described as within reach.

Speaker 2They also tried other formal methods in the same project. One was proving behavioral equivalence of a Python interpreter written in Rust against formal semantics, and they tested it against 1.7 million random Python programs with near-perfect match to CPython. Another was assessing Zilib.

Speaker 3There is a broader point in the write-up that as models get better, the cost of writing proofs keeps falling. Once more code is formalized, you can reuse and modify proofs across code bases, so the cost amortizes.

Speaker 2They explicitly encouraged developers who tried formal verification with older models and gave up to try again now. The capability jump seems real.

Speaker 3I keep thinking about the security angle. If frontier models can already chain bugs into exploits, having a practical way to prove the absence of whole classes of crashes feels like defensive infrastructure that was previously only for avionics or kernels.

Speaker 1Exactly.

Speaker 2And because the trusted base stays fixed while you scale the proofs to more projects, the economics get better the more you do it. 123 libraries is already a demonstration of that scaling.

Speaker 3What about the bugs that never crash? They mention logic bugs, like a file loading restriction that is not always enforced. Those show up during the proof attempt, even if they do not trigger address sanitizer.

Speaker 2Yes, so the process is useful even when you do not finish the full proof. Just trying to prove the no crash property finds real issues that need fixing. One detail that stood out is how they converted the tests into specifications. For most programs, there is no clean mathematical definition of correct behavior. A text editor... or a browser is hard to specify completely. So they use the existing fuzz tests as the spec. This entry point never crashes.

Speaker 3That is pragmatic. It means you get a guarantee for the properties the developers already decided were important enough to fuzz, but you do not magically get a full functional correctness proof.

Speaker 2And address sanitizer instrumentation is what makes the memory safety crashes visible. Memory safety issues are still a leading source of vulnerabilities, so covering those is high value even if other bugs remain.

Speaker 3I wonder how long this would have taken a team of human formal verification experts. The CL4 comparison is 20 person-years for one microkernel. Here it is weeks of model time for over 100 libraries.

Speaker 2That compression is the real story. It moves formal verification from something only mission-critical projects can afford towards something that could become as practical as fuzzing for ordinary software.

Speaker 3They say that explicitly at the end. Formal verification that used to be only for bespoke, expert-crafted guarantees in the most safety-critical code will soon be as practical as fuzzing is today for almost all production software.

Speaker 2Is that optimistic? Probably, because of the current scope limits. But the trajectory is clear. Models that can already generate these proofs will get better. The semantics libraries will expand, and the reuse will compound.

Speaker 3There is also the side benefit of finding documentation and hardware bugs. When they generated the RISC-V semantics, they found hundreds of mistakes in the official reference documentation and a smaller number of bugs in the hardware itself. The semantics can boot an Ubuntu user space on a Linux kernel when single-stepped.

Speaker 2So the formal models are not just assumptions, they are being checked against real execution. That increases confidence.

Speaker 3Still, I want to be careful about the headlines. This does not mean Claude has made all open-source software safe. It means a specific class of crash bugs can now be proved absent after patching for certain binaries under certain assumptions at previously impractical scale.

Speaker 2Yes. The paper is careful about that. The value is the new workflow. Attempt the proof, fix what it surfaces, end up with a machine-checked guarantee that those crashes are gone.

Speaker 3For security teams, that is huge. Instead of hoping the fuzzer has run long enough, you have a proof that no input under 64 megabytes can crash that entry point.

Speaker 2And because the proof is checked by the kernel, you do not have to trust Claude's reasoning about the code. You only trust the small set of components that define the model of the machine.

Speaker 3Looking ahead, what do you think is the next practical step for this?

Speaker 2Probably expanding the formal semantics to the architectures people actually ship and to more realistic process models. multi-threaded code, dynamic linking, different memory, layouts. Once those exist, the same proof generation approach can cover more of the real attack surface.

Speaker 3And making the proofs smaller or more modular so they can be maintained as the libraries evolve. Right now, a 600,000 line proof for an 18,000 instruction binary is impressive, but expensive to update if the code changes.

Speaker 2That is where reuse becomes important. If many libraries share similar patterns, or if the proofs can be structured so that changes only affect small parts, the amortization kicks in. The write-up points to that as the longer-term cost reduction.

Speaker 3I also keep coming back to the fact that this was done by Anthropic's Frontier Red team. The same lab that studies how models can find and exploit bugs is now showing how models can prove their absence. That feels like a healthy dual use of the capability.

Speaker 2Yes, defensive applications of the same models that create the offensive pressure. And because the proofs are public and checkable, It is not just a company claim. It is something the community can build on.

Speaker 3Do you think smaller teams or open-source maintainers will actually start using this soon, or is it still mostly for organizations that can afford the model calls?

Speaker 2The model calls are not free, and generating hundreds of millions of lines of proof takes compute. But the cost is falling fast, and once the infrastructure of semantics and checkers is shared, the marginal cost for each new library drops. The encouragement in the post is aimed at developers who previously found it too hard.

Speaker 3There is a quiet intensity to the result. It is not flashy like a new model beating a benchmark. It is infrastructure that could make a large fraction of the software stack more trustworthy over time.

Speaker 2And it is surprising how well the models handle the sheer volume and the need for precise, checkable reasoning. Earlier models struggled with formalization. This one produced proofs the kernel accepts at scale.

Speaker 3I want to see independent groups try the same workflow on other code bases and report what breaks. That will tell us how general the capability really is.

Speaker 2Agreed. The publication of the proofs and the trusted components makes that possible. If the approach holds up under outside scrutiny, formal verification could move from a specialist luxury to a standard defensive tool.

Speaker 3That is the kind of quiet progress that actually changes the security baseline. Not a single dramatic fix. but a new way to systematically remove whole classes of bugs and then prove they are gone.

Speaker 2Yes, and it is available to examine right now on Anthropic's research page from October 22nd. Worth reading the details if you work on software security or verification.

Speaker 3Definitely. The combination of scale, the independent checker, and the bugs it found along the way makes this one of the more concrete advances in applying large language models to real engineering problems.

Speaker 2Thanks for digging into it with me. That is the story of Claude turning formal software verification into something that can run at the scale of hundreds of real open-source libraries.

Speaker 3Glad we spent the time on it. Until next time.

Speaker 2Let me walk through one of the concrete bugs more carefully, because the numbers make the contrast with ordinary testing very sharp.

Speaker 3The 20-megabyte decompressor won. Normal fuzzers usually cap inputs at around 1 megabyte, and they rely on code coverage to steer. A rare layout that only appears at 20 megabytes is almost invisible to that process.

Speaker 2Yes. Claude found a counter-underflow that led to an out-of-bounds write, but only on inputs of that size with one specific rare arrangement of the data. Once it is in the proof attempt, the failure points exactly at the place the invariant breaks, so the patch is straightforward.

Speaker 3Then there is the image decoder that needed a 64 megabyte input and more than 2 gigabytes of memory just to trigger the out-of-bounds read. That is the kind of edge that survives years of continuous fuzzing on the OSS fuzz cluster.

Speaker 2And the LibExpat rediscovery of CVE-2026-56132, which required deeply nested input. Fuzzers can find those eventually, but the proof process finds them while also producing the guarantee for everything else.

Speaker 3What interests me is the logic bug that never crashes at all. A feature meant to restrict which files an application can load was not always enforced. Address sanitizer would never flag that because it is not a memory safety failure. The proof attempt still noticed the mismatch with the intended property.

Speaker 2That shows the method is not limited to crash bugs. Once you have a specification, even a narrow one, the attempt to prove it can surface any violation of that specification.

Speaker 3I keep returning to the size of the proofs. 180 million lines total. Typical proof 600,000 lines. How does a language model stay coherent across that volume?

Speaker 2It does not have to hold the entire proof in context at once. The workflow is iterative. Generate candidate proof steps, submit them to the ROC checker, get the error or the success, and continue. The checker provides a reliable external signal at every step.

Speaker 3So the model is more like a very persistent engineer who never gets tired of writing the next lemma, and the kernel is the strict reviewer that rejects anything that does not type check.

Speaker 2Exactly. That division of labor is why the scale becomes possible. Humans would get exhausted or lose the global invariant. The model just keeps generating, and the checker enforces correctness.

Speaker 3Did they measure how much the newer models improved over previous ones on this task? The write-up mentions that OPUS 5.5 proves about half of a 36-task test set with roughly 40% fewer tokens than the previous version.

Speaker 2Yes, and agents that shared a workspace of already written proofs needed about 17% fewer tokens. So both model capability and the ability to reuse intermediate results matter.

Speaker 3That reuse point connects back to the amortization argument. The more formalizations exist, the cheaper the next one becomes.

Speaker 2And they are releasing a subset of the proofs on GitHub so that the community can start building on them immediately.

Speaker 3Another angle that feels under-discussed is the decision to work at the assembly level rather than the source level.

Speaker 2That choice is deliberate. Proving properties of the compiled binary means you are covering what actually runs, including any compiler transformations, and you are using a uniform model of the instruction set and the operating system. It also means the same approach can be applied to libraries written in different languages as long as they compile to RISC-V.

Speaker 3But it also means the proof is tied to a specific compilation. If the library is rebuilt with different flags or a different compiler version, the proof may no longer apply. That is a practical maintenance question.

Speaker 2Yes. In the long run, you would want either reproducible builds that match the proved binary, or proofs that are robust to certain classes of compiler changes, or a pipeline that reproves quickly when the binary changes. The current work is the existence proof that the generation itself is feasible.

Speaker 3I also noticed they proved a Python interpreter written in Rust. Claude built the full interpreter with 17 tiers and proved that whenever it returns a result, that result matches the formal semantics. Then they tested conformity against CPython on 1.7 million mostly random programs and saw 99.95% agreement.

Speaker 2And when they deliberately injected seven bugs into an early version, five of them survived the random tests, but all seven broke the proof. That is a clean demonstration of the difference between testing and proving.

Speaker 3That example makes the value very concrete. Testing, even large-scale random testing, can miss bugs. The proof either succeeds and rules them out, or fails and points at them.

Speaker 1Exactly.

Speaker 2And because the formal semantics were connected empirically to C-Python, there is a bridge between the mathematical model and the real implementation.

Speaker 3Stepping back, this sits at the intersection of AI coding agents, formal methods, and cybersecurity. It is not a new model release. It is a new workflow that becomes possible once the models can sustain long, precise, checkable reasoning.

Speaker 2And the fact that it was done on real open-source libraries that have already been subjected to extensive fuzzing makes the claim stronger than a synthetic benchmark would.

Speaker 3I am curious how the open-source maintainers of those 123 libraries will react. Some of the bugs Claude found and patched may already have been fixed upstream, or they may be new to the maintainers.

Speaker 2The write-up says Claude patched the bugs it found during the process. Whether those patches were submitted upstream or remained local to the proof experiment is not detailed, but the capability to produce both the patch and the subsequent proof is there.

Speaker 3For a podcast listener who writes software, the practical takeaway is that the barrier to obtaining machine-checked guarantees has dropped dramatically. at least for the class of properties that can be expressed as the absence of crashes under a clear model.

Speaker 2Yes, and the invitation in the post is direct. If you tried formal verification before and it did not work with earlier models, try again. The models have changed.

Speaker 3That seems like the right note. The tools are becoming available. The question is, who starts using them on the code that matters?

Speaker 2Let us talk about the trusted computing base for a moment. because that is where the real residual risk lives.

Speaker 3The three things you still have to trust, the formal models of risk-feeve and of Linux process behavior, the exact statements of the theorems that were proved, and the rock-proof checker itself. Everything else is checked.

Speaker 2That is a much smaller surface than trusting every line of the 123 libraries. Hardening those three components is still non-trivial, but it is a fixed cost that does not grow with the number of projects you verify.

Speaker 3And they note that single-stepping the semantics can boot an Ubuntu user space on top of a Linux kernel, which is empirical evidence that the models are close to real execution. They also found mistakes in the official RISC-FIEV reference documentation while building the semantics.

Speaker 2So the formalization process itself improves the models. That is a nice feedback loop.

Speaker 3Still, a soundness bug in ROC, or an incomplete model of some Linux system call, or a theorem statement that does not quite say what the authors intended, could let a false proof through. Those are the classic risks of any formal verification project.

Speaker 1Yes.

Speaker 2The difference is that those risks are now concentrated in a small, shared, inspectable set of artifacts, rather than distributed across every codebase. Independent review of the semantics and the theorem statements becomes high-leverage work.

Speaker 3That seems likely. Once generating the proof is relatively cheap, the value of a high-quality, widely-trusted model of an instruction set or an operating system interface goes up. Another practical question is how this interacts with continuous integration. Can you imagine a pull request that includes not only the code change,

Speaker 3but also an updated machine-checked proof that the new binary still satisfies the no-crash property?

Speaker 2In principle, yes, if the reproof is fast enough and the build is reproducible. The current experiments took weeks for the whole set, but individual entry points are smaller, and model improvements will keep reducing the time. It is not hard to imagine a future where the proof is regenerated on every release.

Speaker 3That would be a genuine shift in how we think about software assurance. Instead of evidence that we have looked hard and not found bugs, we have evidence that a checker has confirmed the absence of a defined class of bugs.

Speaker 2And because the checker is open and the proofs can be rechecked by anyone, the assurance is not dependent on trusting a particular lab's internal process.

Speaker 3I think that is the part that makes this result durable. The claims are checkable. If the community finds gaps in the models or the statements, those gaps can be fixed and the proofs rerun. The methodology supports iteration.

Speaker 1Yes.

Speaker 2It is not a one-time demonstration that then disappears. It is a starting point for a broader practice.

Speaker 3Which brings us back to why this feels significant for the podcast. It is a concrete example of large language models being used to produce artifacts that are independently verifiable and that raise the security floor for real software.

Speaker 1Exactly.

Speaker 2Not a claim about general intelligence, but a measurable expansion of what can be proved about code that people actually run.

Open the transcript file

Hosts and Guests

Nobody is credited on this episode yet.

Credit the people on this episode

Be the first to rate this episode

More episodes

All episodes
  1. Gemini 4 Carbon Tops MathArena Benchmark

    Nov 23, 202617 minAudio

    Google Research has unveiled a multi-agent system called /teamwork within its Antigravity platform that coordinates specialist AI subagents to tackle open math problems. In a stunning debut, the system fully formalized...

    Credit the people on this episode

  2. Gemini 4 Carbon Tops MathArena Benchmark at a Premium Cost

    Nov 19, 202617 minAudio

    Google's Gemini 4 Carbon claims the top spot on the MathArena math benchmark, outperforming OpenAI's GPT-6.1 Sol. The episode explores the significant cost gap between the two models and what this means for users across...

    Credit the people on this episode

  3. Why AI Models Still Fall Short of Human Experts

    Nov 12, 202623 minAudio

    Handshake AI reached about one billion dollars in gross annualized revenue in roughly a year by supplying frontier labs with expert data and evaluations. This episode walks through its finance, biology, coding, and...

    Credit the people on this episode

  4. AI Coding Agents Learn to Refactor Across Repositories

    Nov 9, 202618 minAudio

    A calm look at how coding agents are moving from single-file autocomplete to planning, editing, and testing changes across linked repositories. We discuss repo graphs, verification, failure modes, and what teams still...

    Credit the people on this episode

  5. Humanoid AI Learns to Walk and Grab Without Ever Seeing the Full Task

    Nov 5, 202625 minAudio

    Researchers just showed a humanoid AI that learns walking and object handling from separate demos, then stitches them into multi-step tasks on its own. Early results on a real robot beat a strong baseline, especially on...

    Credit the people on this episode