Antithesis uses AI to formally prove two production Raft libraries correct

Verifying formal models of Raft implementations

Antithesis set out to formally verify not just the Raft protocol but the actual designs in etcd-raft and HashiCorp Raft. Using Claude to infer TLA+ models, TLC model checking, trace validation, and Lean proofs via Veil, the team iterated through bugs and model gaps, applying seven patches. The final proofs establish Election Safety, Leader Completeness, and State-Machine Safety for the modeled features, at under $1,200 in tokens and roughly 2,000 compute-hours per library. Artifacts are open for review.

In our internal repository, we applied a total of 7 patches across the two implementations.

More from this day

2026-11-23