Skip to content

Who Checks the Model Checkers: Hardened Testing of TLA+ Tools

Igor Konnov

cs.SE

Abstract

In 2026, frontier AI tools have adopted the TLA+ trifecta (TLC, Apalache, and TLAPS) for protocol verification, alongside Lean 4. As LLMs rely on the verdicts of model checkers and proof assistants to guide specification and verification, these formal verification tools must themselves be as free of bugs as possible. Until recently, soundness and completeness issues in these tools were mostly found by human experts. A bug in a verification tool has two consequences: (1) a false negative may misguide AI-driven proof search, and, more importantly, (2) a false positive may give designers false confidence in a protocol, which an attacker's AI tool can exploit. We present FuzzTLA -- a framework for systematic, hardened testing of the two TLA+ model checkers, TLC and Apalache. Following differential testing, we run both checkers on generated inputs and cross-check their results; for features unsupported by Apalache, we compare single-worker TLC against multi-worker TLC. Test generation combines property-based, mutation, and metamorphic testing with random graph generation. Running the framework in August-December 2026, while building it, we found 110 issues, including 4 parsing bugs in SANY (one regression), 4 defects causing incorrect verdicts in TLC (one a race condition), 17 in Apalache, 21 issues in Manyan (one causing incorrect verdicts), 2 issues in the Java overrides of the TLA+ Community Modules, and 9 performance issues. This work would not have been feasible for a single researcher in several months without frontier AI tools. We report how we used Anthropic Claude Code, OpenAI Codex, and Moonshot Kimi to develop the framework and triage the findings.

Create a lesson

Metadata

Categories
cs.SE, cs.LO