Lauren Tan on the limits of formal methods and layered verification
Overview
Lauren Tan says formal methods cannot guarantee bug-free code.
In a post on X, she argues they only show that code matches a specification under certain assumptions, and that specifications come from human intent rather than from mathematics. She says she built the /statechart skill in pstack to make implicit state machines visible so reviewers can check that intent. She also says TLA+ with the TLC model checker has helped her find real bugs in her game. Her recommendation is to layer types, tests, and formal verification, applying formal verification to the parts of a system that need it.
Written by AI from the articles below · updated Nov 5, 1:53 PM ET
Check the sources:
Article timeline
The articles in this story. Times are ET.
lauren@potetoXLauren Tan argues formal methods need tempered expectations and layered verificationAILauren Tan says formal methods cannot guarantee bug-free code, only that code matches a spec under certain assumptions, and specs come from human intent rather than math. She says she built the /statechart skill in pstack to make implicit state machines visible so reviewers can check intent, and that TLA+ with TLC has helped her find real bugs in her game. She recommends layering types, tests, and formal verification for the parts that need it.

Heat Trend
Not enough continuous observations to show a trend yet.