← @bgSponge

What TLA+ can and can't check

Summary

Hillel Wayne says TLA+, a temporal-logic language, checks invariants and liveness but cannot naturally express reachability or hyperproperties.

  1. TLA+ checks safety and liveness properties over system behaviors.

    Invariants describe what remains true across states, action properties describe state changes, and composed temporal operators describe eventual outcomes.

    One single behavior isn't enough to cut it, so this is impossible to naturally check in TLA+.

    TLA+ is reasonably good at expressing and checking them.

  2. A property must be expressible as a logical formula before TLA+ can verify it.

    Human goals such as recognizing birds or keeping an application from being used to break the law may resist formalization.

    to verify a property, we need to have a property to verify!

  3. Several useful properties fall outside TLA+'s natural scope.

    The article names multi-step behavior, floating-point operations, real time, reachability, hyperproperties, statistical guarantees, and properties of the whole state space.

    These are useful hacks, but they're still hacks.

  4. Workarounds trade directness for complexity.

    Auxiliary variables, self-composition, REACHABLE, and TLCGet can mimic some missing properties, but they can damage refinements, enlarge the state space, or make models diverge from the system.

  5. Other formalisms cover some gaps without covering everything.

    The article points to Computation Tree Logic (CTL) for reachability and PRISM for probabilistic properties, with different tradeoffs from TLA+.

Read the original ↗Save to Sponge

Summarized with Sponge. Quotes are the author’s own words.

More from @bg

All readings →