~/talk

Verifying the Fisher-Yates Shuffle Algorithm in 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

Verified Fisher‑Yates implementation in Dafny defines a functional model on bitstreams, proves it yields each permutation with probability 1/n! for duplicate‑free inputs, then gives an executable array method and a formal equivalence proof to imperative array implementation using loop invariants. Proof relies on an abstract probability space and an assumed uniform sampler (compiled to int32/JVM ints); artifacts and proofs are available in the workshop repo and compile to multiple target languages.

AI-written summary · about

  1. 0:00Fisher-Yates Shuffle intro
  2. 2:32Randomness in Dafny
  3. 5:03Functional Fisher-Yates
  4. 10:00Correctness proof
  5. 13:12Imperative implementation
  6. 14:56Assumptions and summary
  7. 16:23Q&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.