Who Checks the Model Checkers: Hardened Testing of TLA+ Tools
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
Related papers
Testing a Safety-Critical Matching Component of an LLM-Based Simulated Patient: Blind Test Sets, Overfitted Cut-offs and a Cascade
Shared title terminologycs.SEFaaz Khan Mohammad, Sanket Salvi
What Do Code Judges Add Beyond Public Tests and Generator Priors?
Shared title terminologycs.SETaleb Alhajji, Yonghong He
Test-Centric Code Generation: Enhancing Test Diversity, Reliability, and Utilization
Shared title terminologycs.SEChaohang Wen, Zhao Tian, Shiqi Kuang et al.
Standing on the Shoulders of Giants: Bug-Aware Automated GUI Testing via Retrieval Augmentation
Shared title terminologycs.SEMengzhuo Chen, Zhe Liu, Chunyang Chen et al.
Think Outside the Box: Automating Inter-App Functionality Testing via Memory Implanting and Reasoning
Shared title terminologycs.SEMengzhuo Chen, Zhe Liu, Chunyang Chen et al.
Safe Continuation in LLM Agents: Runtime and Tool-Contract Boundaries
Shared title terminologycs.SEZihao Wang