Agents catch bugs with TLA+ and Lean 4 proofs
The author adapted formal verification and statechart skills into their workflow to have coding agents write formal proofs using TLA+ and Lean 4. Across multiple codebases, the proofs successfully caught real concurrency, authentication, and state edge-case bugs that unit tests missed. However, the author notes significant friction, including high compute runtimes and the risk that code drift renders passing proofs stale like outdated comments. Open article →