Inductive Deductive Synthesis: Enabling AI to Generate Formally Verified Systems
Shubham Agarwal, Alexander Krentsel, Shu Liu, Mert Cemri, Audrey Cheng, Rui Meng, Tomas Pfister, Chun-Liang Li, Sylvia Ratnasamy, Aditya Parameswaran, Matei A Zaharia, Ion Stoica, Mohsen Lesani
NeurIPS page · Open on the map
Category: LLM Agents, Evals & Benchmarks › Verified Code Synthesis and Testing · Type: new method · Keywords: formal verification, distributed systems, code synthesis, AI agents, proof generation
Areas: Code & Coding Agents › Code Verification › Verified code generation; AI Agents › Agent Benchmarking › Agentic code and proof generation
Summary
Inductive Deductive Synthesis (IDS) is an agentic LLM system that jointly synthesizes verified implementations and proofs for distributed systems, achieving full correctness on specifications roughly 200× faster than expert effort.
Explained to a 5-year-old
AI helpers can write code, but they sometimes make mistakes that could break important systems. Making sure those systems always work correctly is hard and takes a lot of time for people. This paper creates a smart AI that tries to write code and also proves that the code is correct all the time. It learns from its mistakes and gets faster, so it can finish the work much quicker than before. This helps build safer computer programs that we can trust.
Explained to a 5-year-old, longer
AI tools can write code like sentences, but they sometimes forget important rules. For systems that need to be always correct, like those that keep data safe, we need to be sure they work in every possible way. Doing this by hand takes months or years of work by experts. This paper describes a new AI that tries to write code and also prove that it is correct. It does this by learning from its mistakes and trying new ideas. The AI works step by step, making a piece of code and checking its proof together. When it fails, it looks at why and tries a different approach. It also pays attention to how fast the code runs and improves it over time. As a result, it can finish tasks that used to take a long time in just a few hours. It also costs less money than the best AI tools available today. This makes it possible to create reliable computer systems more quickly and affordably. In the end, the AI helps us build safer and faster software for everyone.
For a technical reader
The paper addresses the challenge of generating correct distributed system code, which is difficult because concurrency bugs can arise from any interleaving of operations. Existing AI coding assistants can produce functional code but lack formal verification, while traditional verification requires extensive manual effort. The proposed system integrates code synthesis with proof generation in a single loop, using failure feedback to guide the search for correct implementations. It operates as an agentic LLM pipeline that iteratively refines both the implementation and its correctness proof, incorporating performance metrics to accelerate execution. Empirical results show that the system can verify all target specifications in hours at a fraction of the cost and speed of previously published verified solutions.
Problem
AI coding agents can generate code but lack formal guarantees of correctness for distributed systems, where properties like consistency must hold under every possible interleaving of events. Current formal verification methods require months to years of expert work, making them impractical at scale.
Method
The approach builds an agentic LLM system that iteratively synthesizes both code and proofs, learning from failed attempts to explore promising strategies, and integrates performance feedback to improve runtime efficiency.
Results
The approach achieves 7/7 specifications in about 6.8 hours at an average cost of 106 per spec, roughly 200× faster than expert effort and 17% cheaper than SOTA agents, and yields implementations up to 3× faster than prior verified systems.
Contributions
It introduces a novel iterative synthesis framework that jointly generates code and formal proofs, learns from failures to guide search, and incorporates performance feedback to accelerate verified implementations.
Practical relevance
This speedup and cost reduction make formally verified distributed systems feasible for industry deployment, enabling safer AI-generated code.
Research questions this paper is counted under
This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction