~/talk

dafny-annotator: AI-Assisted Verification of Dafny Programs

Talkat Dafny 2025 · on Sunday, 2025-01-19· [ai-assisted-development]
links:none on file
links:none on file
slides:none on file

Built a tool called dafny-annotator that uses LLMs plus greedy search (five iterations, five candidates) to insert invariants, decreases, and assertions into Dafny methods until Z3 verifies them. Base LLaMa 3.1 8B and Code Llama 7B verify ~15.7% and ~40% of held-out DafnyBench methods; after fine-tuning on real+synthetic data (the DafnySynth pipeline generated with GPT‑4o and filtered by Dafny) LLaMa 8B reaches 50.6%. The pipeline costs about $10 of OpenAI API credit to match DafnyBench scale.

AI-written summary · about

  1. 0:00Dafny-Annotator intro
  2. 1:07Why formal verification unused
  3. 2:30Z3’s correct but unconvinced code
  4. 3:33Auto-adding Dafny annotations
  5. 5:16Small LLMs on Dafny bench
  6. 7:45Fine-tuning with little data
  7. 9:52Defin-Synth for synthetic Dafny
  8. 11:36Defin-Synth pipeline design
  9. 13:19Priority queue example
  10. 14:49Synthetic data results
  11. 15:31AI verification potential
  12. 16:36Summary and future work
  13. 16:57Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.