Pre-QED: Environment Specifications for Agentic Verification
Tristan Lim, Haoxin Tu, Mehtab Zafar, Zhengxiong Luo, Abhik Roychoudhury
Key points
From the paper's conclusion- We argue that the bottleneck of agentic verification has shifted from how to prove to what to prove.
Abstract
LLM agents are making formal verification practical at scale. Recently, many attempts have raised this as an enticing possibility. However, formal verification at scale is only meaningful if deep formal specifications capturing functionality are available for checking. Unfortunately, recent works seek to bypass this issue by using shallow specifications devised for purposes other than verification. OSS-Verify from Anthropic and Theorem, for example, reuses the fuzz harnesses of open-source libraries as specifications and has an agent prove that each harness never crashes. However, a fuzz harness follows a single sequence of API calls under a single calling context, so the resulting proof covers one usage scenario rather than the library. We argue that the bottleneck of agentic verification has shifted from how to prove to what to prove. Before zooming into verification at scale, we need deep environment specifications to prove, which is why we call our effort Pre-QED. We propose verification harnesses, executable harnesses that model all legal usages of an API, so that a proof about the harness is a proof about every well-behaved client. To construct them, we use an agentic workflow that extracts the API's usage contract from code / documentation, and uses Linear-time Temporal Logic (LTL) to rule out illegal call orders. We identify the challenges in proving verification harnesses and release our harnesses open-source as challenges for the community. The overarching vision is that verifying an open-source library should become as routine as fuzzing it, with a guarantee that covers every well-behaved client rather than a single scenario like a fuzzing harness.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Towards Agentic Proof Harness EngineeringarXiv · 2026
- MAGS: Multi-agent Auto-formalization Guarantees Safety for Agentic OutputsarXiv · 2026
- Soteria: Formally Verified Planning with Runtime Enforcement for Safe LLM AgentsarXiv · 2026
- Automated Safety Analysis for Agentic WorkflowsarXiv · 2026
- LogicHunter: Testing LLM Agent Frameworks with an Agentic OracleProceedings of the ACM on software engineering. · 2026
- Interactive Proofs as a Unified Framework for Evaluating and Leveraging Verifiable Proof Generation by LLM AgentsarXiv · 2026