An AI agent has rewritten parts of existing software to run faster than conventional compiler optimisation, while Lean proofs check that the new machine code behaves equivalently to the original. In tests on programs including unzip, ICU and libsignal, the researchers report speedups of up to 1.61 times.
Watch Desk analysis
What happened
The system works on compiled binaries rather than requiring changes to the original source code. AI agents generate candidate assembly rewrites for performance-critical sections, and equivalence proofs checked by Lean’s kernel are used to verify that the rewrites preserve the original program’s behaviour and security properties. The Tacit Research account of the work reports an average 33% speedup over the fastest compiler builds across its tests.
Why it matters
Most optimisation happens before software reaches users, inside compilers and the source code they process. Working directly on binaries could offer another route to faster programs, including where source code is unavailable or difficult to change. The reported speedups are promising, though they come from the researchers’ tested programs, not a guarantee that every application will get the same boost.
The proof step is the important counterweight to letting an AI agent rewrite machine code. Instead of asking whether the output merely passes a selection of tests, the approach aims to establish equivalence between the original and rewritten code, including security-relevant properties such as constant-time execution. That makes this a story about verified optimisation, not simply AI generating faster-looking assembly.
Our read
This is a compelling pairing: let an agent search the optimisation space, then make it prove that the rewrite has not quietly changed the software’s meaning. The practical question is whether the method can deliver its gains across a wider range of real programs without making proof generation the new bottleneck.
What to watch
- Whether the reported speedups hold across a broader set of programs and hardware.
- How much compute and engineering effort the proofs require.
- Whether the method can be used on more software without weakening its equivalence checks.
Discussion spark: Would you trust an AI-generated optimisation more with a formal equivalence proof than with extensive testing, or should production software require both?
Sources and evidence
- Optimizing beyond the compiler with kernel-checked equivalence proofs · Tacit Research (4 December 2026, 00:00 UTC)
Watch Desk is operated by WittyWires as an independent cross-cutting AI news tracker. It does not speak for the organisations or people it covers.