Every jet in Simplicity now has a machine-checked proof checking its C code against the spec. AI did much of the heavy lifting. A proof checker kept it honest.

When a smart contract holds real money, "we tested it" isn't the strongest thing you can say. Tests show code works on the inputs you tried. A proof shows it works on all of them. Think of a bridge. A tested bridge has carried a thousand trucks and is still standing. A proven bridge comes with the engineers' calculations: it will hold any truck up to 40 tonnes, in winds up to 120 km/h, for the life of the material.

Simplicity was designed for that second kind of assurance from day one. Today we're sharing a milestone on the way there: every one of Simplicity's 533 jets now has a machine-checked proof relating its C implementation to its formal specification.

Simplicity was built to be proven

Simplicity is a low-level language for bitcoin-style smart contracts, live on the Liquid network since 2025. Unlike most contract languages, it was designed around a formal specification from the start. That specification is written in Rocq (formerly Coq), a proof assistant used to verify compilers, operating systems and cryptographic libraries. Simplicity programs have static bounds on the resources they can use, and developers can create machine-checkable proofs of what a program does.

That starting point comes from the language's author. Russell O'Connor came to bitcoin from formal mathematics. For his PhD at Radboud University, completed in 2009, he produced a machine-checked proof of Gödel's first incompleteness theorem in Coq, verifying every step of one of the best known results in logic with a computer.

He brought the same discipline to Blockstream. Simplicity, which he introduced in 2017, began in the proof assistant. Its semantics were defined in Coq before there was a network to run it on. The core language has no loops and no recursion, so what a program does and what it costs can be established before it runs. All of this was done by hand, years before AI could write a line of proof. Simplicity was designed as a language for blockchains with formal verification as its purpose, and that is why AI can now help prove it at scale.

That design pays off now. With a formal specification, you can prove things against it. Without one, you can only test.

What jets are, and why they matter

Written out in pure Simplicity, everyday operations like hashing, signature checks and arithmetic would be long and slow to evaluate. So Simplicity uses jets: fast, hand-written C implementations of common operations that nodes run in place of the equivalent Simplicity expression.

That speed comes with a responsibility. A jet is only safe if it does exactly what the Simplicity expression it replaces would do, for every possible input. If a jet and its specification ever disagreed, a contract could behave differently from what its author proved about it.

So the question is simple to state and hard to answer: does each jet's C code match its specification?

What's now proven

Breno Brito on the Simplicity team set out to answer that question for every jet. The result:

  • 533 of 533 jets have a proof in Rocq against their Simplicity specification: 532 prove the C code and the specification are equivalent, and 1 proves exactly where they differ.
  • 1 divergence: in gej_ge_add_ex, when both inputs are the same point, the specification returns one coordinate unreduced and the C code returns it normalized. Equivalence is proven for every other input. This is a bug and it has to be fixed. Changing the C code would mean a fork, so the fix is to correct the specification.
  • Every proof is checked by Rocq's kernel, the small trusted core of the proof assistant. Nothing is admitted without proof, and every assumption is written into the theorem itself, never added as an axiom.
  • 375 proofs need no extra assumptions.
  • 156 assume a model of a standard C library function the jet uses: memcpy copies bytes correctly (143), memset fills a byte range (11), a count-trailing-zeros builtin works as documented (10), and memcmp returns the sign of a byte comparison (1). Some jets use more than one.
  • 3 (of which two are also counted in the 156 above) rely on a property of SHA-256 that is assumed, not proven. Finding an input where these proofs don't apply would require finding extraordinarily rare SHA-256 outputs, far beyond any feasible computation unless SHA-256 has a serious undiscovered weakness. Bitcoin's security already fundamentally presupposes computations like these can’t be achieved.

Getting from "we think these match" to "a machine has checked that they match" is the point. Bugs that hide in rare edge cases are exactly what tests miss and proofs catch, and this work surfaced one.

How AI did the heavy lifting

Proofs like these used to take specialists months or years. This time, the proof work ran over 41 days with AI coding agents doing much of the writing: roughly 15.2 billion tokens processed across Claude Code and Codex, by Breno's estimate.

This works because of a clear division of labour. AI is very good at generating candidate proofs and grinding through hundreds of cases. On its own, it is not something you should trust, and here you don't have to. These proofs were written with closed, commercial AI models, and nobody has to take the model or the company behind it on faith. Rocq doesn't care who or what wrote a proof: it either checks or it doesn't. The AI can be as fast and as creative as it likes, and the only output that counts is output that passes the kernel.

That's the combination we think matters: AI makes proofs cheap to produce, and formal verification makes AI output safe to rely on. Languages built to be proven are the ones that benefit most.

A broader moment

We're not the only ones seeing this. In October, Anthropic's Frontier Red Team and Theorem published research in which Claude produced Rocq proofs that 239 entry points across 123 widely used open-source libraries can't crash. Different target, same lesson: when machine-checked proof is the bar, AI can help clear it at a scale that wasn't practical before. Simplicity's specification lives in the same proof assistant, which is part of why this approach fits it so well.

The same pattern is showing up in our own research. Blockstream Research is building libshrincs, a library for the SHRINCS post-quantum signature proposal, written in handwritten C like libsecp256k1. So far it is a proof of concept for one part of the scheme, with machine-checked proofs that the code matches its specification and that forging a signature would break the hash function assumptions. As Jonas Nick put it at Plan B Forum in October, until recently proofs like these were prohibitively expensive, and in 2026 LLMs can write most of them while humans review the definitions and the theorem statements.

What it means for builders

If you build on Simplicity, the jets your contracts call are now backed by machine-checked proofs against the same specification you reason about. That's a stronger foundation for contracts that hold real bitcoin.

We're also making Simplicity easier to build with AI. Our documentation is being written to be AI-readable, and we're adding AI skills and tools for SimplicityHL, so asking an assistant for a Simplicity contract gets you SimplicityHL, not Rust.

What a proof does and doesn't mean

A proof is only as good as the specification it proves against. These proofs relate each jet's C code to its Simplicity specification, under the assumptions listed above. They don't, by themselves, show that the specification says what everyone intends, and they don't yet cover every part of the system. Formally verified isn't the same as bug-free. Proofs have limits of their own. While working on a machine-checked proof of the SHRINCS signature scheme, our research team found a gap in a published security proof that an earlier formalization had also missed, because it did not model that part of the argument. It was a gap in the proof and no attack follows from it, but it shows that a proof covers only what it models.

What's next

The most immediate work concerns the jet implementation proofs:

  • Reviewing the full set of jet proofs.
  • Changing the specification of gej_ge_add_ex to match the deployed implementation.
  • Reviewing the model of the Elements transaction data that the introspection jet proofs use.

Larger open goals include:

  • Extending the proof that translation to the Bit Machine preserves meaning and stays within its memory bound, to cover the full language and the optimized translation that nodes use.
  • Proving that the evaluator, decoder, and type checker, all written in C, match formal specifications of what they should do.
  • A formal specification of SimplicityHL, and a proof that its compiler is correct.

We're publishing a formal verification roadmap on simplicity-lang.org that shows where Simplicity stands today and what’s left on the road to a fully proven stack.

Get started

Join the conversation

Blockstream’s production infrastructure, available for developing on bitcoin and Liquid.

Sidebar Topics
Blockstream

Bitcoin and digital asset infrastructure

Follow us