FuzzTLA 对 TLA+ 模型检查器 TLC 与 Apalache 做差分测试,发现 110 个问题
Who Checks the Model Checkers: Hardened Testing of TLA+ Tools
验证工具自己有 bug,LLM 会跟着学错,这套思路挺有意思。作者用 Claude Code、Codex 加 Kimi 辅助开发,几个月找到 110 个问题,做形式化验证或 AI 驱动证明搜索的人可以看看方法细节。
一篇 arXiv 论文提出了 FuzzTLA 框架,用于对 TLA+ 两大模型检查器 TLC 和 Apalache 进行系统化加固测试。2026 年 8 月至 12 月的运行共发现 110 个问题,其中包括 TLC 的 4 个导致错误判定结果的缺陷(1 个竞态条件)、Apalache 的 17 个问题,以及 SANY 解析器的 4 个解析 bug 和 9 个性能问题。
技术机制上,FuzzTLA 采用差分测试:对生成的输入同时运行两个检查器并交叉核对结果;对 Apalache 不支持的特性,则比较 TLC 单 worker 与多 worker 的输出。测试输入生成结合了基于属性的测试、变异测试、蜕变测试与随机图生成,覆盖验证工具的解析、类型检查与判定全链路。
研究动机在于 2026 年前沿 AI 工具已普遍使用 TLA+ 三件套(TLC、Apalache、TLAPS)配合 Lean 4 做协议验证,LLM 依赖这些工具的判定结果来引导规约与证明搜索。假阴性会误导 AI 驱动的证明搜索,假阳性则会让设计者对协议产生虚假信心。作者还报告了用 Anthropic Claude Code、OpenAI Codex 和 Moonshot Kimi 开发框架并分诊发现问题的过程,并称单人几个月内完成此项工作离不开这些前沿 AI 工具。
Who Checks the Model Checkers: Hardened Testing of TLA+ Tools
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.
本条情报归属 AITOP「论文」核心追踪栏目。在跨区域产业观察坐标中,该动态直接关联「AI 开发者工具链、Coding Agent 与工程化实践」研究主线,反映出当前技术演进与商业落地的最新风向。涉及核心实体与技术议题包括:TLA+、FuzzTLA、差分测试、形式化验证,读者可通过下方标签进入对应专题页查阅历史脉络与关联对比。
信源核验说明:本文原始信息发布自一手权威信源「arXiv: OpenAI」(Tier-1 一手发布),具备高确定性参考价值。截至目前,全网已有 11 家独立信源对该事件进行交叉印证与跟进报道(含 IT之家、shao__meng、Genk 等),属于近期高关注度行业信号。