AxDafny: Agentic Verified Code Generation in Dafny
arXiv:2606. 32007v1 Announce Type: new Abstract: We study agentic code generation in Dafny, where a model must generate both executable code and the proof artifacts for verification.
SkillForge is a framework that breaks down formal code synthesis into reusable atomic skills, each handling a specific subtask such as specification inference, body synthesis, invariant generation, error diagnosis, or repair. A verification-driven harness coordinates these skills by submitting candidates to the Dafny verifier, diagnosing failures, and routing them deterministically to the appropriate repair skill until correctness is achieved or a budget is reached. On a curated benchmark, SkillForge outperforms state‑of‑the‑art agentic and iterative baselines, requiring fewer tokens and lower latency, with ablation studies showing each skill’s measurable contribution and rapid convergence.
arXiv:2606. 32007v1 Announce Type: new Abstract: We study agentic code generation in Dafny, where a model must generate both executable code and the proof artifacts for verification.
The paper introduces a ten‑step workflow for using large language models (LLMs) to assist in the formal verification of complex algorithms within the Dafny system. It combines algorithm formalization, contract development, empirical invariant validation, proof construction, bottleneck profiling, and resource‑driven optimization, with human oversight for critical decisions. The authors applied the workflow to 37 graph‑theory and labelled transition system algorithms, successfully verifying the Hopcroft‑Tarjan triconnectivity test and demonstrating that many verifications can be completed within hours to a few days.
arXiv:2601.19747v2 Announce Type: replace-cross Abstract: In the rapidly evolving field of Electronic Design Automation (EDA), the deployment of Large Language Models (LLMs) for Register-Transfer Lev...
arXiv:2604.10800v2 Announce Type: replace-cross Abstract: Learned classifiers deployed in agentic pipelines face a fundamental reliability problem: predictions are probabilistic inferences, not verif...
ProofCoder is an agentic proof‑synthesis system for Rocq that continuously reasons during proof search, using proof‑assistant feedback to decide when to gather information, inspect states, revise fragments, or backtrack. Unlike rigid tactic‑generation loops, it iteratively constructs, repairs, and refines proofs at both tactic‑level and whole‑proof granularity. On 280 AutoRocq Benchmark tasks, ProofCoder raises success from 47% to 60%, a 27.7% relative improvement at roughly half the cost, demonstrating that continuous reasoning and feedback‑guided revision are key to robust automated software verification.
ProofCoder is an agentic proof‑synthesis system for Rocq that continuously reasons during proof search, using feedback from the proof assistant to decide when to gather information, inspect states, revise fragments, or backtrack. Unlike rigid tactic‑generation loops, ProofCoder iteratively constructs, repairs, and refines proofs at both tactic‑level and whole‑proof granularity. In experiments on 280 AutoRocq Benchmark tasks, it raises success from 47% to 60%, a 27.7% relative improvement at roughly half the cost, demonstrating the importance of continuous reasoning and feedback‑guided revision.
arXiv:2606. 06523v1 Announce Type: new Abstract: Equipping Large Language Models (LLMs) to execute reliable multi-step workflows has become a central challenge in artificial intelligence.
The paper surveys how large language models (LLMs) are being used in hardware verification, covering tasks such as assertion generation, testbench creation, bug localization, and formal reasoning. It categorizes the literature by methodology, verification goal, tool interaction, benchmarks, and evaluation metrics, and distinguishes between inference-time techniques (prompting, retrieval, structured reasoning, agentic workflows) and training-time adaptation. The authors highlight that LLMs excel as semantic reasoning, search, and orchestration components within verification workflows, yet emphasize the need for semantic alignment, scalable integration, generalization, and rigorous evaluation to ensure true verification correctness.
arXiv:2607. 04631v1 Announce Type: new Abstract: The cost of producing code is rapidly diminishing with increasingly capable AI agents, while quality assurance of generated programs has not kept pace.
HoarePrompt is a new method that applies program verification concepts to natural language requirements, using large language models to generate step‑by‑step natural language descriptions of program states. It incorporates a few‑shot k‑induction technique to handle loops and then evaluates whether the annotated program satisfies the requirements. On the CoCoClaNeL dataset, HoarePrompt raises the Matthews correlation coefficient by 61% over zero‑shot chain‑of‑thought prompts and by 106% over test‑generation classifiers, with the inductive reasoning component adding a 26% MCC improvement.
The paper introduces DRAGO, a framework that repairs formal specifications generated by large language models (LLMs) using deterministic, formalism‑specific diagnosis instead of ungrounded LLM critiques. DRAGO selectively rewrites specifications only when the diagnosed error weight decreases, reducing regressions from 11.8% to 1.3% and improving answer accuracy by 12.9 percentage points over zero‑shot formalization and 8.7 percentage points over LLM‑diagnostic repair across five benchmarks. Additionally, the authors identified and corrected rendering defects in Planetarium that caused half of its floor‑tile split instances to be inconsistent with reference formalizations.
arXiv:2604. 01687v3 Announce Type: replace Abstract: Anthropic proposes the concept of skills for LLM agents to tackle multi-step professional tasks that simple tool invocations cannot address.