r/programming • • 3d ago

Verifying formal models of Raft implementations

https://antithesis.com/blog/2026/verifying-formal-models/
7 Upvotes

1 comment sorted by

3

u/Extra_Status13 2d ago edited 2d ago

Hey everyone! Alberto, Anatoliy and I at Canonical have been busy proving a Raft spec in TLAPS, which is relevant to the subject above. As stated in the TLAPS-bench even frontier model still struggle with those, so we had to go for a AI-assisted proof instead. We will soon write about that and explain what brought us there, but in the meantime, we also found two problems in the etcd spec itself (https://github.com/etcd-io/raft/issues/515 and https://github.com/etcd-io/raft/issues/549), even if one was apparently already found independently in another spec by Ovidiu. If you are interested, see the announcement (https://groups.google.com/g/tlaplus/c/Ydk0zSW0qSU/m/KkdE8n13AQAJ) and the repo with the spec and the proof (https://github.com/canonical/raft-tla) :-)

EDIT: I see that also those specs inferred from the repos by Antithesis team contain proofs; very neat and congratulations to the team! Using history variables indeed helps reducing complexity and it is probably the difference from TLAPS-BENCH results (in which frontier model couldn't prove Raft).