
You know how writing an essay works when you have a good editor? You draft something, they mark it up with specific objections — 'this paragraph contradicts your thesis,' 'this claim needs a citation' — and you revise. You don't start over; you fix what the editor flagged. Now imagine the editor is a formal verification engine that literally cannot be fooled, and the writer is GPT-5.5. That's AxDafny: an agentic loop where the LLM generates Dafny code (implementation plus proof artifacts), the Dafny verifier rejects what doesn't check out, and the LLM iteratively repairs invariants, assertions, and termination arguments until the verifier accepts. The core claim is that this verifier-guided repair loop substantially outperforms single-shot LLM generation for formally verified code. The committed result: 92.7% verification success on DafnyBench, beating the strongest previously reported proof-hint baseline by 6.5 percentage points. On their new benchmark, LCB-Pro-Dafny (250 competition-style problems translated into Dafny with formal specs), AxDafny substantially improves over baseline GPT-5.5 — though the abstract doesn't give us the exact delta there, which is a notable omission. The architecture is straightforward: iterative generate-verify-repair, where the verifier's error messages become the prompt for the next repair attempt. This is the same 'compiler-in-the-loop' pattern we've seen in AlphaCode and related work, but applied specifically to the harder problem of generating both code AND proof artifacts simultaneously. The ladder here matters. DafnyBench is an established benchmark, and the 6.5 percentage point improvement over the prior best proof-hint baseline is real and named. But we should be honest: the abstract says 'strongest previously reported proof-hint baseline' without naming the specific system or paper. That's a yellow flag — not fatal, but you want to see the actual comparison table. The LCB-Pro-Dafny benchmark is new, introduced by this paper, which means it's both a contribution and a potential integrity concern: if you build the test, you get to tune to the test. Architecturally, AxDafny belongs to the agentic-repair family — the same lineage as self-debugging (Chen et al.), Reflexion, and the broader trend of using external tool feedback to guide LLM revision loops. The key structural choice is using Dafny's verifier as the oracle rather than test cases. This matters because formal verification is binary (proof accepted or rejected with specific error) while test-based feedback is fuzzy (passes N of M tests). Binary feedback is both more informative per iteration and harder to game. The compute property the method leans on is repeated LLM inference — each repair iteration costs another forward pass through GPT-5.5. The most intellectually honest finding in the abstract is the last sentence: verification success and runtime test performance measure different aspects of generated code. This is the kind of thing most papers bury or ignore. Code that the verifier accepts (formally proven correct against its spec) is not the same as code that passes runtime tests. This means the field needs both metrics, and optimizing for one doesn't guarantee the other. It's a structural insight about what 'correct code' even means. The milestone question is where this gets concrete. At 92.7%, the next meaningful target is probably 97-98% — the point where verified code generation becomes reliable enough to use in production pipelines without human proof-writing. We're not there yet, and the gap between 92.7% and 98% is likely harder than the gap between 86.2% and 92.7%, because the remaining failures are the structurally hard problems where loop invariants and termination arguments resist simple repair. The obvious experiment not run: applying AxDafny to a frontier model beyond GPT-5.5 (Claude, Gemini) to see if the gains are model-specific or transfer. Also absent: scaling the repair loop beyond whatever iteration cap they used, and testing on real-world verified codebases (not competition problems). My read is (a) — compute budget. Running iterative repair loops with frontier models across 250+ problems is expensive, and testing multiple base models would multiply that cost.
The analogy
Like writing an essay with a ruthless editor who can't be charmed: you draft, they mark every logical gap with a red pen, you revise — repeat until the argument is airtight. The editor is a formal verifier, the writer is an LLM, and 'airtight' means mathematically proven correct.
Essay revision
Writer drafts, editor marks specific logical gaps, writer revises targeted sections until the argument holds
AxDafny loop
LLM generates code+proofs, Dafny verifier rejects with specific errors, LLM repairs invariants/assertions until verification passes
Honest assessment
AxDafny is a well-executed application of the agentic-repair pattern to formal verification, with a real result (92.7% on DafnyBench, +6.5pp) and a useful new benchmark. It's not a paradigm shift — the generate-verify-repair loop is established — but it's the strongest evidence yet that this loop works for formal proofs, not just test-passing code. The load-bearing finding is the verification ≠ testing divergence, which has implications beyond this paper. Engineers building verified-code pipelines should watch this space; the 97-98% threshold is plausibly 1-2 years away.
What Is CLAIMS?
67
/ 100
BedrockNews applies a structured analytical framework called CLAIMS to academic papers and technical research releases.
How CLAIMS worksClaim
3/5
Ladder
4/5
Architecture
4/5
Integrity
3/5
Milestone
3/5
Successor
3/5
What is this paper actually committing to?
Solid iteration, not a first. Agentic repair for code is established; applying it to formal verification with a new benchmark and 92.7% on DafnyBench is a real contribution, but the template (generate-verify-repair) predates this work.
The field fight
Can LLMs produce formally verified code, or is proof-writing fundamentally beyond pattern matching?
Side A
LLMs generate plausible code but formal proofs require structured reasoning they lack; human proof engineers remain necessary
Held by: Formal methods traditionalists, Lean/Coq proof communities
Side B
Verifier-in-the-loop repair can bootstrap LLMs past their reasoning limits; the verifier provides the rigor the model lacks
Held by: AxDafny, self-debugging lineage, Baldur, Clover
Milestone tracker
Unlocks: Verified code generation reliable enough for CI/CD pipelines without human proof oversight
Current
92.7
%
AxDafny on DafnyBench
Next
97-98
%
Production-grade threshold
~1-2 years with frontier model improvements
Verified Facts (5)
AxDafny achieves 92.7% verification success on DafnyBench
Outperforms the strongest previously reported proof-hint baseline by 6.5 percentage points
LCB-Pro-Dafny contains 250 competition-style programming problems translated into Dafny
AxDafny substantially improves verification success over baseline GPT-5.5 performance on LCB-Pro-Dafny
Verification success and runtime test performance measure different aspects of generated code
Practical Implications (4)
Teams using Dafny for verified systems can start experimenting with LLM-assisted proof generation today, using verifier-in-the-loop repair to catch and fix proof failures automatically
The verification ≠ testing finding means CI/CD pipelines should not treat passing tests as equivalent to formal verification — both metrics are needed
LCB-Pro-Dafny provides the first competition-scale benchmark for evaluating verified code generation tools, enabling apples-to-apples comparison going forward
At 92.7%, the tool still fails ~7% of the time — human proof engineers remain necessary for the hard tail of problems
More latest news
Read all