TRANSMISSION // 2605.23109v2

Teaching AI to Write Code It Can Prove

Source published

A preprint describes a system that generates distributed-system code alongside formal proofs, aiming to check behavior beyond what tests can cover.

AI-generated conceptual illustration for Teaching AI to Write Code It Can Prove
AI-generated conceptual illustration; not documentary evidence.

Tests can catch many bugs, but they cannot examine every possible order of events in a distributed system. A new preprint describes an AI-based approach that generates code and mathematical proofs together—and reports promising results on a small set of specifications.

Software tests check how a program behaves on selected examples. But distributed systems can encounter many different event sequences: several machines may read and write data in different orders, for instance. Testing only some sequences cannot establish that a rule such as consistency always holds. Formal verification can provide stronger guarantees, but the authors say it often takes months or years of expert effort.

The paper introduces Inductive Deductive Synthesis (IDS), an AI-agent system designed to generate an implementation and a formal proof together. Rather than treating proof as a final check on finished code, IDS incrementally co-develops the two. The abstract says it learns from failed attempts and systematically tries promising strategies. It does not specify in the abstract what kinds of failures supply that feedback. In principle, the approach links program construction to a checkable argument about behavior.

The authors report evaluating IDS on seven distributed key-value-store specifications. They say it achieved all seven in about 6.9 hours and an average cost of $106 per specification. As a comparison, the abstract reports that two other coding agents—Codex with GPT-5.4 and Claude Code with Opus 4.6—succeeded on two of the seven specifications. These are results reported by the authors; the abstract does not provide enough detail to assess the benchmark design or reproduce the comparison.

The paper also says IDS incorporates performance feedback into its generation loop. The authors report that this produced implementations up to three times faster than published verified systems. That is a maximum reported improvement, not a claim that every generated implementation was three times faster.

The findings suggest a possible route toward reducing the labor involved in formally verified software: an agent can learn from unsuccessful attempts as it revises code, rather than relying on tests alone. But a proof establishes correctness only relative to the specification and the assumptions used in verification. The abstract does not explain how the specifications were created or how closely they represent the intended behavior of real systems. Nor does it give enough methodological detail to judge how broadly the results extend beyond these seven tasks.

This account is based on the paper’s abstract, not its full text. The work is an arXiv preprint, so its claims should be treated as preliminary, not as independently established conclusions. The reported completion, time, cost and speed results are encouraging, but they do not by themselves show that IDS can verify arbitrary distributed software or replace expert review.

Reviewed cross-references

These connections were reviewed by a model, not independently fact-checked by a human. Similarity does not imply agreement; consult the original papers and the evidence below.

  • Why Passing Tests May Not Prove an AI Patch Is Correct

    Supporting evidence: Both papers identify specification quality as a limit on what verification establishes. IDS requires a formal specification and notes that its guarantee is only as strong as that specification. In a separate SWE-bench Verified evaluation, the BenchProofer preprint reports that a correct supplied specification raised Claude Opus 4.8 resolution from 85.0% to 95.1%, while only 56% of agent-generated specifications passed audit. These findings support the bounded point that specification quality matters; the tasks and evaluation setups differ, so the results are not directly comparable. The BenchProofer findings are from a preprint under review.

    Model review: · openai-codex/gpt-6-luna

    Evidence and provenance

    Selected excerpts, not complete papers. PDF extraction can omit figures or damage equations, tables and reading order; sources may be preprints.

    • 2605.23109v2 — Original paper

      Excerpt reference: static/papers/2605.23109v2.md:790-912
      Basis: Paper text
      Source file SHA-256: 77cdb74fb0242a3319aff192b565a1a3f219eca4f1e16a23ec7dd0d1cea034e4

    • 2609.21190v3 — Original paper

      Excerpt reference: static/papers/2609.21190v3.md:70-127
      Basis: Paper text
      Source file SHA-256: deec578e59f477760ba19741fc72e9ba7c5ef33285d8895b6a9dc694e976ae1b

    • 2609.21190v3 — Original paper

      Excerpt reference: static/papers/2609.21190v3.md:128-209
      Basis: Paper text
      Source file SHA-256: deec578e59f477760ba19741fc72e9ba7c5ef33285d8895b6a9dc694e976ae1b

Automatically matched by shared topic keywords. These links do not imply that the sources agree or establish a consensus.