Get the daily emailDaily email
  1. Home
  2. Research
  3. This story

LLM agents write a Lean-verified FizzBuzz that beats the human speed record at 334 GB/s

A verification researcher reports that LLM agents spent several weeks writing and super-optimising a FizzBuzz program of 1,053 lines of x86-64 assembly, with a Lean theorem certifying every byte it prints for up to 64 threads. On a Ryzen 9 9950X its slowest…

Published Read the original

Why it matters

It shows that pairing coding agents with formal proofs can make aggressive low-level optimisation safe, because correctness is checked rather than assumed.

What happened

1 min read

A verification researcher reports that LLM agents spent several weeks writing and super-optimising a FizzBuzz program of 1,053 lines of x86-64 assembly, with a Lean theorem certifying every byte it prints for up to 64 threads. On a Ryzen 9 9950X its slowest run reached 334 GB/s, against a human record of about 224 GB/s that had stood since 2024. The approach models x86-64 and Linux in Lean so agents can rewrite the binary freely as long as each change is proven to preserve its behaviour; the source is published.

inscraper analysis

Our analysis

The real story is not FizzBuzz but the pattern of letting agents optimise freely while requiring a proof that each change preserves semantics, made practical by Lean models of x86-64 such as Kraken. The headline comparison is not like-for-like, since the human record was set on an older Ryzen 9 5950X, though the post says it compares both programs on both machines later. The excerpt does not say which models were used or how much compute and human steering it took. Teams working on performance-critical code should read it as an early but concrete case for verification as a guardrail on agent-written code.

More in Research