arXiv:2611.02849cs.AINov 2026

Manuscript Offprint

arXiv:2611.02849

TLAPS-Bench: Formally Proving Correctness of Real-World System Specifications with TLA+ Proof System

Qian Cheng, Ruize Tang, Saad Mohammad Rafid Pial, Zhizhen Cathy Cai, Yiming Su, Jackson Clark, Munim Thahmid, Mahdiya Rahman Sukanya, Chris Newcombe, Igor Konnov, Stephan Merz, Xudong Sun, Murat Demirbas, Yu Huang, Markus Alexander Kuppe, Tianyin Xu

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

TLAPS-Bench is a benchmark and execution harness for constructing machine-checked proofs for real-world system specifications in TLA⁺ with agentic AI. Proving correctness of complex system specifications requires discovering inductive invariants, reasoning about intricate state transitions, and decomposing proofs into tractable obligations. TLAPS-Bench provides a proof harness that supports iterative proof development atop the TLA⁺ Proof System (TLAPS), where agents are equipped with proof tools and libraries, with safeguards against reward hacking. Using the harness, we have employed AI agents to prove desired properties for important system specifications that were not proved before, spanning cache coherence, Byzantine consensus, and write-ahead logs. TLAPS-Bench contains 265 proof targets (each encodes a property to prove) from 95 TLA⁺ specifications of real-world systems. We evaluated frontier AI agents, represented by Codex with GPT models, on a subset of 70 proof targets across 12 specifications. The highest-scoring model, GPT-6.1 Sol (max), proved 31 (44.3%) proof targets. The results show challenges and opportunities in end-to-end proof development.

1 INTRODUCTION

Formal proofs establish correctness properties of concurrent and distributed systems, such as cache coherence, consensus agreement, and transaction isolation, across all possible executions. Unlike other formal methods like model checking (Clarke et al., 1986), machine-checked proofs establish these properties deductively, providing correctness guarantees beyond finite exploration (Cousineau et al., 2012).

Traditionally, constructing formal proofs requires substantial expertise and effort. Developers must discover suitable inductive invariants (Ma et al., 2019; Yao et al., 2021), prove that they are preserved by every system transition, and decompose the reasoning into proof obligations that automated tools can discharge. For example, proving election safety in a consensus protocol (Ongaro & Ousterhout, 2014) may require strengthening the target property with auxiliary invariants about majority support and vote uniqueness.

Recent advances in agentic AI show promise for automating proof construction. Several recent studies demonstrate that agents can construct nontrivial machine-checked proofs through iterative interactions with proof checkers (Lucas

et al., 2026; Yang et al., 2025a;b; Ye et al., 2026a; Agarwal et al., 2026). These advances offer a path toward automating proof development for real-world concurrent and distributed systems beyond prototypes and research artifacts.

However, existing benchmarks do not sufficiently address end-to-end proof construction for real-world system specifications. First, many benchmarks provide agents with helper lemmas and intermediate invariants (Yang et al., 2025b; Xin et al., 2026), or with predefined proof decomposition that specifies individual theorems and their dependencies (Zhang et al., 2024; Lin et al., 2024). Such proof-completion style benchmarks predefine much of the proof structure, missing key challenges of discovering auxiliary invariants/lemmas, decomposing the target property into tractable proof obligations, and organizing them into a complete proof.

Second, few existing benchmarks target real-world system specifications. Many instead evaluate research artifacts developed specifically with formal verification in mind. For example, both VeruSAGE (Yang et al., 2025b) and Vero (Ye et al., 2026a) include IronKV (Hawblitzel et al., 2015), rather than widely deployed systems such as etcd and MongoDB. It is unclear whether agents can construct proofs for substantially richer behaviors of real-world systems.

Lastly, correctness properties of concurrent and distributed systems (e.g., liveness) go beyond functional correctness addressed by existing benchmarks like Vero (Ye et al., 2026a).

¹Nanjing University ²Microsoft ³University of Illinois at Urbana-Champaign ⁴Bangladesh University of Engineering and Technology ⁵IIT, University of Dhaka ⁶Oracle ⁷Independent ⁸University of Lorraine, CNRS, Inria, Nancy, France ⁹University of Toronto ¹⁰MongoDB ¹¹University of California, Berkeley. Correspondence to: Yu Huang yuhuang@nju.edu.cn.

Figure

Figure 1. Overview of TLAPS-Bench. TLAPS-Bench provides AI agents with a TLA⁺ specification (including models and target properties). TILAPIA (our TLA⁺ proof harness) runs the agents, checks generated proofs with TLAPS, and records results.

Concurrent and distributed systems require extensive reasoning about system-wide properties that emerge from interactions among components over time, such as agreement, consistency, isolation, etc. These properties pose distinct proof challenges, because their correctness depends on the composition and interleaving of many state transitions.

We present TLAPS-Bench, a benchmark and execution harness for constructing machine-checked proofs of system and protocol specifications in TLA⁺ (the de facto formal language for specifying concurrent and distributed systems; see §2). We set two goals for TLAPS-Bench:

  • building a proof service to verify important real-world systems and protocols that desire correctness guarantees;

  • understanding the capabilities of frontier AI in constructing formal proofs of real-world systems, end to end.

Each task in TLAPS-Bench is a proof target (a property to be proved) desired for a real-world system/protocol, as shown in Figure 1; so, results are of practical value.

TLAPS-Bench includes a proof harness for autonomous proof development, named TILAPIA (TLA⁺ Proof Infrastructure for Agents). TILAPIA is built atop the TLA⁺ Proof System or TLAPS (Cousineau et al., 2012), the native proof system for TLA⁺. It provides agents with tools including a semantic analyzer, model checkers, and common proof libraries. Agents can use these tools during proof development to explore system behaviors, refine proofs, and validate proof obligations. For example, agents constantly use model checkers to test invariants and obtain counterexamples that guide proof development. TILAPIA also enforces safeguards against reward hacking, ensuring that accepted proofs establish target properties under the original specifications.

We have used TILAPIA to construct machine-checked proofs for important properties for real-world system and protocol specifications which were not proved before.

TLAPS-Bench maintains a collection of 95 TLA⁺ specifications and 265 proof targets drawn from real-world systems and protocols, spanning cache coherence, Byzantine fault tolerance, and write-ahead logs. The proof targets cover

safety, liveness, and refinement properties. We are continuously adding new proof tasks and retiring tasks that were proved and can no longer challenge AI frontier.

We evaluate frontier AI agents, represented by Codex with GPT models, on 70 proof targets across 12 real-world system specifications. The highest-scoring model, GPT-6.1 Sol at max effort, successfully proves 31 (44.3%) targets, demonstrating strong capability while leaving substantial room for improvement. Our analysis reveals that success depends not only on finding valid proof arguments. For example, case studies show that the choice and decomposition of invariants substantially affect proof obligations, whereas naïve calling of automated backends is ineffective.

In summary, we make the following main contributions:

  • TILAPIA, an effective TLA⁺ proof harness for agentic TLA⁺ proof development, which offers a TLA⁺ proof service for real-world system specifications;

  • TLAPS-Bench, a rich benchmark suite for end-to-end proof development based on real-world system specifications, which poses significant challenges to frontier AI;

  • An analysis of frontier AI's ability of developing formal proofs for real-world system/protocol specifications.

  • TLAPS-Bench and TILAPIA are publicly available at github.com/specula-org/TLAPS-Bench.