~/talk

Baking for Dafny: A CakeML Backend for Dafny

Talkat Dafny 2025 · on Sunday, 2025-01-19· [compilers-and-language-design]
links:none on file
links:none on file
slides:none on file

A verified pipeline translates Dafny IR to CakeML by exporting the IR as S‑expressions, parsing and compiling inside HOL4, and extracting runnable CakeML code; returns and breaks are modeled with exceptions-as-control-flow and loops become tail‑recursive functions. A functional big‑step semantics is formalized in HOL4 and correctness is proved for basic logical and binary operations; datatype support, polymorphic initialisation, and classes/traits remain unimplemented, so the backend runs simple examples but is not yet feature-complete.

AI-written summary · about

  1. 0:00Baking for Dafny intro
  2. 1:29What is CakeML
  3. 3:14Compiler design overview
  4. 4:37Dafny to CakeML translation
  5. 5:59Variables and loops handling
  6. 7:44Translation correctness proof
  7. 9:10Current limitations
  8. 10:34Long-term goals
  9. 11:35Closing & Q&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.